Moist Sourdough Carrot Cake with Cream Cheese Frosting
This sourdough carrot cake uses leftover discard to create a tender, warmly spiced crumb that stays moist for days. It’s a practical, unfussy cake that feels special enough for a weekend but simple enough to pull together after work.

The cream cheese frosting is just tangy enough to balance the sweetness. Every bite has a soft crumb, crunchy nuts, and a whisper of caramel from the brown sugar.
What Makes This Carrot Cake So Good
The sourdough discard doesn’t make the cake taste sour. It adds a gentle depth that lets the cinnamon and ginger shine, and it reacts with the baking soda to give the crumb a light, airy lift without being heavy.
I’ve made this cake with discard straight from the fridge and it works every time. No need to revive your starter.
The frosting comes together in minutes while the cake cools, and that creamy tang against the spiced cake is what keeps it in my rotation.
Ingredients

- 2 cups all-purpose flour: spooned and leveled, not scooped
- 2 teaspoons baking soda: gives the crumb its lift alongside the discard
- 1 ½ teaspoons ground cinnamon: the backbone of the spice blend
- ½ teaspoon ground ginger: adds a little warmth without overpowering
- ¼ teaspoon ground nutmeg: freshly grated is nicest, but pre-ground works
- ½ teaspoon fine sea salt: balances the sweetness
- 1 cup granulated sugar: use standard white sugar
- ½ cup packed light brown sugar: brings moisture and a hint of caramel
- ¾ cup vegetable oil: any neutral oil works; canola or sunflower are fine
- 3 large eggs: at room temperature for the smoothest batter
- 2 teaspoons vanilla extract: use the real stuff if you have it
- 1 cup sourdough discard: unfed, straight from the fridge is perfect
- 3 cups finely grated carrots: about 4 medium carrots, grated on the small holes of a box grater
- 1 cup chopped walnuts or pecans: optional but adds great texture; toast them first for extra depth
- 8 ounces cream cheese, softened: use full-fat block cream cheese for a stable frosting
- ¼ cup unsalted butter, softened: gives the frosting body
- 2 cups powdered sugar: sifted if it’s lumpy
- 1 teaspoon vanilla extract: for the frosting
Variations / Substitutions
- Pineapple: fold in ½ cup well-drained crushed pineapple with the carrots for extra moisture and a little tang
- Dried fruit: swap the nuts for ½ cup raisins or chopped dried cranberries, or use half of each
- Dairy-free: use a plant-based cream cheese and butter alternative; the frosting will be softer, so keep it chilled until serving
- Spice swap: if you like more heat, add ⅛ teaspoon ground cloves or a pinch of cardamom
- Flour: you can replace up to half of the all-purpose flour with white whole wheat flour for a slightly nuttier crumb
Layered Carrot Cake Cheesecake Bars are another dessert you’d probably love if you enjoy this cake.
How To Make Sourdough Carrot Cake
Step 1: Whisk the Dry Ingredients

Preheat your oven to 350°F (175°C) and grease a 9×13 inch baking pan. In a large bowl, whisk together the 2 cups flour, 2 teaspoons baking soda, 1 ½ teaspoons cinnamon, ½ teaspoon ginger, ¼ teaspoon nutmeg, and ½ teaspoon salt until evenly blended.
The spice flecks should be distributed throughout the flour and the mixture will look pale and uniform. Taking an extra few seconds here means no bitter pockets of baking soda in the finished cake.
Step 2: Beat the Wet Ingredients

In another large bowl, beat the 1 cup granulated sugar, ½ cup brown sugar, and ¾ cup oil until the mixture looks slightly lighter in color, about 2 minutes. Add the 3 eggs one at a time, beating well after each, then mix in the 2 teaspoons vanilla and 1 cup sourdough discard.
The batter will be smooth and glossy, and it should smell faintly like the starter. The brown sugar will keep the cake moist long after it cools.
Step 3: Fold in the Flour Mixture

