Whoopie Pie Recipe: Soft Chocolate Cakes with Fluffy Marshmallow Cream Filling

Affiliate Disclosure: Some links in this post are affiliate links. If you buy through them, I may earn a small commission at no extra cost to you.

There’s a particular kind of silence that falls over a kitchen when someone bites into a fresh whoopie pie. It lasts maybe two seconds. Then comes the “oh my gosh,” usually with a mouth that’s still full.

That’s the effect these things have. They look humble, almost like a fat little hamburger made of cake, but the first bite is soft, deeply chocolatey, a little tangy from the buttermilk, and then you hit that cloud of sweet, creamy marshmallow filling in the middle. It’s somewhere between a cupcake, a cookie sandwich, and a childhood memory you didn’t know you had.

If you’ve been searching for a reliable whoopie pie recipe, one that gives you tall, tender cakes instead of flat, greasy discs, you’re in the right place. I’m going to walk you through the classic version step by step, explain why each ingredient is there, and share the mistakes that tripped me up so you can skip them. We’ll also cover the history (it’s more contested than you’d think), flavor variations, storage tricks, and answers to the questions people ask most.

Grab a cup of coffee. Let’s bake.

What Exactly Is a Whoopie Pie?

A whoopie pie is two soft, domed, cake-like rounds sandwiched around a sweet, creamy filling. Despite the name, it isn’t really a pie at all. It’s closer to a cake sandwich. The classic version uses chocolate cakes and a fluffy white filling made with butter, powdered sugar, and marshmallow creme (often Marshmallow Fluff).

The texture is what sets it apart from a cookie. A good whoopie pie cake is springy and moist, with a fine, tender crumb, almost like the top of a muffin or a devil’s food cupcake. A cookie would be chewy or crisp. This is neither. It’s pillowy.

They’re traditionally hand-sized, somewhere between three and four inches across, though you’ll see giant bakery versions the size of a saucer and tiny bite-sized ones at parties. All of them work with the same basic method.

Also Read : Chocolate Ice Cream Recipe: The Rich, Creamy Homemade Version You’ll Actually Make Again

A Quick Look at Where Whoopie Pies Came From

Here’s the fun part: nobody fully agrees on who invented the whoopie pie, and people get surprisingly passionate about it.

The most common story points to the Amish and Pennsylvania Dutch communities of Lancaster County, Pennsylvania. The tale goes that Amish women baked these cakes from leftover batter and tucked them into farmers’ lunch boxes. When the men found one waiting for them in the middle of a long workday, they supposedly shouted “whoopie!” Sweet story. Whether it happened exactly that way, I can’t tell you, but it’s the one told most often.

Then there’s New England. Maine has a very serious claim here. The state legislature officially named the whoopie pie Maine’s state treat in 2011 (the blueberry pie is the state dessert, which tells you how seriously Mainers take their baked goods). Labadie’s Bakery in Lewiston, Maine has long said it was selling whoopie pies as far back as the 1920s. Massachusetts also gets pulled into the debate, partly because of Marshmallow Fluff. That product was created in the Boston area and later made famous by Durkee-Mower of Lynn, Massachusetts, and Fluff is the filling of choice in many New England versions.

So who wins? Honestly, probably nobody. Food history is messy, and I’d guess several communities arrived at the same delicious idea around the same time. Pennsylvania Dutch cooks used shortening and a simple creamy icing. New Englanders leaned toward marshmallow. The recipe below borrows from both and lands in a happy middle.

It’s also worth knowing that whoopie pies have cousins. In Appalachia and the South you’ll find the MoonPie, which uses graham-style cookies and marshmallow. In Pennsylvania coal country, similar treats are called gobs. Same family, different branches.

Why This Whoopie Pie Recipe Works

I’ve tested versions of this recipe over a lot of weekends. Some were dry. Some spread into pancakes. One time the filling slid right out the sides like a bad sandwich. Here’s what I settled on, and why:

  • Buttermilk gives the cakes their tender crumb and slight tang. It reacts with baking soda to create lift, which is how you get that dome.
  • Brown sugar adds moisture and a subtle molasses depth. White sugar alone made the cakes drier and less interesting.
  • Cocoa powder plus a hot liquid boost. A little hot coffee (or hot water) blooms the cocoa and pulls out a rounder chocolate flavor. You won’t taste coffee, I promise.
  • A stable filling. Butter, powdered sugar, marshmallow creme, vanilla, and a pinch of salt. Chilling the cakes slightly before filling keeps everything neat.

