Cooking oil and vinegar dont mix why does the cooking stay on top of vinegar?

The difference in density between cooking oil and vinegar causes them to separate into layers, with cooking oil floating on top of the vinegar.

Cooking oil is less dense than vinegar, with a density of around 0.91 g/mL, while vinegar has a density of around 1.04 g/mL.

This difference in density causes the oil to rise to the top of the vinegar, forming a distinct layer. The two liquids do not mix because they are immiscible, meaning that they do not dissolve into each other.