This is the ultimate carrot cake recipe you have been searching for. It creates an incredibly moist, perfectly spiced cake with a tender crumb that melts in your mouth. We go beyond the classic by pairing it with a rich, nutty, and creamy brown butter cream cheese frosting that is truly a game-changer. This foolproof recipe will guide you through creating a stunning dessert and explain exactly why sourdough discard makes this cake so special.
Why You’ll Love This Recipe
Incredibly Moist and Tender Crumb. The sourdough discard adds a touch of acidity and moisture, which results in an unbelievably tender cake. It creates a texture that is simply divine and balances the sweetness perfectly.
Sophisticated Flavor. The secret to this recipe is the brown butter cream cheese frosting. By browning the butter, we create deep, nutty, and caramelized flavors through the Maillard reaction. This simple step transforms a classic frosting into a gourmet experience. For more delicious uses of brown butter, try these cookies!
No-Waste Baking. This sourdough discard recipe is a fantastic way to use up the discard from feeding your starter. Instead of throwing it away, you can turn it into a delicious and memorable dessert.
Foolproof and Forgiving. I designed this recipe to be straightforward and successful for home bakers of any skill level. The steps are clear and the results are consistently delicious.
Ingredients Needed

For the Cake
- 2 1/2 cups all-purpose flour
- 1 1/2 cups granulated sugar
- 1/2 cup sourdough starter discard
- 4 teaspoons ground cinnamon
- 1 teaspoon salt
- 1 1/2 teaspoons baking soda
- 4 large eggs
- 1 teaspoon vanilla extract
- 1 cup vegetable oil (sub avocado oil or 2 sticks butter)
- 3 cups carrots (grated)
- 1/2 cup raisins
- 1/2 cup chopped pecans (sub walnuts)
For the Brown Butter Cream Cheese Frosting
- 16 oz. cream cheese (room temperature)
- 2 sticks butter (room temperature)
- 3 teaspoons vanilla extract
- 2 cups powdered sugar
- 1/4 cup chopped pecans (or walnuts)
Ingredient Notes and Substitutions
Sourdough Discard. Your discard can be unfed and used straight from the refrigerator or at room temperature. Its purpose here is flavor and moisture, not leavening.
Oil. A neutral oil like vegetable or avocado oil works best as it lets the spices shine. Melted coconut oil or two sticks of melted unsalted butter are also great alternatives. I would avoid oils with strong flavors like olive oil.
Nuts. Pecans and walnuts are classic choices and can be used interchangeably. For a deeper, richer flavor, I highly recommend toasting them before adding them to the batter.
Add-ins. Feel free to customize this cake. For extra moisture and tropical flavor, you can fold in a half cup of drained crushed pineapple or shredded coconut along with the carrots.
Flour. While this recipe calls for all-purpose flour for a classic texture, you can experiment. For a slightly heartier crumb, try replacing half of the all-purpose flour with whole wheat flour.

