Gluten-Free Vanilla Layer Cake with Chocolate Frosting

Prep: 20 minCook: 35 min1 cake (16 slices)mediumAmerican
Gluten-Free Vanilla Layer Cake with Chocolate Frosting

A tender two-layer gluten-free vanilla cake made with cornstarch, sorghum, and tapioca flours, bound with xanthan gum for structure. Vanilla-butter cake layers are frosted with rich chocolate buttercream. The blend of alternative flours creates a delicate crumb while sour cream adds moisture and tang. Serve at room temperature for celebrations, potlucks, or everyday occasions. This version relies on precise flour ratios and xanthan gum to replicate traditional cake texture without gluten.

Ingredients

Yield: 1 cake (16 slices)
  • 1 cup cornstarch
  • 1 cup sorghum flour
  • ½ cup tapioca flour
  • 1 ¼ tsp xanthan gum
  • ¾ tsp baking powder
  • ¼ tsp baking soda
  • ½ tsp salt
  • 1 ½ cups granulated sugar
  • 1 cup butter, softened
    dairy-free butter1:1vegandairy-free

    flavor slightly less rich

    Full guide →
  • ½ cup sour cream
    Greek yogurt1:1dairytangy

    adds slight protein

    Full guide →
  • 4 tsp vanilla extract, McCormick Pure
  • 4 eggs
    applesauce + cornstarch1/4 cup applesauce + 1 tsp cornstarch per eggveganegg-freeeggs-free

    texture slightly more dense

    Full guide →
  • ½ cup milk
  • 1 tsp vanilla extract, McCormick Pure for frosting
  • 1 box (16 oz) confectioners' sugar
    powdered erythritol1:1ketolow-sugar

    may crystallize slightly

  • ¼ cup cocoa powder, unsweetened
    carob powder1:1caffeine-free

    milder flavor

    Full guide →
  • ¼ cup milk, for frosting

Instructions

  1. 1

    Preheat oven to 350°F.

  2. 2

    Whisk cornstarch, sorghum flour, tapioca flour, xanthan gum, baking powder, baking soda, and salt in a medium bowl; set aside.

  3. 3

    Beat granulated sugar, softened butter, sour cream, and vanilla extract with an electric mixer on medium speed for 5 minutes until light and fluffy.

  4. 4

    Add eggs one at a time, beating well after each addition.

  5. 5

    Alternately add the flour mixture and milk in batches on low speed, mixing just until smooth after each addition; do not overbeat.

  6. 6

    Divide batter evenly between two 9-inch round pans coated with cooking spray.

  7. 7

    Bake 30 to 35 minutes until a toothpick inserted in the center comes out clean.

  8. 8

    Cool in pans for 10 minutes, then turn out onto wire racks and cool completely.

  9. 9

    For frosting, beat butter and vanilla until light and fluffy.

  10. 10

    Sift confectioners' sugar and cocoa powder together, then gradually add to butter, beating well and scraping bowl frequently.

  11. 11

    Add milk and beat until light and fluffy; add more milk if needed for spreading consistency.

  12. 12

    Fill and frost the cooled cake layers with chocolate frosting.

Tips

Tip 1

Xanthan gum is essential in gluten-free baking as it provides structure and elasticity that gluten normally supplies; do not omit or substitute without recipe adjustment.

Tip 2

Do not overbeat the batter after adding flour, as this can cause a dense, tough crumb; mix just until ingredients are combined and smooth.

Tip 3

Ensure all ingredients are at room temperature before mixing for optimal emulsification and a light, fluffy cake and frosting.

Good to Know

Storage

Store frosted cake covered at room temperature up to 2 days, or refrigerated up to 5 days. Store unfrosted cooled cake layers wrapped tightly at room temperature up to 1 day.

Make Ahead

Bake cake layers 1 day ahead; wrap unfrosted layers and store at room temperature. Prepare frosting up to 4 hours ahead and refrigerate; let soften to spreading consistency before use. Assemble cake no more than 4 hours before serving for best texture.

Serve With

Serve at room temperature for best flavor and tender crumb. Slice with a hot, damp knife for clean cuts. Pairs well with coffee, tea, or cold milk.

See pairing guide →

Common Mistakes

Watch

Do not skip xanthan gum or reduce the amount to avoid a crumbly, dense cake that falls apart.

Watch

Do not overbeat the batter after adding flour to avoid a tough, heavy cake with tunneling.

Watch

Do not use cold eggs or butter to avoid poor emulsification and a dense, flat cake.

Watch

Do not fill cake with frosting until completely cooled to avoid frosting melting and layers sliding.

Substitutions

Dairy-Free Swaps

sour cream
Greek yogurt1:1dairytangy

adds slight protein

Full guide →
butter
dairy-free butter1:1vegandairy-free

flavor slightly less rich

Full guide →

Vegan Options

eggs
applesauce + cornstarch1/4 cup applesauce + 1 tsp cornstarch per eggveganegg-freeeggs-free

texture slightly more dense

Full guide →

General Alternatives

confectioners' sugar
powdered erythritol1:1ketolow-sugar

may crystallize slightly

cocoa powder
carob powder1:1caffeine-free

milder flavor

Full guide →
Find more substitutions →

FAQ

Can I use all-purpose flour instead of the gluten-free flour blend?

No; gluten-free baking requires the specific combination of cornstarch, sorghum, and tapioca flours for proper texture and rise. All-purpose flour has different protein and starch content and will not perform the same way.

What if my frosting is too thick or too thin?

If too thick, gradually beat in additional milk 1 tablespoon at a time until spreadable. If too thin, refrigerate 15-20 minutes, then beat again. Avoid adding too much milk at once as it will separate the frosting.

Can I freeze this cake and how long will it keep?

Yes; freeze unfrosted cooled cake layers wrapped tightly up to 3 months. Frosted cake can freeze up to 1 month. Thaw at room temperature for 2-3 hours before serving. Unfrosted layers thaw faster, about 1 hour.