Go Back
+ servings
slice of Sourdough Carrot Cake

Sourdough Carrot Cake Recipe


Yield: 2 Layer Cake
Prep Time: 15 minutes
Cook Time: 26 minutes
Total Time: 41 minutes

This Sourdough Carrot Cake is super moist and bursting with warm spices, like ground cinnamon. Topped with homemade cream cheese frosting and made with sourdough discard, it is one of our favorite cakes and super easy to make!

4.54 from 39 votes

Ingredients

Sourdough Carrot Cake

  • 280 grams all-purpose flour 2 cups
  • 10 grams baking soda 1 1/2 teaspoons
  • 6 grams baking powder 1 1/2 teaspoons
  • 4 grams cinnamon 2 teaspoons
  • 1 grams salt 1/8 teaspoon
  • 400 grams sugar 2 cups
  • 155 grams oil 3/4 cup
  • 120 grams sourdough discard 1/2 cups
  • 4 large eggs room temperature
  • 330 grams carrots, freshly shredded 3 cups
  • 80 grams pecans, chopped (optional) 3/4 cup

Cream Cheese Frosting

  • 226 grams cream cheese, softened 8 ounces
  • 450 grams powdered sugar 3 1/2 cups
  • 113 grams unsalted butter, softened 1/2 cup
  • 8 grams vanilla extract 2 teaspoons

Instructions

  1. Preheat the oven to 350 degrees F. Grease and line with parchment paper two 9-inch cake pans, then grease again. Set aside.
  2. Sift together the flour, baking soda, baking powder, cinnamon, and salt together in a large mixing bowl. Set this aside. 
    280 grams all-purpose flour, 10 grams baking soda, 6 grams baking powder, 4 grams cinnamon, 1 grams salt
  3. In a separate bowl, mix the sugar and oil together in a stand mixer or with a hand mixer. Beat well. 
    400 grams sugar, 155 grams oil
  4. Add the sourdough discard and mix until blended.  Then add the eggs one at a time and beat until well combined. 
    120 grams sourdough discard, 4 large eggs
  5. Fold in the shredded carrots with a wooden spoon or spatula.
    330 grams carrots, freshly shredded
  6. Now, add the dry ingredients to the wet mixture a little bit at a time. Mix on low speed until the flour is just combined.
    Be careful not to over mix, otherwise this can lead to a dense cake.
  7. Lastly, fold in the chopped pecans, if desired. 
    80 grams pecans, chopped (optional)
  8. Split the cake batter evenly between the two prepared pans and bake for 26-28 minutes or until golden brown and a toothpick comes out clean. 
  9. Place on a cooling rack and cool completely before topping with frosting. 

Vanilla Cream Cheese Frosting

  1. In a medium mixing bowl, mix the softened cream cheese and butter until smooth. 
    226 grams cream cheese, softened, 113 grams unsalted butter, softened
  2. Add a little bit of the powdered sugar at a time and mix until smooth.
    450 grams powdered sugar
  3. Lastly, add the vanilla and blend until combined.
    8 grams vanilla extract
  4. Once the cakes are at room temperature, cover with the frosting, decorate with more chopped pecans, slice, and enjoy!

Notes

This recipe card was updated on March 3rd, 2026.

How to Store 

Store any leftover cake in the fridge in an airtight container or covered with plastic wrap or aluminum foil. Since it is super moist, it can last for up to 1 week. 

FAQs:

Can I add nuts or raisins to the carrot cake?

Absolutely! The flavor and texture of nuts and raisins would be a wonderful addition to this Sourdough Carrot Cake. Fold in these additions to the wet ingredients at the very end. 
Some variations might include - chopped pecans, chopped walnuts, pepitas, raisins, yellow raisings, and orange zest. 

Can I use pre-shredded carrots for this recipe?

I would stick with grating your carrots. Store-bought julienned carrots tend to be too thick and don't bake as well as freshly grated carrots. 
If you are nervous about the carrots being too wet for the cake batter, shred your carrots the day before! This way some of the moisture can dry before you mix the ingredients.
You can either shred the carrots by hand with a box grater or you can speed up the process by using a shredding blade on your food processor!

Can this cake be baked in a different-sized baking pan?

Yes! This cake can be baked in a 9x13 baking dish @ 350 for 45-50 minutes.
You can also turn this recipe into a cupcake recipe! Make Sourdough Carrot Cake Cupcakes by lining a muffin tin with cupcake liners, filling them 2/3rd of the way full, and baking them for 18-22 minutes!

Nutrition

Serving: 1g | Calories: 4183kcal | Carbohydrates: 573g | Protein: 40g | Fat: 202g | Saturated Fat: 63g | Polyunsaturated Fat: 36g | Monounsaturated Fat: 91g | Trans Fat: 2g | Cholesterol: 563mg | Sodium: 2490mg | Potassium: 1150mg | Fiber: 14g | Sugar: 435g | Vitamin A: 30998IU | Vitamin C: 10mg | Calcium: 477mg | Iron: 10mg
Tried this recipe?Please leave a comment on the blog or share a photo on Instagram!