The Feast

Home cooking recipes for everyday dinners and easy entertaining

Yellow and Chocolate Cake: Marble Layer Recipe

· 4 min read · Baking and Desserts

This yellow and chocolate marble cake suits birthdays, potlucks, or a weekend dessert when you want one pan that pleases both vanilla and chocolate fans. It is a make-ahead cake that keeps well for several days, and it is best served with a simple vanilla glaze or a scoop of vanilla ice cream. The two batters are swirled together in one pan, so you get the classic yellow crumb with rich chocolate ribbons throughout.

Why Marble Works

Marble cake is two batters—one vanilla, one chocolate—combined in the same pan. The yellow batter is a standard butter cake, and the chocolate portion is the same batter with cocoa and a little extra milk stirred in. This keeps the crumb tender and the flavors distinct, rather than one overpowering the other. The swirl pattern comes from layering the batters and dragging a knife through them; you control how marbled the final slice looks.

Ingredients

For the Yellow Batter

  • 2 1/2 cups (300 g) all-purpose flour
  • 2 1/2 tsp baking powder
  • 1/2 tsp salt
  • 1 cup (2 sticks, 226 g) unsalted butter, softened
  • 1 3/4 cups (350 g) granulated sugar
  • 4 large eggs, at room temperature
  • 1 tbsp vanilla extract
  • 1 cup (240 ml) whole milk, at room temperature

For the Chocolate Batter

  • 1/4 cup (25 g) unsweetened cocoa powder (natural or Dutch-process)
  • 3 tbsp (45 ml) hot water or hot coffee
  • 1/4 tsp baking soda (if using natural cocoa; omit if using Dutch-process)

For the Glaze (Optional)

  • 1 cup (120 g) powdered sugar
  • 2–3 tbsp (30–45 ml) milk or cream
  • 1/2 tsp vanilla extract

Bake the Cake

  1. Preheat the oven to 350°F (175°C). Grease a 9x5-inch loaf pan or a 9-inch round pan; line the bottom with parchment paper for easy release.
  2. In a medium bowl, whisk the flour, baking powder, and salt together. Set aside.
  3. In a large bowl, beat the butter and sugar on medium-high speed until light and fluffy, about 2–3 minutes. Scrape down the bowl.
  4. Add the eggs one at a time, beating well after each addition. Beat in the vanilla.
  5. With the mixer on low, add the flour mixture in three additions, alternating with the milk, starting and ending with flour. Mix just until combined—do not overmix.
  6. Divide the batter into two bowls. Leave one bowl plain (yellow). In the other bowl, whisk the cocoa powder, hot water or coffee, and baking soda (if using) until smooth, then fold this into the second bowl of batter until fully combined.
  7. Spoon the batters into the prepared pan in alternating dollops: a spoonful of yellow, then a spoonful of chocolate, repeating until all batter is used. Use a butter knife or skewer to swirl through the batter in a figure-eight motion, 5–6 passes. Do not over-swirl or the layers will blend into one muddy color.
  8. Bake for 50–60 minutes (loaf) or 35–45 minutes (round), until a toothpick inserted into the center comes out with a few moist crumbs, and the top springs back when lightly pressed. If the top browns too quickly, tent loosely with foil after 40 minutes.
  9. Cool in the pan on a wire rack for 15 minutes, then turn out onto the rack to cool completely before glazing or slicing.

Substitutions and Swaps

  • Butter: You can use salted butter; reduce the added salt to 1/4 tsp.
  • Milk: Buttermilk or plain yogurt (thinned with a little water) works; the cake will be slightly more tender and tangy.
  • Eggs: For a dairy-free version, use plant-based butter and unsweetened almond or oat milk. The cake will be a bit less rich but still tender.
  • Cocoa: Dutch-process cocoa gives a milder, darker chocolate flavor; natural cocoa is more acidic and pairs with baking soda. If using Dutch-process, you can omit the baking soda.
  • Glaze: Swap the milk for orange juice or espresso for a different flavor.

Equipment That Matters

A 9x5-inch loaf pan or a 9-inch round pan both work; the round pan bakes faster and yields a shorter cake. A stand mixer or hand mixer makes creaming easier, but you can mix by hand with a wooden spoon—just beat the butter and sugar well and add the eggs one at a time. For the swirl, a butter knife or a thin skewer is ideal; a spatula is too thick and will overmix. If you don’t have parchment, grease the pan well and dust with flour, tapping out the excess.

Storing and Keeping

Store the unfrosted cake in an airtight container at room temperature for up to 3 days. Once glazed, it keeps for 2 days at room temperature; after that, refrigerate for up to 5 days total. To freeze, wrap the cooled, unglazed cake tightly in plastic wrap and then foil; it will keep for up to 3 months. Thaw overnight in the refrigerator before serving. Do not leave the cake out for more than 2 hours if it has a dairy-based glaze or if the room is above 90°F (32°C).

How to Check for Doneness

The cake is done when a toothpick inserted into the center comes out with a few moist crumbs, not wet batter. The internal temperature should read about 200–205°F (93–96°C) for a butter cake. If the top is deeply browned but the center is still wet, lower the oven to 325°F (165°C) and bake an additional 10–15 minutes, covering with foil if needed. Let the cake cool completely before slicing—warm cake will crumble and the layers may separate.

In this article
  1. Why Marble Works
  2. Ingredients
  3. Bake the Cake
  4. Substitutions and Swaps
  5. Equipment That Matters
  6. Storing and Keeping
  7. How to Check for Doneness