How to Make Sourdough Carrot Cake
Prepare the Cake Pans
First, preheat your oven to 350°F (176°C). Lightly grease two 8-inch round cake pans with oil. For easy removal, you can line the bottom of each pan with a circle of parchment paper. Add a handful of flour to each pan and rotate them to coat the bottom and sides completely. This creates a non-stick surface. Shake out any excess flour and set the pans aside.
Mix the Cake Batter
In a small mixing bowl, whisk together the dry ingredients. This includes the 2 1/2 cups of all-purpose flour, 4 teaspoons of ground cinnamon, 1 teaspoon of salt, and 1 1/2 teaspoons of baking soda. Whisking them ensures the spices and leavening are evenly distributed.
In a separate, medium-sized batter bowl, whisk the wet ingredients. Combine the 4 large eggs, 1 teaspoon of vanilla extract, 1 1/2 cups of granulated sugar, 1/2 cup of sourdough starter discard, and 1 cup of vegetable oil until everything is fully combined and smooth.
Now, pour the dry ingredients into the bowl with the wet ingredients. Use a spatula to gently stir them together just until you no longer see streaks of flour. Be careful not to overmix. Finally, fold in the 3 cups of grated carrots, 1/2 cup of raisins, and 1/2 cup of chopped pecans until they are evenly incorporated into the batter.
Bake the Cakes
Pour the batter evenly between your two prepared cake pans. The batter will be thick and smell wonderfully of cinnamon. Bake for 35 to 40 minutes. You will know the cakes are done when a toothpick inserted into the center comes out clean. The tops should be golden brown and spring back lightly when touched.
Remove the cakes from the oven and let them cool in the pans for about 20 minutes. After this initial cooling, carefully transfer the cake layers to a wire cooling rack. They must cool completely to room temperature before you attempt to frost them.
Make the Brown Butter Cream Cheese Frosting
To make the brown butter, melt the 2 sticks of butter in a light-colored saucepan over medium heat. Continue to cook, swirling the pan occasionally, until the butter foams, and then subsides, revealing golden-brown milk solids at the bottom. It will smell incredibly nutty. Immediately pour the brown butter into a heatproof bowl to stop the cooking process and let it cool until it is solidified but still soft, about room temperature.
In a large mixing bowl, beat the cooled brown butter, 16 oz. of room temperature cream cheese, and 3 teaspoons of vanilla extract with an electric mixer until smooth and creamy. Add the 2 cups of powdered sugar, about one-third at a time, beating well after each addition until the frosting is fully incorporated and fluffy.
Assemble and Frost the Cake
For a clean presentation, arrange four small strips of parchment paper on your cake stand, just under the edges of where the cake will sit. Place the first cake layer on the stand with the bottom side facing up. This provides a perfectly flat surface.
Use a baking spatula to add about one-third of the cream cheese frosting onto the cake layer. Then, use an offset spatula to spread the frosting evenly to the edges. Using two separate spatulas helps prevent crumbs from getting into your main bowl of frosting.
Place the second cake layer on top, also with the bottom side facing up. This creates a stable, even surface for the final frosting layer. Add more cream cheese frosting to the top of the cake, spreading it evenly over the top and down the sides with your offset spatula until the cake is fully coated.
Sprinkle the remaining 1/4 cup of chopped pecans around the top edge of the cake for a beautiful finish. To reveal the clean edges of your cake stand, gently pull each piece of parchment paper out from underneath the cake.
Finally, refrigerate the finished cake for at least 30 minutes. This allows the brown butter cream cheese frosting to set, which will make slicing much cleaner.
The Role of Sourdough Discard & Flavor Customizations
What Sourdough Discard Adds to This Cake
The sourdough discard in this cake is not used for leavening; the baking soda handles that job. Instead, its primary role is to enhance flavor and texture. The acidity in the discard adds a very subtle, pleasant tang that cuts through the sweetness of the cake and frosting, creating a more complex and balanced dessert. This acidity also helps to break down gluten, resulting in an exceptionally moist and tender crumb. The cake will not taste sour, but it will have a delicious depth of flavor that you cannot get otherwise.
Customizing Your Spices and Add-ins
While cinnamon is the star, you can easily create a warmer spice profile. Try adding 1/2 teaspoon of nutmeg, 1/2 teaspoon of ground ginger, or 1/4 teaspoon of allspice along with the cinnamon. These spices complement the carrots and nuts beautifully. You can also customize the add-ins. If you are not a fan of raisins or pecans, simply leave them out. For a different texture, consider adding shredded coconut or drained crushed pineapple.
Pro Tips and Troubleshooting
Pro Tips for Success
- Toast Your Nuts. For a richer, deeper flavor, spread your pecans or walnuts on a baking sheet and toast them at 350°F for about 10 minutes before chopping. The aroma alone is worth it.
- Room Temperature is Key. Ensure your eggs, butter, and cream cheese are all at true room temperature. This is essential for a smooth, emulsified cake batter and a lump-free cream cheese frosting.
- The Parchment Paper Trick. Using four strips of parchment paper under the edges of your cake while frosting is a professional secret for a perfectly clean cake stand. Simply slide them out when you are done.
- Long Fermentation Option. For potentially enhanced flavor and easier digestion, you can cover and refrigerate the batter (without the baking soda) for up to 48 hours. When ready to bake, let it come to room temperature and gently stir in the baking soda just before pouring it into the pans.
Common Mistakes to Avoid
- Runny Frosting. This is almost always because the butter or cream cheese was too warm. The fix is simple: place the mixing bowl with the frosting in the refrigerator for 20-30 minutes to firm up, then whip it again until it is light and spreadable.
- Dense or Sunken Cake. Over-mixing the batter after adding the flour is a common cause of a dense cake. Mix only until the flour disappears. Another culprit can be expired baking soda, so always check the date.
- Crumbs in the Frosting. To prevent a messy finish, make sure your cake layers are completely cool. You can also apply a very thin “crumb coat” of frosting, chill the cake for 20 minutes, and then apply the final, thicker layer. The two-spatula method mentioned in the instructions also works wonders.
Serving and Storage
Serving Ideas
This cake is stunning on its own, with the chopped pecans or walnuts garnishing the top edge. For the cleanest slices, I recommend serving the cake chilled, directly from the refrigerator, as this helps the cream cheese frosting hold its shape. It is also a delightful dessert served with a cup of coffee or tea. If you prefer a simpler treat, the cake layers are delicious even without any frosting at all.
Storage and Make-Ahead
- Room Temperature. Due to the cream cheese frosting, this cake should not be stored at room temperature for more than a couple of hours.
- Refrigerator. Cover the cake tightly in a cake carrier or with plastic wrap and store it in the refrigerator for up to 5 days. For the best texture, allow a slice to sit at room temperature for about 20 minutes before serving.
- Freezer. This cake freezes beautifully. You can freeze individual unfrosted cake layers by wrapping them tightly in plastic wrap and then foil for up to 3 months. To freeze the whole frosted cake, place it in the freezer unwrapped until the frosting is firm, then wrap it well in plastic wrap and foil.
Conclusion
This sourdough carrot cake is truly a must-try recipe. The incredibly moist crumb from the sourdough discard and the uniquely nutty, rich flavor of the brown butter frosting set it apart from all others. I am confident that with these detailed steps and helpful tips, you will have guaranteed success in your kitchen. If you make this recipe, be sure to leave a comment and rating below!
Frequently Asked Questions
What does sourdough discard do in a carrot cake?
In this cake, sourdough discard adds moisture, a slight tang to balance the sweetness, and creates a more tender crumb. It acts as a flavor enhancer, not a leavening agent.
Can I use active sourdough starter instead of discard?
Yes, you can use active starter, but it is an unnecessary use of a strong leavener since the baking soda does the rising. Discard provides all the flavor and texture benefits, and the final result will be very similar.
How do I properly store sourdough carrot cake?
You should always store this cake in an airtight container in the refrigerator due to the cream cheese frosting. It will keep for up to 5 days.
Can I make this recipe into cupcakes?
Yes, this recipe works wonderfully for cupcakes. It will make approximately 18-24 cupcakes. Fill the liners about two-thirds full and bake at 350°F for 20-25 minutes, or until a toothpick inserted into the center comes out clean.
Can I make this cake without nuts or raisins?
Absolutely. You can simply omit the nuts, the raisins, or both from the recipe without making any other adjustments. The cake will still be delicious.
Will this cake taste sour?
No, the cake will not taste sour. The small amount of discard adds a very subtle background tang, much like buttermilk, that enhances the other flavors but is not a prominent sour taste.

