Coffee and walnut cake is a classic British layer cake: a butter cake flavored with dissolved instant coffee, studded with walnuts, and filled and topped with coffee buttercream. The gluten-free version depends on one ratio above all — a 1:1 gluten-free flour blend with xanthan gum, which replaces the structure wheat gluten would normally give. Made correctly, the crumb is moist and tender rather than gritty, and the coffee-walnut pairing does the rest.
Ingredients
Makes one 8-inch (20 cm) two-layer cake, about 10 slices. Check every label, including the flour blend, instant coffee and butter, for gluten-containing additives if you are baking for someone with celiac disease.
- 2 cups (250 g) gluten-free 1:1 flour blend with xanthan gum
- 1 cup (225 g) unsalted butter, softened, plus more for the pans
- 1 cup (200 g) granulated sugar
- 3 large eggs, room temperature
- 2 tbsp (30 ml) whole milk, room temperature
- 1 tbsp (8 g) instant coffee granules or espresso powder, plus 2 tsp (5 g) for the buttercream
- 2 tbsp (30 ml) boiling water
- 1 tsp (5 g) baking powder
- 1/2 tsp (2.5 g) fine salt
- 3/4 cup (90 g) chopped walnuts, plus 8 halves for decorating
Coffee Buttercream
- 1 cup (225 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- 2 tsp (5 g) instant coffee granules dissolved in 1 tbsp (15 ml) boiling water, cooled
- 1 tbsp (15 ml) whole milk, if needed to loosen
- Pinch of salt
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.
- Dissolve the 1 tbsp instant coffee in the 2 tbsp (30 ml) boiling water and set aside to cool slightly.
- Beat the 1 cup (225 g) butter and 1 cup (200 g) sugar in a large bowl with an electric mixer for 3-4 minutes, until pale and fluffy.
- Add the eggs one at a time, beating well after each. The batter may look slightly curdled at this stage; the flour and milk bring it back together.
- Stir the cooled coffee mixture and the milk into the batter.
- In a separate bowl, whisk the gluten-free flour blend, baking powder and salt. Add to the wet ingredients and mix on low for 30 seconds, then on medium for 1 minute, just until smooth. Do not overbeat.
- Fold in the 3/4 cup (90 g) chopped walnuts with a spatula.
- Divide the batter between the pans and smooth the tops. Bake 30-40 minutes, until a skewer inserted in the center 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 30-40 minutes, before frosting. The cake contains eggs; it is fully baked through, so no thermometer check is needed — the clean-skewer test is the doneness cue.
Making the Buttercream
- Dissolve the 2 tsp (5 g) instant coffee in 1 tbsp (15 ml) boiling water and let it cool for 5 minutes.
- Beat the 1 cup (225 g) butter for 2 minutes until pale and creamy.
- Add the powdered sugar a cup at a time, beating on low, then add the cooled coffee and the pinch of salt and beat 2-3 minutes until light. Add the milk 1 tsp at a time if the frosting is too stiff to spread.
Assembling the Layers
Level the domed tops of both cakes with a serrated knife if needed. Spread about a third of the buttercream on one layer, set the second layer on top, and spread the rest over the top and sides. Press the reserved walnut halves around the top edge in a ring. Chill the assembled cake 20-30 minutes so the frosting sets before slicing; this is included in the total time only if you chill while the cakes are already cool.
Serving and Pairing
Cut with a warm knife (dip it in hot water and wipe it dry) for clean slices. Serve at room temperature — the buttercream firms up hard when cold, so pull the cake out of the fridge 30 minutes before serving. It goes with strong black coffee, obviously, but also with a glass of cold milk or, for adult gatherings, a small glass of amaretto or coffee liqueur. It is a sturdy traveler and holds its shape at a potluck; keep it out of direct sun so the buttercream does not soften.
Flour Blend and Swaps
A gluten-free 1:1 blend labeled for cakes, containing xanthan gum or a similar binder, gives the best crumb. Results differ by blend:
- Self-mixed rice flour blends without gum: add 1/2 tsp xanthan gum per cup of flour or the cake will crumble when sliced.
- Almond flour: not a 1:1 swap here; it produces a dense, wet cake. Use it only in recipes written for it.
- Dairy-free: replace the butter with a plant-based block butter (not spreadable tubs, which are too watery) and the milk with oat or almond milk. Check both labels for gluten cross-contact.
- Instant coffee: espresso powder gives a stronger, less bitter flavor; regular instant coffee works but use the full tablespoon.
Variations
Cupcakes: line a 12-cup muffin tin with papers, fill each cup two-thirds full, and bake at 350°F (175°C) for 18-22 minutes until a skewer comes out clean. Pipe the buttercream in swirls and top each with a walnut half.
Single-layer sheet cake: bake the batter in a greased 9×13-inch (23×33 cm) pan at 350°F (175°C) for 30-35 minutes, cool completely, and spread all the buttercream on top. Halve the walnut decoration or chop and scatter the full amount over the frosting.
Storing the Cake
The frosted cake keeps 3-4 days in the fridge, loosely covered so the buttercream does not absorb fridge odors. Bring slices to room temperature 20-30 minutes before eating. Unfrosted layers can be wrapped tightly in plastic and frozen up to 3 months; thaw at room temperature 2-3 hours, still wrapped so condensation stays on the outside. Frosted cake also freezes — freeze slices solid on a tray, then wrap individually, up to 2 months. Do not leave the cake out more than 2 hours (1 hour above 90°F/32C) because of the butter and eggs; refrigerate within that window.
When the Crumb Goes Wrong
A gritty texture usually means the flour blend contains coarse rice flour; a different blend fixes it. A cake that sinks in the middle was underbaked — gluten-free batters hide this, so trust the skewer, not the clock, and add 5 minutes if the center looks wet. Crumbling on slice usually means a missing or under-dosed binder; check that your blend lists xanthan gum and add it separately if it does not. A dry cake means the flour was over-measured: spoon the flour into the cup and level it, or weigh it at 250 g.
Related
- Sugar Free Gingerbread Syrup for Coffee
- Sugar Free Gingerbread Syrup Recipe 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).