What happens to margarine when you heat it?

Margarine, like butter, is a semi-solid emulsion of fat and water. It is made from vegetable oils that have been partially hydrogenated to make them solid at room temperature.

When margarine is heated, the fat in the margarine melts and the water evaporates. This causes the margarine to separate into two phases: a liquid phase consisting of the melted fat, and a solid phase consisting of the water and any other solids that were present in the margarine. The liquid phase is denser than the solid phase, so it sinks to the bottom of the container.

As the margarine continues to heat, the temperature of the liquid phase increases and it starts to boil. This causes the margarine to splatter and foam. If the margarine is heated too much, it can catch on fire.