Cookie Dough Cake

title 1
Cookie Dough Cake
⏱️ cook time 2 hours 10 minutes
🍽️ servings 8
⚡ Difficulty medium

intro

A rich two-layer vanilla cake stuffed with safe-to-eat chocolate chip cookie dough, frosted with fluffy vanilla buttercream, and studded with extra chocolate chips for a decadent, crowd-pleasing treat.

Ingredients

All-purpose flour (for vanilla cake) 315 grams (2.5 cups)
Granulated sugar 300 grams (1.5 cups)
Unsalted butter (for vanilla cake, softened) 113 grams (1/2 cup / 1 stick)
Large eggs (room temperature) 3 units
Baking powder 1.5 teaspoons
Whole milk (room temperature) 240 ml (1 cup)
Vanilla extract (for vanilla cake) 2 teaspoons
Fine table salt (for vanilla cake) 1/2 teaspoon
All-purpose flour (for edible cookie dough, heat-treated) 200 grams (1.6 cups)
Light brown sugar (packed) 150 grams (3/4 cup)
Unsalted butter (for cookie dough, softened) 113 grams (1/2 cup / 1 stick)
Mini semi-sweet chocolate chips (for cookie dough) 170 grams (1 cup)
Heavy cream (for cookie dough) 30 ml (2 tablespoons)
Vanilla extract (for cookie dough) 1 teaspoon
Fine table salt (for cookie dough) 1/4 teaspoon
Unsalted butter (for vanilla buttercream, softened) 226 grams (1 cup / 2 sticks)
Powdered sugar (sifted) 480 grams (4 cups)
Heavy cream (for buttercream) 45 ml (3 tablespoons)
Vanilla extract (for buttercream) 1.5 teaspoons
Fine table salt (for buttercream) 1/8 teaspoon
Mini semi-sweet chocolate chips (for garnish) 55 grams (1/3 cup)

Steps

1

Bake vanilla cake layers

Preheat your oven to 180°C (350°F), then grease two 9-inch round cake pans and line their bottoms with cut-to-fit parchment paper. In a medium bowl, whisk together 315g all-purpose flour, 1.5 teaspoons baking powder, and 1/2 teaspoon fine salt to combine. In a large mixing bowl, beat 113g softened unsalted butter and 300g granulated sugar on medium mixer speed for 3 minutes until light, pale, and fluffy. Add 3 room-temperature eggs one at a time, beating for 30 seconds after each addition, then stir in 2 teaspoons vanilla extract. Alternate adding the dry flour mixture and 240ml room-temperature whole milk in 3 equal batches, mixing on low speed only until no dry flour streaks remain. Divide the batter evenly between the two prepared pans, then bake for 24-26 minutes, until a toothpick inserted into the center comes out with 1-2 moist crumbs attached. Let cakes cool in the pans for 10 minutes, then turn out onto wire racks to cool completely to room temperature (approximately 1 hour).

Step 1
step1:Bake vanilla cake layers
2

Make safe cookie dough filling

While the cake layers cool, heat-treat 200g all-purpose flour for the edible cookie dough to eliminate harmful bacteria: spread the flour in an even thin layer on a rimmed baking sheet, bake at 180°C (350°F) for 7 minutes, then set aside to cool completely to room temperature. In a large bowl, beat 113g softened unsalted butter and 150g packed light brown sugar on medium speed for 2 minutes until smooth and creamy. Stir in 1 teaspoon vanilla extract and 1/4 teaspoon fine salt, then gradually mix in the fully cooled heat-treated flour on low speed. Add 30ml (2 tablespoons) heavy cream 1 tablespoon at a time, mixing until the dough holds together firmly when squeezed, then fold in 170g (1 cup) mini semi-sweet chocolate chips. Set aside 1/4 of the dough to roll into 1-inch chunks for garnish, then press the remaining dough into a 9-inch flat disc matching the size of your cake layers, and chill in the refrigerator for 15 minutes.

Step 2
step2:Make safe cookie dough filling
3

