Cookie Dough Cake

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.8
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.7
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.7
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.8
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.9
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.6

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 (14)

2 days ago

OMG, I made this for my kid's 10th birthday party this weekend and every single parent asked for the recipe! The cookie dough layers are so rich and not too sweet, paired perfectly with the vanilla buttercream. Only note is I chilled the dough layers an extra 30 mins because my kitchen runs super hot, no spreading at all.

1 day ago

Wait did you use regular salted butter for the cookie dough layers? I’m making this for a potluck next week and don’t want to mess it up!

1 day ago

So happy the cake was a hit at the birthday party, Jess! Great call chilling the layers extra for a warm kitchen – that’s such a smart hack. For anyone wondering, salted butter works perfectly here, just cut the added salt in the dough layer by half if you go that route!

3 days ago

Game changer. I’m not much of a baker, usually just do box mixes for office potlucks, but this made me look like a total pro. Took me a little over 2.5 hours total because I’m slow at stacking layers, but totally worth the effort. The edible cookie dough bits in between the layers? *Chef’s kiss*.

2 days ago

Love that this worked out for you even as a newer baker, Mike! Taking your time stacking is totally normal – popping each assembled layer in the fridge for 10 minutes before adding the next makes it way less wobbly if you try it again!

yesterday

SO good. I made this for my family’s Sunday dinner last night and even my super picky teen who “hates cake” had two slices. I added a handful of mini chocolate chips to the buttercream for extra chocolate punch, 10/10 will make again.

1 week ago

Okay, I will say this is definitely a medium difficulty bake, don’t go into it thinking it’s a quick weeknight throw together! I messed up the first batch of cookie dough because I forgot to heat treat the flour (oops, rookie move) but the second batch came out perfect. My roommates devoured half the cake before I even got to frost the top, lmao.

5 days ago

Oh my gosh I did the exact same thing with the raw flour! Totally didn’t read that step first, had to toss my first batch too. Ended up baking the flour in the oven for 10 mins at 350°F to speed it up, worked like a charm!

2 weeks ago

This is my new go-to celebration cake! I’ve made it three times in the last month: once for my neighbor’s housewarming, once for my husband’s work picnic, once just because we were craving something sweet. I do wish the recipe noted how much counter space you need for assembling all the layers, I had to clear off my entire dining table the first time.

1 week ago

Right?! I had the same issue! I ended up using a couple of large cutting boards on my tiny apartment counter to make it work, no mess though!

1 week ago

That’s such helpful feedback, thank you! I just added a note to the prep section about clearing enough assembly space ahead of time, plus your cutting board hack for smaller kitchens – such a great tip for folks with limited counter room!

5 days ago

I was a little skeptical about cookie dough IN a cake, like I thought it would be dry or weird texture? But no, it’s perfectly chewy and pairs so well with the soft cake layers. I used dark brown sugar instead of light for the cookie dough to get that deeper molasses flavor, highly recommend that swap.

4 days ago

The dark brown sugar swap is genius, Dan! That extra molasses kick pairs so well with the chocolate in the cookie dough – I’m definitely going to test that variation for the blog next month!

30 minutes ago

Made this for my book club potluck last night and people were literally going back for thirds. I skipped the extra chocolate drizzle on top because I don’t love super sweet frosting, and it was perfectly balanced. Will absolutely be adding this to my regular bake rotation.

2 hours ago

Alright, full transparency: I burned the first set of cake layers because I got distracted watching the football game. But the second set? FIRE. My girlfriend said it’s better than the bakery cake we got for our anniversary last year. That’s a W in my book.

1 hour ago

Lmao I did the exact same thing last weekend when I was making it during the game! Set three timers the second go-around, no burnt layers that time 😂

5 minutes ago

Wait, has anyone tried making this with vegan butter and gluten free flour? My niece has celiac and a dairy allergy and I want to make this for her graduation party next month, it looks so good!

3 minutes ago

I made it with a 1:1 gluten free all purpose flour blend and vegan butter last week! It turned out almost identical to the regular version, just make sure your GF flour has xanthan gum in it, otherwise the layers will crumble!

1 minute ago

Great question! I’ve tested this recipe with 1:1 gluten free flour and vegan butter with great results, just like the comment above mentioned – just double check for xanthan gum in your flour blend, and make sure you heat treat the GF flour just like regular flour for the cookie dough layers. I hope your niece loves it for her graduation!

1 week ago

The cook time listed is pretty spot on! I’m a pretty experienced baker and got it done in 2 hours 15 minutes, only extra time was waiting for the layers to cool completely before frosting (which you absolutely cannot skip, trust me, I tried rushing it once before with another cake and made a melted mess).

6 days ago

So glad the cook time lined up for you, Erin! You are so right about not rushing the cooling step – warm layers = sliding frosting every single time, no matter how good your buttercream is!

just now

10/10, no notes. I made this for my roommate’s birthday and he said it’s the best thing I’ve ever baked. I even added a layer of crushed pretzels between the cookie dough and buttercream for a salty sweet crunch, insane combo. Don’t skip the flaky sea salt on top, it makes all the difference.

3 days ago

Okay y’all, I was intimidated at first because I usually only do sheet cakes and cookies, but this was so doable! The instructions are super clear, every step is laid out so you don’t miss anything. My grandkids went crazy for the little cookie dough truffles I put on top as decoration, they kept sneaking them before we even cut the cake.

2 days ago

I was nervous too! The step-by-step pics on the recipe card are so helpful for getting the layers even. My grandbabies stole half the dough truffles too, little rascals 😂

yesterday

Wait, can I make the layers a day ahead? I have a super busy week next week and want to prep as much as possible for my office potluck on Friday, would the cookie dough layers get weird in the fridge wrapped up?

18 hours ago

I prepped all the layers two days ahead when I made it last month! Wrapped them really tight in plastic wrap and kept them in the fridge, then pulled them out 20 minutes before assembling, tasted totally fresh!

12 hours ago

Great make-ahead question! You can absolutely bake the cake layers and make the cookie dough layers up to 2 days in advance, just wrap them tightly in plastic wrap and store in the fridge. I don’t recommend making the buttercream more than a day ahead though, it’s fluffiest when it’s fresh!

2 days ago

SO. GOOD. I’m not usually a layer cake person because I think they’re too fussy, but this was worth every minute. The balance of sweet cookie dough, soft vanilla cake, and creamy buttercream is literally perfect. I brought the leftovers into work and my coworkers begged me to make another one next week.