Chocolate Chip Cookie Dough Cupcakes With Classic Vanilla Buttercream Frosting
These chocolate chip cookie dough cupcakes are the dessert for anyone who has ever sneaked a spoonful of raw cookie dough straight from the bowl. A scoop of safe-to-eat cookie dough hides inside each cupcake, tucked beneath a soft vanilla cake and a generous swirl of vanilla buttercream. Every bite has that nostalgic, doughy sweetness, and the whole thing looks beautiful on a dessert table.
What Makes These Cupcakes Special
The secret is the edible cookie dough filling. It uses heat-treated flour and no eggs, so it is completely safe to eat without baking. You make it first, roll it into balls, and freeze it briefly so it holds its shape when the batter goes on top. During baking, the dough softens into a gooey center without disappearing into the cake. The result is a cupcake that tastes like two desserts in one.
The cupcake base is a simple, reliable vanilla cake. Nothing fussy. It bakes up tender and slightly domed, which gives you a good surface for piping the frosting. The buttercream is classic, made with real butter and a splash of heavy cream for that smooth, almost cloud-like texture.
Ingredients You Will Need
Ingredients
For the vanilla cupcakes: 1 and 1/2 cups all-purpose flour 1 and 1/2 teaspoons baking powder 1/4 teaspoon salt 1/2 cup unsalted butter, softened 1 cup granulated sugar 2 large eggs, room temperature 2 teaspoons vanilla extract 1/2 cup whole milk, room temperature
For the vanilla buttercream: 1 cup unsalted butter, softened 3 and 1/2 cups powdered sugar, sifted 3 tablespoons heavy cream 1 and 1/2 teaspoons vanilla extract Pinch of salt
How to Heat-Treat Flour
Raw flour can carry bacteria, so heat-treating it takes about two minutes and makes the cookie dough completely safe. Spread the flour on a baking sheet and bake at 350°F for 5 minutes, or microwave it in a bowl in 30-second bursts, stirring between each, until it reaches 165°F on an instant-read thermometer. Let it cool completely before using it in the dough.
Step-by-Step Instructions
Start with the cookie dough so it has time to freeze. Beat the softened butter with both sugars until fluffy, about 2 minutes. Add the milk, vanilla, and salt, then mix in the cooled heat-treated flour until a soft dough forms. Fold in the mini chocolate chips. Scoop tablespoon-sized balls onto a parchment-lined plate and freeze for at least 30 minutes. You want them firm enough to hold their shape in the batter.
While the dough chills, make the cupcakes. Preheat your oven to 350°F and line a 12-cup muffin pan with paper liners. Whisk together the flour, baking powder, and salt in a bowl and set it aside. In a large bowl, beat the butter and sugar together until pale and fluffy, about 3 minutes. Add the eggs one at a time, beating after each addition, then mix in the vanilla. Add the flour mixture and milk in two alternating additions, starting and ending with the flour. Mix until just combined. Do not overmix.
Fill each liner about one-third full with batter. Press a frozen cookie dough ball into the center of each, then spoon more batter over the top until the liners are about two-thirds full. The dough ball should be mostly covered. Bake for 18 to 20 minutes, until the tops spring back lightly when touched and a toothpick inserted into the cake portion (not the center) comes out clean. Cool in the pan for 5 minutes, then transfer to a wire rack to cool completely before frosting.
For the buttercream, beat the softened butter on medium-high speed for 3 minutes until pale and creamy. This step matters. Under-beaten butter makes the frosting dense. Add the powdered sugar one cup at a time, mixing on low between additions to avoid a sugar cloud. Once all the sugar is in, add the heavy cream, vanilla, and salt. Beat on high for 2 minutes until the frosting is fluffy and smooth. If it feels too stiff, add another teaspoon of cream.
Frosting and Finishing Touches
Transfer the buttercream to a piping bag fitted with a large star tip. Starting from the outside edge of each cupcake, pipe in a spiral motion toward the center, building height as you go. A Wilton 1M tip gives you those classic swirled peaks that look bakery-made with very little practice.
Press a few mini chocolate chips onto the top of each swirl, or crumble a tiny bit of extra cookie dough on top for a visual hint at what is hiding inside. These cupcakes keep well at room temperature for about two days, covered loosely. For longer storage, refrigerate them and let them come back to room temperature before serving so the frosting softens.
Tips for Getting It Right
Room temperature ingredients matter more than most baking tips suggest. Cold butter will not cream properly, and cold milk can cause the batter to curdle slightly. Set everything out 30 to 45 minutes before you start.
Do not skip the freezing step for the cookie dough balls. If they are too soft, they sink to the bottom during baking instead of staying centered. Thirty minutes is the minimum, and you can freeze them overnight if you are prepping ahead.
If you want to make these for a party, the cookie dough balls can be made up to a week in advance and stored in the freezer. The cupcakes themselves bake well a day ahead. Frost them the day you plan to serve them for the best texture.
Frequently Asked Questions
Affiliate link
Affiliate link
Affiliate link
Frequently Asked Questions
Most store-bought raw cookie dough is not designed to be eaten unbaked unless it is specifically labeled as edible or ready-to-eat. It is worth making the simple homemade version here since it comes together in about 10 minutes and you control exactly what goes in it.
This almost always happens when the dough balls are not frozen solid enough before baking. Make sure they are firm to the touch, not just chilled. If your freezer is slow, give them a full hour rather than 30 minutes.
A 1-to-1 gluten-free flour blend works reasonably well in both the cupcake batter and the cookie dough filling. The texture of the cupcake may be slightly denser, and the cookie dough filling will have a slightly different bite, but the flavors hold up well.
The cupcakes bake well up to one day ahead and can be stored unfrosted at room temperature, covered. The cookie dough balls can be frozen up to a week in advance. Frost them the day of serving for the best-looking and best-textured results.



