Laura Fuentes

menu icon
go to homepage
  • Recipes
  • Eat Healthy
  • Quick Meals
  • Pancakes
  • About
  • Dinner
  • Pasta Night
  • Best Chicken Recipes
  • Meal Plans
  • Cookbooks
  • Contact
search icon
Homepage link
  • Recipes
  • Eat Healthy
  • Quick Meals
  • Pancakes
  • About
  • Dinner
  • Pasta Night
  • Best Chicken Recipes
  • Meal Plans
  • Cookbooks
  • Contact
×
Home » Recipes » Chocolate

Gluten, Egg, and Dairy Free Chocolate Cake

By Laura Fuentes Updated Sep 12, 2024

4.95 from 195 votes

Recipe

This post may contain affiliate links. Read our disclosure policy here.

Chocolate cake that is delicious, decadent, and so easy to make. It's also gluten, dairy, and egg-free, so whether you make it for a birthday party, special occasion, or well-deserved treat, everyone can enjoy a slice, or two!

Say hello to your new best friend for birthday parties, special occasions, or anytime you need a chocolate fix: this allergy-friendly chocolate cake! A gluten, egg, and dairy free-recipe that everyone can enjoy!

a slice of chocolate cake on a white plate.

There is no denying that special occasions call for a slice of chocolate cake (or cupcakes!) but when you need an allergy-friendly recipe, things can easily get complicated -or worse, not turn out the way you hoped.

How to Make Gluten-Free Dairy-Free Chocolate Cake

This allergy-friendly chocolate cake is to-die-for. It’s one of those recipes you can make for a party or gathering, and no one will guess that you just served up gluten and dairy-free dessert!

If allergy-friendly baking sounds intimidating, don’t worry! I’ll walk you through every step of the way in the recipe video below, and then you can print the instructions and follow along from your own kitchen!

Trust me, if you can mix cake batter you can make this recipe. It’s that easy. Check it with your own eyes in this video:

Can You Freeze Cake?

Of course, nobody bakes a cake the day of the party, so I’m sure you are wondering, can this allergy-friendly cake be frozen? The short answer is yes! You can bake the layers and freeze them, take the cake out of the freezer the day of the party, make the dairy-free frosting, and assemble it.

Want to save more time? Make the entire cake and freeze it, whole, and take it out the night of the party. If you have room in your freezer, then why not? Thawing out this cake does not affect its delicious texture and flavor, and you’ll save yourself a lot of time.

I know that making an allergy-friendly cake from scratch can seem overwhelming -where do you even find the ingredients? Well, for starters, you are probably using most of them already so know that they are often easy to swap for another brand. This recipe is not brand-specific.

For most people with severe food allergies, using a mix out of the box isn’t an option, so this version allows you to select your favorite gluten-free flour.

You’ll also find that the use of chocolate non-dairy milk gives this cake a moist, rich texture that will bring everyone back for seconds. You can find this dairy-free option in the refrigerated section of your grocery.

For more clean desserts that have no gluten or nuts and focus on clean sugars check out my latest cookbook, Clean Treats for Everyone.

Hold on, did I mention the frosting? We can’t forget about a homemade allergy-friendly frosting for this cake! Let’s just say it takes the cake… to the next level.

I recommend using vegetable shortening, to keep the frosting thick and easily spreadable. You might need to double the batch since half of it seems to disappear before I can even get the cake cooled for frosting.

So let’s look through a few recipe notes before you get started on making this chocolate cake:

  • Apple cider vinegar or white vinegar is essential since it will react with the baking soda and allow the cake to rise. If you hear a fizzing sound when you pour the milk/vinegar mixture into your dry ingredients, don’t be alarmed, this is good! It means it’s working! If you don’t hear fizzing, then it’s time to buy more baking soda
  • The batter will be quite runny but not liquid. It should still have a bit of volume to it.
  • Make sure to butter, grease, or line your cake pan with parchment paper so that you can lift it out after baking; it tends to stick a bit.