None of it is complicated. The magic is in the small details, which we’ll get to.

If dense, fudgy chocolate bakes are your weakness, our next bake to try is the Fudgy Brownie Recipe

Ingredients You’ll Need

This recipe makes about 12 to 14 whoopie pies (so 24 to 28 individual cakes), using a roughly 2-tablespoon scoop.

For the Chocolate Cakes

  • 2 cups (250 g) all-purpose flour
  • ½ cup (45 g) unsweetened cocoa powder, natural or Dutch-process
  • 1 teaspoon baking soda
  • ½ teaspoon baking powder
  • ½ teaspoon fine salt
  • ½ cup (115 g) unsalted butter, softened to room temperature
  • 1 cup (200 g) packed light brown sugar
  • 1 large egg, at room temperature
  • 1 teaspoon pure vanilla extract
  • 1 cup (240 ml) buttermilk, room temperature
  • ¼ cup (60 ml) hot brewed coffee or hot water

For the Marshmallow Cream Filling

  • ½ cup (115 g) unsalted butter, softened
  • 1½ cups (180 g) powdered sugar, sifted
  • 1 cup (about 7 oz / 200 g) marshmallow creme, such as Marshmallow Fluff
  • 1 teaspoon pure vanilla extract
  • Pinch of fine salt
  • 1 to 2 teaspoons milk, only if needed to loosen
Whoopie pie ingredients including cocoa powder, buttermilk and marshmallow creme laid out on a wooden counter.

A Few Notes on the Ingredients

Cocoa powder. Natural cocoa (like Hershey’s) and Dutch-process (like Droste or Valrhona) both work here. Dutch-process gives a darker, smoother, slightly less acidic flavor and a deeper color. Natural cocoa tastes a bit sharper and fruitier. Because the recipe uses baking soda and buttermilk, both are fine. Use whatever’s in your pantry.

Buttermilk substitute. No buttermilk? Stir 1 tablespoon of white vinegar or lemon juice into a measuring cup, then add regular milk up to the 1-cup line. Let it sit for five to ten minutes until it looks a little curdled. It won’t be quite as thick or tangy, but it does the job.

Butter vs. shortening. Old-school Pennsylvania recipes often use shortening because it makes a super-soft cake and a very stable filling. Butter tastes better. That’s it. That’s the trade. I use butter in both parts.

Marshmallow creme. This is the sticky white stuff in a jar, sometimes labeled marshmallow fluff or marshmallow crème. It is not the same as melted marshmallows. Don’t swap it out for bagged mini marshmallows; the texture will go wrong fast.

Room temperature matters. Cold eggs and cold buttermilk can make the butter seize up and look curdled. Pull your ingredients out of the fridge about 30 minutes before you start.

Room-temperature ingredients make the same difference in our Banana Nut Muffin Recipe

Equipment Checklist

You don’t need anything fancy. Here’s what makes life easier:

  • Two large baking sheets (half-sheet pans are perfect)
  • Parchment paper or silicone baking mats
  • A stand mixer with the paddle attachment, or a hand mixer and a big bowl
  • A medium mixing bowl for the dry ingredients
  • A 2-tablespoon cookie scoop (honestly the best $8 you can spend if you bake often)
  • A wire cooling rack
  • A piping bag or zip-top bag for the filling (optional but tidy)
  • A rubber spatula

If you don’t own a cookie scoop, two regular spoons will work. Your whoopie pies just won’t match as well, which is fine. Rustic is a look.

For even cakes every time, a reliable pick is the OXO medium cookie scoop.

How to Make Whoopie Pies, Step by Step

Step 1: Prep Your Oven and Pans

Heat your oven to 350°F (175°C). Line two baking sheets with parchment paper. Don’t grease the parchment. The batter needs something to grip as it rises, and extra grease encourages spreading.

Step 2: Whisk the Dry Ingredients

In a medium bowl, whisk together the flour, cocoa powder, baking soda, baking powder, and salt. Whisk it longer than you think you need to. Cocoa powder loves to hide in little clumps, and nobody wants to bite into a dry pocket of it. If your cocoa is really lumpy, sift it.