Easy Sourdough Carrot Cake with Brown Butter Frosting
Ingredients
Equipment
Method
- First, preheat your oven to 350°F (176°C). Lightly grease two 8-inch round cake pans with oil.
- For easy removal, you can line the bottom of each pan with a circle of parchment paper.
- Add a handful of flour to each pan and rotate them to coat the bottom and sides completely. Shake out any excess flour and set the pans aside.
- In a small mixing bowl, whisk together the dry ingredients: 2 1/2 cups of all-purpose flour, 4 teaspoons of ground cinnamon, 1 teaspoon of salt, and 1 1/2 teaspoons of baking soda. Whisking ensures even distribution.
- In a separate, medium-sized batter bowl, whisk the wet ingredients: 4 large eggs, 1 teaspoon of vanilla extract, 1 1/2 cups of granulated sugar, 1/2 cup of sourdough starter discard, and 1 cup of vegetable oil until fully combined and smooth.
- Pour the dry ingredients into the bowl with the wet ingredients. Use a spatula to gently stir them together just until you no longer see streaks of flour, being careful not to overmix.
- Finally, fold in the 3 cups of grated carrots, 1/2 cup of raisins, and 1/2 cup of chopped pecans until evenly incorporated into the batter.
- Pour the batter evenly between your two prepared cake pans. Bake for 35 to 40 minutes, or until a toothpick inserted into the center comes out clean and the tops are golden brown and spring back lightly.
- Remove the cakes from the oven and let them cool in the pans for about 20 minutes.
- After initial cooling, carefully transfer the cake layers to a wire cooling rack. They must cool completely to room temperature before frosting.
- To make the brown butter, melt the 2 sticks of butter in a light-colored saucepan over medium heat. Continue to cook, swirling occasionally, until the butter foams, subsides, and golden-brown milk solids appear at the bottom. It will smell incredibly nutty.
- Immediately pour the brown butter into a heatproof bowl to stop the cooking process and let it cool until solidified but still soft, about room temperature.
- In a large mixing bowl, beat the cooled brown butter, 16 oz. of room temperature cream cheese, and 3 teaspoons of vanilla extract with an electric mixer until smooth and creamy.
- Add the 2 cups of powdered sugar, about one-third at a time, beating well after each addition until the frosting is fully incorporated and fluffy.
- For a clean presentation, arrange four small strips of parchment paper on your cake stand, just under the edges of where the cake will sit.
- Place the first cake layer on the stand with the bottom side facing up, providing a perfectly flat surface.
- Use a baking spatula to add about one-third of the cream cheese frosting onto the cake layer, then use an offset spatula to spread it evenly to the edges. (Using two separate spatulas helps prevent crumbs from getting into your main frosting bowl).
- Place the second cake layer on top, also with the bottom side facing up, creating a stable, even surface for the final frosting layer.
- Add more cream cheese frosting to the top of the cake, spreading it evenly over the top and down the sides with your offset spatula until fully coated.
- Sprinkle the remaining 1/4 cup of chopped pecans around the top edge of the cake for a beautiful finish.
- To reveal clean edges, gently pull each piece of parchment paper out from underneath the cake.
- Finally, refrigerate the finished cake for at least 30 minutes to allow the brown butter cream cheese frosting to set, which will make slicing much cleaner.
