Last updated: September 28, 2026
You want a whoopie pie recipe that gives you soft, cake-like rounds and a filling that stays put instead of squeezing out the sides. This version does both, and the recipe card below has every measurement ready to go. You will have a full batch cooling on the counter in under an hour.

What Makes This Whoopie Pie Recipe Work
This whoopie pie recipe leans on cocoa powder, buttermilk, and a careful balance of baking soda for a cake that stays soft for days rather than drying out by the next afternoon.

The filling uses a cooked flour base, sometimes called ermine frosting, instead of a straight butter and powdered sugar mix.
That cooked base is what keeps the filling from sliding around once you sandwich the cakes together.
You do not need any special equipment for this whoopie pie recipe beyond a stand mixer or hand mixer and a cookie scoop.
The Cake Batter
Start by whisking the dry ingredients together in one bowl: flour, cocoa powder, baking soda, and salt.

In a separate bowl, cream the softened butter and brown sugar until the mixture looks light and a little fluffy.
Beat in the egg and vanilla extract, then add the dry ingredients and buttermilk in alternating batches, starting and ending with the flour mixture.

Mix just until no streaks of flour remain, since overmixing at this stage is what makes whoopie pies turn dense instead of cake-like.
Scooping and Baking
Use a medium cookie scoop to portion the batter onto parchment-lined baking sheets, leaving at least two inches between each mound.

Wet your fingers slightly and smooth the tops so they bake into even domes rather than peaks.
Bake at 350°F for 10 to 12 minutes, until the tops spring back when you press them gently.

Let the cakes cool completely on the baking sheet before you even think about filling them, since warm cakes will melt the filling on contact.
The Filling
While the cakes cool, whisk milk and flour together in a small saucepan over medium heat until it thickens into a thick paste, then let it cool to room temperature.
Beat softened butter and granulated sugar together until fluffy, then add the cooled flour paste and vanilla extract and beat for a full three minutes.

That extended beating time is what turns the filling from grainy to smooth and marshmallow-like.
Pipe or spoon the filling onto the flat side of half the cakes, then top with the remaining cakes to make sandwiches.

Variations and Substitutions
Swap the cocoa powder for pumpkin puree and warm spices in the fall, or fold mini chocolate chips into the batter for extra texture.

You can also swap the vanilla filling for a peanut butter version by beating in creamy peanut butter along with the butter.
If you are out of buttermilk, stir a tablespoon of lemon juice or white vinegar into regular milk and let it sit for five minutes before using it in this whoopie pie recipe.
Storage and Make-Ahead Tips
Store finished whoopie pies in an airtight container in the refrigerator for up to four days, since the filling holds better cold than at room temperature.

Let them sit at room temperature for about ten minutes before serving so the cakes soften back up.
You can freeze unfilled cakes in a single layer, then transfer them to a freezer bag, for up to two months, and fill them fresh after thawing.
Serving Suggestions
Serve whoopie pies on a platter lined with parchment for a bake sale or potluck, since they hold their shape well at room temperature for a few hours.

Pack a couple in a lunchbox or dust the tops lightly with cocoa powder for a slightly more polished presentation.
They also pair well with a glass of cold milk or a mug of coffee for an afternoon treat.

