Made from scratch, this sourdough carrot cake is quick and easy, moist and delicious. Topped with a decadent cream cheese frosting, it’s easily one of our favorite cakes.

one slice of sourdough carrot cake on a blue decorative plate with the full cake on a white cake plate in the background.

A classic for a reason, homemade carrot cake whips up easily with pantry staples. Adding sourdough gives a subtle tang and a tender, moist texture, which works happily with the fun pops of pecan pieces and the soft chew of grated carrot. Let the cake cool on a wire rack while you mix up a rich, fluffy cream cheese frosting

Now, while we love homemade vanilla buttercream (especially spread between these sourdough oatmeal cream pies!), the blend of cream cheese and butter in this zesty frosting delivers cozy, savory hints that leave this cake irresistible.

Maintaining a sourdough starter leaves you with extra sourdough starter called discard, a fully fermented byproduct that works well in loads of recipes. Aside from this sourdough carrot cake, some of our other favorite sourdough discard recipes are granola barsmonster cookieseasy sourdough pancakeshamburger buns, and soft pretzels. For more ideas, scroll through these lists of 15+ healthy sourdough recipes20+ discard breakfast recipes, and 20+ discard desserts

Why You’ll Love This Recipe   

Delicious dessert – Made with sourdough starter, brown sugar, crunchy pecans, fresh carrots, and warm spices, this moist carrot cake is spiced just right and smothered with thick cream cheese frosting.

Simple classic – This sourdough carrot cake recipe utilizes simple ingredients and sourdough starter for a well-loved, easy-to-make classic.

Long-ferment optional – If you prefer a long-fermented batter for easier digestion and more bioavailable nutrients, start by mixing the oil, sourdough starter, and flour. Once combined, cover the bowl and let it rest at room temperature overnight. This time allows the natural yeast and bacteria to break down carbohydrates and proteins in the batter. Not only is it easier to digest, but the sourdough enhances the flavor the longer it ferments.

Ingredients

single ingredients in glass bowls on the countertop to make a carrot cake.

Carrots – I used three large carrots, peeled and freshly grated.

Pecans  Chopped pecans keep the texture more uniform and sliceable. Toasting the pecans adds more flavor and better crunch than keeping them raw.

Sourdough starter – Either an active starter or discard works fine. Active provides a milder flavor, and discard tastes more deeply sour. Are you new to sourdough? Get started by learning how to make your own sourdough starter, how to maintain and feed it, and how to use it.

Vanilla extract – I love to make my own vanilla extract because it’s both economical and super flavorful.

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!

Tools You May Need

Stand mixer – Not required, but it makes mixing the batter super easy.

Box grater – A box grater or food processor shreds the carrots small enough to suit the cake. Pre-shredded carrots from the store are too thick.

Recipe Modifications and Variations

  • Swap out the pecans for chopped walnuts, pistachios, or sliced almonds.
  • Add orange or lemon zest for a brighter take. 
  • Add raisins, dried cranberries, or coconut flakes.
  • Make a one layer cake using a 9×13 baking dish instead of two round cake pans. Adjust bake time to 40 to 50 minutes. 
  • Turn it into a trifle. Break up the cake and place it into a trifle dish, layering the cake with frosting. 
  • Make sourdough carrot cake cupcakes using lined muffin tins and bake for 18 to 22 minutes or until a toothpick comes out clean.

How to Make Sourdough Carrot Cake

two round cake pans that are lined with parchment paper on a marble countertop.

Step 1: Preheat oven to 350 degrees Fahrenheit. Grease two 9 inch round cake pans or line them with parchment paper. Grate carrots and chop pecans. For easy grating, I suggest using a food processor with a grating attachment. A box grater works well, too.

eggs, sugar, vanilla, and sourdough starter in a glass bowl with a metal whisk.

Step 2: In a large bowl, whisk together the eggs, oil, white sugar, brown sugar, sourdough starter, and vanilla.

dry ingredients to bake a cake whisked together in a glass bowl.

Step 3: In a separate bowl, stir the flour, baking powder, baking soda, salt, and cinnamon. 

dry and wet cake ingredients mixed together with pecans and shredded carrots on top of the batter.

Step 4: Add the dry ingredients to the wet ingredients, mixing until just incorporated. Fold in the carrots and pecans.

sourdough carrot cake batter poured into two 9" round cake pans.

Step 5: Pour the batter into the prepared cake pans, spreading it evenly. Bake in the preheated oven for 25 to 35 minutes or until a toothpick comes out clean. If using a 9×13 baking dish, adjust time to 40 to 50 minutes.

two round cakes on a metal rack to cool.

Step 6: Allow the cake to cool while you prepare the frosting.

cream cheese frosting whipped together in a stand mixer.

