Dairy, cream and fats · Checked against 4 sources · Updated November 4, 2026
Quick answer
Swap 1 cup of butter with 1 cup of margarine. Shortening, lard or oil also work, at 7 eighths cup plus half a teaspoon of salt. In recipes that melt the butter, an equal amount of oil works. You lose butter's flavor, and cookies spread differently.
How much do you need?
Fractions work: 1 1/2, ¾, 0.5. The amounts below update as you type.
Type a number, like 1 or 1 1/2.
What to use
No option here matches every box you ticked. Untick one to see more.
Margarine
Gluten-free
Nut-free
Egg-free
1 cup235 mlstick margarine
Best for
Baking, 1 for 1.
What changes
Check the label: some are dairy. Low-fat spreads have more water and bake worse.
Skip it when
Tub spreads and low-fat margarine.
Shortening and salt
Vegan
Dairy-free
Gluten-free
Nut-free
Egg-free
⅞ cup205 mlsolid shortening
½ tsp2.5 mlsalt
Best for
Cookies and pie crust.
What changes
No butter flavor. Cookies hold their shape.
Skip it when
Recipes where butter is the main flavor, like shortbread.
Lard and salt
Dairy-free
Gluten-free
Nut-free
Egg-free
⅞ cup205 mllard
½ tsp2.5 mlsalt
Best for
Pie crust and biscuits.
What changes
Very flaky, savory edge.
Skip it when
Vegetarian cooking.
Oil and salt
Vegan
Dairy-free
Gluten-free
Egg-free
⅞ cup205 mloil
½ tsp2.5 mlsalt
Best for
Quick breads, muffins and brownies.
What changes
Moister, denser crumb. No butter flavor.
Skip it when
Creamed cookies and cakes, which need solid fat.
Diet labels describe the ingredients as normally made. Check packages for gluten and allergens. Some refined sugar is filtered with bone char, which matters if you eat vegan.
Which swap for which job
Use
Pick
Why
Melted butter in a recipe
Equal amount of oil
Both are liquid, so the batter behaves the same.
Creaming for cakes and cookies
Margarine (stick) or shortening
Needs a solid fat.
Pie crust
Shortening or lard
Flaky layers.
Do not substitute here
Frosting and shortbread. Oil. Butter's flavor and structure are the whole point.
Questions
Why add salt?
The added salt stands in for salted butter. If your recipe already uses unsalted butter, skip it.
Can I use applesauce?
In some baked goods it replaces some of the fat, but the texture is cakier and softer.
Ratios come from these sources, in our words. Where they disagree, we say so or pick the amount that matches tested results. Ratios are a starting point. Taste and adjust.