Ready to see the full measurements laid out? The recipe card below has every ingredient and step in order.
Whoopie Pies
Soft, cake-like chocolate whoopie pies sandwiched with a fluffy vanilla filling that holds its shape.
Ingredients
- 2 cups all-purpose flour
- 1/2 cup unsweetened cocoa powder
- 1 teaspoon baking soda
- 1/2 teaspoon salt
- 1/2 cup unsalted butter, softened
- 1 cup packed light brown sugar
- 1 large egg
- 1 teaspoon vanilla extract
- 1 cup buttermilk
- 1/2 cup whole milk (for filling)
- 1/4 cup all-purpose flour (for filling)
- 1 cup unsalted butter, softened (for filling)
- 1 cup granulated sugar (for filling)
- 1 teaspoon vanilla extract (for filling)
Instructions
- Preheat the oven to 350°F and line two baking sheets with parchment paper.
- Whisk together the flour, cocoa powder, baking soda, and salt in a medium bowl.
- In a large bowl, cream the softened butter and brown sugar until light and fluffy.
- Beat in the egg and vanilla extract until combined.
- Add the dry ingredients and buttermilk in alternating batches, starting and ending with the flour mixture, mixing just until combined.
- Scoop the batter onto the prepared baking sheets using a medium cookie scoop, spacing mounds two inches apart.
- Smooth the tops of each mound with damp fingers.
- Bake for 10 to 12 minutes, until the tops spring back when pressed gently.
- Cool the cakes completely on the baking sheets before filling.
- Whisk the milk and flour together in a small saucepan over medium heat until thickened into a paste, then cool to room temperature.
- Beat the softened butter and granulated sugar together until fluffy.
- Add the cooled flour paste and vanilla extract and beat for 3 minutes, until smooth and light.
- Pipe or spoon the filling onto the flat side of half the cooled cakes.
- Top with the remaining cakes to form sandwiches.
Notes
Store in an airtight container in the refrigerator for up to 4 days. Unfilled cakes can be frozen in a single layer, then transferred to a freezer bag, for up to 2 months.
Nutrition Information:
Yield:
12Serving Size:
1 whoopie pieAmount Per Serving: Calories: 320Total Fat: 15gSaturated Fat: 9gSodium: 190mgCarbohydrates: 44gFiber: 1gSugar: 30gProtein: 3g
Whoopie Pie Recipe Questions
Why did my whoopie pie cakes turn out flat?
Flat cakes usually mean the butter was too soft or melted when you creamed it, so let it sit at cool room temperature rather than microwaving it.
Old baking soda can also cause this, so check that yours is still active before you start.
Can you make this whoopie pie recipe without buttermilk?
Yes, stir a tablespoon of lemon juice or vinegar into a cup of regular milk and let it sit for five minutes as a substitute.
The slight acidity reacts with the baking soda the same way buttermilk does.
Why is my filling too runny?
The flour and milk paste needs to cool completely to room temperature before you add it to the butter, or the filling will separate and turn soupy.
If it is already too soft, chill the finished filling for 15 minutes before piping it.
Can you make the cakes ahead of time?
You can bake the cakes a day ahead and store them unfilled in an airtight container at room temperature.
Fill them the day you plan to serve them so the filling stays at its best texture.
What size should the cakes be?
A medium cookie scoop, about two tablespoons of batter, gives you a whoopie pie that is easy to hold in one hand.
Larger scoops work too, just add a minute or two to the bake time and check for a springy top.
Do you need a stand mixer for this recipe?
A hand mixer works fine for both the cake batter and the filling, though a stand mixer saves you some arm work during the three minutes of beating the filling.
Why This Recipe Works
This whoopie pie recipe works because the batter alternates dry ingredients and buttermilk into a creamed butter and sugar base, which keeps the crumb tender instead of tough.
Buttermilk’s acidity activates the baking soda fully, giving the cakes lift without any baking powder needed.
The filling relies on a cooked flour and milk paste that gets beaten into the butter and sugar for a full three minutes, which is long enough to dissolve the sugar and trap air for a light, stable texture.
Because that base is cooked rather than raw flour or shortening, the filling keeps its shape at room temperature and does not squeeze out when you bite into the sandwich.
Together, these two techniques are why this whoopie pie recipe holds up for days in the refrigerator without drying out or falling apart.
This whoopie pie recipe is worth keeping on hand for potlucks, lunchboxes, and any afternoon that calls for something soft and chocolaty.
Give the recipe card a try, and you will have a batch of whoopie pies that taste like they came from a bakery.



