Can You Actually Substitute Margarine for Butter in Baking?

And what’s the difference between these two anyway?

November 23, 2021
Photo by James Ransom

We have Napoleon to thank for the invention of margarine. If you’re a fan of our podcast, Burnt Toast, you probably knew that already. (Oh, since you mentioned it, Burnt Toast is back in action tomorrow, yay!) And then in the mid-1900s, about a century after its invention, margarine became particularly popular when it was championed for its low cholesterol. Which means, we now have a whole generation of wrinkled and ripped, stained and yellowing family recipe cards for baked goods—you know, the best ones—that call for margarine instead of butter. But what exactly is margarine, and can you use it in place of recipes that call for butter?

Our contributing writer and editor Lindsay-Jean Hard couldn’t help but wonder: Can you just use butter instead? While margarine is still alive and kicking—especially for vegan, plant-based recipes—most contemporary bakers prefer using unsalted butter.

What Is Margarine?

Without getting into a bunch of legal jargon, the Food and Drug Administration (FDA) defines margarine as a combination of oils made from either vegetable or animal fat that are then combined with either water or milk, optional added vitamins, salt, preservatives, sweeteners, emulsifiers, and whole bunch of other additives. On paper, margarine contains far more ingredients than butter, which generally just contains cream and sometimes added salt. Brands like I Can’t Believe It’s Not Butter and Country Crock popularized butter-like creamy spreads that aren’t quite margarine or butter; these buttery spreads do generally contain dairy (though you can find dairy-free butter and margarine sold in the form of tubs or stick). For baking, stick margarine sold by brands like Land O’Lakes became popular for its firmer texture, which acted more like real butter than whipped butter spreads that you’d want to smear on King's Hawaiian Sweet Rolls (at least, that’s what I do on Thanksgiving at my Grandma’s house).

In 2015, the FDA put a ban on partially hydrogenated oils in food products, such as margarine, after determining that they posed a significant health risk to humans. Many home cooks believed margarine was the healthier product because butter supposedly contained higher levels of saturated fats, which were seen as a possible cause of heart disease.

I asked my grandmother if she used margarine back in the day: “Oh, yeah!” she replied. But when I flipped through her recipe box, there weren’t that many margarine recipes. A brownie here, another brownie there. Most of the time, when margarine appeared, it was marked as optional: butter or margarine, as if the two are interchangeable. Are they, though?

This question of whether margarine can be substituted for butter is as old as, well, margarine. Our community chatted about it on our hotline years ago. Erikal replied as such:

Yes, there's a significant diff—I use margarine when making baked goods for a friend who cannot have whey or casein, so have to use vegan margarine, to boot. Cookies are softer—I haven't figured out how to get chewiness with margarine batters. They also don't develop a crispy top/crust, and they don't brown as well. Brownies and other bar cookies suffer, too, though less noticeably. Again, it's a textural diff. And all baked goods taste "flat" when compared to those made with butter, because margarine itself has a very flat and not a "rounded" flavor. I would never choose to use margarine for anything but sometimes, ya gotta do what ya gotta do.

To test how well margarine works in place of butter in baked goods, I made one cake recipe—once with butter, again with margarine—and a cookie recipe—once with butter, again with margarine. In both cases, I did a one-to-one substitution, as most sources recommend.

Photo by Emma Laperruque

Pound cake

This particular recipe, created by the Imperial margarine brand, was a hit in the 1960s and ’70s. A few years back, one reader requested it in The St. Louis Dispatch and 15 readers shared the same recipe. The link has since died, but I found a doppelgänger over at Genius Kitchen. It’s an old-school pound cake in that there’s no commercial leavener, just eggs. Also, the sugar is all powdered, which includes cornstarch, which helps create a tender crumb. Were the two cakes identical twins? Not quite.

  • The original, with margarine, was pale on top, with a dense, moist crumb. “I can see how pound cake traditionalists might prefer marg!” one taste tester noted. Several also commented that this cake was slightly saltier. (Margarine contains salt whereas unsalted butter contains, well, none.)
  • The butter-fied version was more colorful on top, with a slightly lighter, fluffier, drier interior. “I like the crust!” one person said. “Better texture, more springy, nice buttery flavor,” another said. Indeed, if you’re going for a buttery pound cake, you probably should use butter!
Photo by Emma Laperruque

Chocolate chip cookies

