Decadent Cookie Dough Cake (No Raw Eggs)
This cookie dough cake layers soft brown sugar cake with a creamy, safe-to-eat cookie dough frosting and plenty of chocolate chip cookie dough chunks. Every bite has that nostalgic raw dough flavor without a single raw egg or untreated flour.

It’s the kind of dessert that makes everyone at the table ask for the recipe, and after one slice you’ll understand why it’s worth the extra few minutes of mixing.
What Makes This Cake So Good
The brown sugar cake stays moist for days and has a deep caramel note that tastes exactly like the bottom of a mixing bowl. I use dark brown sugar to push that flavor a little further, but light brown works beautifully too.
The frosting is the real star. It’s a whipped buttercream with the same brown sugar and vanilla you expect from cookie dough, plus a spoonful of heat-treated flour so it mimics that slightly granular texture without any grittiness.
And the chunks of edible cookie dough folded through the filling and piled on top mean you get a chewy, chocolate-studded surprise in every forkful. It’s rich, it’s fun, and it feels like an event cake without any special occasion.
Ingredients

- 2 ½ cups all-purpose flour, plus extra for heat-treating: spooned and leveled, not scooped.
- 1 ½ teaspoons baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- 1 cup unsalted butter, softened: use room temperature for the smoothest batter and frosting.
- 1 ½ cups packed dark brown sugar: light brown sugar works too, but dark gives a deeper molasses flavor.
- 3 large eggs, room temperature
- 1 tablespoon vanilla extract
- 1 cup whole milk, room temperature
- 1 ½ cups mini semisweet chocolate chips: divided for dough and decoration.
- 3 cups powdered sugar: for the frosting.
- ⅓ cup heat-treated all-purpose flour: plus more if needed for the cookie dough bits.
- ½ teaspoon salt: separate from cake salt, for the cookie dough.
Variations / Substitutions
- Swap chocolate chips: use mini white chocolate chips or dark chocolate chunks for a less sweet edge.
- Make it gluten-free: substitute a 1-to-1 gluten-free baking flour blend in both cake and cookie dough components. The texture will be a little more tender.
- Go dairy-free: use plant-based butter sticks, oat milk, and dairy-free chocolate. The cake will still rise nicely but the frosting might need a touch less milk.
- Turn it into cupcakes: divide the batter among 24 lined muffin cups and bake 18 to 20 minutes at the same temperature.
- Use homemade whipped cream: for a lighter option, fold finely chopped cookie dough into sweetened whipped cream instead of the buttercream frosting. It’s less stable but lovely served right away.
For a simpler chocolate chip fix without the layer cake, my Soft Chocolate Chip Cookie Bars hit a similar spot.
How to Make Cookie Dough Cake
Step 1: Mix the Edible Cookie Dough

Cream ½ cup of the softened butter with ½ cup of the packed brown sugar in a medium bowl until the mixture looks pale and fluffy, about 2 minutes with a hand mixer. Add 2 teaspoons of vanilla and 1 tablespoon of milk, then mix until combined. Gradually beat in the ⅓ cup of heat-treated flour and the ½ teaspoon of salt just until a soft dough forms. Fold in ½ cup of the mini chocolate chips.
At this stage the dough will be a little sticky, and it should taste exactly like the bowl-scraping memory you’re hoping for. Scoop half of the dough onto a plate and shape it into small dime-sized chunks; these will go between the cake layers. Press the rest into a flat disc, wrap it, and chill both for at least 30 minutes so the dough firms up and the flavors settle.
Chilling does two things here: it solidifies the butter so the chunks hold their shape while you assemble the cake, and it gives the brown sugar time to bloom. Don’t skip this wait, even if you’re eager to frost.
Step 2: Cream the Butter and Sugar for the Cake

Preheat your oven to 350°F (175°C) and grease two 8-inch round cake pans, lining the bottoms with parchment. In a large mixing bowl, beat the remaining ½ cup of softened butter with the remaining 1 cup of packed brown sugar until the mixture looks light and almost whipped, about 3 minutes. Beat in the 3 eggs one at a time, letting each disappear before adding the next, then stir in the remaining 1 tablespoon of vanilla.
The batter will look grainy right now, and that’s completely fine. Once the dry ingredients and milk are added, it all smooths out into a thick, glossy batter that smells like caramel.
Step 3: Bake the Cake Layers

Whisk the 2 ½ cups of flour, baking powder, baking soda, and ½ teaspoon salt in a separate bowl. Add this dry mix to the butter mixture in three additions, alternating with the 1 cup of whole milk in two additions, starting and ending with the flour. Stop mixing the moment the streaks of flour disappear so the cake stays tender. Divide the batter evenly between the two prepared pans and smooth the tops.
Bake for 25 to 28 minutes, until the centers spring back when lightly pressed and a toothpick comes out with a few moist crumbs. The cakes will pull away from the sides just a little, and the whole kitchen will fill with a warm brown sugar scent. Let them cool in the pans for 10 minutes, then turn them out onto a rack to cool completely before frosting.
Step 4: Whip the Cookie Dough Frosting

