If you love the rich flavor of chocolate desserts and have extra sourdough starter sitting in your refrigerator, these Sourdough Chocolate Cookie Bars are the perfect recipe to bake. They combine the deep cocoa flavor of brownies with the chewy texture of cookie bars while making excellent use of sourdough discard. The sourdough starter doesn’t make the bars taste overly sour; instead, it adds subtle complexity, enhances moisture, and creates an irresistibly tender texture.
Unlike traditional cookies, cookie bars are baked in a single pan and sliced into squares after cooling. This means less time scooping dough and more time enjoying homemade treats. These bars are ideal for birthday parties, potlucks, afternoon coffee breaks, lunchboxes, or simply satisfying a chocolate craving.
Why You’ll Love This Recipe
These sourdough chocolate cookie bars are:
- Rich and deeply chocolatey
- Soft in the center with slightly crisp edges
- Easy to prepare in one bowl
- A great way to use sourdough discard
- Perfect for beginners
- Easy to customize with chocolate chips, nuts, or caramel
- Freezer-friendly
Whether your sourdough starter is freshly fed or unfed discard, this recipe works beautifully.
Ingredients
Dry Ingredients
- 2 cups (250 g) all-purpose flour
- ½ cup (50 g) unsweetened cocoa powder
- 1 teaspoon baking soda
- ½ teaspoon baking powder
- ½ teaspoon salt
Wet Ingredients
- ½ cup (113 g) unsalted butter, melted
- ½ cup (120 ml) vegetable oil
- 1 cup (200 g) brown sugar
- ½ cup (100 g) granulated sugar
- 1 large egg
- 1 egg yolk
- 1 teaspoon vanilla extract
- ½ cup (120 g) sourdough discard (100% hydration)
Mix-Ins
- 1½ cups semi-sweet chocolate chips
- ½ cup chopped walnuts or pecans (optional)
- Flaky sea salt for topping (optional)
Equipment Needed
- 8×8-inch or 9×9-inch baking pan
- Mixing bowls
- Rubber spatula
- Whisk
- Measuring cups and spoons
- Parchment paper
- Cooling rack
Step-by-Step InstructionStep 1: Prepare the Pan
Preheat your oven to 350°F (175°C).
Line your baking pan with parchment paper, leaving an overhang on two sides. This makes removing the bars much easier after baking.
Lightly grease the parchment paper with butter or cooking spray.
Step 2: Mix the Dry Ingredients
In a medium bowl whisk together:
- Flour
- Cocoa powder
- Baking soda
- Baking powder
- Salt
Whisk until evenly combined. Cocoa powder often forms lumps, so breaking them up now ensures a smoother batter later.
Set aside.
Step 3: Combine the Wet Ingredients
In a large mixing bowl combine:
- Melted butter
- Vegetable oil
- Brown sugar
- Granulated sugar
Whisk until smooth.
Add:
- Egg
- Egg yolk
- Vanilla extract
Mix until glossy.
Now stir in the sourdough discard.
The batter should become smooth and slightly thick.
Step 4: Combine Wet and Dry Ingredients
Gradually add the dry ingredients into the wet ingredients.
Mix gently with a spatula until almost combined.
Do not overmix.
Fold in:
- Chocolate chips
- Nuts if using
The dough will be thick.
Step 5: Spread into the Pan
Transfer the dough into your prepared baking pan.
Use an offset spatula or the back of a spoon to spread it evenly.
Sprinkle a few extra chocolate chips over the top for a bakery-style appearance.
Add a pinch of flaky sea salt if desired.
Step 6: Bake
Bake for 28–35 minutes.
The edges should appear set while the center remains slightly soft.
Insert a toothpick into the middle.
It should come out with a few moist crumbs but not wet batter.
Avoid overbaking, as the bars continue cooking while cooling.
Step 7: Cool Completely
Allow the bars to cool in the pan for about 20 minutes.
Lift them out using the parchment paper and transfer to a cooling rack.
Cool completely before slicing.
For perfectly clean cuts, refrigerate the bars for 30 minutes before cutting.
Flavor Variations
One of the best things about cookie bars is how easy they are to customize.
Double Chocolate
Add:
- ½ cup dark chocolate chunks
- ½ cup milk chocolate chips
This creates pockets of melted chocolate throughout the bars.
Peanut Butter Chocolate
Swirl ½ cup peanut butter into the batter before baking.
The combination of chocolate and peanut butter is irresistible.
Salted Caramel
Fold in caramel bits or drizzle caramel sauce over the finished bars.
Finish with flaky sea salt.
Espresso Chocolate
Mix one teaspoon of instant espresso powder into the dry ingredients.
Coffee enhances chocolate flavor without making the bars taste like coffee.
Mint Chocolate
Add ½ teaspoon peppermint extract.
Use mint chocolate chips for extra flavor.
White Chocolate Raspberry
Replace half of the chocolate chips with white chocolate chips.
Fold in freeze-dried raspberries for a sweet-tart contrast.
Why Use Sourdough Discard?
Many home bakers throw away sourdough discard during starter maintenance.
Instead, discard can become a secret baking ingredient.
Benefits include:
- Better moisture
- More complex flavor
- Softer crumb
- Reduced food waste
- Improved texture
The mild acidity also balances the sweetness of the cookie bars beautifully.
Tips for Success
- Use room-temperature eggs for better mixing.
- Measure flour accurately using the spoon-and-level method.
- Don’t overmix once flour is added.
- Underbake slightly for fudgy bars.
- Allow the bars to cool completely before slicing.
- Store in an airtight container to keep them soft.
Storage Instructions
Room Temperature
Store in an airtight container for up to 4 days.
Refrigerator
Keep refrigerated for up to 1 week.
Warm individual bars in the microwave for 10–15 seconds before serving.
Freezer
Wrap each bar individually in plastic wrap.
Place inside a freezer-safe container or zip-top bag.
Freeze for up to 3 months.
Thaw at room temperature before serving.
Serving Ideas
These cookie bars taste wonderful on their own, but you can also serve them with:
- Vanilla ice cream
- Chocolate ice cream
- Fresh strawberries
- Whipped cream
- Hot fudge sauce
- Salted caramel sauce
- A glass of cold milk
- Fresh coffee
- Hot chocolate
For an elegant dessert, warm a bar slightly and top it with a scoop of vanilla ice cream and a drizzle of chocolate sauce.
Frequently Asked Questions
Can I use active sourdough starter instead of discard?
Yes. Either active starter or unfed discard works well. Active starter may make the bars slightly lighter in texture, but both produce delicious results.
Can I make these without cocoa powder?
Cocoa powder is essential for the rich chocolate flavor. If omitted, the bars will be more like classic cookie bars than chocolate cookie bars.
Can I make them gluten-free?
Yes. Substitute a high-quality 1:1 gluten-free baking flour. The texture may be slightly more delicate, but the bars should still bake well.
Why are my cookie bars dry?
Dry bars are usually caused by too much flour or overbaking. Measure ingredients carefully and remove the pan from the oven when the center is just set with a few moist crumbs on a toothpick.
Can I add different mix-ins?
Absolutely. Try chopped pecans, walnuts, toffee bits, white chocolate chips, dried cherries, or shredded coconut to create your own signature version.
Final Thoughts
These Sourdough Chocolate Cookie Bars are a delicious way to transform leftover sourdough discard into a bakery-quality dessert. Their chewy texture, rich cocoa flavor, and melty chocolate chips make them a crowd-pleasing treat for any occasion. Because they’re baked in one pan, they’re quicker and easier than individual cookies while delivering the same comforting homemade flavor. Whether you enjoy them with a cup of coffee, pack them into lunchboxes, or serve them warm with ice cream for dessert, these bars are sure to become a favorite recipe you’ll return to again and again. With simple ingredients, flexible variations, and reliable results, they’re an excellent addition to any home baker’s collection.