Betty Crocker’s original chocolate chip cookies from 1969 call for margarine and shortening. Today, her Ultimate Chocolate Chip Cookies call for “butter or margarine.” Same difference, Betty says? Well, sort of.

  • The butter-based cookies are crispier, with sturdy edges and a distinct chew. “Somehow this tastes fruitier and almost floral to me? Like blueberry!” one taste tester said. “Deciding now that it’s probably the cream/milk fat of the butter.” Another was also wooed: “Lovely crispness—if you're into that—and superior flavor. Nice caramelization and brown sugar shines.” Butter in the bag, right? Well...
  • Meanwhile, some editors were all about the tender chewiness of the margarine batch. We agreed that they reminded us of a childhood bakery, though we couldn’t place where or when. If you’ve ever been in a supermarket and scored a free cookie, these will bring you back there. “I'm really down with this chewy texture!” one said. “But flavor lacks compared with butter.”

These somewhat unexpected results from our test kitchen reveal that yes, you can use certain types of margarine in place of butter when cooking and baking, but the final product may not taste exactly as intended. Though speaking from experience, it will still be quite tasty.

Do you ever substitute margarine for butter, or vice versa? Tell us about the recipe in the comments below!
Food52's Automagic Holiday Menu Maker
View Maker
Food52's Automagic Holiday Menu Maker

Choose your holiday adventure! Our Automagic Menu Maker is here to help.

View Maker

See what other Food52 readers are saying.

  • Phil
  • Rachel Phipps
    Rachel Phipps
  • Hannah
  • Pfreemanlynde
  • samanthaalison
Emma was the food editor at Food52. She created the award-winning column, Big Little Recipes, and turned it into a cookbook in 2021. These days, she's a senior editor at Bon Appétit, leading digital cooking coverage. Say hello on Instagram at @emmalaperruque.


Phil June 13, 2022
Back in the 70s my mom entered her famous banana cake into a CT State Fair she would have come in 1st except for the fact that she used Margerine instead of butter reducing her to 2nd place. For myself, I NEVER use Margerine only BUTTER or clarified butter. It's just BETTER.
Rachel P. November 24, 2021
There have been arguments about this among British bakers in the classic Victoria Sponge recipe for years - I'm firmly in the margarine camp for the crumb even though I would never dream of putting it in cookies - and it also works better when you do the old Womans Institute trick of adding a tbsp or two of just boiled water to the batter before baking for a lighter sponge.
Hannah May 23, 2021
My grandmother was sold on the idea margarine was better for your health than butter, so used it in her cooking and baking. Then she started working a lot more (as a nurse of the 1950s, she was always needed) and my mom took over the kitchen with butter, butter, butter. I’m glad because that meant I grew up with butter in everything. Then we discovered the fruity taste of kalamata olive oil, which is excellent in a lot of desserts, and peanut oil is actually really good in a PB cookie. Experimenting can be fun.
Pfreemanlynde May 21, 2021
My mother made a lot of cookies. She usually used one stick of butter and one stick of margarine. I don't use margarine (or Crisco, which she used for pie crust) and generally substitute all butter, but it's not quite the same. I'm still experimenting with her recipes to get the perfect balance.
samanthaalison March 9, 2018
I don't use margarine, but I have a cookie recipe of my grandmother's that calls for it. I tried butter and they came out good, but not like hers. But then I tried refined coconut oil, and that was pretty dang close!
HalfPint March 8, 2018
I haven't used margarine in many years because I was seduced by the flavor of butter and never looked back ;)
HOWEVER, I prefer the texture of margarine/oil cakes. I love a light, fluffy cake and butter cakes are bit too firm and almost too 'dry' for me (though admittedly, I love butter pound cakes too). I grew up on Vietnamese sponge cake (banh bong lan) which doesn't use butter. My older sisters use to make it with margarine if I recall from the recipe on the pink Alsa baking powder pouch. Ahhh memories...
juwu_eats March 8, 2018
Growing up in Brazil, we always used margarine for everything. Butter was an expensive and non practical alternative, but the bakery would always make the best buttery baguette toasts.
On most cake recipes back then, it called for margarine or butter, and a lot of recipes used oil instead. I grew up with those butter-less cakes.
Then I moved to Europe. It all changed... when you're not used to the butter taste in the cake, in addition of the use of a different type of sugar (Brazil uses 100% sugar cane)... man! I could really taste the difference!
Emma L. March 8, 2018
I love oil-based cakes! Thanks for sharing this, jwu.