Margarine is made by blending vegetable oils with water, then processing the mixture into a stable, spreadable solid that mimics the texture and taste of butter. The process involves refining raw oils, modifying their fat structure so they firm up at room temperature, emulsifying oil and water into a uniform blend, and adding flavor and color. Modern margarine production has changed significantly in recent years, largely because of regulations banning the trans fats that older methods produced.
It Starts With Refining the Oil
Most margarine begins with common vegetable oils like soybean, canola, sunflower, or palm oil. These oils arrive at the factory as crude liquids full of impurities, and they go through several cleaning stages before they’re ready for use.
First, the oil is degummed to remove sticky phospholipids. Then it’s neutralized with an alkaline solution to strip out free fatty acids that would cause off-flavors. After that comes bleaching, which isn’t about color so much as removing pigments, peroxides, and leftover residues from the earlier steps. The final stage is deodorizing: the oil is heated under vacuum to drive off volatile compounds, carotenoids, and any remaining free fatty acids. What comes out is a clean, neutral-tasting oil with a long shelf life.
Turning Liquid Oil Into a Solid Fat
The central challenge of margarine production is structural. Vegetable oils are liquid at room temperature, and butter is not. To make a spread that holds its shape on a counter but melts in your mouth, manufacturers need to modify the fat so it contains enough solid crystals to form a network throughout the product.
For most of the 20th century, the standard method was partial hydrogenation. Hydrogen gas was bubbled through heated oil in the presence of a metal catalyst, which converted some of the oil’s unsaturated fatty acids into saturated ones. This raised the melting point and made the fat semi-solid. The problem: the process also rearranged some fat molecules into trans fats, which are strongly linked to heart disease. In 2015, the FDA determined that partially hydrogenated oils are not generally recognized as safe, and manufacturers were required to phase them out of foods by 2018 (with limited extensions through 2021 for certain products).
Today, most margarine makers use a combination of other approaches. One common strategy is blending oils that are naturally more solid, like palm stearin or coconut oil, with liquid oils like soybean or canola. Another is full hydrogenation, which converts oil completely to a hard, waxy fat with no trans fats, then blending that with liquid oil to reach the right consistency. The most sophisticated method is interesterification, where enzymes or chemical catalysts rearrange the fatty acid building blocks on the fat molecules themselves. This lets manufacturers fine-tune the melting profile of the fat blend without creating trans fats. For example, researchers have produced margarine-quality fats by using an enzyme called lipase to rearrange mixtures of palm stearin, coconut oil, and seed oils into custom fat blends with specific melting behaviors.
Creating the Emulsion
Margarine is a water-in-oil emulsion, meaning tiny droplets of water are suspended throughout a continuous fat phase. A typical margarine contains roughly 60 to 80 percent fat and 20 to 40 percent water or milk-based liquid, though reduced-fat versions can flip that ratio closer to 35 percent fat and 65 percent water.
Oil and water naturally want to separate. To keep them blended, manufacturers add emulsifiers: molecules that have one end attracted to water and another attracted to fat, so they sit at the boundary between the two and hold everything together. The most common emulsifiers in margarine are lecithin (often derived from soy) and mono- and diglycerides. These prevent the water droplets from merging, which would cause the margarine to “break” and become greasy or watery.
The two phases are prepared separately. The fat phase includes the oil blend, emulsifiers, fat-soluble vitamins (usually A and D), and coloring. The water phase contains water or skim milk, salt, preservatives, and sometimes flavoring. The two are then combined in a mixing tank and stirred into a coarse emulsion.
Cooling and Crystallization
The emulsion at this stage is still warm and liquid. To turn it into a spreadable solid, it passes through a piece of equipment called a scraped-surface heat exchanger, sometimes known by the brand name Votator. This is essentially a chilled tube with a rotating blade inside. As the emulsion flows through, it’s rapidly cooled while being constantly scraped off the walls, which forces the fat to crystallize into very small, uniform crystals.
Crystal size matters enormously. Margarine needs tiny crystals in a specific arrangement called the beta-prime form. These small crystals interlock into a fine network throughout the fat, which is what gives margarine its smooth, creamy texture and easy spreadability. Larger crystals or the wrong crystal type would make the product grainy or waxy. Manufacturers control crystal formation through cooling speed, mechanical working, and the composition of the fat blend itself.
After the initial chilling, the margarine passes through a resting tube or pin worker where it’s kneaded further. This step breaks up any large crystal clusters and ensures a consistent, plastic texture. The product then moves to packaging.
Flavor, Color, and Fortification
Without additives, margarine would taste like nothing and look pale white. Manufacturers add beta-carotene, a natural orange pigment found in carrots and other plants, to give margarine its familiar yellow color. Some products use annatto, another plant-derived colorant.
The buttery flavor comes from compounds like diacetyl, a substance that occurs naturally in real butter and gives it much of its characteristic aroma. Acetoin, a closely related compound, is also used in many flavoring blends. These are added in very small amounts to the water phase before emulsification.
Salt serves double duty as both a flavor enhancer and a preservative, typically making up around 1 to 2 percent of the final product. Most margarines sold in the U.S. are also fortified with vitamins A and D to match the nutritional profile of butter, since these vitamins are naturally present in dairy fat but absent from vegetable oils. Some brands add vitamin E or omega-3 fatty acids as well.
How the Final Product Comes Together
The entire process, from refined oil to wrapped margarine, typically follows this sequence: blend the fat components, prepare the water phase, combine them into an emulsion, chill and crystallize rapidly, mechanically work the product to the right texture, then fill it into tubs or wrap it in foil-lined paper for stick form. The whole production line runs continuously, and the margarine reaches its final texture within minutes of being chilled.
Tub margarines generally use softer fat blends with more liquid oil, which is why they spread easily straight from the refrigerator. Stick margarines contain a higher proportion of solid fat to hold their shape for baking. “Light” or reduced-fat spreads simply increase the water-to-oil ratio and rely more heavily on emulsifiers and thickeners like starches or gums to maintain a convincing texture despite having less fat.
Trans fat content in modern margarine is essentially zero from the manufacturing process, though trace amounts (below 0.5 grams per serving) can still appear from natural sources or minor side reactions. This is a dramatic shift from decades past, when a single tablespoon of stick margarine could contain 3 grams or more of trans fat.