a chocolate cake on a plate from which a slice is taken

Ingredient Replacements

Through the years, I’ve gotten a lot of questions about possible ingredient swaps for this recipe. While the specific ingredients and measurements below are tried and true, I’m also sharing a couple of other options that can work if you simply must trade out an ingredient or two.

Sugar Replacements 

Stevia 
You cannot substitute the sugar for Stevia in this recipe as there would be a large volume difference to make up for. 

Coconut Sugar 
While I’ve not tested this recipe using coconut sugar, many of my readers have and report great results! 

Maple Syrup or Honey
Any liquid sweeteners will change the consistency of the batter and you’ll end up with a very different cake. I do not recommend using liquid sweeteners for this recipe.

Flour Replacements

Almond Flour
While I love baking with almond flour it is not the right choice for this recipe. The liquid measurements would need to change if using almond flour and I have not tested the needed changes. 

All-Purpose Flour 
I have not tested this with All-purpose flour and this recipe was specifically created for gluten-free mixes. If hoping to use an all-purpose flour you would need a smaller amount of flour than listed below and could eliminate the xanthan gum. 

Non-Dairy Milk Options 

I used non-dairy milk, in this recipe but you can use rice milk, almond milk or coconut milk depending on what you have and what your family prefers.

Xanthan Gum

Xanthan Gum is a must-have for this recipe and for all gluten-free baking recipes. X-gum is what binds your flours together when there is no gluten in the recipe. This recipe won’t work without X-gum. 

Be sure to double-check the flour you are using that it’s not already included in the mix. Some Gluten-Free Flour mixes already include xantham gum, and you wouldn’t need to add additional x-gum if your flour mix includes it. 

Other Pan Sizes 

Cupcakes 
If using a cupcake pan adjust the cooking time to 18-22 minutes and check around minute 16. 

13 x 9-inch pan 
You can use a rectangle pan for this cake recipe but keep a close eye on the baking time as it will vary by a few minutes from the original recipe cooking time below. 

a slice of chocolate cake on a white plate.

More Gluten and Dairy Free Desserts

Want a fluffy Paleo Chocolate Cake version? This recipe is it. Made with coconut and almond flour, this recipe can also be frosted to celebrate any day! For a guilt-free snack, check out how these Healthy No-Bake Blondies are made.

If you crave pancakes, these Paleo Pancakes with Cassava Flour are fluffly, delicious, and easy to make. They will turn breakfast into your favorite meal of the day!

Gluten-, Egg-, and Dairy-Free Chocolate Cake

large slice of chocolate cake
Servings: 2 layer 9-inch cake, 12 slices
Prep Time: 15 minutes mins
Cook Time: 25 minutes mins
Chocolate cake that is delicious, decadent, and so easy to make. It’s also gluten, dairy, and egg-free, so whether you make it for a birthday party, special occasion, or well-deserved treat, everyone can enjoy a slice, or two!
4.95 from 195 votes
Print Pin

Ingredients

  • 3 cups gluten-free all-purpose flour
  • 1 ¾ cups granulated sugar
  • 6 tablespoons unsweetened cocoa powder
  • 2 teaspoons baking soda
  • 2 teaspoons xanthan gum* if using
  • 1 teaspoon salt
  • 2 cups chocolate non-dairy milk
  • ½ cup vegetable oil
  • 2 tablespoons apple cider vinegar
  • 1 teaspoon vanilla

Instructions

  • Preheat the oven to 350F. Coat 2 9-inch cake pans with cooking spray and set aside.
  • In a large bowl, combine the flour, sugar, cocoa powder, baking soda, xanthan gum (if using), and salt.
  • In a medium bowl, combine the milk, oil, vinegar, and vanilla.
  • Pour the wet ingredients into the dry ingredients. Stir until smooth, scraping the bottom and sides of the bowl.
  • Pour into greased cake pans and place in the preheated oven.
  • Bake for 25 to 30 minutes, or until a toothpick inserted into the center comes out clean.
  • Remove from the oven and transfer the cakes to a wire rack to cool completely.
  • While the cakes are cooling, make the frosting.
  • Frost the cake by placing one base layer on your plate or cake stand, spreading about a cup of frosting on top, top it with another cake layer, and spread remaining chocolate frosting over the top and sides. 

