Best Sourdough Carrot Cake With Cream Cheese Frosting Recipe

Published Categorized as Sourdough Bread Recipes

Last updated on June 24th, 2026

I never thought I’d see the day when one of my all-time favorite cakes has now become a part of the sourdough family! Carrot cake has a special place in my heart – and stomach! So imagine my excitement when I tried, tested, and ate my very first sourdough carrot cake. And you can too! Stay put for the best sourdough carrot cake recipe!

Best sourdough carrot cake with cream cheese frosting recipe

What We’re Making Today

This is a moist, spiced carrot cake made with sourdough starter (discard or active), topped with a fluffy cream cheese frosting.

Why sourdough? Because it adds a mild tang that plays really nicely against the sweetness of the brown sugar and carrots.

You’ll find the full recipe in my blog post today, plus recipe tips and vegan and gluten-free swaps!

Print
clockclock iconcutlerycutlery iconflagflag iconfolderfolder iconinstagraminstagram iconpinterestpinterest iconfacebookfacebook iconprintprint iconsquaressquares iconheartheart iconheart solidheart solid icon
Best sourdough carrot cake with cream cheese frosting recipe

Best Sourdough Carrot Cake With Cream Cheese Recipe

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

A moist, spiced carrot cake with a subtle sourdough tang, topped with fluffy cream cheese frosting and chopped pecans.

  • Total Time: 1 hour 10 minutes (plus 1 hour cooling)
  • Yield: 1 cake (approx 12 slices) 1x

Ingredients

Scale

Cake 

  • 4 large eggs
  • 1 cup neutral oil (vegetable, avocado, or coconut)
  • 1 cup white sugar
  • 1 cup brown sugar
  • 1/2 cup sourdough discard
  • 2 tsp vanilla extract
  • 2 cups all-purpose flour
  • 2 tsp baking soda
  • 1 tsp baking powder
  • 1 tsp salt
  • 2 tsp ground cinnamon
  • 2 cups freshly grated carrots
  • 1 cup chopped pecans

Cream Cheese Frosting 

  • 8 oz cream cheese, softened
  • 1/2 cup butter, softened
  • 3 cups confectioner’s sugar, sifted
  • 1 tsp vanilla extract
  • 1 cup chopped pecans or walnuts (optional)

Instructions

  1. Preheat oven to 350°F. Grease or line a 9×13 inch baking pan.
  2. Grate carrots and chop pecans.
  3. Whisk together eggs, oil, white sugar, brown sugar, sourdough discard, and vanilla in a large bowl.
  4. In a separate bowl, whisk together flour, baking soda, baking powder, salt, and cinnamon.
  5. Add dry ingredients to wet and mix until just combined. Do not overmix.
  6. Stir in carrots, then fold in pecans.
  7. Pour into prepared pan and bake 45 to 55 minutes, until a toothpick comes out clean.
  8. Cool completely in the pan, at least 1 hour.
  9. Beat cream cheese and butter until smooth. Add sugar and vanilla and whip until fluffy. Fold in pecans.
  10. Spread frosting over cooled cake and serve.

Notes

  • Grate your carrots fresh. Pre-shredded store carrots are too dry and thick to release enough moisture into the batter.
  • Mix only until the flour disappears. Overmixing develops gluten and makes the crumb dense.
  • Don’t skip either leavening agent. The sourdough starter doesn’t contribute to the rise, so you need both baking soda and baking powder for a good lift.
  • Take the cream cheese and butter out of the fridge at least an hour before making the frosting so they whip smoothly without lumps.
  • Let the cake cool fully before frosting. Even a slightly warm cake will cause the frosting to melt.
  • For a stronger sourdough flavor, use an active starter instead of discard and let the wet ingredients rest with the starter for 8 to 12 hours before finishing the batter.
  • Author: Natasha Krajnc
  • Prep Time: 15 mins
  • Cook Time: 45-55 mins
  • Category: Dessert
  • Cuisine: European

Nutrition

  • Calories: 589 kcal
  • Fat: 35 g
  • Saturated Fat: 9 g
  • Carbohydrates: 66 g
  • Protein: 6 g