Step 3: Cream the Butter and Brown Sugar

In a large bowl (or your stand mixer bowl), beat the softened butter and brown sugar on medium speed for about 2 to 3 minutes, until it looks pale, fluffy, and a bit like wet sand that’s been whipped. Scrape down the sides once or twice.

This step builds air into the batter, and air is what keeps whoopie pie cakes light instead of dense. Don’t rush it.

Step 4: Add the Egg and Vanilla

Beat in the egg and vanilla until fully combined. The mixture will look glossy and slightly looser. If it appears a bit separated, don’t panic. It’ll come back together once the flour goes in.

Step 5: Alternate the Dry Ingredients and Buttermilk

Turn the mixer to low. Add about a third of the dry mixture, mix until just barely combined, then pour in half of the buttermilk. Repeat: another third of the flour mixture, the rest of the buttermilk, then the final third of the flour.

Stop as soon as you no longer see dry flour. Overmixing develops gluten and leads to tough, rubbery cakes.

Step 6: Stir in the Hot Coffee

Pour in the hot coffee (or hot water) and stir gently with a spatula. The batter will become noticeably thinner and silkier. That’s normal. It should be thick enough to hold a soft mound when scooped, similar to a thick cupcake batter, not runny like pancake batter.

If it seems too loose to hold a shape, let the bowl sit for 10 minutes. The flour hydrates and the batter firms up a little.

Scooping chocolate whoopie pie batter onto a parchment-lined baking sheet.

Step 7: Scoop the Batter

Using a 2-tablespoon scoop, drop mounds of batter onto the prepared baking sheets, spacing them about 2 inches apart. You’ll fit around 12 per sheet. They spread a bit as they bake, so give them room.

Try to keep your mounds the same size. Matching pairs make assembly so much easier later. If you want, wet your finger slightly and smooth any peaks on top.

Must Read : Soft and Chewy Oatmeal Raisin Cookies (Easy Classic Recipe)

Step 8: Bake

Bake one sheet at a time on the center rack for 10 to 12 minutes. You’re looking for tops that spring back when you touch them lightly, and a toothpick inserted into the center should come out clean or with a few dry crumbs. The surface will lose its wet shine and look matte and slightly cracked.

Careful not to overbake. Even one extra minute can dry out a whoopie pie, since the cakes are small. Pull them when they’re just set.

Step 9: Cool Completely

Let the cakes rest on the pan for 5 minutes, then move them to a wire rack. Cool them completely before filling, usually about 30 minutes. Fill them warm and the filling melts into a puddle. I’ve learned this one the hard way, more than once.

Freshly baked chocolate whoopie pie cakes cooling on a wire rack.

Making the Marshmallow Cream Filling

While the cakes cool, make the filling.

  1. In a clean bowl, beat the softened butter on medium speed for about 2 minutes until smooth and creamy.
  2. Add the powdered sugar a little at a time, mixing on low to avoid a sugar cloud in your face. Once it’s incorporated, beat on medium-high for another 2 minutes.
  3. Add the marshmallow creme, vanilla, and salt. Beat until the filling is light, fluffy, and spreadable, about 2 more minutes.
  4. If it feels too stiff, add a teaspoon of milk and mix again. If it’s too soft, chill it for 15 minutes.

Taste it. If you’re like me, you’ll “just check the flavor” about four times. That pinch of salt is doing quiet, important work by keeping the sweetness from tasting flat.

A Quick Note on Marshmallow Fluff Alternatives

Some people make a homemade fluffy filling with egg whites and sugar syrup, which is basically a seven-minute frosting or Swiss meringue base. It’s lovely, but more work and more finicky. For everyday baking, jarred marshmallow creme is faster and more consistent.

If you’d rather skip marshmallow entirely, scroll down to the variations. A classic cream cheese filling or a vanilla buttercream both work beautifully.

For another rich chocolate bake, try our German Chocolate Cake Recipe

Assembling Your Whoopie Pies

Flip half your cakes upside down so the flat bottoms face up. Spoon or pipe about 2 to 3 tablespoons of filling onto each one, leaving a little border around the edge. Top with a second cake, bottom side facing the filling, and press down gently until the filling just reaches the edges.

