Sourdough Chocolate Cake
Sourdough chocolate cake is a tender, deeply cocoa-rich sheet cake with a smooth, pourable chocolate frosting. Resting the starter with the flour and milk gives the batter a distinctive sourdough base, while espresso powder brings out the chocolate without making the cake taste like coffee.
Plan on 15 minutes of prep, a 2- to 3-hour starter rest, and 30 to 40 minutes of baking. The cake serves a crowd from a 9×13-inch pan, making it a practical choice for birthdays, potlucks, or a make-ahead dessert.
Why you’ll love it
Why This Sourdough Chocolate Cake Recipe Works
The method combines a short sourdough rest with a straightforward mixing process and a frosting that sets right on the cake.
- The starter rests with the flour. Combining the sourdough starter, milk, and flour first gives them time to sit before the other ingredients go in. The mixture may expand a little, though it does not need to bubble.
- Oil keeps the crumb tender. Vegetable oil stays fluid at room temperature, helping the cake remain soft after it cools. It also keeps the mixing process simple.
- Espresso deepens the cocoa flavor. A small amount of espresso powder enhances the chocolate without making the cake taste strongly of coffee. It is optional in the cake batter.
- Eggs help the batter come together. Beating them in one at a time helps incorporate them into the sugar-and-cocoa mixture. Gentle mixing when combining the two bowls helps avoid overworking the batter.
What you need
Ingredients You’ll Need
The cake and frosting use separate sets of ingredients, though they are listed together here in the order needed. Choose either ripe starter or discard, and use plain yogurt or buttermilk in the frosting.
- Sourdough starter: One cup (227g), ripe and fed or unfed discard. Either works as the base for the flour rest.
- Milk: One cup (227g), or use evaporated milk. It hydrates the flour during the resting period.
- All-purpose flour: Two cups (240g). Measure by weight if possible for a consistent cake texture.
- Granulated sugar: One and a half cups (298g) for sweetness and a soft cake crumb.
- Vegetable oil: One cup (198g). A neutral oil keeps the chocolate flavor in focus.
- Vanilla extract: Two teaspoons to round out the cocoa flavor.
- Salt: One teaspoon of table salt balances the sweetness.
- Baking soda: One and a half teaspoons to help the cake rise.
- Natural cocoa powder: Three-quarters cup (64g) gives the cake its chocolate flavor. Use natural, not Dutch-process, cocoa.
- Espresso powder: One teaspoon, optional in the cake batter. It makes the chocolate taste fuller without adding a distinct coffee flavor.
- Eggs: Two large eggs, added individually to help the chocolate mixture blend evenly.
- Confectioners’ sugar: Six cups (680g), sifted for the frosting so it is smooth rather than lumpy.
- Unsalted butter: Twelve tablespoons (170g), at room temperature, for a smooth frosting base.
- Plain yogurt or buttermilk: Half a cup (113g). Either option adds moisture and a little tang to the warm frosting.
- Espresso powder: One and a half teaspoons for the frosting, dissolved in the hot water before it goes into the pan.
- Hot water: One tablespoon (14g), to dissolve the frosting’s espresso powder.
- Semisweet chocolate chips: One-third cup (57g) for the chocolate drizzle.
- Milk: One tablespoon (14g), combined with the chocolate chips to make the drizzle.
- Light or dark corn syrup: One tablespoon (21g). Either type helps the chocolate drizzle become smooth and glossy.
Tools
Equipment You’ll Need
- Large mixing bowls: Use separate bowls for the starter mixture and the sugar-and-cocoa mixture.
- Electric mixer: It makes beating the eggs into the chocolate mixture and smoothing the frosting easier.
The method
How to Make Sourdough Chocolate Cake
1. Rest the starter mixture
Stir the sourdough starter, milk, and flour together in a large bowl. Cover and leave at room temperature for 2 to 3 hours.
The mixture may look a little larger after resting, but it does not have to show bubbles.
2. Prepare the oven and pan
Heat the oven to 350°F. Lightly grease a 9×13-inch pan.
Grease the corners and sides as well as the bottom to help the cake release cleanly when sliced.
3. Mix the cocoa base
In another bowl, beat together the sugar, oil, vanilla, salt, baking soda, cocoa, and the optional espresso powder. The mixture will look grainy.
That grainy appearance is expected at this stage; the eggs and starter mixture will loosen the batter.
4. Beat in the eggs
Add the eggs separately, beating well after each one is incorporated.
Scrape the bowl if needed so there are no streaks of egg left at the bottom.
5. Combine the mixtures
Add the chocolate mixture to the rested starter mixture. Stir gently until the batter becomes smooth; it may look thick and uneven at first.
Keep mixing gently as the two mixtures come together, and stop once the batter is smooth.
6. Bake the cake
Transfer the batter to the prepared pan. Bake for 30 to 40 minutes, until the center springs back when lightly pressed and a cake tester inserted in the middle comes out clean.
The cake may begin to pull away from the pan sides as it finishes. A few solid crumbs on the tester are fine, but wet batter means it needs longer.
7. Start the frosting
Set the cake on a rack to cool in the pan. Sift the confectioners’ sugar into a large bowl. In a small saucepan over medium heat, melt the butter with the yogurt or buttermilk. Dissolve the espresso powder in the hot water, add it to the pan, and bring the mixture just to a boil.
Have the sifted sugar ready before heating the liquid so you can pour it over the sugar as soon as it simmers.
8. Finish and pour the frosting
Immediately pour the simmering liquid over the sugar and beat until smooth. Pour the warm, thin frosting over the cake in the pan.
The frosting will set as it cools. If it stiffens before you pour it, spread it over the cake instead.
9. Drizzle the chocolate
Combine the chocolate chips, milk, and corn syrup in a microwave-safe cup. Microwave until the chips soften, stir until smooth, then drizzle over the frosting, warm or cool.
Stir until no chocolate lumps remain, and drizzle while the mixture is fluid enough to fall in ribbons.
Doneness
How to Tell When It’s Done
Look for a cake that is beginning to pull away from the sides of the pan. The center should spring back when pressed lightly rather than keeping an indentation.
Check the middle with a cake tester or toothpick. It should come out clean or with a few solid crumbs; streaks of wet batter mean the cake needs more time in the oven.
Tips & common mistakes
Tips and Common Mistakes
A few small details make the long rest, even bake, and pourable frosting easier to manage.
- Use either ripe starter or discard. Both are suitable for the flour-and-milk rest, so you can use whichever is on hand.
- Add the eggs one at a time. Beating well after each addition helps them incorporate into the grainy cocoa mixture instead of leaving slick streaks.
- Be gentle when combining bowls. The batter can look gloppy initially. Keep stirring gently until smooth rather than trying to force it together with vigorous beating.
- Sift the confectioners’ sugar. This removes lumps before the hot liquid is added, helping the frosting turn out smooth.
- Pour the frosting promptly. It is easiest to pour while warm and fluid. If it begins to thicken, spread it across the cake instead.
Make it your way
Substitutions and Variations
The main ingredients are specific to the cake’s texture, but a few listed alternatives and simple serving variations work well.
- Evaporated milk: Use it in place of the milk in the starter mixture. The amount stays the same, and it gives the mixture a richer character.
- Yogurt or buttermilk: Either works in the frosting. Plain yogurt makes a slightly thicker mixture; buttermilk gives it a looser, tangier finish.
- Skip the cake espresso: The one teaspoon in the cake batter is optional. Leaving it out changes the flavor accent but not the cake’s structure.
- Use either corn syrup: Light or dark corn syrup works in the drizzle. Dark syrup will bring a deeper flavor and slightly darker color.
- Change the drizzle: For a less decorative finish, leave off the chocolate drizzle and serve the cake with just its frosting.
Serving
What to Serve with Sourdough Chocolate Cake
Cut the cake into squares straight from the pan. It is rich enough to serve on its own, or pair it with lightly sweetened whipped cream, fresh berries, or vanilla ice cream.
For another chocolate-forward dessert, browse our triple chocolate cake. If you’re planning a dessert table, add a few options from our brownies and bars collection.
Storage
Make-Ahead, Storage and Reheating
Make ahead: Bake the cake ahead and let it cool in the pan; add the frosting and drizzle once you are ready to finish it. The starter, milk, and flour mixture can rest for the specified 2 to 3 hours before you continue with the batter.
Storage: Cover the cooled cake or store slices in an airtight container in the refrigerator for 3 to 4 days. Let refrigerated slices sit briefly at room temperature before serving for a softer crumb.
Freezing: Freeze unfrosted cake, wrapped tightly once fully cool, for up to 3 months. Thaw it in the refrigerator, then bring it toward room temperature before adding freshly made frosting and drizzle.
Reheating: This cake is best served at room temperature, so allow refrigerated slices to lose their chill rather than heating them. If you prefer a slightly warm slice, warm it briefly and gently so the frosting does not melt away.
Questions
Sourdough Chocolate Cake FAQs
Can I use sourdough discard in this cake?
Yes. The ingredients allow either ripe, fed starter or discard, so use the same measured amount for either.
Does the cake taste sour?
No, it is a chocolate cake with sourdough starter in the batter, not a strongly sour cake. The cocoa, sugar, and vanilla make the chocolate flavor the main note.
Can I leave espresso powder out of the frosting?
Yes. The cake’s espresso is explicitly optional, while the frosting includes its own espresso powder; omitting it will remove that chocolate-enhancing accent.
Why is my frosting thin?
It is meant to be thin and pourable while warm. It sets as it cools over the cake, so give it time before deciding it needs to be spread.
Can I make this cake without a mixer?
Yes. Use a sturdy whisk or spoon to beat the eggs into the cocoa mixture and smooth the frosting, though mixing will take more effort.
Can I bake this in a different pan?
The instructions are written for a 9×13-inch pan. A different size changes the batter depth and baking time, so check the cake early and use the spring-back and tester cues.
Recipe Card