Notes

For a 3-tiered cake, you’ll need to fill 3, 6-inch cake pans with batter.
Nutritional information does not include frosting.

Equipment

Clean Treats
Clean Treats Cookbook
Gluten Free All Purpose Flour
Cocoa Powder

Nutrition

Serving: 1slice | Calories: 337kcal | Carbohydrates: 61.3g | Protein: 2.8g | Fat: 10g | Saturated Fat: 7.6g | Sodium: 434.5mg | Fiber: 2g | Sugar: 29.2g

More Chocolate

  • two smores stacked and held in front of an air fryer
    2-Minute Air Fryer S’mores
  • three small bowls with chocolate avocado mousse topped with whipped cream
    Chocolate Avocado Mousse
  • oatmeal brownies cut into squares
    Oatmeal Breakfast Brownies
  • hot chocolate charcuterie board of toppings and cookies
    Hot Chocolate Charcuterie Board

Comments

    4.95 from 195 votes (61 ratings without comment)

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Recipe Rating




  1. Rebekah says

    April 29, 2022 at 9:05 pm

    5 stars
    My cakes are currently in the oven, but my batter is very thick, to where I had to press it into the bowl. I followed the recipe exactly. Do you have any thoughts?

    Reply
    • Laura says

      May 02, 2022 at 4:51 pm

      I’m not sure, how did the baked cakes turn out?

      Reply
    • Mary says

      July 30, 2022 at 12:07 am

      4 stars
      Same happened to me and resulted as a gum cake. Not good. I think there is too much xanthan gum suggested in the recipe

      Reply
    • Elizabeth says

      January 15, 2023 at 10:53 am

      5 stars
      This happened to me, too! I followed the recipe exactly- my GF flour blend already had xanthum so I didn’t add any extra. My cake batter is so thick I am having to scoop it out of the bowl and press into the pans!!!
      How did yours taste?

      Reply
    • Emma says

      January 15, 2023 at 4:16 pm

      5 stars
      Hi I had this same problem, I accidentally added doubled the amount of xanthum gum because it was also in the flour. Is there any way to fix this?

      Reply
      • Laura says

        January 17, 2023 at 3:31 pm

        Hi, unfortunately, there is no way to fix this. You could always go ahead and bake the batter to see how it turns out.

        Reply
      • Teresa B says

        October 16, 2023 at 5:18 pm

        5 stars
        Has anybody made this as a sugar free version?

        Reply
        • Laura Fuentes says

          October 28, 2023 at 11:08 am

          Yes, with granulated sugar alternatives such as Swerve brand which perform like sugar.

          Reply
  2. Phil says

    March 24, 2022 at 9:00 pm

    5 stars
    Best chocolate cake ever! I used a little less sugar than the recipe required and it was perfect. I also used regular lactaid instead of chocolate lactaid so I added extra cocoa powder. I was so surprised that it rose the way it did!

    Reply
    • emily says

      April 28, 2022 at 4:46 pm

      5 stars
      what brand/kind of chocolate free milk did u use? i know lactacid and silk carries chocolate milk.

      Reply
      • Laura says

        May 02, 2022 at 4:48 pm

        I used silk dairy-free chocolate milk.

        Reply
      • Bonnie says

        September 22, 2025 at 2:49 pm

        5 stars
        It worked so well with oat milk.

        Reply
  3. Erica F says

    February 05, 2022 at 1:46 pm

    5 stars
    I have a few questions:
    1.) Can you use regular milk in this recipe?
    2.) Can you use plain, unsweetened, non-dairy milks that are not chocolate?
    3.) What is the bake time if you are using 6″ cake pans?
    4.) If you are only making 2, 6″ layers can you reduce the recipe by 1/3?

    Reply
    • Laura says

      February 09, 2022 at 1:28 pm

      Hi Erica, you can make this with any milk. I don’t recommend omitting the chocolate milk since it helps sweeten the batter and make it more chocolatey. As far as bake time goes, keep an eye on it around the 25-minute mark. Once a toothpick or knife inserted in the center comes out with a few moist crumbs, it’s ready. Go ahead and make the full recipe, changing the ingredient measurements could result in the cake not turning out. You might just have an extra layer of cake, and that’s a good thing!

      Reply
    • JUDYTH says

      June 02, 2022 at 2:30 am

      5 stars
      Does the recipe refer to American Cups – or Canadian,? Could you give weight in grams please?

      Reply
  4. Michelle Mattingly says

    January 18, 2022 at 11:18 am

    5 stars
    I made this over the weekend and it was a hit, the comments were the same “would have never known it was allergy free”. It was perfect. My son in law is gluten free, my daughter in law is dairy free and my grand daughter is very allergic to peanuts. I made it with plant based chocolate milk I found at Target and chose that instead of almond milk to keep it totally nut free.
    I will certainly be making this over and over.

    Reply
    • Mary says

      July 30, 2022 at 12:09 am

      5 stars
      Did you use xanthan gum. I do real y wanted to doit for me and used xanthan gum resulted in an elastic cake even though I did follow strictly the recipe. Any thoughts?

      Reply
      • Petra says

        October 12, 2022 at 5:25 pm

        5 stars
        Did the flour you use have Xanthan-gum in it already?
        Or, It might have been a particular type of Gluten-free flour

        Reply
  5. Cary says

    January 07, 2022 at 12:50 pm

    5 stars
    I just made the cake & frosting. I am planning on serving it tomorrow. Do I store in refrigerator or on my kitchen counter.
    Thanks,
    Cary
    PS I tasted the frosting, it is delicious!! Can’t wait to try the finished cake

    Reply
    • Laura says

      January 07, 2022 at 4:09 pm

      You can store a frosted cake in a cake stand on the counter. If it’s unfrosted, I advise wrapping the cake layers with plastic wrap and storing them in a large airtight container at room temperature.

      Reply