What Makes This Carrot Cake Different?

Carrot cake is already one of those bakes that’s hard to say no to (at least it is or me). Add sourdough to it, and you get something even better.

The starter brings a subtle tartness that rounds out the sweetness. The whole thing tastes more interesting without being overwhelming.

One thing worth knowing upfront: the sourdough starter isn’t what makes this cake rise. That job still belongs to the baking soda and baking powder. The starter is here purely for flavor, which means you can use either discard or an active starter depending on what you have on hand.

So you can enjoy a sweet, tart, and exceptionally moist carrot cake for tea!

What Kind of Sourdough Starter to Use For This Carrot Cake?

The great thing about this sourdough carrot cake recipe is that you can either use a sourdough discard or a freshly fed sourdough starter.

Although the active starter would mean that your batter may have to ferment before it’s ready to bake.

For this specific recipe, we’re going to be using a sourdough starter, so that we can get a hint of that fabulous sour flavor.

For a more sour flavor, an active starter would be the perfect choice for you.

Sourdough Discard vs. Active Starter

Sourdough DiscardActive Starter
FlavorMild tangMore noticeable sour flavor
Extra prepNone, use straight away4 to 8 hours to activate after feeding
FermentationNot neededOptional, for more developed flavor
Best forQuick, easy bakesRicher sourdough flavor

If you want to keep things simple, sourdough discard is the way to go. If you prefer a stronger sourdough flavor, use an active starter and let the batter ferment before baking.

Best sourdough carrot cake with cream cheese frosting recipe

What Are The Ingredients For This Sourdough Carrot Cake?

For the Cake

IngredientAmountNotes
Eggs4 largeAdds structure and richness
Neutral oil1 cupVegetable, avocado, or coconut all work well
White sugar1 cup
Brown sugar1 cupAdds a warm, molasses-like depth
Sourdough discard1/2 cupActive starter works too
Vanilla extract2 tsp
All-purpose flour2 cupsGluten-free flour swaps are listed below
Baking soda2 tsp
Baking powder1 tsp
Salt1 tsp
Ground cinnamon2 tspAdd a pinch of ginger or nutmeg if you like
Freshly grated carrots2 cupsFreshly grated gives better moisture and flavor
Chopped pecans1 cupWalnuts or raisins are great swaps

For the Cream Cheese Frosting

IngredientAmountNotes
Cream cheese8 ozSoftened to room temperature
Butter1/2 cupSoftened to room temperature
Confectioner’s sugar3 cupsSifted
Vanilla extract1 tsp
Chopped pecans or walnuts1 cupOptional, for topping

Can I Use Pre-Shredded Carrots From The Produce Section?

Yes, absolutely!

But I should mention that while pre-shredded carrots are certainly great at saving time, you may find that they won’t taste as good as freshly shredded carrots. Pre-shredded carrots have little to no juice left, which means that you may not be able to capture that sweet carrot taste in your carrot cakes.

So if you’re trying to make the best carrot cake, always opt for fresh carrots, and grate them yourself. If you’re trying to save time, then grate them a day before the bake.

Does This Sourdough Discard Carrot Cake Have Nuts or Raisins?

This recipe includes chopped pecans, but yours can certainly include a mixed variety of dried fruits and nuts, for a varied texture and flavor.

Go crazy, and add a combination of walnuts, pecans, pistachios, and a few raisins for a fruity, nutty treat.

I like to keep my add-ins simple so that I can appreciate the authenticity of this recipe.

And if you’ve got leftover pecans, you can use them for these fantastic pecan shortbread cookies!

Sourdough Carrot Cake With Cream Cheese Recipe

This is a scrumptious, moist, and flavorful sourdough carrot cake, Topped with cream cheese and chopped pecans, make this for a small party, or a weekend treat.

Grab your apron and get baking!

Step 1: Get Everything Ready

Preheat your oven to 350°F (175°C). Grease a 9×13 inch baking pan with oil, or line it with parchment paper. Go ahead and grate your carrots and chop the pecans now so they’re ready to fold in later.