That’s it. You’ve made a whoopie pie.

Pressing a chocolate cake onto marshmallow cream filling to assemble a whoopie pie.

For a neat look, chill the assembled pies in the fridge for 20 to 30 minutes. This helps the filling firm up so it won’t squish out when you bite in. If you want to roll the edges in sprinkles, mini chocolate chips, or crushed Oreos, do it right after assembly while the filling is still tacky.

Pro Tips for Perfect Whoopie Pies Every Time

After enough batches, patterns start to show up. These are the habits that make the biggest difference.

Use a scale if you can. Flour is the biggest variable in baking. One person’s “cup” can weigh 120 grams and another’s can weigh 150. That’s a 25 percent swing, and it’s the difference between a soft cake and a dry one. Measure by spooning flour into the cup and leveling it off, or better yet, weigh it. The gram amounts in this recipe are your safety net.

Mind your oven. Home ovens lie. Many run 15 to 25 degrees hotter or cooler than the dial says. An inexpensive oven thermometer removes the guesswork. If your first batch comes out flat, your oven might be too cool. If it comes out with crispy edges, it’s probably too hot.

Bake one tray at a time. Yes, it takes longer. But two trays crowding the oven block airflow and lead to uneven baking. Center rack, single sheet, consistent results.

Don’t skip the chilling step. After filling, 20 to 30 minutes in the fridge helps everything settle. Whoopie pies taste even better after a few hours, when the cake absorbs a touch of moisture from the filling and gets almost fudgy.

Pair similar sizes. Once the cakes cool, line them up in matching pairs before you fill. It takes thirty seconds and saves you from a lopsided sandwich.

Pipe the filling for a clean look. A zip-top bag with the corner snipped works perfectly. Start in the center and spiral outward, then press the top on. The filling spreads evenly with no knife marks.

Disposable bags keep things tidy, such as these Wilton 12-inch disposable decorating bags.

Common Whoopie Pie Problems (and How to Fix Them)

Everybody has a flop now and then. Here’s what usually went wrong.

My whoopie pies came out flat

The usual suspects are batter that’s too thin, butter that’s too warm, an expired leavener, or an oven that isn’t hot enough. Check the date on your baking soda and baking powder. If they’ve been open for more than six months, replace them. Also, let that batter rest for ten minutes if it looks pourable.

The cakes are dry or crumbly

Overbaking is the number-one cause, followed by too much flour. Pull them the moment the tops spring back. Next time, weigh your flour.

The cakes are dense and heavy

This one usually comes from overmixing after the flour goes in, or not creaming the butter and sugar long enough at the start. Mix until you no longer see streaks of flour, then stop.

They stick to the parchment

Let them cool for the full five minutes on the pan. If they still stick, they might be slightly underbaked. A thin metal spatula slid under each cake does the trick.

The filling is too runny or too stiff

Runny filling usually means the butter was too soft or the kitchen is warm. Chill it for 15 minutes and re-whip. Stiff filling just needs a teaspoon of milk.

The filling squishes out when I bite

That’s a classic whoopie pie hazard and part of the fun. But if it’s excessive, use a little less filling and chill the pies before serving.

Whoopie Pie Variations to Try

Once you’ve mastered the classic, it’s a wonderfully flexible template. Here are some of my favorite spins.

For a playful twist on filled cakes, try our Spiderweb Cupcakes

Four whoopie pie varieties — chocolate, red velvet, pumpkin and vanilla peanut butter — arranged on marble.

Red Velvet Whoopie Pies

Swap the cocoa for just 2 tablespoons, add 1 to 2 tablespoons of red gel food coloring, and add 1 teaspoon of white vinegar. Fill with cream cheese frosting (8 oz cream cheese, ½ cup butter, 2 cups powdered sugar, 1 teaspoon vanilla). It’s a showstopper at Valentine’s Day or Christmas.

Pumpkin Whoopie Pies

Fall’s best baked good. Replace the cocoa with 1½ cups of pumpkin puree (reduce the buttermilk to ¼ cup), add 1½ teaspoons cinnamon, ½ teaspoon ginger, and ¼ teaspoon nutmeg. Fill with a maple cream cheese filling. People will ask for the recipe.

Vanilla Whoopie Pies

