Best Substitutes for Margarine
Margarine is butter's backup dancer. It provides fat (usually 60-80% depending on the brand), adds moisture, and creates tenderness in baking. Unlike butter at 80% fat, margarine contains more water and sometimes air, which changes how recipes behave. The emulsifiers in margarine help bind ingredients, but the flavor is flat compared to butter's rich, slightly sweet notes. Stick margarine performs better than tub versions because it contains less water and air. When you substitute margarine, you're trading convenience and cost for flavor complexity.
Best Overall Substitute
Unsalted butter at a 1:1 ratio by weight. Butter has 20% more fat than most margarines, so your baked goods will be richer and more tender. The flavor improvement is immediate and noticeable. Use cold butter for pastries, softened for creaming, melted for quick breads.
All Substitutes
Unsalted butter
1:1 by weightButter contains 80% fat versus margarine's 60-80%, so you get richer results. The milk solids in butter brown during baking, adding nutty depth that margarine lacks. Butter melts cleanly at 90-95F while margarine can feel greasy. For creaming methods, butter traps air better because of its crystalline structure. Cookies spread less with butter. Cakes rise higher.
Coconut oil (refined)
1:1 by volume, or reduce by 2 tablespoons per cupRefined coconut oil has 100% fat content versus margarine's 60-80%. This concentration means you can use slightly less. It solidifies at 76F, so it creams well when cool. The neutral flavor works in both sweet and savory recipes. Coconut oil conducts heat faster than margarine, so reduce oven temperature by 25F to prevent over-browning.
Vegetable shortening
1:1 by volumeShortening has 100% fat like coconut oil but stays solid at higher temperatures (115F melting point). This makes it excellent for flaky pie crusts and tender cakes. The flavor is completely neutral. Shortening creams well and creates very tender textures because it coats flour proteins more effectively than margarine. Cookies made with shortening hold their shape better.
Olive oil (light or extra-light)
3/4 the amount by volumeOlive oil has 100% fat density, so you need 25% less than margarine. Light olive oil has minimal flavor and works in sweet baking. The oil creates moist, dense textures because it doesn't trap air like solid fats. Add 1-2 tablespoons of water per 1/2 cup oil to replace the moisture margarine provides. Works best in melt-and-mix recipes.
Applesauce (unsweetened)
1/2 the amount by volumeApplesauce cuts fat dramatically while adding moisture and mild sweetness. Use 1/2 cup applesauce to replace 1 cup margarine. The pectin in apples binds ingredients and creates tender textures. Reduce other liquids by 2-4 tablespoons to compensate for applesauce's water content. Baked goods will be more cake-like and less crispy.
Greek yogurt (plain)
1/2 the amount by volumeGreek yogurt provides protein and tang while cutting calories in half. Use 1/2 cup yogurt for 1 cup margarine. The acidity activates baking soda for extra lift. Yogurt's water content (about 80%) creates moist textures but can make cookies too soft. Room temperature yogurt mixes better than cold. Add 1 tablespoon oil per 1/4 cup yogurt if the texture seems too dense.
Avocado (mashed)
1/2 the amount by volumeMashed avocado provides healthy monounsaturated fats and creates incredibly moist textures. Use 1/2 cup mashed avocado for 1 cup margarine. The mild flavor disappears in chocolate recipes but can taste slightly green in vanilla batters. Avocados add fiber and nutrients while reducing saturated fat. Very ripe avocados (soft but not brown) work best.
Cream cheese (softened)
3/4 the amount by volumeCream cheese has about 35% fat but adds tang and richness that margarine lacks. Use 3/4 cup softened cream cheese for 1 cup margarine. The protein content creates tender, moist textures. Cream cheese works especially well in dense cakes and sweet breads. Reduce other liquids by 1-2 tablespoons because cream cheese contains water. The tang complements sweet recipes.
How to Adjust Your Recipe
Check your recipe's mixing method first. Creaming recipes need solid fat at 65-70F, so liquid oils won't work. For those, use coconut oil or shortening chilled to the same consistency as softened margarine. In melt-and-mix recipes, any liquid substitute works directly.
Reduce oven temperature by 25F when using oils because they conduct heat faster than margarine. This prevents over-browning on the outside while the inside finishes cooking.
When using fruit purees or yogurt, reduce other liquids by 2-4 tablespoons per 1/2 cup substitute. These add significant moisture that can make batters too wet. Start with less liquid and add more if needed.
When Not to Substitute
Laminated doughs (puff pastry, croissants) need specific fats that stay solid during rolling. Margarine works for these because it has the right plasticity. Butter works even better.
Frosting recipes depend on margarine's ability to whip and hold air. Liquid oils won't work. Cream cheese makes excellent frosting but tastes different.
High-heat sauteing (above 350F) rules out most substitutes except refined oils. Margarine burns at 300F, so coconut oil and shortening also burn too easily.
Frequently Asked Questions
Can I use vegetable oil instead of margarine in cookies?
Use 3/4 the amount of vegetable oil (3/4 cup oil replaces 1 cup margarine). Cookies will spread more and have a different texture because oil doesn't trap air like solid margarine. They'll be more tender but less crispy. Add 1-2 tablespoons of flour to compensate for the extra spreading.
What's the difference between stick and tub margarine for baking?
Stick margarine contains 80% fat and performs better in baking. Tub margarine has 60-70% fat plus more air and water, which makes cookies spread excessively and cakes turn out gummy. Always use stick margarine for baking. Tub margarine works fine for spreading on bread.
How much butter replaces 1/2 cup of margarine in frosting?
Use 1/2 cup (113g) of softened unsalted butter for 1/2 cup margarine in frosting. Butter creates richer, more stable frosting that holds peaks better. The flavor is significantly better. If the frosting seems too stiff, add 1-2 tablespoons of milk or cream to reach the right consistency.
Can I substitute margarine in pie crust?
Yes, but butter or shortening work better. Use the same amount of cold margarine as the recipe calls for, cutting it into small pieces before mixing with flour. Margarine creates less flaky crusts than butter because it has lower fat content (60-80% vs 80%). Chill the dough for 30 minutes before rolling.
Is margarine healthier than butter?
Modern margarine contains no trans fats and often has less saturated fat than butter (2g vs 7g per tablespoon). However, butter provides vitamin A and has a simpler ingredient list. For heart health, olive oil or avocado substitutes are better choices. Check labels since margarine formulations vary widely between brands.