Ingredients
Method
- Combine the starter, milk, and flour in a large mixing bowl. Cover and let rest at room temperature for 2 to 3 hours. It won't necessarily bubble, but it may have expanded a bit.
- Preheat the oven to 350°F. Lightly grease a 9" x 13" pan.
- In a separate bowl, beat together the sugar, oil, vanilla, salt, baking soda, cocoa. and espresso powder. The mixture will be grainy.
- Add the eggs one at a time, beating well after each addition.
- Gently combine the chocolate mixture with the starter-flour-milk mixture, stirring till smooth. This will be a gloppy process at first, but the batter will smooth out as you continue to beat gently.
- Pour the batter into the prepared pan.
- Bake the cake for 30 to 40 minutes, until it springs back when lightly pressed in the center, and a cake tester inserted into the center comes out clean.
- Remove the cake from the oven, and set it on a rack to cool while you make the icing. You're going to ice the cake right in the pan, so don't worry about turning it out.
- Sift the confectioners' sugar into a large mixing bowl, and set it aside.
- In a small saucepan set over medium heat, melt the butter and add the buttermilk or yogurt. Dissolve the espresso powder in the hot water, add to the pan, and bring the mixture just to a boil.
- Immediately pour the simmering liquid over the confectioners' sugar in the bowl, and beat until smooth.
- Pour the warm frosting over the cake. Yes. it's thin and pourable; don't worry, it'll set as it cools. If you wait too long and the frosting stiffens up, simply spread it over the cake rather than pouring it.
- Combine the chocolate chips, milk, and corn syrup in a microwave-safe cup. Microwave until the chips soften, then stir until smooth.
- Drizzle/drip the chocolate over the icing. You can do this while the icing is still warm, or wait until it's cooled.
- Don’t have any starter? Here’s a recipe for homemade sourdough starter . If you're making it from scratch, you'll need to feed it for 5 to 7 days before it’s ready for baking. Want a head start? Purchase our classic fresh sourdough starter — it’ll be ready for baking soon after it arrives at your door. Looking for tips, techniques, and all kinds of great information about sourdough baking? Find what you need in our sourdough baking guide .
- Do you really need the espresso powder in the cake? Well, certainly it's not critical to the cake's structure. But we find espresso powder heightens chocolate flavor, just as vanilla does. You can't really taste either one; but each is a lovely accent to chocolate, bringing out the nuances of its flavor.
- How do you tell when a cake is done? Start with the time it's been in the oven, certainly, but don't depend on that; ovens vary wildly in how they bake. Rely instead on the usual tests: is the cake barely beginning to pull away form the sides of the pan? Does it spring back when pressed lightly in the center (rather than your finger leaving an imprint)? And, most importantly, does a cake tester or toothpick inserted into the center come out clean, or with perhaps only a few solid crumb clinging to it? Then, no matter what your timer says, the cake is done.