Skip the cocoa, increase the flour to 2¾ cups (345 g), and use white sugar in place of brown. A drop of almond extract in the cake is a nice touch. Pair it with a chocolate buttercream and you have a reverse version of the classic.

Peanut Butter Whoopie Pies

Beat ½ cup creamy peanut butter into the filling in place of half the marshmallow creme. Sweet, salty, rich, and a perfect match for the chocolate cake.

Oatmeal Cream Pie Style

This is the old lunchbox snack grown up. Use a spiced oatmeal cake base with cinnamon and a spoonful of molasses, and fill it with the marshmallow cream. Chewy and nostalgic.

Mint Chocolate Whoopie Pies

Add ½ teaspoon peppermint extract to the filling and a few drops of green food coloring if you like. Dip half of each finished pie in melted dark chocolate. Perfect for holidays.

Gluten-Free Whoopie Pies

Use a one-to-one gluten-free baking flour blend that contains xanthan gum, such as Bob’s Red Mill or King Arthur’s Measure for Measure. The batter will look slightly thicker, so rest it for 15 minutes before scooping. The texture is very close to the original.

Mini Whoopie Pies

Use a 1-tablespoon scoop and bake for 7 to 8 minutes. You’ll end up with around 40 to 48 bite-sized sandwiches, which are great for parties and baby showers.

Giant Whoopie Pies

Use a ¼-cup scoop and bake for 14 to 16 minutes. You’ll end up with about 8 to 10 huge pies. Use ¼ cup of filling per sandwich and expect to need a fork.

Filling Alternatives Beyond Marshmallow

Marshmallow creme is the traditional pick, but the cake pairs happily with a lot of fillings.

  • Vanilla buttercream. Butter, powdered sugar, a splash of cream, vanilla. Simple and classic.
  • Cream cheese frosting. Tangy and smooth, with a flavor that plays nicely against chocolate.
  • Whipped ganache. Heat 1 cup cream, pour over 8 oz chopped dark chocolate, cool, and whip until fluffy.
  • Salted caramel buttercream. Fold a few spoonfuls of thick caramel sauce into vanilla buttercream and add flaky sea salt.
  • Fresh whipped cream. Very light, but these should be eaten the same day and kept chilled.
  • Peanut butter or Nutella cream. Beat 3 tablespoons into the base filling.

How to Store Whoopie Pies

At room temperature: Filled whoopie pies keep for about 2 days in an airtight container, as long as your kitchen isn’t hot. Place parchment paper between layers so they don’t stick together.

In the refrigerator: For marshmallow or buttercream fillings, the fridge is fine for up to 5 days. Cream cheese fillings should always be refrigerated. Let the pies sit out for 10 to 15 minutes before serving. The cakes soften back up and the flavor improves.

In the freezer: Wrap each assembled whoopie pie tightly in plastic wrap, then place them in a freezer bag. They’ll keep for up to 3 months. Thaw in the refrigerator overnight, or on the counter for an hour or two. You can also freeze the unfilled cakes separately, which is handy if you want to make the filling fresh.

Must Read : How to make Zucchini Cake with Cream Cheese Frosting

Make-Ahead Tips for Parties and Holidays

Whoopie pies are a gift to anyone who has to prep ahead.

  • Two days before: Bake the cakes, cool them, and store them in an airtight container at room temperature.
  • The day before: Make the filling, assemble, and refrigerate.
  • The day of: Pull them out about 15 minutes before serving.

If you’re baking for a bake sale or a big gathering, doubling the recipe works well. Just bake in batches and keep the extra batter covered in the fridge while the first trays go in.

Serving Ideas and Gift Packaging

These are lovely with a cold glass of milk (obviously), a hot cup of coffee, or a scoop of vanilla ice cream on the side. For a fancier plating, dust the tops with powdered sugar or drizzle them with melted chocolate.

For festive bake sales, pair them with our Christmas Cookies

As gifts, they’re hard to beat. Wrap each pie individually in parchment or wax paper, tie with twine, and nestle them into a cookie tin or small box. Tuck in a handwritten label with the flavor and date. Whoopie pies travel well when chilled, so they’re a safe bet for shipping to a friend across town (though I wouldn’t mail them in summer).

Box of individually wrapped whoopie pies tied with twine for gifting.

