You can use margarine instead of butter at a ratio of 1:1 — one cup of margarine for one cup of butter, one tablespoon for one tablespoon, with no adjustment at all. That is the simplest swap in baking, and the reason is that margarine was designed to be a butter replacement: it is a solid fat, it comes in sticks or tubs, it creams with sugar, it melts at a similar temperature, and it weighs the same per cup — 227 grams. If you have ever wondered why margarine exists, this is the answer: it is butter's understudy, ready to step in at a moment's notice with no rehearsal.
Margarine's reputation has suffered over the decades, partly because early margarines were made with hydrogenated oils and tasted of nothing, and partly because butter has better public relations. Modern margarines — especially the baking sticks sold for the purpose, as opposed to the soft spreadable tubs — are much better: they are formulated to behave like butter in the oven, they are usually dairy-free, and they cost less. For a weeknight cake, a batch of cookies, or a pastry where the butter flavour is not the point, margarine is a perfectly good substitute, and the 1:1 ratio means you do not have to think at all.
The ratio, in a table
The table below converts butter to margarine for the amounts you are most likely to meet. The rule is always the same: equal amounts. The only thing to watch is which margarine you are using — a baking stick, which is firm and about 80 percent fat like butter, swaps exactly; a soft spreadable tub, which may be only 60 percent fat and contain more water, does not.
| Butter called for | Margarine to use | Notes |
|---|---|---|
| 1 tablespoon | 1 tablespoon | Use a baking stick, not a tub |
| 2 tablespoons | 2 tablespoons | |
| 1/4 cup | 1/4 cup | |
| 1/3 cup | 1/3 cup | |
| 1/2 cup | 1/2 cup | 1 stick |
| 2/3 cup | 2/3 cup | |
| 3/4 cup | 3/4 cup | |
| 1 cup | 1 cup | 2 sticks |
| 1 1/2 cups | 1 1/2 cups | 3 sticks |
| 2 cups | 2 cups | 4 sticks |
By weight, one cup of butter is 227 grams and one cup of margarine is also 227 grams, so the swap is exact by weight as well as by volume. That is a rare convenience in baking: most substitutions require a conversion, but this one is a straight exchange. If you are weighing ingredients, use the same number of grams.
Worked examples
Example 1: A birthday cake when the butter ran out
A birthday cake recipe calls for 1 cup of butter — 227 grams, or two sticks. You have only one stick of butter and a block of baking margarine. Replace the butter with 1 cup of margarine, creaming it with the sugar exactly as the recipe says. The cake will rise the same way, because margarine traps air when creamed almost as well as butter, and it will have a tender crumb. It will taste a little less rich — margarine has no milk solids and no butter flavour — but in a chocolate or vanilla cake with frosting, the difference is small. The birthday will not be ruined.
Example 2: Dairy-free cookies for a school party
A cookie recipe calls for 1/2 cup of butter, and you need a dairy-free version for a child with a milk allergy. Replace it with 1/2 cup of dairy-free baking margarine. Check the label: some margarines contain milk solids or whey, so choose one labelled dairy-free or vegan. Cream it with the sugar, add the eggs and flour, and bake as usual. The cookies will be a little paler than the butter version, because margarine does not brown the same way, but they will be crisp at the edges and soft in the middle, and they will be safe for the child to eat — which is the point.
Example 3: A budget batch bake
You are baking four dozen muffins for a community event and the budget is tight. The recipe calls for 2 cups of butter — 454 grams, or four sticks. Margarine costs roughly half as much as butter, so replacing it saves a meaningful amount across four dozen muffins. Use 2 cups of baking margarine, and nobody will notice the difference in a muffin, where the flavour comes from the fruit or chocolate rather than the fat. This is the swap's most practical use: when the fat is a background player and the budget matters, margarine does the job for half the price.
What changes in the result
Two things change when you swap margarine for butter. First, the flavour: margarine has no butter flavour. In a butter cookie, a butter cake or a croissant, that loss is decisive — the recipe will taste flat. In a chocolate cake, a muffin, a traybake or a pie filling, the loss is minor, because the flavour comes from elsewhere. Second, the browning: butter's milk solids brown in the oven and add a nutty, toasty note, while margarine does not brown the same way, so baked goods made with margarine can look paler. If the top of your cake is pale, give it a few extra minutes or brush it with a little milk before baking.
The texture change is small. Baking margarine is formulated to cream, melt and set like butter, so the crumb structure is very similar. Cookies made with margarine spread slightly more than butter cookies, because margarine melts at a marginally lower temperature, but chilling the dough fixes that. Pastry made with margarine is tender rather than flaky — acceptable for a tart, less good for a pie that needs distinct layers. Overall, margarine is the closest-tasting and closest-behaving butter substitute that is not butter, which is exactly what it was designed to be.
When not to substitute
Do not use margarine instead of butter in recipes that rely on creaming butter with sugar for maximum lift if you are chasing a prize-winning result — margarine creams almost as well, but not quite, and a Victoria sponge made with margarine will be very slightly denser. Do not use it in laminated pastry (croissants, puff pastry), where butter's specific melting behaviour creates the layers. Do not use it in shortbread, where butter is the dominant flavour. Do not use a soft spreadable tub margarine in baking at all — it contains too much water and too little fat, and your cakes will be wet and your cookies will spread. Use only a firm baking stick. And do not use margarine in brown-butter recipes: there are no milk solids to brown, so the recipe's defining flavour will be missing.
One more caution: check the label for dairy. Many margarines contain whey, buttermilk or milk solids, and are not dairy-free despite being marketed as a butter alternative. If you are baking for someone with a milk allergy, choose a margarine explicitly labelled dairy-free or vegan, and check the ingredients every time — formulations change.
Frequently asked questions
How much margarine do I use instead of 1 cup of butter?
Use 1 cup of margarine for 1 cup of butter — a 1:1 ratio, by volume or by weight. Both weigh 227 grams per cup. No adjustment is needed, which makes margarine the simplest butter substitute in baking. Just make sure you are using a firm baking margarine, not a soft spreadable tub.
Can I use margarine instead of butter in cookies?
Yes. Cookies made with margarine are a little paler and spread slightly more than butter cookies, but they are otherwise very similar. Chill the dough for 30 minutes before baking to control spreading. In a chocolate chip cookie, most people cannot tell the difference; in shortbread, where butter is the main flavour, the difference is obvious.
Is margarine healthier than butter?
It depends on the margarine. Modern margarines made with unsaturated oils are lower in saturated fat than butter, but some contain hydrogenated oils and trans fats, which are worse. Check the label: a margarine with no trans fats and a high proportion of unsaturated fat is a reasonable choice, but it is still a calorie-dense fat at about 100 calories per tablespoon. The swap is mainly about cost and dairy-free baking, not health.
Can I use a spreadable tub margarine for baking?
No — not if you want reliable results. Spreadable tub margarines are softer because they contain more water and less fat (sometimes only 60 percent fat, compared with butter's 80 percent). That extra water makes cakes wet and cookies spread. Use only a firm baking stick, which is formulated to behave like butter. If you only have a tub, reduce the other liquid in the recipe by about a tablespoon per half cup of margarine — but the results will still be less reliable.
Does margarine work in pastry?
It works, but the pastry will be tender rather than flaky. Butter's solid fat creates distinct layers in pastry; margarine's fat is softer and blends more into the flour. For a tart or a crumble topping, margarine pastry is fine. For a pie that needs a flaky crust, butter is better. If you must use margarine for pastry, chill everything thoroughly and handle the dough as little as possible.
Why does margarine not taste like butter?
Because it is not butter. Butter's flavour comes from milk fat, milk solids and the fermentation of cream; margarine is made from vegetable oils, water, salt and flavourings. Some margarines have added butter flavouring, but it is an approximation. In a recipe where butter's flavour is the point — shortbread, butter cookies, a butter sauce — there is no substitute that tastes like butter, because the flavour is the butter.
Related links
- Coconut oil instead of butter — the other 1:1 solid-fat swap.
- Shortening instead of butter — the 1:1 swap for flaky pastry.
- Ghee instead of butter — the 1:1 swap with a nutty flavour.
- Butter to oil converter — convert any amount of butter to oil instantly.
- Cups to grams for margarine — margarine weighs 227 g per cup, like butter.
- Cups to grams for butter — butter weighs 227 g per cup.
- Browse all substitutions — every butter, egg, milk and oil swap.
- Recipe scaler — scale the whole recipe after the swap.
