Indulge in molten cookie dough cupcakes: fluffy vanilla cake stuffed with gooey, safe-to-eat cookie dough and topped with cookie dough buttercream.
- Heat-Treated Flour Safety: Pre-baking the flour denatures harmful pathogens while maintaining the starch structure needed to keep the raw dough safe and structurally sound.
- Lactic Acid Crumb Tenderizer: Sour cream adds natural acidity, which weakens gluten development to yield an incredibly tender, tight-crumbed cupcake base.
- Thermal Mass Softening: Inserting a cold, dense ball of eggless cookie dough right after baking allows the residual heat of the hot cake to soften the center without melting the chocolate chips.
I remember sitting on my kitchen floor at midnight three years ago, scraping eggless cookie dough straight from a metal mixing bowl with my bare index finger. It made me wonder why we ever bother baking cookies at all.
This recipe is the ultimate realization of that late-night greed, combining a soft vanilla cake—reminiscent of my favorite Confetti Sprinkle Cupcakes—with a dense, buttery core of actual cookie dough.
Yes, actual raw dough.
The secret to making raw dough safe lies in heat-treating the flour to neutralize bacteria, while adding cornstarch to disrupt the protein matrix, keeping the dough pliable rather than chalky. By using pasteurized egg whites instead of whole eggs, we achieve the necessary emulsion and moisture without any food safety risks, ensuring the center remains beautifully molten when pressed into the warm cupcake.
I highly recommend using a heavy-duty stand mixer fitted with a paddle attachment for this—flimsy hand mixers tend to choke when trying to cream the dense butter and brown sugar mixture. For the salt, I always reach for Diamond Crystal kosher salt because its light, hollow flakes dissolve instantly into the buttercream without leaving gritty pockets.
Watch the oven like a hawk.
Overbaking will dry out the crumb, making it impossible for the cake to hug the cookie dough core. If you prefer fully baked treats, you might want to try our The Best Soft Chocolate Chip Cookies instead.
When you bite into one, the contrast is striking: the cake yields instantly, followed by the cool, dense, brown-sugar-rich bite of the center, all under a cloud of buttercream that tastes exactly like the beaters from childhood.
Molten Cookie Dough Cupcakes
Ingredients
- Cookie Dough:
- 2 and 1/4 cups ( 281g ) heat-treated all-purpose flour ( spooned & leveled )
- 2 and 1/4 teaspoons cornstarch
- 3/4 teaspoon salt
- 3/4 cup ( 12 Tbsp ; 170g ) unsalted butter, softened to room temperature
- 1 cup ( 200g ) packed light or dark brown sugar
- 1/3 cup (80ml) pasteurized egg whites, at room temperature
- 2 teaspoons pure vanilla extract
- 1 cup ( 180g ) mini semi-sweet chocolate chips
- Cupcakes:
- 1 and 3/4 cups ( 219g ) all-purpose flour ( spooned & leveled )
- 1 teaspoon baking powder
- 1/4 teaspoon baking soda
- 1/2 teaspoon salt
- 1/2 cup (120ml) whole milk, at room temperature
- 1/2 cup ( 120g ) sour cream, at room temperature
- 1/2 cup ( 8 Tbsp ; 113g ) unsalted butter, softened to room temperature
- 1 cup ( 200g ) granulated sugar
- 1/3 cup (80ml) pasteurized egg whites, at room temperature
- 2 teaspoons pure vanilla extract
- Cookie Dough Buttercream:
- 1 cup ( 16 Tbsp ; 226g ) unsalted butter, softened to room temperature
- 2 teaspoons pure vanilla extract
- 1 Tablespoon heavy cream or milk
- 1 teaspoon salt
- 3 cups ( 360g ) confectioners’ sugar, sifted
- remaining cookie dough
Directions
- Whisk the heat-treated flour, cornstarch, and salt together in a medium bowl until thoroughly combined, then set this dry mixture aside.
- In your stand mixer bowl with the paddle attached, beat the 3/4 cup of softened butter on medium speed for 2 minutes until it looks smooth. Pour in the brown sugar and continue beating for 3 full minutes until the mixture is light and fluffy, scraping down the bowl walls with a spatula as needed before mixing in the egg whites and vanilla extract for 2 minutes.
- Turn the mixer to low, add half of your flour mixture, and mix for about 15 seconds just until the dry spots disappear, then toss in the remaining flour and mix until combined. Detach the bowl and use a flexible spatula to fold in the mini chocolate chips by hand.
- Pop the dough into the fridge or freezer for 15 minutes to firm up, then roll out 12 individual 1-Tablespoon-sized balls, placing them on a parchment-lined plate in the fridge while you leave the remaining dough covered at room temperature.
- Preheat your oven to 350°F (177°C) and line a standard 12-cup muffin tin with paper liners.
- In a clean bowl, whisk the flour, baking powder, baking soda, and salt, while in a separate small bowl, you stir the whole milk and sour cream together until completely smooth.
- Beat the remaining 1/2 cup of butter and granulated sugar on medium speed for 3 minutes until fluffy, scrape the bowl, then beat in the egg whites and vanilla for 2 minutes. With the mixer running on low, alternate adding the dry flour mixture and the sour cream mixture in three parts, starting and ending with the flour, and mix for 30 seconds until a creamy batter forms.
- Divide the batter evenly among the 12 liners, filling them about 3/4 full, and bake for 16 to 19 minutes until the edges turn a soft golden hue and a toothpick inserted in the center comes out clean, then let them rest in the pan for 5 minutes.
- Transfer the warm cupcakes to a wire rack and immediately push one chilled cookie dough ball deep into the center of each cupcake, allowing the residual heat to soften the dough while creating a slight bump on top.
- Whip the 1 cup of butter in a clean mixer bowl on medium speed for 3 minutes until completely smooth, then beat in the vanilla, milk, and salt. Sift in the confectioners' sugar, stir on low for 15 seconds to prevent a sugar cloud, and then whip on medium-high for 4 to 5 minutes until the frosting is incredibly light, airy, and pale.
- Crumble the remaining room-temperature cookie dough into quarter-sized pieces and fold them into the buttercream on medium speed just until distributed, leaving some distinct chunks intact.
- Frost the cooled cupcakes generously using a spatula or a piping bag fitted with a wide round tip, and garnish with extra mini chocolate chips or tiny dough balls if desired.
Notes
Before you preheat your oven, keep these crucial baking tips in mind to ensure your cupcakes turn out absolutely perfect:
- Salt Conversion: For the salt, we recommend Diamond Crystal kosher salt. If using table salt, cut the measurement in half (e.g., use 1/2 teaspoon of table salt for every 1 teaspoon of kosher salt) to avoid over-salting the delicate buttercream.
- Flour Safety Science: Heat-treating flour is non-negotiable for raw consumption. Spread the flour on a baking sheet and bake at 350°F (177°C) until it reaches 160°F (71°C) to kill any lingering pathogens before using it in the dough.
- Workflow Warning: Do not let the cupcakes cool completely before inserting the cookie dough balls. The cake must be warm so that the crumb is pliable enough to accept the dough ball without splitting open.
- Storage and Serving: Store these cupcakes in an airtight container in the refrigerator for up to 3 days. Bring them to room temperature for 30 minutes before serving so the buttercream and cookie dough core can soften.
- Egg White Substitute: If you prefer to avoid pasteurized egg whites entirely, whisk 2 tablespoons of cornstarch into 1/3 cup of room-temperature whole milk as a direct swap.
Serving Suggestions
These decadent cupcakes are incredibly rich, so pairing them with the right textures and flavors is key to balancing each bite:
- Cold Almond Milk: Pair with a glass of cold, unsweetened almond milk to cut through the intense, buttery sweetness of the cookie dough buttercream.
- Fresh Raspberries: Serve alongside fresh, tart raspberries to provide a bright, acidic contrast to the rich vanilla cake.
- Flaky Sea Salt: Dust with a pinch of flaky sea salt right before serving to highlight the dark chocolate chips and balance the sugary frosting.
- Slightly Warmed: Serve slightly warmed (about 5 seconds in the microwave) to make the cookie dough center extra gooey against the cool frosting.
Storage and Reheating
Storing these cupcakes requires a bit of strategy because the refrigerator is both your friend and your enemy. While the cold environment keeps the pasteurized dairy safe, it also causes the butter in the cake and the cookie dough core to solidify into a dense, hard block.
Keep them in a tightly sealed container for up to 3 days. Let them sit on the counter for 30 minutes before serving to restore the buttercream's whipped consistency.
For long-term storage, you can freeze the unfrosted, filled cupcakes for up to 2 months wrapped tightly in plastic wrap. Unlike a sturdy Deliciously Moist Chocolate Layer Cake, these delicate cupcakes should be thawed overnight in the fridge and frosted fresh with a batch of whipped buttercream to prevent the frosting from collapsing.
Never microwave them.
Ingredient Substitutes
If you need to adapt this recipe for dietary restrictions or pantry limitations, use these tested swaps:
- Sour Cream → Full-Fat Greek Yogurt: Swap in a 1:1 ratio. Ensure the yogurt is at room temperature and whisk it vigorously before adding to prevent the batter from curdling.
- Pasteurized Egg Whites → Aquafaba: Use chickpea liquid in a 1:1 ratio by volume (about 80ml). Whip the aquafaba slightly until frothy before folding it into the dough to mimic the binding power of egg whites.
- Unsalted Butter → Virgin Coconut Oil: Swap in a 1:1 ratio (solid but softened). Reduce the salt in the recipe by 1/4 teaspoon and chill the dough 10 minutes longer to account for the lower melting point of coconut oil.
- Whole Milk → Oat Milk: Swap in a 1:1 ratio. Use extra-creamy oat milk to maintain the fat content, and add 1/2 teaspoon of lemon juice to mimic the acidity of dairy milk.
- Light Brown Sugar → Dark Brown Sugar: Swap in a 1:1 ratio. This swap increases the moisture and molasses flavor; reduce the baking time of the cupcakes by 1-2 minutes as the extra sugar can cause faster browning.
There is something incredibly satisfying about watching someone bite into these and discover the hidden treasure inside. It is the ultimate tribute to the kid in all of us who just wanted to eat the dough straight from the bowl.