Dinners

Gluten Free Coffee and Walnut Cake Recipe UK

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
1 hr 25 min
Prep
25 min
hands-on
Cook
45 min
oven or stovetop
Serves
10
as written

Jump to recipe Save

Ingredients

  • 200 g (1½ cups) gluten-free plain flour blend (with xanthan gum, or add 1 tsp xanthan gum)
  • 1½ tsp baking powder
  • ½ tsp bicarbonate of soda
  • ½ tsp salt
  • 115 g (½ cup) unsalted butter, softened
  • 150 g (¾ cup) caster sugar
  • 2 large eggs, at room temperature
  • 1 tsp vanilla extract
  • 120 ml (½ cup) strong brewed coffee, cooled
  • 120 ml (½ cup) buttermilk (or 120 ml milk + 1 tsp lemon juice, left 5 min)
  • 100 g (1 cup) walnut halves, chopped, plus a few whole for decoration

For the coffee buttercream:

  • 115 g (½ cup) unsalted butter, softened
  • 250 g (2 cups) icing sugar, sifted
  • 2 tbsp strong brewed coffee, cooled
  • 1 tsp vanilla extract

Instructions

  1. Preheat the oven to 180°C (350°F). Grease and line a 20 cm (8-inch) round cake tin with baking paper.
  2. In a medium bowl, whisk together the gluten-free flour, baking powder, bicarbonate of soda and salt.
  3. In a large bowl, beat the butter and sugar until pale and fluffy, about 3 minutes. Add the eggs one at a time, beating well after each, then stir in the vanilla.
  4. Mix the cooled coffee and buttermilk together. Add the flour mixture to the butter mixture in three additions, alternating with the coffee mixture, starting and ending with flour. Stir until just combined; do not overmix.
  5. Fold in the chopped walnuts. Pour the batter into the prepared tin and smooth the top.
  6. Bake for 40–45 minutes, until a skewer inserted in the centre comes out clean. If the top browns too quickly, cover loosely with foil after 30 minutes.
  7. Cool in the tin for 10 minutes, then turn out onto a wire rack to cool completely.
  8. For the buttercream: beat the butter until creamy, then gradually add the icing sugar, coffee and vanilla. Beat until light and fluffy, about 2 minutes.
  9. Once the cake is completely cool, spread the buttercream over the top and sides, or just the top. Decorate with the reserved walnut halves.

Why the Cake Can Turn Out Dry, Dense or Sunken

Gluten-free flours absorb more liquid than wheat flour, so the batter looks looser than a standard cake – that is normal. If the cake is dry, the most likely cause is overbaking or too much flour. Check the cake at 40 minutes; if a skewer comes out clean, it is done. If the cake is dense or heavy, the flour blend may lack xanthan gum, which gives structure and elasticity. Use a blend that contains xanthan gum, or add 1 teaspoon per 200 g of flour. A sunken centre usually means the oven door was opened too early or the cake was underbaked – wait until 40 minutes before checking, and always test with a skewer.

Substitutions and Swaps

  • Walnuts: Swap for pecans or hazelnuts – use the same weight. The flavour changes but the texture stays similar.
  • Buttermilk: Use 120 ml milk plus 1 teaspoon lemon juice or white vinegar, left for 5 minutes. This adds acidity that helps the cake rise.
  • Coffee: Use espresso or strong instant coffee – dissolve 1 tbsp instant coffee in 120 ml hot water. Decaffeinated works the same.
  • Dairy-free: Use dairy-free butter (block style, not spread) and dairy-free milk with lemon juice. Check the flour blend is dairy-free.
  • Egg-free: Not recommended – the cake relies on eggs for structure. A commercial egg replacer may work but the texture will be denser.

Storing and Freezing the Cake

Store the cake in an airtight container at room temperature for up to 3 days. The buttercream is fine at room temperature for 2 days, but if your kitchen is warm, refrigerate and bring to room temperature before serving. For longer storage, wrap the unfrosted cake (or fully frosted cake) tightly in cling film and freeze for up to 3 months. Thaw overnight in the fridge, then bring to room temperature. Do not freeze the buttercream separately – it can split on thawing.

What to Do With Leftover Coffee

If you have extra strong coffee, freeze it in ice cube trays and use a cube or two in the next cake – add it to the buttermilk mixture. Or make a simple coffee syrup: dissolve 1 tbsp sugar in 2 tbsp hot coffee and brush over the baked cake layers before frosting for extra moisture.

Related

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).