Chocolate Chip Cookie Dough Cake
This chocolate chip cookie dough cake takes the best part of sneaking raw dough and turns it into a real celebration cake. Soft chocolate chip layers sandwich a thick, scoopable cookie dough filling that’s completely safe to eat, and the whole thing is finished with a brown sugar frosting speckled with more mini chips.

It’s an impressive layer cake that doesn’t require fancy decorating skills. You can bake the layers a day ahead and frost it when you need it, and it slices clean even straight from the fridge.
Why This Cookie Dough Cake Works
The filling is the reason I keep this recipe in my back pocket. It tastes exactly like real cookie dough, buttery and fudgy with a sandy crumble that stays soft even when the cake is chilled. Heat-treated flour makes it safe to eat by the spoonful, no shortcuts on texture.
The cake layers hold up to all that filling without getting heavy. Buttermilk and oil keep them tender for days, and the brown sugar frosting doubles down on that caramel cookie dough flavor in every bite.
Ingredients

- 2 ½ cups all-purpose flour: spooned and leveled
- 1 tsp baking powder
- ½ tsp baking soda
- ½ tsp salt
- ¾ cup unsalted butter, softened: plus more for the pans
- 1 cup granulated sugar
- ½ cup packed light brown sugar
- 3 large eggs: room temperature
- 2 tsp vanilla extract
- 1 cup buttermilk: well shaken
- ¼ cup vegetable oil
- ½ cup mini chocolate chips: for the batter
- ½ cup unsalted butter, softened: for the filling
- 1 cup packed light brown sugar: for the filling
- 1 tsp vanilla extract: for the filling
- 1 cup heat-treated all-purpose flour: learn how below
- 2 to 3 tbsp milk: to adjust the filling
- ⅔ cup mini chocolate chips: for the filling
- 1 cup unsalted butter, softened: for the frosting
- ½ cup packed light brown sugar: for the frosting
- 2 cups powdered sugar: sifted if lumpy
- Pinch of salt: for the frosting
- 2 tsp vanilla extract: for the frosting
- 2 to 3 tbsp heavy cream: plus more if needed
- ⅓ cup mini chocolate chips: for the frosting, plus extra for the top
Variations and Swaps
- White chocolate chips: swap them into the filling and frosting for a sweeter, creamier twist.
- Add chopped nuts: fold ⅓ cup toasted pecans or walnuts into the frosting for some crunch.
- Dairy-free option: use a plant-based butter stick and unsweetened oat milk or almond milk plus a teaspoon of vinegar to replace the buttermilk.
- Less sweet frosting: a tangy cream cheese frosting works beautifully here, just beat 8 oz cream cheese with the butter and reduce the powdered sugar by half.
If you love cookie dough in other desserts, try our Edible Cookie Dough Truffles for a fast, no-bake treat.
How to Make Chocolate Chip Cookie Dough Cake
Step 1: Mix the Cookie Dough Filling

In a medium bowl, beat ½ cup softened butter and 1 cup packed brown sugar with a hand mixer until light and fluffy, about 2 minutes. Mix in 1 teaspoon vanilla extract, then add 1 cup heat-treated flour and 2 tablespoons of the milk. Beat on low until a thick, uniform dough forms. Fold in ⅔ cup mini chocolate chips.
The filling should look like real cookie dough, soft and scoopable. If it feels dry and crumbly, add the remaining 1 tablespoon milk and mix again. Set it aside at room temperature while you make the cake; it will firm up slightly but stay spreadable.
Because the flour has been heated, this filling is completely safe to eat raw, so you can taste as you go without any worry.
Step 2: Cream the Butter and Sugar

Preheat the oven to 350°F (175°C). Grease two 8-inch round cake pans with butter and line the bottoms with parchment circles. In a large mixing bowl, beat ¾ cup softened butter, 1 cup granulated sugar, and ½ cup brown sugar together until pale and fluffy, about 3 minutes on medium-high speed. Add the 3 eggs one at a time, beating well after each, then mix in 2 teaspoons vanilla.
Whisk the 2 ½ cups flour, 1 teaspoon baking powder, ½ teaspoon baking soda, and ½ teaspoon salt in a separate bowl. With the mixer on low, add the flour mixture in three parts, alternating with the 1 cup buttermilk and ¼ cup oil. Start and end with the flour. Mix just until no dry streaks remain, then fold in the ½ cup mini chocolate chips with a spatula.
The batter will be thick and studded with chips. Divide it evenly between the pans and smooth the tops with a spatula. The layers will dome slightly as they bake; you can gently press them flat while still warm if you prefer level cakes for stacking.
Step 3: Bake the Cake Layers

