An egg-free chocolate cake rises on baking soda and acid rather than egg foam, so it bakes into a tender, close-crumbed layer cake with a deep cocoa flavor and a soft, slightly fudgy center. Buttermilk and hot coffee do the work eggs usually do: they react with the soda for lift and keep the crumb from drying out. It suits a birthday, a bake sale, or a Sunday afternoon slice, and it holds up well enough to frost and transport.
Most egg-free chocolate cakes fail in one of two ways: they turn out dry and crumbly, or they collapse in the middle. Both come from the same place — too little liquid and structure to replace what eggs would have supplied. The recipe below uses buttermilk, oil, and a hot liquid to build structure without eggs, and the method is written so each step protects that structure.
What Replaces the Eggs in an Egg-Free Chocolate Cake
Eggs do three jobs in a chocolate cake: they add moisture, they bind the crumb, and they help the batter emulsify. This recipe covers each job separately.
- Moisture: 1 cup (240 ml) buttermilk plus 1 cup (240 ml) hot brewed coffee. The coffee deepens the cocoa flavor; it does not make the cake taste like coffee.
- Binding: 2 tablespoons (16 g) ground flaxseed whisked into 6 tablespoons (90 ml) water and rested 5 minutes. This gel holds the crumb together the way egg protein would.
- Emulsifying and tenderness: ½ cup (120 ml) neutral oil, which stays liquid at room temperature and keeps the cake soft for days.
- Lift: 2 teaspoons baking soda reacting with the buttermilk’s acid. There is no egg foam, so all the rise comes from this reaction and from the steam in a hot oven.
If you have no flaxseed, 2 tablespoons (14 g) of cornstarch whisked into 6 tablespoons (90 ml) water works as a binder but gives a slightly denser crumb. Do not simply leave the flax out — the cake will crumble when sliced.
Ingredients for a Two-Layer Egg-Free Chocolate Cake
For the cake
- 2 tablespoons (16 g) ground flaxseed
- 6 tablespoons (90 ml) water
- 1¾ cups (220 g) all-purpose flour
- ¾ cup (65 g) unsweetened cocoa powder, sifted
- 1½ cups (300 g) granulated sugar
- 1 teaspoon (6 g) fine salt
- 2 teaspoons (10 g) baking soda
- 1 cup (240 ml) buttermilk, at room temperature
- ½ cup (120 ml) neutral oil, such as canola
- 2 teaspoons (10 ml) vanilla extract
- 1 cup (240 ml) hot brewed coffee or hot water
For the chocolate frosting
- ½ cup (115 g) unsalted butter, softened
- 2½ cups (300 g) powdered sugar
- ⅓ cup (30 g) unsweetened cocoa powder
- 1 teaspoon (5 ml) vanilla extract
- 3–4 tablespoons (45–60 ml) milk or oat milk
Instructions
- Heat the oven to 350°F (175°C). Grease two 8-inch (20 cm) round cake pans, line the bases with parchment, and grease the parchment.
- Whisk the flaxseed and water in a small bowl and set aside for 5 minutes, until it thickens to a gel.
- In a large bowl, whisk the flour, cocoa, sugar, salt, and baking soda until no cocoa lumps remain.
- In a second bowl, whisk the buttermilk, oil, vanilla, and flax gel until smooth.
- Pour the wet mixture into the dry and whisk just until combined, about 30 seconds. The batter will be thick.
- Pour in the hot coffee and whisk gently until the batter is smooth and thin, about 1 minute. Do not overmix.
- Divide the batter evenly between the pans. Tap each pan once on the counter to release large bubbles.
- Bake at 350°F (175°C) for 28–32 minutes, until a toothpick inserted in the center comes out with a few moist crumbs and the cake pulls slightly from the pan sides. Rotate the pans halfway through if your oven browns unevenly.
- Cool in the pans for 10 minutes, then turn out onto a rack and cool completely, about 40 minutes, before frosting.
- For the frosting, beat the butter until smooth, then add the powdered sugar and cocoa alternately with the milk and vanilla, beating 2–3 minutes until spreadable.
- Place one layer on a plate, spread about ½ cup (120 ml) of frosting over it, set the second layer on top, and frost the top and sides.
This cake contains no eggs, so the usual raw-egg risk does not apply. It does contain raw flour in the batter before baking — do not eat the unbaked batter. Baked cake is safe.
Swaps That Work in This Chocolate Cake
| Ingredient | Swap | What changes |
|---|---|---|
| Buttermilk, 1 cup (240 ml) | 1 tablespoon (15 ml) lemon juice or vinegar in a cup, topped to 1 cup with milk; rest 5 minutes | Same lift; slightly tangier crumb |
| All-purpose flour | 1¾ cups (220 g) gluten-free all-purpose blend with xanthan gum | Denser, more crumbly; add 2 tablespoons (30 ml) extra buttermilk |
| Neutral oil | ½ cup (115 g) melted butter | Firmer crumb, more flavor; cake stales faster |
| Hot coffee | Hot water | Less cocoa depth; same texture |
| Granulated sugar | 1½ cups (300 g) packed brown sugar | Moister, caramel note; darker color |
For a dairy-free version, use oat milk soured with vinegar in place of buttermilk and a dairy-free butter substitute in the frosting. Check labels for allergens if the cake is for guests with restrictions.
How to Tell the Cake Is Done and Fix a Sunken Center
A toothpick is the reliable test here. Insert it in the center: a few moist crumbs mean it is done, wet batter means it needs 3 more minutes. The cake should also spring back when pressed lightly and pull away from the pan sides by about ⅛ inch (3 mm).
A sunken center usually means one of three things. Opening the oven in the first 20 minutes drops the temperature and collapses the rise. Overmixing after the hot coffee is added develops gluten and makes the cake tough and prone to falling. And measuring flour by scooping straight from the bag can add 20–30 g per cup, which dries the batter; spoon the flour into the cup and level it. If the cake already sank, level the top with a serrated knife before frosting — the crumb underneath is fine.
Frosting, Serving, and What to Pair With It
The cake is rich enough to serve plain with a dusting of powdered sugar, and it takes well to a scoop of vanilla ice cream or a spoonful of whipped cream. For a potluck, cut it into 12 squares and serve at room temperature; cold cake tastes firmer and less sweet, so let slices sit out 15 minutes before serving.
Frosting options that suit the cocoa flavor: a simple chocolate buttercream as written, a vanilla buttercream for contrast, or a thin ganache made from 4 oz (115 g) chopped chocolate and ½ cup (120 ml) hot cream, poured over the cooled cake and left to set for 30 minutes. A raspberry or cherry jam layer between the cakes cuts the richness without competing with the chocolate.
Making the Cake Ahead and Storing It
The unfrosted layers can be baked up to 1 day ahead, wrapped tightly in plastic, and kept at room temperature. Frosted cake keeps at room temperature for up to 2 days in a covered container, or refrigerated for up to 4 days; bring it to room temperature before serving. Refrigerate within 2 hours of frosting if the room is warm.
To freeze, wrap whole cooled layers or individual slices in plastic and then foil, and freeze for up to 3 months. Thaw wrapped at room temperature for about 2 hours, or overnight in the refrigerator. Frosted cake freezes for up to 2 months; thaw in the refrigerator and serve within 2 days of thawing. Reheat slices in a 300°F (150°C) oven for 5–8 minutes if you want the crumb soft again.
Why the Batter Looks Thin Before It Goes in the Pan
The hot coffee thins the batter on purpose. A thin batter spreads evenly, bakes level, and gives a finer crumb; a thick egg-free batter tends to bake with a domed top and a gummy center. If the batter seems too thin to pour, check that the flour was measured correctly — 220 g is the target for 1¾ cups. If you added too much liquid, whisk in 1 tablespoon (8 g) of flour at a time until the batter coats a spoon.
Related
- Chocolate Pudding Without Egg Recipe
- Egg Free Chocolate Chip Cookie Dough Recipe
- Egg Free Cake Box Mix Recipe
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).