Whip vanilla buttercream

In a clean, dry large mixing bowl, beat 226g softened unsalted butter on medium speed for 4 minutes until pale, silky, and nearly white in color, scraping down the sides of the bowl halfway through to ensure even mixing. Reduce mixer speed to low, and gradually add 480g (4 cups) sifted powdered sugar 1 cup at a time, mixing fully to incorporate after each addition. Add 1.5 teaspoons vanilla extract, 1/8 teaspoon fine salt, and 45ml (3 tablespoons) heavy cream, then increase speed to medium-high and beat for 2 minutes until the frosting is light, fluffy, and easily spreadable. Adjust consistency if needed: add 1 teaspoon more heavy cream if frosting is too thick, or 2 extra tablespoons powdered sugar if it is too thin to hold its shape.

Step 3
step3:Whip vanilla buttercream
4

Assemble base cake layer

Once cake layers are fully cooled, place one layer on a cake stand or flat serving plate. Use an offset spatula to spread a 120ml (1/2 cup) thick, even layer of buttercream across the entire top surface of the base cake layer. Remove the chilled 9-inch cookie dough disc from the refrigerator, and set it directly on top of the frosted base layer, pressing down very gently to adhere it evenly. Spread a 60ml (1/4 cup) thin layer of buttercream across the top of the cookie dough disc to create a sticky surface for the top cake layer.

Step 4
step4:Assemble base cake layer
5

Apply crumb coat to cake

Place the second cooled cake layer directly on top of the buttercream-covered cookie dough disc, pressing gently to level the entire cake so it sits evenly. Use 80ml (1/3 cup) of buttercream to spread a thin, even crumb coat across the entire top and sides of the assembled cake, scraping off excess frosting with your spatula to trap any loose cake crumbs against the cake. Transfer the cake to the refrigerator to chill for 15 minutes, until the crumb coat is firm and dry to the touch.

Step 5
step5:Apply crumb coat to cake
6

Frost and garnish cake

Once the crumb coat is fully set, use all remaining buttercream to frost the top and sides of the cake in a thick, even layer, smoothing the sides with an offset spatula or bench scraper for a clean, polished finish. Press the reserved 1-inch cookie dough chunks and extra 55g (1/3 cup) mini semi-sweet chocolate chips into the top edge and upper sides of the cake as garnish. Return the cake to the refrigerator to chill for 10 minutes to set the final frosting layer, then slice and serve.

Step 6
step6:Frost and garnish cake

Tips

1.Always fully cool heat-treated flour before mixing it into cookie dough, as warm flour will melt the butter and create a greasy, runny dough that is hard to shape into a solid disc.
2.Don’t skip the crumb coat step: this thin base layer of frosting traps loose cake crumbs so they do not mix into your smooth final frosting, resulting in a polished, professional-looking finish.
3.For food safety, keep the edible cookie dough egg-free, and always heat-treat the flour to kill potential bacteria, as raw uncooked flour can carry harmful foodborne pathogens.

✨ You May Also Like

Desserts & Baking
🍜 Italy

Creamy, coffee-kissed classic Northern Italian no-bake dessert, with layers of rum-spiked mascarpone cream, soft ladyfingers, and a rich cocoa dusting.

⏱️ 4 hours 3Desserts & Baking ★ 4.7
Desserts & Baking
🍜 France

Flaky, shatteringly crisp, buttery French croissants with golden exteriors and soft, airy layered interiors, perfect for pairing with coffee for a special morning treat.

⏱️ 12 hours Desserts & Baking ★ 4.5
Desserts & Baking
🍜 United States

Warm, spiced baked apples topped with a fluffy golden biscuit crust, this cozy dessert pairs perfectly with vanilla ice cream for cool-weather comfort.

⏱️ 55 minuteDesserts & Baking ★ 4.6
Desserts & Baking
🍜 United States

A star-spangled classic American blueberry pie with buttery flaky crust and bright sweet-tart filling, perfect for summer patriotic gatherings.