Step 7: Add softened cream cheese and butter to a stand mixer bowl. Whip for a few minutes until creamy and smooth. Adjust the speed to low and slowly add in confectioners’ sugar and vanilla. Increase the speed to medium-high and whip until fluffy. Fold in pecans or other mix-ins of choice.

a frosted carrot cake on a white cake plate topped with chopped pecans.

Step 8: Frost the cake generously once it is fully cooled.

Long Fermented Sourdough Carrot Cake

Step 1: The day before baking, add oil, sourdough starter, and flour to a mixing bowl. Stir to combine. Cover and allow to ferment for 8 to 12 hours at room temperature.

Step 2: The next day, preheat oven to 350 degrees Fahrenheit. Grease two 9 inch round cake pans or line them with parchment paper. Grate carrots and chop pecans. 

Step 3: Whisk eggs, white sugar, brown sugar, and vanilla. Stir into the fermented batter.

Step 4: Sprinkle the baking powder, baking soda, salt, and cinnamon over the batter and mix well.

Step 5: Fold in grated carrots and chopped pecans.

Step 6: Pour the batter into the prepared pans and bake for 25 to 35 minutes or until a toothpick comes out clean. If using a 9×13 baking dish, bake 40 to 50 minutes.

Step 7: Allow to cool completely while preparing the frosting. Frost the cake once fully cooled.

a slice of sourdough carrot cake on a blue dessert plate with the remaining cake in the background.

Tips

  • This cake can be made quickly or long fermented for more health benefits.
  • Grate carrots by hand for a better texture and flavor. Pre-shredded carrots from the store are too thick and dry to bake nicely in a cake.
  • Stir the batter gently, just until combined. You don’t want to overmix.
  • Active sourdough starter or sourdough discard works for this recipe, since the sourdough isn’t used for rising, but rather for flavor and fermentation.
  • Allow the cake to cool completely before frosting, or the frosting will melt.
  • Ensure the baking powder and baking soda are fresh. If they have been sitting in the back of the cabinet for a while and are past their prime, then the cake won’t rise properly.

Recipe FAQs

How should sourdough carrot cake be stored?

A cream cheese-frosted cake needs refrigeration to keep the cream cheese from turning. An unfrosted cake can remain at room temperature for a couple of days, or it can be stored in the fridge for up to a week. 

What does sourdough do for carrot cake recipes?

Sourdough reduces the gluten formation, producing a more tender crumb. It can also add depth of flavor to the cake with a mild sourdough tang that pairs well with the sweet and spice.

Can I use sourdough discard straight from the fridge?

Yes. As long as it has not been too long since feeding the starter, you can stir it up and use it in this recipe.

Why did my cake sink in the middle?

Underbaking your cake tends to be the most common reason for the middle of your cake sinking. Opening the oven too early to check the cake can also affect the rise, so just peek in with the light on if possible. Finally, be sure to check the freshness of your leaveners. Baking powder and baking soda need to be replaced about every 6 months or so once opened.

Can I make this cake ahead of time?

You can! You can either follow the long-fermented option and finish mixing the batter the following day, or you can bake the cake, leave it unfrosted, and keep it covered at room temperature until needed (1 to 2 days). Frost before serving.

More Delicious Cake 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 Carrot Cake

4.55 from 150 votes
Made from scratch, this sourdough carrot cake is quick and easy, moist and delicious. Topped with a decadent cream cheese frosting, it's easily one of our favorite cakes.
Prep: 10 minutes
Cook: 40 minutes
Total: 50 minutes
Servings: 12 slices
a slice of sourdough carrot cake iced with cream cheese frosting on a blue decorative plate.
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

Ingredients

Cake

  • 2 cups grated carrots, 3 large
  • 1 cup chopped pecans
  • 4 large eggs
  • ¾ cup oil, 168 grams
  • 1 cup white sugar, 192 grams
  • 1 cup brown sugar, 200 grams
  • ½ cup sourdough starter, 100 grams
  • 2 teaspoons vanilla, 10 grams
  • 2 cups all-purpose flour, 280 grams
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon salt, 5 grams
  • 2 teaspoons cinnamon, 5 grams

Frosting

  • 8 ounces full-fat cream cheese, softened
  • ½ cup butter, softened
  • 3 cups powdered sugar
  • 1 teaspoon vanilla
  • 1 cup chopped pecans

