This post may contain affiliate links. Please read our disclosure policy.

These soft and warmly spiced sourdough carrot cake bars are made with sourdough discard and baked in a simple 9×13 pan for an easy dessert that’s perfect for spring.

Sourdough carrot cake bars cut into squares.

The batter uses a blend of oil and butter for moisture and flavor, finely shredded carrots for classic texture, and a generous layer of cream cheese frosting on top.

The bars bake up tender, slice beautifully, and are simple enough for everyday baking while still feeling special enough for Easter or gatherings.

Unlike many carrot cakes, this version keeps the batter straightforward with no pineapple and no nuts required, though chopped pecans or walnuts can easily be added if you enjoy them.

I love them both ways, with nuts or without! For an extra festive touch, you can decorate a few bars with piped frosting carrots.

Sourdough carrot cake bars with cream cheese frosting and decorated with frosting carrots.

Why You’ll Love This Recipe

  • Super Easy to Make: I have another sourdough discard carrot cake recipe that is also delicious, but takes a bit more time, as it’s a three-layer cake. This recipe is super simple to make, as there are no layers.
  • Delicious: With warm spices like cinnamon and nutmeg, this easy sourdough carrot cake is the perfect treat, with a similar flavor profile to these sourdough pumpkin bars.
  • Great for Parties: Since this carrot cake is baked in a 9×13 pan and cut into bars for individual servings, it’s easy to transport and great for sharing.

Ingredients

Ingredients for sourdough carrot cake bars in small bowls.

Find the full list of ingredients, amounts, and instructions in the printable recipe card at the bottom of this post.

  • All-Purpose Flour: This recipe uses all-purpose flour.
  • Fresh Carrots: Use a box grater or food processor to grate the carrots finely.
  • Brown Sugar: Brown sugar is the main sweetener.
  • White Sugar: The combination of the brown and white sugar adds extra flavor.
  • Sourdough Starter: You can use either active sourdough starter or leftover sourdough discard. Recently-fed discard is recommended to keep the bars from being too sour. Here’s how to make sourdough starter.
  • Vegetable Oil: Use a neutral oil like avocado oil or coconut oil.

Recipe Tip

Use the small holes on a box grater so the carrots blend evenly into the batter. After grating, lightly blot them with a paper towel to remove a bit of excess moisture.

How to Make Sourdough Carrot Cake Bars

Step 1: Preheat the oven to 350°F. Lightly grease a 9×13-inch baking pan or line it with parchment paper.

Step 2: In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg (Photo 1).

Step 3: In a large bowl, whisk together the oil, melted butter, brown sugar, and granulated sugar until smooth and well combined (Photo 2).

Step 4: Add the eggs one at a time, whisking well after each addition. Stir in the sourdough discard and vanilla extract until fully incorporated (Photo 3). Stir in the shredded carrot (Photo 4). If adding nuts, fold them in at this stage.

Collage of four photos showing steps 1-4 for how to make sourdough carrot cake bars.

Step 6: Add the dry ingredients to the wet ingredients and gently fold until just combined (Photo 5). Do not overmix. Spread the cake batter evenly into the prepared pan and smooth the top (Photo 6).

Step 7: Bake for 27–32 minutes, or until the center reaches about 200–205°F and a toothpick inserted in the middle comes out with a few moist crumbs. Allow the bars to cool completely in the pan before frosting (Photo 7).

Step 8: To make the frosting, beat the cream cheese and butter together until smooth and fluffy. Add the powdered sugar gradually until the frosting reaches your desired thickness. Mix in the vanilla and a small pinch of salt (Photo 8).

Collage of four photos showing steps 5-8 for how to make sourdough carrot cake bars.

Step 9: Spread the frosting evenly over the cooled bars. If desired, top with chopped pecans or walnuts, decorate with small piped frosting carrots (see decorating note below), or simply leave the bars plain with the cream cheese frosting. Slice into bars and serve.

Spreading frosting on sourdough carrot cake bars.

How to Decorate

For decorative frosting carrots, reserve a small portion of the frosting and tint it with orange and green food coloring. Place the frosting in a disposable piping bag and snip a very small opening at the tip.

Pipe small carrot shapes directly onto the frosted bars. This simple method works well without needing specialty piping tips.

If you plan to decorate several bars with piped carrots, consider increasing the frosting recipe by 1½ times so you have enough frosting for both spreading and decorating.

Sourdough carrot cake bars cut into bars and frosted with cream cheese frosting.

How to Store

Because of the cream cheese frosting, store the bars covered in the refrigerator for up to 4 days.

For best texture and flavor, allow the bars to sit at room temperature for about 15–20 minutes before serving.

How to Freeze

The unfrosted bars freeze very well. Wrap them tightly (or put in an airtight container) and freeze for up to 2 months. Thaw overnight in the refrigerator and frost before serving. Frosted bars can also be frozen, though the frosting may soften slightly after thawing.

Tips

  • Use freshly shredded carrots for the best texture. Pre-shredded carrots from the store are thicker and drier and do not bake as well into the batter.
  • Shred the carrots using the small holes of a box grater so they blend smoothly into the bars.
  • After grating the carrots, lightly blot them with a paper towel to remove a little excess moisture before adding them to the batter.
  • Use recent sourdough discard. If your discard is very thin or liquidy, you may need to add 1–2 tablespoons of additional flour.
  • Carrot cake bars can appear done before the center is fully baked. Checking for an internal temperature around 200–205°F helps ensure the center sets properly.
  • If you prefer a more pronounced spice flavor, you can increase the cinnamon slightly to 3 or 3 1/2 teaspoons.
  • Optional nuts can be added to the batter or sprinkled on top of the frosting for garnish.
  • For the cleanest slices, chill the frosted bars for 30–45 minutes before cutting.