⏱️ 1 hour 25Desserts & Baking ★ 4.7
Desserts & Baking
🍜 United States

A beloved no-bake regional Maine candy with a chewy coconut-potato center coated in rich dark chocolate, a New England holiday staple since the 1870s.

⏱️ 2 hours 3Desserts & Baking ★ 4.8
Desserts & Baking
🍜 France

Luxuriously creamy, floral frozen custard made with aromatic Tahitian vanilla beans, boasting a smooth, rich texture that melts slowly on the tongue.

⏱️ 3 hours 3Desserts & Baking ★ 4.5

Cookie Dough Cake:Frequently Asked Questions

1.Is the cookie dough filling in this cake actually safe to eat raw? ▾
Absolutely! The cookie dough filling skips raw eggs and uses heat-treated all-purpose flour to eliminate common food safety risks from raw grain or egg products. To heat-treat flour, spread it on a baking sheet, bake at 350°F for 5 minutes, then let it cool fully before mixing to keep that classic, chewy dough texture.
2.Can I make the cake layers ahead of time to cut down on day-of prep? ▾
Definitely! Bake the vanilla cake layers, let them cool completely to room temperature, then wrap each tightly in two layers of plastic wrap. You can store them in the fridge for up to 3 days, or in the freezer for up to 1 month—just thaw fully in the fridge before assembling to avoid soggy, uneven layers.
3.Why does the recipe specify room temperature eggs and softened butter for the cake layers? ▾
Room temperature ingredients emulsify far more smoothly into cake batter, creating a light, evenly risen, tender crumb instead of a dense, lumpy final cake. Let eggs sit on the counter for 30 minutes before use, and make sure butter gives slightly when pressed (not melted or rock hard) for best results.
4.My cake layers always dome in the oven—how do I get flat, even layers for easy stacking? ▾
For perfectly flat, stackable layers, try wrapping your cake pans with damp cake strips before pouring in the batter—this keeps the edges from setting too fast as the cake bakes. If you still get a small dome, let layers cool fully, then use a long serrated knife to gently level the top in slow, even sawing motions before stacking.
5.Can I add extra mix-ins to the cookie dough filling without ruining its texture? ▾
Go for it! Small, sturdy mix-ins work best here: mini chocolate chips, chopped walnuts or pecans, tiny toffee bits, or even crushed mini pretzels for a salty-sweet twist. Stick to ½ cup of total extra mix-ins per batch of filling so it doesn’t get too chunky to spread evenly between layers.
6.How do I keep the cookie dough filling from oozing out when I stack and frost the cake? ▾
First, make sure your cookie dough filling is chilled to a firm, spreadable consistency (not runny or melty) before assembling. Pipe a ½-inch tall ring of stiff vanilla buttercream around the edge of your bottom cake layer before adding filling—it acts as a dam to lock dough in place so it won’t squeeze out under the top layer.
7.How long will this assembled cake stay fresh, and how should I store it? ▾
This frosted cake stays fresh for up to 4 days when stored in an airtight cake container in the refrigerator. The buttercream seals in moisture so layers don’t dry out, but let slices sit at room temperature for 15 to 20 minutes before serving to bring out the richest vanilla and cookie dough flavor.
8.I thought cake flour was best for light layers—why does this recipe use all-purpose flour? ▾
This recipe is specifically formulated for regular all-purpose flour, so you don’t need a special grocery run for specialty cake flour! The tested ratio of baking powder, softened butter, room temperature eggs, and granulated sugar creates a tender, fluffy crumb with AP flour, no extra purchases required.
9.My vanilla buttercream always turns out grainy—what’s the fix for this cake? ▾
Grainy buttercream almost always comes from butter that’s too cold, or powdered sugar that hasn’t been mixed in long enough. Make sure your butter is fully softened to room temperature, sift your powdered sugar before adding it, and beat the frosting on medium speed for 3 to 4 full minutes until it’s light, fluffy, and completely smooth.
10.Can I adapt this recipe to be gluten-free for friends with dietary restrictions? ▾
Yes, this cake is easy to adapt for gluten-free diets! Swap the regular all-purpose flour in both the cake layers and the heat-treated flour for the cookie dough filling for a 1:1 gluten-free all-purpose baking blend that contains xanthan gum. All other ingredients work as written, with nearly identical final texture and flavor.
11.What’s the least messy way to add the extra chocolate chips to the outside of the frosted cake? ▾
The easiest, low-mess method is to apply your final smooth coat of buttercream first, then hold small handfuls of chocolate chips in your palm and gently press them into the lower half of the cake sides right after frosting, before the buttercream crusts over. Set a baking sheet under your cake stand to catch falling chips for reuse.

