This sourdough chocolate cake recipe is rich, delicious, healthier, and a more nutritious take on your classic dessert. Start the night before to ferment the grains, develop the flavors, and make the cake easier to digest. 

A slice of chocolate cake on a plate with a fork slicing through.

I’m a big fan of all things cake. Sourdough pumpkin coffee cakesourdough lemon cakegingerbread cake with einkorn floursourdough carrot cake and this sourdough chocolate cake recipe are some of our favorites to make for a special occasion (or any day of the week really). This chocolate sourdough cake is lightfluffy, and boasts my favorite sourdough tang, it has an amazing depth of flavor. Layers of tender chocolate cake smothered with chocolate buttercream frosting is just what dreams are made of if you ask me! 

Plus, if you choose to long ferment this recipe, you can enjoy a slice of the best chocolate cake knowing that it is easier to digest and better for you, while also being extremely delicious. It’s a win-win!

Why You’ll Love This Recipe

Chocolate flavor – Chocolate lovers rejoice! This chocolatey, fluffy, layer cake with chocolate frosting will have your family asking you to make this recipe over and over again.

Healthier cake – Start this recipe the night before (or even up to 24 hours before) to allow it to ferment. Starting the night before removes a few steps the next day, making it easier to whip together, and making it easier to digest than traditional cake.

Special occasions – This rich chocolate cake is the perfect cake for a birthday, holiday, or even just a weekend.

Ingredients

Ingredients for chocolate cake laid out on the counter.

Coconut oil: You could also substitute with another oil like avocado. I would avoid using vegetable oil as it is inflammatory and highly processed.

Sourdough starter – Discard sourdough starter or active sourdough starter will work.

Sugar – You can opt to use Sucanat or rapadura for a healthier option than sugar. 

Vanilla extract: Homemade vanilla extract is so easy to make and adds an elevated flavor to baked goods. Learn how to make homemade vanilla extract in this post.

Salted butter: If you only have unsalted butter available, you may want to add a dash of salt to the frosting to bring out all the flavors.

A full ingredient list with exact amounts can be found in the recipe card below.

Want to save this recipe?
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

How to Make Sourdough Chocolate Cake 

Sourdough starter mixed with other ingredients in a bowl.

Step 1: In a bowl, mix together flour, coconut oil, sourdough starter, and water. Cover and allow to sit overnight or up to 24 hours (optional).

Dry ingredients for chocolate cake whisked together in a bowl.

Step 2: In a large mixing bowl, mix together granulated sugar, salt, and finely ground coffee.

Wet ingredients mixed together for sourdough chocolate cake with a whisk sticking out of bowl.

Step 3: To the dry ingredients, add eggs, vanilla, cocoa powder, and whole milk.

Chocolate cake batter in a bowl with a whisk.

Step 4: Next, add the sourdough mixture into the rest of the ingredients. Whisk to incorporate until smooth.

Lastly, add baking soda and incorporate well.

Chocolate cake batter in a 9 inch cake pan.

Step 5: Preheat the oven to 350º F. Prepare two, 9-inch cake pans with butter.

Divide cake batter evenly between the two prepared cake pans.

Bake for 30-35 minutes, until a toothpick inserted comes out clean.

Remove from the oven. Allow to cool for about 10 minutes, then remove from the pan, place on a cooling rack, and let the cake cool completely before frosting.

Butter whipped in a bowl.

Step 6: In a stand mixer bowl with whisk attachment (or a large bowl with a hand mixer), add the softened butter.

Beat the butter on high speed for a few minutes until it becomes light and fluffy.

Cocoa and sugar added to whipped butter in a bowl.

Step 7: Turn the mixer down to low speed and slowly add in the cocoa powder and powdered sugar until it is incorporated.

Chocolate frosting mixed in a bowl with a hand mixer next to it.

Step 8: Add vanilla and 3 tablespoons of cream.

Once the ingredients are incorporated well, turn the speed back up to medium and whip until light and fluffy. Add remaining cream if the frosting seems too stiff.

Chocolate cake frosted between layers.

Step 9: Frost cake.

Tips 

  • Ferment this recipe overnight to increase the nutritional value of the grains and make them more digestible. If you are in a pinch for time, skip the fermentation and use sourdough discard to easily turn it into a sourdough discard chocolate cake.
  • You can use active sourdough starter or sourdough discard. It is a great way to use all that extra sourdough starter you may have on hand. Learn how to create your own sourdough starter here.
  • Add finely ground coffee to give this a deeper and richer chocolate flavor. Coffee and chocolate go together perfectly in baked goods
