Butter Substitutes for Baking: Amounts and What Changes
Replace butter in baking with margarine, shortening, oil, lard or coconut oil. Amounts by cup and gram, which bakes each one suits, and what changes in texture.

For 1 cup of butter, you can use 1 cup of regular margarine or, for baking, 1 cup of vegetable shortening, and when a recipe calls for melted butter, an equal amount of oil works. Those are the University of Nebraska–Lincoln Extension substitutions. The catch is what butter does besides add fat: it is about 80 to 82 percent fat plus water and milk solids, so it brings flavor, browning, steam for flaky layers and air when creamed with sugar.
Each substitute keeps some of those jobs and drops others. Shortening and oil are pure fat, so cookies, cakes and crusts come out more tender but less buttery, and they brown less. The table below gives amounts by cup and by gram, and the sections explain which swap suits cookies, cakes and pie crust, and what to adjust so the bake still works.
Key points
- 1 cup butter = 1 cup regular margarine, or 1 cup vegetable shortening for baking (University of Nebraska–Lincoln Extension).
- Oil can replace melted butter in an equal amount; for cakes by weight, use about 80 g oil plus 20 g milk per 100 g butter.
- 1 cup shortening weighs about 184 g against 227 g for butter, which matches using about 80 to 85 percent of butter's weight.
- Butter is about 80 to 82 percent fat; pure fats bake more tender but brown less and taste less buttery.
- Butter matters most in pie crust, shortbread and laminated dough; oil-based cakes swap most easily.
Butter substitutes at a glance
Amounts are for 1 cup (227 g) of butter. Cup weights come from the King Arthur Baking ingredient weight chart: ½ cup butter is 113 g, ¼ cup vegetable shortening is 46 g, 1 cup vegetable oil is 198 g, and ½ cup lard or coconut oil is 113 g.
| Substitute | For 1 cup (227 g) butter | Best in | What changes |
|---|---|---|---|
| Regular (stick) margarine | 1 cup | Cookies, cakes, quick breads | Similar handling; flavor depends on the brand |
| Vegetable shortening | 1 cup (about 184 g) | Pie crust, cookies, biscuits | More tender, less browning, no butter flavor |
| Vegetable oil | Equal amount when the butter is melted; about 180 g oil + 45 ml milk in cakes | Muffins, quick breads, oil-style cakes | Moister, softer crumb; cannot be creamed |
| Lard | About 80 to 85% of the butter weight + a little water | Pie crust, biscuits | Very tender, flaky; savory note |
| Coconut oil (solid) | ½ cup weighs the same as ½ cup butter (113 g) | Cookies, bars | Coconut flavor unless refined; firm when cool |
What butter does in a bake
Butter is about 80 to 82 percent fat, with the rest mostly water and some milk solids. The fat coats flour and keeps the crumb tender. The water turns to steam in the oven, which lifts flaky layers in pie crust and biscuits. The milk solids brown and give that toasty, buttery flavor, and solid butter creamed with sugar traps air that helps cakes and cookies rise.
A substitute that is pure fat, such as shortening, oil or lard, does the tenderizing job very well but adds no water and no milk solids. That is why the same recipe made with shortening bakes up softer and paler, and why pie crusts made with it rely on air pockets rather than steam for their flakes.
Cookies
Stick margarine and shortening both swap cup for cup in drop cookies. Shortening stays firm at a higher temperature than butter, so cookies made with it tend to spread less and bake up puffier and paler; a half butter, half shortening mix keeps some flavor and some height.
Melted butter in a chewy cookie recipe can be replaced with the same amount of oil, though the cookies will taste less rich and brown less. Avoid soft tub spreads labeled as reduced fat; they contain extra water and can make cookies spread thin and turn cakey.
Cakes, muffins and quick breads
Cakes that start with melted butter or oil swap most easily. The Extension's rule is an equal amount of oil for melted butter. For a closer match by weight, our oil vs butter guide replaces 100 g butter with about 80 g oil plus 20 g milk or water; for 225 g (1 cup) butter, that is about 180 g oil plus 45 ml (3 tablespoons) liquid.
Creamed butter cakes, such as pound cake and many layer cakes, are harder. Oil cannot be creamed, so the cake loses that air and bakes denser. Use stick margarine or shortening in these, or choose an oil-based recipe instead.
Pie crust and biscuits
For pie crust, our guide to fats for pie crust uses about 80 to 85 percent of the butter's weight in shortening or lard, plus a teaspoon or two of extra ice water, since those fats contain no water. The cup-for-cup swap lands in the same place: 1 cup of shortening weighs about 184 g, roughly 81 percent of 227 g of butter.
Keep the fat cold whichever one you use, so it stays in pieces in the dough. A blend of about 60 percent butter and 40 percent shortening or lard gives good flavor with easier rolling, if you have some butter but not enough.
When to keep the butter
Some bakes are mostly about butter, and no substitute gets close. Shortbread, butter cookies, brown butter recipes, croissants and puff pastry depend on its flavor, its water for steam or its firm-but-pliable texture when cold. For those, wait until you can buy butter, or pick a different recipe built around oil or shortening.
If the only issue is salt, swap freely: unsalted and salted butter trade one for one, as long as you reduce the added salt. Our salted vs unsalted butter guide gives the amounts.
Common questions
- What can I use instead of butter in baking?
- Regular stick margarine or vegetable shortening, cup for cup, per the University of Nebraska–Lincoln Extension. For melted butter, use an equal amount of oil. Shortening and oil bake more tender but taste less buttery and brown less.
- How much oil replaces 1 cup of butter?
- If the butter is melted, an equal amount of oil works. In cakes measured by weight, use about 180 g oil plus 45 ml (3 tablespoons) milk or water for 225 g (1 cup) butter, because butter is only about 80 to 82 percent fat.
- Can I use shortening instead of butter in cookies?
- Yes, cup for cup. Cookies made with shortening usually spread less and bake puffier and paler, with no butter flavor. Half butter and half shortening is a good middle ground.
- Can I use coconut oil instead of butter?
- Yes, in cookies and bars. Solid coconut oil weighs the same as butter by volume, 113 g per ½ cup. Unrefined coconut oil tastes of coconut, and the dough firms up quickly when cool.
About this page
Written and reviewed by Sam, Editor, BakedAI. Last reviewed . This is general educational guidance, not professional or medical advice.
Sources for the ingredients, methods and storage advice:
- Basic Ingredient Substitutions ↗University of Nebraska–Lincoln Extension (UNL Food)
- Ingredient Weight Chart ↗King Arthur Baking