Bake the cakes for 28 to 32 minutes, until a toothpick inserted in the center comes out with a few moist crumbs clinging. The tops will be golden brown and spring back lightly when touched.
Cool the pans on a wire rack for 10 minutes, then run a knife around the edges and turn the cakes out onto the rack to cool completely. Peeling off the parchment while they are still slightly warm helps it release cleanly.
Don’t rush the cooling step. Even a little residual warmth will soften the cookie dough filling and make the layers slide. If you need to speed things up, pop the cooled layers in the fridge for 20 minutes before assembling.
Step 4: Whip the Frosting

In a clean large bowl, beat 1 cup softened butter and ½ cup brown sugar until smooth and no sugar grit remains, about 4 minutes. Add 2 cups powdered sugar, a pinch of salt, and 2 teaspoons vanilla. Start the mixer on low so the sugar doesn’t fly out, then increase to high and beat until fluffy. Pour in 2 tablespoons of the heavy cream and whip again, adding up to 1 more tablespoon if needed for a soft, spreadable texture. Fold in ⅓ cup mini chocolate chips.
The frosting will be speckled with tiny bits of brown sugar, which gives it that cookie dough look. It should hold a soft peak but still be creamy enough to spread without tearing the cake. If it feels too stiff, add a little more cream; if too soft, chill the bowl for 10 minutes.
This frosting is meant to be generous, so don’t skimp. It pipes well too, if you want to add decorative swirls on top.
Step 5: Fill and Frost the Cake

Set one cooled cake layer on a serving plate or cake stand, flat side down. Scoop all of the cookie dough filling onto it and spread it into an even layer, leaving a ½-inch border around the edge. Place the second cake layer on top, flat side up, and press gently to adhere.
Cover the whole cake with a thin crumb coat of frosting. A crumb coat seals in loose crumbs and gives you a neat final surface. Chill the cake for 15 to 20 minutes until the coat is set. Then pile on the remaining frosting, spreading it thickly across the top and down the sides with a spatula or the back of a spoon. Scatter extra mini chocolate chips over the top for a finished look.
Slice with a sharp chef’s knife, wiping the blade clean between cuts for the neatest results. The cookie dough center stays soft even straight from the fridge, so every piece has that contrast of tender cake and fudgy filling.
Tips for Cake That Stacks Cleanly
- Use room-temperature butter for the cake and frosting. Cold butter won’t cream properly and can make the batter curdle.
- If your cookie dough filling feels too soft to spread, refrigerate it for 10 minutes first.
- For perfectly flat layers, run a long serrated knife across the domed tops before assembling.
- Chill the fully frosted cake for at least 30 minutes before serving. It makes slicing tidy and keeps the filling in place.
- Don’t overmix the cake batter once the flour goes in, or the layers can turn out dense instead of tender.
Bake times by pan size:
| Pan Size | Bake Time |
|---|---|
| Two 8-inch rounds | 28 to 32 minutes |
| Two 9-inch rounds | 24 to 28 minutes |
| 24 cupcakes | 18 to 22 minutes |
Frequently Asked Questions
Can I use store-bought edible cookie dough?
Yes, if you find a brand labeled safe to eat raw. Skip any dough meant for baking unless it’s specifically marketed as edible.
How do I heat-treat flour?
Spread 1 cup flour on a baking sheet and bake at 300°F for 5 minutes, or microwave in a bowl, stirring every 30 seconds, until it reaches 160°F on a thermometer. Cool completely before using.
Can I make this cake ahead of time?
Absolutely. Bake the layers and make the filling up to 1 day ahead. Store the layers wrapped at room temperature and the filling in the fridge, then frost the day you serve it.
What if I don’t have buttermilk?
Stir 1 tablespoon of white vinegar or lemon juice into 1 cup of milk and let it sit for 5 minutes. It thickens and works just as well.
Why did my cake layers sink in the middle?
Underbaking is usually the reason. Make sure a toothpick comes out with only moist crumbs, not wet batter, and avoid opening the oven door until the last 5 minutes of baking.

Chocolate Chip Cookie Dough Cake Recipe
Ingredients
Method
- Beat ½ cup butter and 1 cup brown sugar for filling until fluffy; mix in vanilla, heat-treated flour, and milk to form a soft dough, then fold in ⅔ cup mini chips. Set aside.
- Preheat oven to 350°F. Cream ¾ cup butter, 1 cup granulated sugar, and ½ cup brown sugar; add eggs and vanilla. Alternately mix in dry ingredients (flour, baking powder, soda, salt) with buttermilk and oil, then fold in ½ cup mini chips. Divide into two greased 8-inch pans.
- Bake 28–32 minutes until a toothpick comes out with moist crumbs. Cool 10 minutes in pans, then transfer to a rack to cool completely.
- Beat 1 cup butter and ½ cup brown sugar for frosting until smooth; add powdered sugar, salt, vanilla, and enough cream to make it spreadable. Fold in ⅓ cup mini chips.
- Place one cake layer on a plate, spread filling on top leaving a border, top with second layer. Crumb coat with frosting, chill 15 minutes, then frost generously. Garnish with extra mini chips.