Step 2: Mix the Wet Ingredients

In a large bowl, whisk together the eggs, oil, white sugar, brown sugar, sourdough discard, and vanilla extract until everything is smooth and well combined.

Step 3: Mix the Dry Ingredients

In a separate bowl, whisk together the flour, baking soda, baking powder, salt, and cinnamon.

Step 4: Bring It Together

Add the dry ingredients to the wet ingredients and mix until just combined. Stop as soon as you no longer see streaks of dry flour. Overmixing toughens the crumb, so less is more here.

Step 5: Fold in the Carrots and Pecans

Stir in the grated carrots, then gently fold in the chopped pecans.

Step 6: Bake

Pour the batter into your prepared pan and bake for 45 to 55 minutes. Start checking at the 45-minute mark by inserting a toothpick into the center. When it comes out clean, the cake is done.

Step 7: Cool Before Frosting

Let the cake cool completely in the pan before you add any frosting. Give it at least an hour. Frosting a warm cake will cause everything to melt and slide around, and that’s a mess nobody wants.

Step 8: Make the Cream Cheese Frosting

Beat the softened cream cheese and butter together using a stand or hand mixer until smooth, around 2 to 3 minutes. Gradually add the sifted confectioner’s sugar and vanilla, then whip until the frosting is light and fluffy. Fold in the chopped pecans if you’re using them.

Step 9: Frost and Serve

Spread the frosting evenly over the cooled cake and slice it up. That’s it.

Best sourdough carrot cake with cream cheese frosting recipe

Tips for Getting This Right

  • Grate your own carrots. Pre-shredded carrots from the store are too dry and too thick. They don’t release the moisture you need for a tender sponge. If you’re prepping ahead, grate them the night before and keep them in the fridge.
  • Don’t overmix. Once the flour goes in, mix only until the batter comes together. Extra mixing builds gluten and makes the cake denser than it should be.
  • Use both leavening agents. Since the sourdough starter isn’t responsible for the rise, you need both the baking soda and baking powder to get a good lift. Don’t skip one thinking the other covers it.
  • Bring your dairy to room temperature. Cold cream cheese and butter don’t whip smoothly. Take them out of the fridge at least an hour before you plan to make the frosting.
  • Wait for full cooling. It sounds obvious, but it’s worth repeating. A warm cake will ruin a good frosting. Be patient.
  • For more sourdough flavor: If you’re using an active starter, mix the wet ingredients (except the eggs) with the starter and let the mixture sit for 8 to 12 hours before finishing the batter. This gives the sourdough more time to develop and builds a tangier flavor.

Mix-In Ideas

The recipe calls for pecans, but you can really make this your own with different add-ins:

  • Something chewier: Shredded coconut adds texture and a slight sweetness
  • Nuts: Walnuts, pistachios, or a combination
  • Dried fruit: Raisins, dried cranberries, or chopped dates
  • Spices: A pinch of nutmeg or ground ginger alongside the cinnamon works really well

Can You Make Vegan Sourdough Carrot Cake?

Yes, you can!

Yes, and it’s a pretty easy switch since this recipe doesn’t rely heavily on animal products.

The eggs in the batter can be replaced with flax eggs: mix 1 tablespoon of ground flaxseed with 3 tablespoons of water per egg, and let it sit for 5 minutes before using.

The oil is already plant-based, so no changes needed there.

For the frosting, swap in vegan butter and a tofu-based or cashew-based vegan cream cheese. Here’s how to make it:

Vegan Cream Cheese Frosting

IngredientAmount
Vegan butter, softened1/2 cup
Vegan cream cheese8 oz
Sifted powdered sugar3 to 5 cups
  1. Beat the butter and vegan cream cheese until smooth.
  2. Add the powdered sugar gradually until the frosting is thick enough to spread and hold its shape.
  3. If it feels too loose, just keep adding sugar a bit at a time.

For more on sourdough bread and veganism, check out my blog post: Is Sourdough Bread Vegan?

