Go Back
Slice of Gluten-Free Chocolate Cake on a Plate.

The BEST Gluten-Free Chocolate Cake

Easy Gluten-Free Chocolate Cake. This rich and moist cake is perfect for birthdays. Dairy-Free Option Included.

Prep Time 15 minutes
Cook Time 30 minutes
Servings 12 slices


Gluten-Free Chocolate Cake

  • 1 ¾ cups Bob’s Red Mill 1:1 Gluten-Free Baking Flour, see note (9 ounces; 255 grams)
  • 1 ¾ cups granulated sugar (12 ½ ounce; 354 grams)
  • 1 cup natural cocoa powder (3 ounces; 85 grams)
  • 2 teaspoons baking powder
  • 1 teaspoon salt
  • ½ teaspoons baking soda
  • 1 cup milk or coffee (8 ounces; 226 grams)
  • ½ cup vegetable oil (3 ½ ounces; 100 grams)
  • 3 large eggs (about 6 ounces; 170 grams out of shell)

Chocolate Buttercream

  • 4 cups powdered sugar (16 ounces; 453 grams)
  • ½ cup natural cocoa powder (1 ½ ounces; 42 grams)
  • 1 cup butter, softened (8 ounces; 226 grams)
  • 4 tablespoons milk, divided (2 ounces; 56 grams)
  • ½ teaspoon salt


For the Gluten-Free Chocolate Cake

  1. Preheat oven to 350 degrees F.

  2. Prepare your pan(s). Lightly grease: two 8" round cake pans OR one 9", x 13" pan with nonstick cooking spray OR line 24 standard cups with paper liners.

  3. Whisk together gluten-free flour, sugar, cocoa powder, baking powder, baking soda, and salt in a large bowl. Add milk, vegetable oil, and eggs. Whisk batter until smooth.

  4. Divide batter evenly between the two 8-inch prepared round cake pans OR spread evenly into 9 x13-inch pan OR fill muffin cups about ⅔ full.

  5. Bake until a cake tester inserted into the center of the cakes comes out clean.

    For 8-inch round cakes: about 30 minutes.

    For 9x13-inch pan: about 40 minutes.

    For cupcakes: about 22 minutes.

  6. Allow cakes to cool in the pan for 10 minutes. Remove cake from the pan and place on a wire rack to cool.

  7. When cool, frost with chocolate frosting. Wrap cake and store at room temperature for up to three days.

For the Chocolate Frosting

  1. Cream butter until light and fluffy. Add powdered sugar, cocoa powder, salt, and milk. Mix on low speed for about 30 seconds. Increase mixer speed to medium-high.

    Beat frosting until fluffy and smooth. If frosting seems too thick, add the additional tablespoon milk. 

Recipe Notes

Gluten-Free Flour

If using a flour blend that does not contain xanthan or guar gum, add 1 teaspoon xanthan gum to the batter. Add the xanthan gum to the gluten-free flour. Whisk. And then follow the recipe as written.