Substitutes for Margarine

Best match: Butter, rated Perfect. Use 1 cup butter = 1 cup stick margarine. The other 3 options below are ranked by how close they get, with notes on where each one works.

By SwapIngredient · Updated · 4 options

Margarine substitutes at a glance
SubstituteRatioRating
Butter1 cup butter = 1 cup stick margarine🟢 Perfect
Vegan Butter1 cup vegan butter sticks = 1 cup margarine🟢 Perfect
Coconut Oil¾ cup + 2 tbsp coconut oil = 1 cup margarine🟡 Good
Vegetable Oil¾ cup vegetable oil = 1 cup melted margarine🟡 Good

Related guide: Butter, oil or shortening: how to swap fats in baking

1. Butter

🟢 Perfect

Ratio: 1 cup butter = 1 cup stick margarine

Works well in: cookies, cakes, pastry, frosting, cooking

Stick margarine was made to replace butter, so butter swaps straight back with better flavor. Soft tub margarine and light spreads contain more water: don't bake with them.

VegetarianGluten-freeNut-free

Out of butter too? See substitutes for butter.

2. Vegan Butter

🟢 Perfect

Ratio: 1 cup vegan butter sticks = 1 cup margarine

Works well in: dairy-free baking, cookies, frosting

Most margarine is already dairy-free, but check the label: some contain whey or buttermilk. Use sticks rather than tubs for baking.

VeganDairy-freeGluten-free

3. Coconut Oil

🟡 Good

Ratio: ¾ cup + 2 tbsp coconut oil = 1 cup margarine

Works well in: cookies, muffins, vegan baking

Avoid in: frosting, pastry in a warm kitchen

Coconut oil is pure fat while margarine is about 80% fat, so use a little less. Use it solid where the recipe creams margarine, melted where it melts it.

VeganDairy-freeGluten-free

Out of coconut oil too? See substitutes for coconut oil.

4. Vegetable Oil

🟡 Good

Ratio: ¾ cup vegetable oil = 1 cup melted margarine

Works well in: muffins, quick breads, brownies, cooking

Avoid in: cookies that need creaming, pastry, frosting

Only works where the recipe melts the margarine. Oil can't be creamed with sugar, so it won't trap air in cakes or cookies.

VeganDairy-freeGluten-free

Out of vegetable oil too? See substitutes for vegetable oil.

Scale these to your recipe amount →