Classic Marble Cake Recipe with Swirled Chocolate-Vanilla Layers

Say hello to the BEST marble cake around! Light, tender, and layered with an airy chocolate buttercream, this classic marble cake balances butter’s flavor with oil’s moisture for a cake both vanilla and chocolate lovers will adore.

sliced marble cake on cake stand

What is marble cake?

Marble cake is made by combining two batters—traditionally vanilla and chocolate—and gently swirling them together to create a marbled pattern. Typically you prepare a single base batter, set aside a portion, and add cocoa to that portion to form the chocolate batter. The technique is versatile and works with many flavor combinations, but this recipe focuses on the timeless vanilla-and-chocolate version.

How to make marble cake

  1. Dry ingredients: Whisk together all-purpose flour, cornstarch, baking powder, baking soda, and salt. Cornstarch helps mimic cake flour by reducing gluten development, which keeps the crumb soft and spongy.
  2. Buttermilk substitute: If you don’t have buttermilk, mix whole milk with a little white vinegar and let it sit for a few minutes until it thickens slightly. The acidity tenderizes the crumb and improves rise.
  3. Butter and oil: Cream butter, oil, and sugar until smooth. Butter brings flavor and structure; oil adds moisture. The mixture may look a bit grainy but should be lump-free.
marble cake homemade buttermilk in measuring cup
marble cake butter, oil, and sugar creamed together in bowl
  1. Finish the vanilla batter: Beat in the eggs one at a time, then add vanilla. Alternate folding in the dry ingredients and the buttermilk, beginning and ending with the dry mix. Adding them gradually prevents overmixing and keeps the cake tender.
  2. Make the chocolate batter: In a separate bowl mix cocoa (and optional black cocoa) with a few tablespoons of milk until smooth. Stir about half of the vanilla batter into the cocoa mixture to form the chocolate portion.
marble cake eggs and vanilla whisked into butter mixture
marble cake homemade buttermilk being poured into bowl with cake batter
marble cake vanilla cake batter in bowl
marble cake chocolate cake batter in bowl

How to marble the cake

My preferred method creates a bold marbled look. Use a spoon or cookie scoop to drop alternating dollops of vanilla and chocolate batter into the pan, forming a loose checkerboard pattern. Avoid placing like batters right next to each other when possible.

Then, run a knife or skewer lengthwise and widthwise through the batter to swirl. Don’t over-swirl—light, deliberate passes will preserve the contrast and yield a beautiful marble pattern. Bake as directed once swirled.

marble cake alternating dollops of vanilla and chocolate cake batter in cake pan
marble cake swirled batter in cake pan

How to make chocolate frosting

Once the cakes are baked and cooled, make the chocolate buttercream. It’s simple and pairs perfectly with the marble layers. The process in short:

  1. Butter and sugar: Beat butter and sifted powdered sugar together on low until the sugar is mostly dissolved and the mix is cohesive.
  2. Add remaining ingredients: Add sifted cocoa, a pinch of salt, vanilla, and a few tablespoons of milk. Mix on low to combine.
  3. Whip: Increase speed and whip until light and fluffy. Add milk, a tablespoon at a time, if you need to thin the frosting.
  4. Decorate: Layer the cooled cakes with frosting, then finish the outside as you like before slicing and serving.
marble cake chocolate frosting in bowl
marble cake chocolate frosting being spread on top of layered cakes
sliced marble cake on cake stand

FAQs

Can I omit the cornstarch?
Cornstarch lightens the flour and helps create a softer crumb. You can skip it, but the cake will be slightly less tender. To replace 2 tablespoons cornstarch, add about 1/4 cup (33g) extra all-purpose flour.

Why use black cocoa powder?
Black cocoa deepens the chocolate color and intensifies flavor in the chocolate portion. It’s optional—omit it if you don’t have any.

Can I bake this in 9-inch pans or a sheet pan?
Yes. Use two 9″ pans (check a few minutes earlier for doneness), three 6″ layers (about 35–40 minutes), or a 9×13″ sheet cake (about 30–35 minutes). Adjust baking time and test with a skewer for moist crumbs.

sliced marble cake on cake stand

Tips for a moist marble cake

  1. Measure flour accurately: Use a scale for best results. If using cups, spoon the flour into the cup and level it—do not scoop directly from the bag.
  2. Room temperature ingredients: Let eggs, butter, and milk come to room temperature for even mixing and smooth batter.
  3. Avoid overmixing: Overmixing develops gluten and leads to a dense cake. Mix only until ingredients are combined.
  4. Proper cooling: Let cakes cool in the pan for about 10 minutes after baking, then turn them onto a wire rack to finish cooling. This helps them hold their shape while staying moist.
  5. Frosting texture: Sift powdered sugar and cocoa for a silky buttercream. Add milk a tablespoon at a time to reach your preferred consistency.
  6. Decorating: Make sure cakes are completely cool before frosting, or the buttercream may soften and slide.