Whoopie Pie vs. MoonPie vs. Black and White Cookie

People mix these up all the time, so here’s a quick breakdown.

TreatBaseFillingTextureOrigin
Whoopie pieSoft cake rounds, usually chocolateMarshmallow or buttercreamPillowy, tenderPennsylvania Dutch / New England
MoonPieGraham-style cookieMarshmallow, coated in chocolateSoft cookie, chewy fillingChattanooga, Tennessee
Black and white cookieLarge, soft, cakey cookieNoneCake-like, iced on topNew York City
Oatmeal cream pieSpiced oatmeal cookieCreamy white fillingChewySnack-cake classic

They’re all part of the same sweet sandwich family. The whoopie pie is just the softest and most cake-like of them.

A Little About Nutrition

Let’s be honest. Nobody’s eating a whoopie pie as a health food. A single homemade whoopie pie of this size typically lands somewhere around 350 to 420 calories, depending on how generous you are with the filling. That’s close to a decent slice of cake.

If you’d like to lighten it up a bit, make mini versions, or use half the filling and keep the cakes the same. You can also swap in half whole-wheat pastry flour for a slightly nuttier, higher-fiber cake. Just don’t expect a miracle. Whoopie pies are a treat, and treats are allowed.

Frequently Asked Questions About Whoopie Pies

Why is it called a whoopie pie?

The most popular explanation is that the name comes from the delighted shout of children or farmhands who found one in their lunch box. It’s a charming origin story, though not one anyone can fully prove.

Is a whoopie pie a cake or a cookie?

It’s a cake in texture and a cookie in shape. Most bakers call it a cake sandwich. The batter is closer to cake batter than cookie dough.

What’s the difference between a whoopie pie and a MoonPie?

A whoopie pie uses soft cake rounds with a creamy filling. A MoonPie uses graham-style cookies with marshmallow, coated in chocolate.

Can I make whoopie pies without buttermilk?

Yes. Mix regular milk with a tablespoon of lemon juice or white vinegar and let it sit for 5 to 10 minutes. That substitute works beautifully.

Can I make whoopie pies without marshmallow creme?

Absolutely. Vanilla buttercream, cream cheese frosting, or whipped ganache all work well. The marshmallow version is just the classic.

Do whoopie pies need to be refrigerated?

It depends on the filling. Marshmallow-butter fillings are fine at room temperature for a day or two. Cream cheese fillings should be refrigerated.

Can I freeze whoopie pies?

Yes, and they freeze beautifully. Wrap each one individually and store for up to three months.

Why did my whoopie pies spread too much?

The batter may have been too thin, the butter too soft, or the pan too warm from a previous batch. Chill the batter for 10 minutes and use cool pans.

Can I use oil instead of butter?

You can, using about ¼ cup neutral oil, but the cakes will be slightly less rich and a bit more spongy.

How long do homemade whoopie pies last?

About 2 days at room temperature, up to 5 days in the fridge, and up to 3 months in the freezer.

How many calories are in a whoopie pie?

This size typically has roughly 350 to 420 calories, depending on how much filling you use.

A Few Final Thoughts

There’s something quietly special about a recipe that’s been passed around for the better part of a century and still makes people stop mid-conversation. Whoopie pies aren’t fancy. They don’t need a pastry degree or special equipment. They need a bowl, a spoon, a hot oven, and a little patience while the cakes cool.

And that patience pays off. A properly baked whoopie pie, with its soft chocolate cake and cloud of marshmallow cream, has a way of making an ordinary afternoon feel a bit more celebratory. Bake a batch for a school bake sale, a birthday, a Sunday visit to a neighbor, or just because the weather turned and you wanted something sweet.

Start with the classic recipe. Get comfortable with it. Then play around with the red velvet, the pumpkin, or whatever your kitchen inspires. Whichever way you go, I hope your first bite brings that same two seconds of happy silence.

For a Halloween twist on chocolate bakes, try our Mummy Brownies

Happy baking. And if you make them, tell me how they turned out. I’d love to hear which variation became your favorite.

1 thought on “Whoopie Pie Recipe: Soft Chocolate Cakes with Fluffy Marshmallow Cream Filling”

  1. Pingback: Almond Flour Blondies: Chewy Gluten-Free Recipe

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top