foodcookingsubstitutes

Best Margarine Substitutes

IRON COMPARE··4 min read

Out of margarine? Discover the best margarine substitutes for any recipe, with tips on ratios and when to use each alternative.

Margarine is a butter substitute made from vegetable oils (commonly soybean, palm, canola, or sunflower oil) that have been processed — through emulsification, hydrogenation or interesterification, coloring, and flavoring — to approximate the taste, texture, and appearance of butter. It typically contains 80% fat (similar to butter) plus water, salt, emulsifiers, and added vitamins. Stick margarine has a texture and fat content close to butter and is intended for baking and cooking, while tub margarine has a softer, more spreadable consistency with more water and is primarily used as a table spread.

Margarine was developed in 1869 as a cheaper butter substitute and dominated American and European kitchens through much of the 20th century. It was widely promoted as healthier than butter due to its lower saturated fat content, though the trans fats in partially hydrogenated margarine later proved to be significantly more harmful than saturated fat. Modern margarines use non-hydrogenated oils to avoid trans fats and are reformulated to be better health choices. Today, margarine is commonly used in vegan cooking as a dairy-free butter alternative and appears in commercial baking for its consistency and lower cost.

In cooking, stick margarine can substitute for butter in most baked goods, while tub margarine is primarily a spread. Finding a substitute for margarine means identifying what role it's playing — dairy-free baking, vegan spreading, or general cooking.

Best Substitutes for Margarine

These alternatives work across margarine's main applications — baking, spreading, and cooking.

SubstituteFlavor / Texture MatchSwap Ratio
ButterRicher, more complex flavor; higher saturated fat; superior taste in most applications1:1
Vegan butterClosest plant-based match; designed to replicate butter's behavior in baking and cooking1:1
Coconut oilMild-neutral (refined); solid at room temp; good in baking and cooking1:1
Vegetable shorteningNeutral, solid fat; no flavor; excellent for baking but not ideal for spreading1:1
Olive oil (savory dishes)Fruity, grassy; liquid at room temp; best for cooking, not baking or spreading¾ cup per 1 cup margarine
GheeConcentrated butter flavor; no water; good for cooking and savory baking1:1

How to Choose the Right Substitute

For baking — cookies, cakes, quick breads, muffins — real butter is the best substitute for stick margarine if dairy isn't a concern. Butter's flavor is superior in virtually every baked application, and it behaves nearly identically to stick margarine in recipes. Use it 1:1 by weight. If you're baking dairy-free, vegan butter sticks (Earth Balance, Miyoko's, Country Crock Plant Butter) are the most reliable substitutes — they're specifically formulated to behave like butter in baking and are much better than tub margarine for pastry applications.

For spreading on bread, toast, or corn on the cob — the table use of margarine — vegan butter is the cleanest swap for those avoiding dairy, and real butter is the obvious choice for those who don't. Olive oil with flaky sea salt is a delicious Mediterranean alternative to margarine as a bread condiment. It won't replicate margarine's spreadable texture, but it's a more flavorful option that many people prefer.

For cooking — sautéing, pan sauces, finishing dishes — olive oil, ghee, and butter all work well. Ghee is particularly useful here because, like margarine, it has a high smoke point and won't burn as easily as whole butter. Refined coconut oil is the best solid-fat option for dairy-free cooking where a neutral flavor is needed.

Frequently Asked Questions

Can I use butter instead of margarine at a 1:1 ratio?

Yes, in virtually every recipe. Butter has a nearly identical fat content to stick margarine (80%) and the same water content (about 16–18%). The main difference is flavor — butter is richer and more complex. In baking, you'll get a superior result with butter. The only consideration is cost and dietary restrictions (butter contains dairy, margarine typically does not).

What is the best vegan substitute for margarine?

Vegan butter sticks — brands like Earth Balance, Miyoko's Creamery, and Country Crock Plant Butter — are the best vegan margarine substitutes. They're designed to replicate dairy butter's behavior in baking and cooking, making them essentially an upgraded vegan margarine with better flavor. For spreading, any of these work well straight from the fridge or at room temperature.

Is margarine better than butter for baking?

Not in terms of flavor — butter is universally preferred for its taste. In commercial baking, stick margarine is used for consistency, lower cost, and longer shelf stability. The main advantage of margarine in home baking is that it's already at a workable consistency at room temperature, so you don't need to soften it. However, properly softened butter produces superior results in cakes and cookies.

Can I use oil instead of margarine in a cake recipe?

Yes, with a ratio adjustment. Use ¾ cup of oil for every 1 cup of margarine. Oil-based cakes tend to be moister than butter or margarine-based cakes because oil doesn't solidify when the cake cools. The trade-off is that oil cakes can feel greasy if the ratio isn't right, and they lack the structure that solid fats provide. For most simple cakes and muffins, this swap works well.

What is the difference between stick margarine and tub margarine for baking?

Stick margarine is the only form suitable for baking. It contains around 80% fat, similar to butter, and behaves comparably in most baking applications. Tub (soft) margarine contains more water and less fat and is intended for spreading, not baking — using it in cookies or cakes will result in flat, greasy, underbaked products because the excess water interferes with the fat's role in creating structure.


See also: Butter Substitutes | Vegetable Shortening Substitutes | Coconut Oil Substitutes