Add the dry ingredients to the wet and fold with a rubber spatula just until you no longer see streaks of flour. Stop as soon as it comes together.
The batter will be thick but should drop easily from the spatula. A few small lumps are completely fine; overmixing will activate the gluten and make the cake dense and tough.
Step 4: Stir in the Carrots and Nuts

Gently stir in the 3 cups grated carrots and the 1 cup nuts, if using, until they are evenly distributed. The carrots should look like fine orange threads, not chunks, so they melt into the cake as it bakes.
Freshly grated carrots release more moisture than pre-shredded ones from a bag, which keeps the crumb tender. If your carrots seem especially wet, a quick blot with a towel won’t hurt.
Step 5: Bake the Cake

Scrape the batter into the prepared pan and smooth the top with the spatula. Bake for 35 to 40 minutes, until a toothpick inserted in the center comes out clean or with a few moist crumbs clinging to it.
Let the cake cool completely in the pan set on a wire rack, about 1 hour. Try not to rush this step; frosting a warm cake will make it slide right off.
Step 6: Frost and Slice

While the cake cools, beat the 8 ounces cream cheese and ¼ cup butter with a hand mixer until smooth and fluffy. Gradually beat in the 2 cups powdered sugar and 1 teaspoon vanilla until the frosting is creamy and spreadable.
Spread the frosting over the completely cooled cake and top with a scatter of extra nuts if you like. Slice and serve at room temperature, where the crumb is softest and the frosting has just the right tang.
Tips for a Tender Sourdough Carrot Cake
- Use the small holes of a box grater for the carrots. Large shreds won’t soften enough during baking and can leave tough bits in the cake.
- Rotate the pan halfway through baking if your oven has hot spots. The cake should rise evenly and spring back lightly in the center when done.
- Discard straight from the fridge works perfectly. You don’t need to bring it to room temperature first.
- Let the cake cool entirely before frosting. Even a little residual warmth will melt the cream cheese and make the frosting thin and slippery.
Bake times by pan:
| Pan Type | Bake Time |
|---|---|
| 9×13 inch metal | 35 to 40 mins |
| 9-inch round (two pans) | 25 to 30 mins |
| Loaf pan (9×5 inch) | 50 to 55 mins |
Keeping the Cake Fresh
Cover the frosted cake tightly and refrigerate for up to 5 days. Bring slices to room temperature before serving, or eat them cold right out of the fridge if you’re short on time. The unfrosted cake can be wrapped and frozen for up to 2 months; thaw overnight in the fridge and frost the next day.
Frequently Asked Questions
Can I make this cake into cupcakes?
Yes, divide the batter among 24 lined muffin cups and bake at 350°F (175°C) for 18 to 22 minutes, until a toothpick tests clean. Let them cool completely before frosting.
Why did my cake sink in the middle?
That usually means the cake was underbaked or the batter was overmixed. Make sure the toothpick comes out mostly clean and fold the flour in gently.
Can I use active sourdough starter instead of discard?
You can. The flavor will be a little milder, but the texture will work the same way. Use the same 1 cup amount.
Is it okay to make the frosting ahead?
Yes, you can make it up to a day ahead and keep it in the fridge. Let it sit at room temperature for 20 minutes and give it a quick beat to soften before spreading.

Sourdough Carrot Cake Recipe
Ingredients
Method
- Preheat the oven to 350°F (175°C) and grease a 9×13 inch pan. Whisk flour, baking soda, cinnamon, ginger, nutmeg, and salt in a large bowl.
- In another bowl, beat granulated sugar, brown sugar, and oil until lighter in color, about 2 minutes. Beat in eggs one at a time, then vanilla and sourdough discard.
- Fold the dry ingredients into the wet mixture just until no flour streaks remain. Do not overmix.
- Stir in the grated carrots and nuts until evenly distributed.
- Spread batter into the prepared pan and bake for 35 to 40 minutes, until a toothpick comes out clean. Cool completely in the pan on a wire rack.
- Beat cream cheese and butter until smooth, then gradually beat in powdered sugar and vanilla. Spread over the cooled cake and slice to serve.