A whole cake with one slice missing and on a plate next to it.

Recipe FAQs

What does sourdough do to cake?

Not only does it add a slight tangy flavor to the cake, but it also helps break down the gluten in the cake. This helps it be more tender rather than tough and chewy. If you ferment the grains with the starter it helps break down the phytic acid which makes the nutrients in the grains more absorbable.

What is unfed sourdough discard?

It is sourdough starter that has not been fed in over 12 hours. When you feed a sourdough starter it gets nice and active, plus it should double in size. 

Once the yeasts in the starter have fed off the new flour and water, the bubbles release, and it will then come back down (the process takes about 12 hours). This is then considered unfed sourdough stater. Normally, you toss half of the starter (or use it in a discard recipe). What you get rid of would be considered unfed sourdough discard.

Is sourdough hard to bake?

This depends on the recipe. Some recipes like sourdough bread can be more challenging, while others like this sourdough cake recipe are much easier. 

I love this type of recipe because you mix a portion of it the night before and then finish the recipe the next day. It does take some planning ahead (although you could just whip it up and forgo the fermentation), but it is worth it.

How long does chocolate cake stay fresh in the fridge?

Frosted cakes (with dairy) should be stored with a cake cover in the refrigerator up to 5 days. You don’t want to keep it in an airtight container as the cake can absorb the frosting.

Frosted cakes without dairy can be kept at room temperature covered.

Freeze unfrosted leftover cake in an airtight container with a piece of parchment paper between layers to prevent sticking for up to 6 months. Allow to thaw at room temperature for 6-12 hours before frosting and serving.

Freeze frosted cakes in an airtight container for up to 3 months. Be aware that frosted cakes may not looks as pretty after they come out of the freezer.

More Dessert Recipes from the Farmhouse

If you try this recipe and love it, I would love it if you could come back and give it 5 stars! Tag me on Instagram @farmhouseonboone.

Sourdough Chocolate Cake

4.59 from 300 votes
Rich, delicious, sourdough chocolate cake is a healthier, more nutritious take on your classic dessert.

Prep: 20 minutes
Cook: 35 minutes
Additional Time: 12 hours
Total: 12 hours 55 minutes
Servings: 12
A slice of chocolate cake on a plate with a fork slicing through.
Save this recipe!
Just enter your email and get it sent to your inbox! Plus you’ll get new recipes from us every week!

Equipment

  • 2 9 Inch Cake Pans

Ingredients

  • 2 cups flour
  • 1/2 cup coconut oil
  • 1/2 cup sourdough starter, discard or active starter
  • 1 cup water
  • 2 large eggs
  • 2 cups granulated sugar
  • 1 teaspoon salt
  • 1 teaspoon finely ground coffee, optional
  • 2 teaspoons vanilla
  • 3/4 cup cocoa
  • 1 cups whole milk
  • 2 teaspoons baking soda

Chocolate Buttercream Frosting

  • 1 cup salted butter, softened
  • 3 cups powdered sugar
  • 2 teaspoons vanilla
  • 1/2 cup cocoa powder
  • 3-4 tablespoons heavy cream

Instructions 

  • In a bowl, mix together flour, coconut oil, sourdough starter, and water. Cover and allow to sit overnight or up to 24 hours. (Optional)
  • In a large bowl, mix together sugar, salt, and finely ground coffee (optional).
  • To the dry ingredients, add eggs, vanilla, cocoa powder, and whole milk.
  • Next, add the sourdough mixture into the rest of the ingredients. Whisk to incorporate until smooth.
  • Lastly, add baking soda and incorporate well.
  • Preheat the oven to 350º F.
  • Prepare two, 9-inch cake pans with butter.
  • Divide cake batter evenly between the two prepared cake pans.
  • Bake for 30-35 minutes, until a toothpick inserted comes out clean.
  • Remove from the oven. Allow to cool for about 10 minutes, then remove from the pan and allow to cool completely before frosting.

Create the frosting:

  • In a stand mixer bowl with whisk attatchment (or a large bowl with a hand mixer), add the softened butter.
  • Beat the butter on high speed for a few minutes until it becomes light and fluffy.
  • Turn the mixer down to low speed and slowly add in the cocoa powder and powder sugar until it is incorporated.
  • Add vanilla and 3 tablespoons of cream.
  • Once the ingredients are incorporated well, turn the spead back up to medium and whip until light and fluffy. Add remaining cream if the frosting seems too stiff.
  • Frost cake.