Recipe FAQs

Can I add nuts to the carrot cake bars?

Yes. You can fold 1/2-3/4 cup chopped pecans or walnuts into the batter before baking, or sprinkle chopped nuts over the frosted bars as a garnish.

Can I make these bars without sourdough discard?

Yes. If you don’t have sourdough discard, you can substitute it with ½ cup sour cream or plain yogurt.

Why should I use freshly shredded carrots instead of pre-shredded carrots?

Freshly shredded carrots are softer and release moisture as they bake, which helps create a tender crumb. Pre-shredded carrots are thicker and much drier, so they don’t incorporate as well into the batter.

Can I make the bars more spiced?

Yes. If you prefer a stronger spice flavor, you can increase the cinnamon slightly to about 3 – 3 1/2 teaspoons.

Sourdough carrot cake bar on a plate with a bite taken out of it.

More Sourdough Recipes

If you make these sourdough carrot cake bars and enjoy them, please leave a comment with a 5-star recipe rating and let me know! Thank you so much!

Sourdough carrot cake bars cut into squares.
No ratings yet

Sourdough Carrot Cake Bars

These soft and warmly spiced sourdough carrot cake bars are made with sourdough discard and baked in a simple 9×13 pan for an easy dessert that’s perfect for spring.
Prep: 20 minutes
Cook: 32 minutes
Total: 52 minutes
Servings: 12 bars
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Ingredients 

Carrot Cake Bars

Cream Cheese Frosting

  • 4 ounces cream cheese, softened, 113 g
  • 4 tablespoons unsalted butter, softened, 56 g
  • 2 cups powdered sugar, (use 2-2 1/2 cups) 240–300 g
  • 1 teaspoon vanilla extract
  • Pinch of kosher salt
  • 1/2 cup chopped pecans, or walnuts for topping, optional

Instructions 

  • Preheat the oven to 350°F. Lightly grease a 9×13-inch baking pan or line it with parchment paper.
  • In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg.
  • In a large bowl, whisk together the oil, melted butter, brown sugar, and granulated sugar until smooth and well combined.
  • Add the eggs one at a time, whisking well after each addition. Stir in the sourdough discard and vanilla extract until fully incorporated.
  • Stir in the finely grated carrots. If adding nuts, fold them in at this stage.
  • Add the dry ingredients to the wet ingredients and gently fold until just combined. Do not overmix.
  • Spread the batter evenly into the prepared pan and smooth the top.
  • Bake for 27–32 minutes, or until the center reaches about 200–205°F and a toothpick inserted in the middle comes out with a few moist crumbs.
  • Allow the bars to cool completely in the pan before frosting.
  • To make the frosting, beat the cream cheese and butter together until smooth and fluffy. Add the powdered sugar gradually until the frosting reaches your desired thickness. Mix in the vanilla and a small pinch of salt.
  • Spread the frosting evenly over the cooled bars. If desired, top with chopped pecans or walnuts, decorate with small piped frosting carrots (see decorating note below), or simply leave the bars plain with the cream cheese frosting. Slice into bars and serve.

Notes

Use freshly shredded carrots for the best texture. Shred the carrots using the small holes of a box grater so they blend smoothly into the bars.
After grating the carrots, lightly blot them with a paper towel to remove a little excess moisture before adding them to the batter.
Use recent sourdough discard. If your discard is very thin or liquidy, you may need to add 1–2 tablespoons of additional flour.
Carrot bars can appear done before the center is fully baked. Checking for an internal temperature around 200–205°F helps ensure the center sets properly.
If you prefer a more pronounced spice flavor, you can increase the cinnamon slightly to 3 or 3 1/2 teaspoons.
Optional nuts can be added to the batter or sprinkled on top of the frosting for garnish.
For the cleanest slices, chill the frosted bars for 30–45 minutes before cutting.
How to Store: Because of the cream cheese frosting, store the bars covered in the refrigerator for up to 4 days. For best texture and flavor, allow the bars to sit at room temperature for about 15–20 minutes before serving.
How to Freeze: The unfrosted bars freeze very well. Wrap them tightly (or put in an airtight container) and freeze for up to 2 months. Thaw overnight in the refrigerator and frost before serving. Frosted bars can also be frozen, though the frosting may soften slightly after thawing.
How to Decorate:
For decorative frosting carrots, reserve a small portion of the frosting and tint it with orange and green food coloring. Place the frosting in a disposable piping bag and snip a very small opening at the tip.
Pipe small carrot shapes directly onto the frosted bars. This simple method works well without needing specialty piping tips.
If you plan to decorate several bars with piped carrots, consider increasing the frosting recipe by 1½ times so you have enough frosting for both spreading and decorating.

Nutrition

Serving: 1bar, Calories: 534kcal, Carbohydrates: 68g, Protein: 5g, Fat: 28g, Saturated Fat: 9g, Polyunsaturated Fat: 4g, Monounsaturated Fat: 13g, Trans Fat: 0.3g, Cholesterol: 71mg, Sodium: 241mg, Potassium: 169mg, Fiber: 2g, Sugar: 47g, Vitamin A: 3101IU, Vitamin C: 1mg, Calcium: 72mg, Iron: 2mg

Nutrition information is automatically calculated, so should only be used as an approximation.

Like this? Leave a comment below!

Hi, I'm Joy!

I'm a homemaker and homeschooling mom of 5. For over 25 years I've been cooking from scratch and making homemade bread for my family of 7. I love sharing sourdough recipes, easy dinner ideas, and simple DIY projects for your home.

You May Also Like

Leave a comment

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

Recipe Rating





This site uses Akismet to reduce spam. Learn how your comment data is processed.