What About Gluten-Free Sourdough Carrot Cake?

You can.

If you’re using a gluten-free sourdough starter, make sure the flour you’ve been feeding it is also gluten-free.

For the cake itself, swap the all-purpose flour with a gluten-free 1:1 blend, or try one of these:

FlourWhat to Expect
Brown rice flourMild flavor, closest substitute to all-purpose
Sorghum flourSlightly sweet, works nicely in spiced cakes
Buckwheat flourEarthier flavor; best blended with a lighter flour
Millet flourLight texture, pretty neutral taste

Gluten-free batters tend to be a bit denser, so make sure your baking soda and baking powder are fresh, and avoid overmixing.

You can find out more about the best gluten-free alternatives to eating sourdough on a gluten-free diet.

Storage

Here’s what to do if you plan on taking a little break from eating it, although I must say that might be a tad impossible!

  • Refrigerator: Once frosted, cover the cake and store it in the fridge for up to 5 days. The cream cheese frosting needs to stay cold.
  • Freezer: The unfrosted cake freezes really well for up to 3 months. Wrap it tightly in plastic wrap, then foil. Thaw it in the fridge overnight before frosting.
  • Room temperature: Don’t leave the frosted cake out for more than 2 hours because of the dairy in the frosting.
Best sourdough carrot cake with cream cheese frosting recipe

What to Serve With Sourdough Carrot Cake

Carrot cake is best served with a hot or cold beverage.

Feeling like you want something creamy? Think hot milk, hot chocolate, or a creamy milkshake.

A slice of this cake goes really well too with anything warm and slightly bitter to cut through the sweetness. Hot coffee, black tea, or chai are all great options. Iced tea works just as well if you want something cold.

But you can easily incorporate a few more items to make your dessert more exciting.

I like to pair my carrot cake with some fresh fruits, to get a fruity punch with each bite. The best pairings are pineapple, blueberries, mangoes, or even dried fruits like raisins. These pair really well with the warm spices.

Make Sourdough Carrot Cake ASAP

Sourdough carrot cake might just make it to the top of your sourdough desserts list. Loaded with sweet and tangy flavors, it’ll quickly become a staple in your household.

So what are you waiting for?

FAQs

Why does carrot cake use oil instead of butter?

Oil is what keeps carrot cake moist even after it cools. Butter solidifies at room temperature, which makes butter-based cakes firmer. Oil stays liquid, so the texture stays soft and tender much longer.

When is my sourdough starter ready to use?

An active starter is ready once it has doubled or tripled in size after feeding, which usually takes 4 to 8 hours at room temperature. Discard can go straight from the fridge into the batter with no prep needed.

Why did my carrot cake turn out dry?

The most likely culprits are overbaking, overmixing the batter, using pre-shredded carrots, or packing too much flour into the measuring cup. Use the spoon-and-level method when measuring flour rather than scooping directly from the bag.

Can I use pre-shredded carrots from the store?

You can, but the cake won’t be as moist or flavorful. Store-bought shredded carrots are drier and cut thicker than freshly grated ones. If you do use them, give them a gentle squeeze before adding them to the batter.

Does the sourdough starter make the cake rise?

No. The rise comes entirely from the baking soda and baking powder. The starter is there for flavor, specifically the mild acidity that gives sourdough baked goods their character.

By Natasha Krajnc

Hi! My name is Natasha and I'm specialized in home sourdough bread baking and currently based in Slovakia - a very small country in Central Europe. My bread baking story began in 2011 when I decided to give up commercial yeast. I felt tired all the time (especially after eating bread and other foods made with yeast), I wasn’t motivated to do anything, had trouble concentrating throughout the day, my abdomen was bloated and I was like a trumpet on steroids – basically, I was quite a wreck. I was a big bread lover (and still am) and having to stop eating bread was quite hard at that time but I felt I was on a right way to give my body a chance to heal itself.

1 comment

  1. i just made the cake and the ingredient list didn’t have oil and it’s all baked and frosted. 😭😭😭

Leave a comment

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

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star