Notes

  • Ferment this recipe overnight to increase the nutritional value of the grains and make them more digestible. If you are in a pinch for time, skip the fermentation and use sourdough discard.
  • You could also substitute with another oil like avocado. I would avoid using vegetable oil as it is inflammatory and highly processed.
  • You can use active sourdough starter or sourdough discard. It is a great way to use all that extra sourdough starter you may have on hand. Learn how to create your own sourdough starter here.
  • You can opt to use Sucanat or rapadura for a healthier option than sugar. 
  • Add finely ground coffee to give this a deeper and richer chocolate flavor. Coffee and chocolate go together perfectly in baked goods.
  • Homemade vanilla extract is so easy to make and adds an elevated flavor to baked goods. Learn how to make homemade vanilla extract in this post.
  • If you only have unsalted butter available, you may want to add a dash of salt to the frosting to bring out all the flavors.

Nutrition

Serving: 1g | Calories: 603kcal | Carbohydrates: 88g | Protein: 6g | Fat: 29g | Saturated Fat: 19g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 6g | Trans Fat: 1g | Cholesterol: 78mg | Sodium: 523mg | Potassium: 215mg | Fiber: 4g | Sugar: 64g | Vitamin A: 606IU | Vitamin C: 0.02mg | Calcium: 53mg | Iron: 2mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this? Leave a comment below!

Sharing is caring!

4.59 from 300 votes (207 ratings without comment)

Leave a comment

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

Recipe Rating




400 Comments

  1. Baker says:

    1 star
    Was not fan of this recipe. Did not have a lot of flavor and the icing did not taste like a true buttercream!

    1. Lisa Bass says:

      I am sorry you did not enjoy this recipe!

  2. Jacky Smith says:

    5 stars
    I followed the recipe and definitely added the espresso, which gives this cake a lot of depth in flavor! I made this for my family for Valentine’s Day and everyone devoured it! The frosting for this recipe will be my “go to” for all of my cake recipes from her on out.

    Thank you Lisa 🙂

  3. Carol says:

    5 stars
    I wanted to give this recipe a five because it looks so amazing. I struggled to get the starter mix to blend in with the flower. I finally ended up throwing it in my stand mixer and mixing for about 30 seconds. I’m wondering if that was too much for the cake batter because when it was baked, it sunk in the middle. I baked it in a 9 x 13“ pan for about 33 minutes. It was definitely done. It looks like it will taste amazing! And it smells wonderful! I tried to fill in the middle with lots of frosting so we’ll see. I’m serving it at my book club tonight. I’ll check back in tomorrow.

    1. Carol says:

      5 stars
      Update- I served the cake at my bookclub and the ladies all agreed it was the best cake they ever had. We all ate two pieces! Thanks for this amazing recipe!

  4. Kat says:

    2 stars
    I bake a lot and this didn’t work out for me. I used discard and followed the instructions but I don’t think the discard should have been mixed in with the flour separately. It added another step and when I tried to mix in the flour/discard mixture at the end I couldn’t get it to combine well. I was left with pea sized clumps of flour on the bottom of the cake after already over-mixing with my whisk.

    I used a different cream cheese frosting recipe so I can’t comment on that part.

  5. Rochelle says:

    Hi! I was going to mix this today so I can bake tomorrow for a girls night. However, I am all out of AP flour and all I have is bread flour andddd we are currently snowed in until tomorrow. Could I still use that? Or should I just wait and skip long fermentation?

    1. Lisa Bass says:

      Yes. Bread flour will work.

  6. Jen says:

    4 stars
    Not sure where I went wrong, I used an active starter and did the overnight ferment. Followed everything to a tee but came out super dense and chewy. Think it may have been my starter?

    1. Lisa Bass says:

      That could be part of the reason. It could also not have been cooked for long enough, if your starter was active.

  7. Danielle says:

    5 stars
    So good! Not overly sweet. Used soft white fresh milled flour, 2 cups.

  8. Sally Laliberte says:

    5 stars
    Excellent flavor! I’m wondering if I can just put the baking soda with the other dry ingredients?
    Is there a specific reason it has to go last and will it affect the bank at all? Thank you.

  9. Kelly Ebejer says:

    5 stars
    This was the best chocolate cake I have ever had! I made it dairy free. Perfect! Has anyone made this in a bunt pan? I made two rounds last time. I was hoping to make it in a bunt pan and pour ganache over it this time.

    1. Lisa Bass says:

      Yes, you can!

  10. Cheri Bischel says:

    Do you leave it to ferment on the counter or in the fridge?

    1. Lisa Bass says:

      The counter!