Why Does Oil Float on Water? Density, Polarity, and What Sinks Instead

Oil floats on water because most oils are less dense than water. Density is mass per unit volume: when equal volumes of oil and water are compared, the oil usually has less mass. Buoyancy then keeps the oil at the surface.
A typical cooking oil has a density around 0.91–0.93 g/cm³, while water is close to 1.00 g/cm³ at room temperature (Encyclopaedia Britannica). The exact values vary with the type of oil and temperature, but the difference is enough to determine which liquid sits on top.
Density determines which layer is on top
Imagine pouring water and oil into a clear glass. The oil rises above the water because a given volume of oil weighs less than the same volume of water. The oil does not need to be lighter in total: a large amount of oil can weigh more than a small amount of water. The comparison is between equal volumes.
For example, 250 mL of water at roughly 1.00 g/cm³ has a mass of about 250 g. The same volume of oil at roughly 0.92 g/cm³ has a mass of about 230 g. Since the oil is less dense, it floats.
This describes the bulk layers. Individual droplets can remain dispersed through water for a time if the liquids have been shaken or mixed. Once the droplets join together, the oil rises and forms a layer again.
Why oil and water stay separate
Density explains why oil is above water. A different property explains why the liquids form separate layers: water is polar, while oil is generally nonpolar.
Water molecules have ends with partial electric charges. Those charges help water molecules attract one another. Oil molecules, made mostly of hydrocarbons, do not have the same charged structure. They do not mix readily with water or dissolve in it (Royal Society of Chemistry).
Shaking oil and water can break one liquid into small droplets within the other, making the mixture look cloudy. That effect is temporary unless something helps keep the droplets apart. An emulsifier, such as lecithin in egg yolk, has parts that interact with both water and oil. It can help form a more stable mixture, as in mayonnaise. Without an emulsifier, the droplets tend to merge and the layers return.
A simple example: oil in a glass of water
Pour a little cooking oil into a glass of water. The oil gathers at the surface, where it forms a separate layer. If you stir or shake the glass, the oil breaks into smaller droplets and spreads through the water. Leave the glass undisturbed, and the droplets gradually join into larger drops that rise back to the top.
The result shows two properties at work: oil is less dense than water, and the two liquids do not dissolve in each other. Mixing changes how the oil is distributed for a while, but it does not change the density order or make the liquids compatible.
What happens when temperature changes?
Water’s density changes with temperature. It reaches its greatest density near 4 °C and becomes less dense as it warms or freezes (USGS Water Science School). This explains why ice floats on liquid water.
Oil density also changes with temperature. For ordinary cooking and environmental conditions, common oils remain less dense than water, so they continue to sit above it. The precise density depends on the oil and the temperature, so a single figure should be treated as an approximation, not a fixed property of every oil.
Density and floating objects
The same basic comparison applies to objects in water. An object floats when its average density is lower than the water around it. A solid steel nail sinks because steel is much denser than water.
A steel ship can float because its hollow hull contains air. The relevant density is the mass of the whole ship divided by the volume it displaces, not the density of the steel alone. The shape and enclosed space allow the ship to displace enough water to support its weight.
Oil itself does not make every object float. A sealed container filled with oil may sink if the container’s total mass is high compared with its outside volume. The object’s average density determines what happens.
Key Takeaways
- Oil floats on water because most oils are less dense than water.
- Water and oil form separate layers because water is polar and oil is generally nonpolar.
- Shaking breaks oil into droplets, but an emulsifier is needed to help keep those droplets mixed.
- Density varies with temperature and oil type, so quoted values such as 0.91–0.93 g/cm³ are approximate.
- For objects, floating depends on average density, including any air enclosed in the object.