Ingredients

For the vanilla cake base:

  • 2 ½ cups (325g) all-purpose flour, spooned and leveled
  • 2 tbsp cornstarch
  • 2 tsp baking powder
  • ½ tsp baking soda
  • ½ tsp salt
  • 1 ½ cups (360mL) milk, room temperature
  • 1 ½ tbsp white vinegar
  • ½ cup (115g) unsalted butter, room temperature
  • ⅓ cup (80mL) vegetable oil or other neutral oil
  • 1 ½ cups (300g) granulated sugar
  • 3 large eggs, room temperature
  • 2 tsp pure vanilla extract

For the chocolate marble:

  • ¼ cup (20g) unsweetened cocoa powder
  • 1 tsp black cocoa powder (optional)
  • 5 tbsp whole milk, room temperature

For the chocolate buttercream frosting:

  • 1 ½ cups (340g) unsalted butter, room temperature
  • 4 cups (520g) powdered sugar, sifted
  • 1 cup (80g) unsweetened cocoa powder, sifted
  • Pinch of salt
  • 3–4 tbsp milk
  • 1 tsp pure vanilla extract

Instructions

Marble Cake:

  1. Preheat oven to 350°F (175°C). Butter two 8″ or 9″ round pans, line bottoms with parchment, and flour the sides, tapping out excess.
  2. Whisk flour, cornstarch, baking powder, baking soda, and salt in a medium bowl; set aside.
  3. Combine milk and vinegar in a measuring cup and let sit about 5 minutes to thicken slightly.
  4. Cream butter, oil, and sugar until smooth and lump-free.
  5. Add eggs one at a time, mixing after each. Stir in vanilla with the last egg.
  6. Alternate adding dry ingredients and milk to the butter mixture, beginning and ending with dry ingredients: ⅓ dry, half milk, ⅓ dry, remaining milk, finish with last ⅓ dry.
  7. Whisk cocoa (and optional black cocoa) with 5 tbsp milk until smooth. Stir about half the vanilla batter into the cocoa mixture until even.
  8. Using a scoop or spoon, drop alternating dollops of vanilla and chocolate batter into the pans to form a loose checkerboard pattern.
  9. Swirl gently with a skewer or knife lengthwise and widthwise; avoid over-swishing to preserve the marble contrast.
  10. Bake for 30–35 minutes for 8″ pans (25–30 minutes for 9″ pans) or until a skewer comes out clean with a few moist crumbs.
  11. Cool in pans for 10 minutes, then invert onto a wire rack and cool completely to room temperature before frosting.

Chocolate Buttercream:

  1. Beat butter and sifted powdered sugar together on low until the sugar is mostly incorporated.
  2. Add sifted cocoa, salt, 3 tbsp milk, and vanilla; mix on low until combined.
  3. Increase speed and whip until smooth and fluffy. If too thick, add more milk 1 tbsp at a time.
  4. Place one cooled layer on a cake stand, spread frosting, top with second layer, and finish frosting the outside.
sliced marble cake on cake stand

Enjoy!

If you prefer an older version of this recipe, a simple sheet cake adaptation and alternate ingredient amounts are provided below for convenience.

Sheet cake version — Ingredients

  • 2 cups (260g) all-purpose flour
  • 2 tbsp cornstarch
  • 2 tsp baking powder
  • ½ tsp baking soda
  • ¼ tsp salt
  • ½ cup (115g) unsalted butter, softened
  • 1 cup (200g) granulated sugar
  • 2 large eggs, room temperature
  • 1 tsp pure vanilla extract
  • 1 ¾ cups (420mL) milk total, divided (1 ½ cups + ¼ cup)
  • ¼ cup (20g) unsweetened cocoa powder

Sheet cake version — Instructions

  1. Grease a 9×13″ pan and preheat oven to 350°F (175°C).
  2. Sift together flour, cornstarch, baking powder, baking soda, and salt; set aside.
  3. Cream butter and sugar until pale and fluffy. Add eggs one at a time, then vanilla.
  4. Alternate adding dry ingredients and 1 ½ cups milk, starting and ending with the dry mix, mixing until just combined.
  5. Reserve about 1 cup of batter for the chocolate marble; pour the remaining vanilla batter into the prepared pan.
  6. Whisk cocoa with the remaining ¼ cup milk to form a smooth paste, then combine with the reserved batter.
  7. Spoon the chocolate batter over the vanilla layer and swirl with a knife or skewer to create a marble effect.
  8. Bake for 25–30 minutes or until a skewer inserted into the center comes out clean. Cool completely in the pan before frosting or slicing.
  9. Enjoy!