Coffee and walnut cake is a British classic: two soft espresso-flavoured sponge layers, a walnut buttercream filling, and chopped nuts pressed into the top. This dairy-free version swaps butter for plant-based block butter and milk for oat or soy milk, so the crumb stays moist and the frosting still holds its shape. It suits birthdays, afternoon coffee, and potlucks where someone at the table avoids dairy.
What You Are Building
The traditional cake is a plain creamed sponge with strong coffee dissolved into the milk, plus walnuts folded through the batter. The frosting is buttercream made with coffee. Plant butter works here because block-style versions (not the spreadable tubs) behave like dairy butter when creamed with sugar. The coffee flavour comes from instant espresso powder or instant coffee, which dissolves fully and leaves no graininess.
Check labels on the plant butter, milk, and any chocolate you use for decoration: some contain milk derivatives, and ‘may contain milk’ warnings matter for anyone with a true milk allergy rather than an intolerance.
Ingredients
Cake
- 1 3/4 cups (220 g) all-purpose flour
- 2 tsp (8 g) baking powder
- 1/2 tsp (3 g) salt
- 3/4 cup (150 g) granulated sugar
- 1/2 cup (113 g) plant-based block butter, softened
- 2 large eggs, room temperature
- 2 tbsp (10 g) instant espresso powder or instant coffee granules
- 2 tbsp (30 ml) hot water
- 3/4 cup (180 ml) oat milk or soy milk, room temperature
- 1 cup (100 g) chopped walnuts, plus extra halves for the top
Coffee Buttercream
- 1 cup (113 g) plant-based block butter, softened
- 3 cups (360 g) powdered sugar, sifted
- 1 tbsp (5 g) instant espresso powder
- 1 tbsp (15 ml) oat or soy milk
Instructions
- Preheat the oven to 350°F (175°C). Grease two 8-inch (20 cm) round cake pans and line the bases with parchment paper.
- Stir the espresso powder into the hot water until fully dissolved. Set aside to cool.
- Whisk the flour, baking powder, and salt together in a bowl.
- Cream the plant butter and sugar with an electric mixer for 2-3 minutes until pale and slightly fluffy.
- Add the eggs one at a time, beating after each. Add a spoonful of the flour mixture with the second egg if the batter looks curdled.
- Beat in the dissolved coffee.
- Add the flour mixture in three additions, alternating with the milk in two, mixing on low just until each addition disappears. Do not overmix.
- Fold in the chopped walnuts with a spatula.
- Divide the batter between the pans and smooth the tops. Bake 25-30 minutes, until a skewer inserted in the centre comes out clean and the cakes spring back when lightly pressed.
- Cool in the pans for 10 minutes, then turn out onto a wire rack and cool completely, about 40 minutes, before frosting.
- For the buttercream, beat the plant butter alone for 2 minutes until smooth and lighter in colour. Beat in the espresso powder.
- Add the powdered sugar in three additions, beating on low, then add the milk and beat on medium-high for 2-3 minutes until the frosting is pale and holds a soft peak.
- Level the cakes if domed. Spread about a third of the buttercream on one layer, sandwich the second on top, and spread the rest over the top and sides. Press walnut halves around the top edge.
Where This Cake Fits
Cut it into 10 slices from an 8-inch (20 cm) two-layer cake. It pairs with black coffee or a coffee-forward drink, and a scoop of dairy-free vanilla ice cream turns a slice into a dessert plate. For a birthday presentation, pipe the remaining-style swirls of buttercream around the top edge and set a walnut half on each. The cake travels well: chill it for 30 minutes so the frosting firms up, then carry it in a box.
Swaps That Work and What Changes
- Plant butter: use a block-style stick product, 1:1 for dairy butter. Tub spreads contain more water and give a greasy crumb and soft frosting.
- Oat or soy milk: swap 1:1 with any unsweetened plant milk. Soy and oat give the best crumb structure; almond works but the crumb is slightly more tender; coconut milk adds a faint coconut note.
- Instant coffee instead of espresso powder: use about double the quantity; the flavour is milder.
- Walnuts: pecans swap 1:1 and give a sweeter, softer crunch. Pecans and coffee is a well-established pairing.
- Egg-free: replace each egg with 1 tbsp (15 ml) ground flaxseed mixed with 3 tbsp (45 ml) water, rested 5 minutes. The crumb is denser and the rise is lower.
- Gluten-free: use a 1:1 gluten-free flour blend in place of the all-purpose flour. Check that the blend contains xanthan gum; without it the crumb crumbles.
Storing the Frosted Cake
Plant butter softens faster than dairy butter, so keep the frosted cake in the fridge. Cover it or store it in a sealed container and it keeps about 3-4 days. Bring slices to room temperature for 20-30 minutes before serving, as the flavour flattens when cold. Unfrosted layers can be wrapped tightly and frozen for up to 3 months; thaw them still wrapped at room temperature for about 2 hours. Frosting alone can be frozen in a sealed container for up to 3 months, then thawed and re-beaten. Refrigerate the cake within 2 hours of serving, or within 1 hour if the room is above 90°F (32°C).
When the Cake Goes Wrong
Greasy batter: the plant butter was too soft or was a tub spread. Use cool room-temperature block butter that dents under a finger but does not look shiny.
Frosting that will not thicken: the butter was too warm. Chill the bowl 15 minutes, then beat again. If it is too stiff and tears the crumb, add milk 1 tsp (5 ml) at a time.
Dense, sunken layers: the batter was overmixed once the flour went in, or the leavening was past its date. Mix only until each flour addition disappears.
Curdled-looking batter: the eggs or milk were cold. Keep going with the flour additions; the batter usually comes together by the final addition.
Related
- Sugar Free Gingerbread Syrup Recipe for Coffee
- Sugar Free Gingerbread Syrup for Coffee
- Cream Cheese Streusel Coffee Cake 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).