Cream Cheese Layer Cake with Chocolate Layers
In this article
This chocolate layer cake combines dense, fudgy chocolate cake layers with a smooth, tangy cream cheese filling. The cake is ideal for birthdays, holidays or a special afternoon treat. The cream cheese adds a balanced, buttery richness that complements the deep cocoa flavor. With a few simple ingredients, you can create a bakery-quality dessert at home.
Serves 12 · Prep 35 min · Cook 30 min · Total 1 hr 35 min
Ingredients
- 4 cups (480 g) all-purpose flour
- 2 tsp baking powder
- 1 tsp salt
- 1 ½ cups (300 g) unsweetened cocoa powder
- 2 cups (400 g) granulated sugar
- 1 cup (240 ml) milk
- 2 tbsp (30 ml) white vinegar
- 1 tsp vanilla extract
- 2 cups (480 ml) vegetable oil
- 2 large eggs
- 2 tbsp (30 ml) boiling water
- 22 oz (650 g) cream cheese, softened
- 1 cup (240 g) unsalted butter, softened
- 4 cups (480 g) powdered sugar
- 1 tsp vanilla extract
- 1 tbsp (15 ml) lemon juice
- 2 tbsp (30 g) cocoa powder (optional, for color and flavor)
Instructions
- Preheat oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round baking pans.
- In a large bowl, whisk together the flour, baking powder, salt and cocoa powder.
- In another bowl, beat sugar, oil and eggs until well combined. Add milk, vinegar, vanilla and boiling water, mixing until smooth.
- Gradually add the dry ingredients to the wet ingredients, mixing until fully incorporated. Do not overmix.
- Divide the batter evenly between the prepared pans. Bake for 25–30 minutes, until a toothpick inserted in the center comes out clean.
- Let the cakes cool completely in the pans on a wire rack before removing.
- While the cakes cool, prepare the cream cheese filling. In a large bowl, beat cream cheese until smooth. Add butter, powdered sugar, vanilla and lemon juice. Beat on medium speed until light and fluffy (about 2–3 minutes).
- If desired, add cocoa powder to the frosting to deepen the chocolate flavor and darken the color.
- Place one cake layer on a serving plate. Spread half of the cream cheese filling over the top. Place the second layer on top. Spread the remaining filling over the top of the cake.
What Makes This Cake Dry or Dense and How to Fix It
A dry cake is often due to overbaking or too much flour. To fix it, ensure you measure flour properly (spoon into the cup and level off), and do not overmix the batter. If the cake is dense, the oil may have been over-whipped or the batter overmixed. Mixing should be just until ingredients are combined, not until smooth and glossy. For a fluffier texture, try using melted butter instead of oil next time.
Why the Filling Might Be Too Runny or Too Thick
If the cream cheese filling is too runny, it may not have been chilled long enough or the butter was too soft. Chill the filling for 15–20 minutes before assembling the cake. If the filling is too thick, add a few drops of milk or lemon juice to thin it out before spreading. Avoid using room-temperature butter, as this can cause the filling to become too soft or runny.
How Long Does This Cake Keep?
Store the assembled cake in an airtight container in the refrigerator for up to 3 days. For longer storage, wrap each layer tightly in plastic wrap and freeze for up to 2 months. Thaw in the refrigerator before serving.
How to Serve and What to Pair With It
Serve this chocolate and cream cheese layer cake at room temperature for best flavor. It pairs well with a cold cup of coffee or hot chocolate. For a festive touch, add a dusting of cocoa powder or a drizzle of chocolate sauce on top. This cake is ideal for afternoon tea, dessert parties or as a birthday surprise.
Substitutions and Variations
Flour
Substitute 1 cup (120 g) of all-purpose flour with bread flour for a denser, more structured cake. Use 1 cup (120 g) of cake flour for a lighter texture, but the cake may not hold up as well when layered.
Oil
Replace vegetable oil with melted coconut oil or canola oil for a similar texture. Avoid using olive oil, as it can impart a strong flavor.
Butter in Filling
Use margarine or a vegan butter substitute if avoiding dairy. The texture may be slightly different but still creamy.
Gluten-Free Option
Use a 1:1 gluten-free flour blend in place of all-purpose flour. Add ½ tsp xanthan gum if the blend does not already contain it. The texture may be slightly denser.
Vegetarian and Vegan Options
Use vegan cream cheese (available in most supermarkets) and vegan butter in place of dairy. The cake can be made vegan by using plant-based milk and a flax egg (1 tbsp ground flax + 3 tbsp water) in place of each egg.
What to Do If You Run Into Troubles
If the cake layers do not rise evenly, ensure your baking powder is fresh (it should bubble when mixed with hot water). If the filling splits, it may be due to the butter being too cold; let it soften to room temperature before mixing. If the cake domes too much, place it under a broiler for 1–2 minutes after baking to flatten the top lightly.