Why does vinegar dissolve in water and not cooking oil?

Vinegar dissolves in water because both are polar molecules. This means that they have positively and negatively charged ends, which are attracted to each other. The positive end of the water molecule is attracted to the negative end of the vinegar molecule, and vice versa. This attraction is strong enough to overcome the forces that hold the vinegar molecules together, allowing them to dissolve in water.

Cooking oil, on the other hand, is a nonpolar molecule. This means that it does not have any positive or negative charges. As a result, it is not attracted to water molecules, and it cannot dissolve in water.

The difference in solubility between vinegar and cooking oil is due to the difference in their polarity. Polar molecules dissolve in polar solvents, while nonpolar molecules dissolve in nonpolar solvents.