Instructions 

  • Preheat oven to 350 degrees Fahrenheit. Grease two 9 inch round cake pans or line them with parchment paper. Grate carrots and chop pecans. For easy grating, I suggest using a food processor with a grating attachment. A box grater works well, too.
  • In a large bowl, whisk together the eggs, oil, white sugar, brown sugar, sourdough starter, and vanilla.
  • In a separate bowl, stir the flour, baking powder, baking soda, salt, and cinnamon.
  • Add the dry ingredients to the wet ingredients, mixing until just incorporated. Fold in the carrots and pecans.
  • Pour the batter into the prepared cake pans, spreading it evenly. Bake in the preheated oven for 25 to 35 minutes or until a toothpick comes out clean. If using a 9×13 casserole dish, adjust time to 40 to 50 minutes.
  • Allow the cake to cool while you prepare the frosting. Add softened cream cheese and butter to a stand mixer bowl. Whip for a few minutes until creamy and smooth.
  • Adjust the speed to low and slowly add in confectioners’ sugar and vanilla. Increase the speed to medium-high and whip until fluffy. Fold in pecans or other mix-ins of choice.
  • Frost the cake generously once it is fully cooled.

Notes

This cake can be made quickly or long fermented for more health benefits. See long fermenting instructions in post above. 
Grate carrots by hand for a better texture and flavor. Pre-shredded carrots from the store are too thick and dry to bake nicely in a cake.
Stir the batter gently, just until combined. You don’t want to overmix.
Active sourdough starter or sourdough discard works for this recipe, since the sourdough isn’t used for rising, but rather for flavor and fermentation.
Allow the cake to cool completely before frosting, or the frosting will melt.
Ensure the baking powder and baking soda are fresh. If they have been sitting in the back of the cabinet for a while and are past their prime, then the cake won’t rise properly.

Nutrition

Serving: 1slice | Calories: 753kcal | Carbohydrates: 89g | Protein: 7g | Fat: 43g | Saturated Fat: 11g | Polyunsaturated Fat: 9g | Monounsaturated Fat: 21g | Trans Fat: 0.4g | Cholesterol: 94mg | Sodium: 518mg | Potassium: 241mg | Fiber: 3g | Sugar: 66g | Vitamin A: 4145IU | Vitamin C: 1mg | Calcium: 110mg | 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.55 from 150 votes (110 ratings without comment)

Leave a comment

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

Recipe Rating




166 Comments

  1. Morgan Gerald says:

    Hi Lisa!

    What ingredients do you add for the long ferment?

    1. Lisa Bass says:

      All of them!

  2. Mary says:

    This looks amazing! My husband’s favorite dessert.

  3. Sherise says:

    I followed the directions perfectly for this cake and used active sourdough starter. I used the long fermentation process and the cake smelled really good but the cake was in the oven for over an hour. The top of it burned and the cake concaved once I pulled it out. The entire cake on the inside was liquid…

    1. Lisa Bass says:

      It sounds like it may have over fermented and lost it’s ability to rise. That can happen during a long fermentation if it ferments too much.

  4. Jen says:

    5 stars
    Can I make this in two 9” cake pans instead of the 9 by 13?

    1. Lisa Bass says:

      Yes! You may have to adjust the cooking time accordingly though.

  5. Simone says:

    5 stars
    Could you please, please, please show the ingredients in grams? Of course I can do it myself but it would make all your recipes so much more doable to the rest of the world AND more precise: the recipe works the same every time.
    It would be so much appreciated.
    Thanks in advance from the NL 🌷

    1. Lisa Bass says:

      My newer recipes are all updated in grams. Here’s my conversion chart to make it easier on the older recipes.

  6. Sherry says:

    So easy to mix up! My family loved them!!

  7. Angie says:

    5 stars
    I used fresh milled spelt and soft white wheat berries for this recipe. Thank you for sharing – as it was a really humid day – I altered here and there and it came out perfect!

  8. Anonymous says:

    5 stars
    This is the best carrot cake! It is delicious and so moist.

    1. Lisa Bass says:

      Thanks for sharing!

    2. Jennifer Jacobs says:

      This cake is amazing, everyone always loves it! But every single time I bake it, it falls….any tips as to why?! My other cakes don’t fall like this! Thank you.

      1. Lisa Bass says:

        That’s interesting.Sometimes over mixing can actually cause your cake to fall in the middle. It gets too much air in the batter and then it collapses during the baking process.

  9. Lydia says:

    When long fermenting do you just follow instructions then allow to ferment then bake or only ferment certain ingredients?

    1. Lisa Bass says:

      Yes, I typically don’t ferment anything that has baking soda or baking powder in it. I add that the next day.

  10. Shelby Johnson says:

    Could I used flax eggs or applesauce to replace the egg? Thanks!

    1. Lisa Bass says:

      I have never tried it to know for sure.

      1. Shelby Johnson says:

        5 stars
        I swapped the eggs for one cup of applesauce and it turned out great! The texture is perfect and my kiddos both approved!

        1. Lisa Bass says:

          That is amazing to hear! So glad it worked.