Comments (6)

3 days ago

OMG this cookie dough layer cake was an absolute game changer for my son’s 10th birthday party! All the kids were going back for seconds, even the picky eaters. My kids loved it so much they asked me to make it again for our next family movie night! I was nervous about the medium difficulty rating since I’m not a super experienced baker, but the layers came out perfectly moist and the cookie dough filling didn’t ooze out everywhere like I feared. SO good, already got three requests for the recipe from other parents at the party!

2 days ago

So happy to hear it was a hit at the birthday party! So glad the difficulty felt manageable for you—pro tip for next time, you can chill the filling for 15 extra minutes if you’re worried about oozing in warmer weather!

yesterday

Same! I made this for my daughter’s soccer team potluck last weekend and every last slice was gone. I added a handful of mini chocolate chips on top for extra crunch and it was chef’s kiss.

1 week ago

Took this to our neighborhood block party potluck last week and people were literally hovering around the dessert table waiting for me to set it down. The edible cookie dough layers are so nostalgic, tastes exactly like the raw cookie dough I snuck as a kid but without the raw egg worry! Only note is that the 2 hour 10 minute cook time is pretty accurate, don’t try to rush the chilling steps or you’ll end up with a slide-y mess like I almost did.

2 hours ago

Okay so full transparency, I messed up the first batch of cake layers because I forgot to set a timer and burned the edges, but round two turned out amazing! My roommates and I demolished half the cake in one sitting after our midterm study session. Only question—can I make the cookie dough filling a day ahead and store it in the fridge to cut down on prep time day of?

30 minutes ago

Great question! You can absolutely make the cookie dough filling 1-2 days ahead, just store it in an airtight container in the fridge and let it sit at room temp for 10 minutes before spreading so it’s easy to work with. Sorry to hear about the first batch of layers—we’ve all been there with study session brain fog!

5 days ago

I’ve tried so many cookie dough cake recipes before and this one is hands down the best. The cake itself isn’t too sweet, which balances out the rich cookie dough filling perfectly. I made it for our weekly family dinner and my dad, who swears he ‘doesn’t like sweet stuff’, had two slices. 10/10 will be making this again for Thanksgiving dessert this year!

3 days ago

Totally agree about the sweetness level! So many cookie dough cakes are cloyingly sweet, but this one is perfectly balanced. I made mine with a cream cheese frosting drizzle on top and it went so well.

2 days ago

Love the cream cheese drizzle idea! We’re so glad it won over your dad—there’s no better compliment than a self-proclaimed non-sweet-lover going back for seconds!

yesterday

Meal prepped this for the week as a little treat for myself after long work days and it held up so well in the fridge! I was worried the layers would get soggy after a couple days, but they stayed nice and tender, and the cookie dough didn’t get hard at all. Absolute game changer for my weekly sweet tooth fix.

2 hours ago

Wait how long did it stay good for in the fridge? I want to make this for my book club next week but need to make it a couple days early!

2 weeks ago

My grandkids have been begging for a cookie dough cake forever and this recipe did not disappoint! It took me a little longer than the stated 2 hours 10 minutes because I like to take my time measuring everything out, but the end result was so worth it. The oldest said it was better than the store-bought version we got last year, which is the highest praise I can get!