Beat 1 cup of softened butter in a large bowl until smooth and creamy, about 1 minute. Slowly add the 3 cups of powdered sugar on low speed, then increase to medium and whip until the frosting is fluffy and no pockets of sugar remain. Mix in the remaining 2 teaspoons of vanilla and 2 tablespoons of milk. Sprinkle in 3 tablespoons of heat-treated flour and a pinch of salt, then beat on high for a full minute until the frosting looks airy and tastes like rich cookie dough.
This extra minute of whipping dissolves every trace of grit from the flour and gives the frosting a mousse-like structure that spreads easily without tearing the cake.
Step 5: Assemble and Layer

Place one cooled cake layer on a serving plate and spread a generous cup of frosting across the top. Scatter half of the chilled cookie dough dime-sized chunks over the frosting, pressing them down gently so they embed into the layer. Top with the second cake layer, flat side up, and frost the entire cake with the remaining frosting, working a smooth coat over the top and sides.
Take your time here. If crumbs start to show, apply a thin crumb coat and chill the cake for 15 minutes before adding the final layer of frosting.
Step 6: Finish with a Cookie Dough Topping

Break the chilled disc of cookie dough into small, knobby pieces and pile them over the center of the frosted cake. Sprinkle the remaining mini chocolate chips around the top and lightly press them into the frosting so they stay put. Serve the cake at room temperature, and watch the first slice pull away with soft cake layers, creamy frosting, and those little chewy dough bites peeking through.
Tips for Getting the Texture Just Right
- The single most important step is heat-treating your flour for the cookie dough and frosting: spread ⅔ cup of flour on a parchment-lined baking sheet and bake at 350°F for 5 minutes, then cool completely before using. This kills any bacteria while keeping the flour’s thickening power.
- Room temperature eggs, butter, and milk blend together more evenly, so pull the dairy out of the fridge an hour before you start.
- Avoid overmixing the cake batter after adding the flour. As soon as the dry streaks disappear, stop. Overworking gluten makes a dense, heavy cake instead of a soft one.
- If your kitchen runs warm, pop the frosting bowl in the fridge for 10 minutes before you assemble the cake. A slightly chilled frosting stays put and layers much more cleanly.
Bake times by pan size:
| Pan size | Bake time |
|---|---|
| Two 8-inch rounds | 25-28 minutes |
| Three 6-inch rounds | 22-25 minutes |
| One 9×13-inch sheet | 28-32 minutes |
| Two 9-inch rounds | 22-25 minutes |
Keeping the Cake Fresh
- Refrigerate: store any leftovers in a covered container in the fridge for up to 4 days. The frosting sets up firm, so pull the cake out 30 minutes before serving to let it soften.
- Serve cold: on a hot day, it’s actually wonderful straight from the fridge; the cookie dough chunks get extra chewy and the frosting tastes like a chilled fudge layer.
What to Serve with This Cookie Dough Cake
A tall glass of very cold whole milk cuts through the richness of the brown sugar and chocolate in the best way. For guests, pour a cup of strong black coffee or an unsweetened espresso; the bitterness balances the frosting’s sweetness without competing. If you want to go full celebration, scoop a simple vanilla bean ice cream alongside, where the creaminess and cold contrast the cake’s chew and density.
Frequently Asked Questions
Can I use regular raw cookie dough from the store?
No. That dough contains raw flour and often raw eggs, which can carry bacteria. This recipe uses heat-treated flour and no eggs in the cookie dough, making every part safe to eat.
Do I have to heat-treat the flour if I’m using a brand that says it’s safe?
Check the package. If the flour label specifically states it has been heat-treated or pasteurized for raw consumption, you can skip that step.
Can I make this cake ahead of time?
Yes. Bake the cake layers one day in advance, wrap them tightly, and keep at room temperature. Make the cookie dough and frosting the day you plan to serve, then assemble right before.
What if my frosting looks grainy?
The flour likely didn’t get beaten long enough. Keep whipping on high speed for another minute or two until the frosting is smooth, or add a splash more milk to help it loosen.

Cookie Dough Cake Recipe
Ingredients
Method
- Cream ½ cup butter with ½ cup brown sugar, then mix in 2 teaspoons vanilla, 1 tablespoon milk, ⅓ cup heat-treated flour, and ½ teaspoon salt. Fold in ½ cup mini chocolate chips. Form half into small chunks and press the rest into a disc; chill both for 30 minutes.
- Preheat oven to 350°F and grease two 8-inch pans. Beat remaining butter with remaining brown sugar, then eggs and vanilla.
- Whisk dry ingredients and add to butter mixture alternately with milk. Divide batter between pans and bake 25-28 minutes until a toothpick comes out with moist crumbs. Cool completely.
- Beat 1 cup butter until creamy, add powdered sugar, then 2 teaspoons vanilla and 2 tablespoons milk. Mix in 3 tablespoons heat-treated flour and a pinch of salt; whip until fluffy.
- Place one cake layer on a plate, spread with frosting, scatter half the chilled dough chunks, and top with second layer. Frost entire cake.
- Break remaining dough disc into pieces, pile on top, and sprinkle with remaining chocolate chips. Serve at room temperature.