« Older Comments
Newer Comments »
Laura fuentes holding a skillet of food standing in front of a blue door

Hi! I'm Laura.
Known for the internet’s favorite pancake recipes and real-life dinners that make weeknights easier. These are the meals my family loves, and yours will too!

More about me →

Always See My Recipes In Google

Fresh Favorites

  • stack of homemade fluffy pancakes from scratch stacked on a plate, topped with a pat of butter, and pancake syrup over the top
    Best Fluffy Pancakes Recipe
  • a bowl of watermelon feta salad
    Fresh Watermelon Feta & Mint Salad
  • Creamy balsamic vinaigrette drizzling from a spoon into a glass jar with a fresh salad in the background.
    The Best Balsamic Vinaigrette Dressing
  • baked cajun salmon
    Baked Cajun Salmon

Trending Now

  • stack of protein pancakes on a plate, topped with sliced strawberries and a drizzle of syrup
    Protein Pancakes with Protein Powder
  • copycat canes nuggets and fries with texas toast and two sauces
    Copycat Cane’s Chicken Recipe with Homemade Cane’s Sauce
  • large plate of freshly baked mixed chicken pieces
    Juicy Baked Chicken Pieces
  • creamy garlic sauce in a large pot with pepper on top
    Creamy Garlic Sauce

Footer

Browse

  • Start Here
  • Eat Healthy in 30 Days
  • Recipe Index

Useful Links

  • Contact
  • Permissions
  • Terms & Conditions
  • Privacy Policy
Facebook Pinterest Instagram YouTube

COPYRIGHT © 2026 LAURA FUENTES · DESIGN BY FUENTES MEDIA

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required

Recipe Ratings without Comment

Something went wrong. Please try again.