Time: 1 hr 15 min · Serves: 8 · The key step: Cooling the cake completely before icing to prevent melting.
This gluten-free vegan coffee and walnut cake delivers a moist, nutty crumb with a rich espresso flavor. It is an ideal dessert for afternoon tea or a weekend potluck, offering a dairy-free alternative that does not compromise on texture. The cake is topped with a smooth coffee buttercream and garnished with toasted walnuts for a satisfying crunch.
Ingredients for the Cake
- 1 cup (140 g) gluten-free all-purpose flour blend (with xanthan gum)
- ½ tsp baking powder
- ¼ tsp baking soda
- ¼ tsp salt
- ¾ cup (150 g) granulated sugar
- ⅓ cup (80 ml) neutral vegetable oil (such as canola or light olive oil)
- 1 large flax egg (1 tbsp ground flaxseed mixed with 3 tbsp warm water, rested 5 minutes)
- ½ cup (120 ml) strong brewed coffee, cooled to room temperature
- 1 tsp vanilla extract
- ½ cup (60 g) chopped walnuts
Ingredients for the Coffee Buttercream
- ½ cup (113 g) vegan butter, softened to room temperature
- 1 ½ cups (180 g) powdered sugar, sifted
- 1 tbsp instant espresso powder dissolved in 1 tsp hot water
- 1 tsp vanilla extract
- Pinch of salt
Instructions
- Preheat and Prepare: Preheat your oven to 350°F (175°C). Grease an 8-inch round cake pan or line it with parchment paper. This ensures the cake releases cleanly after baking.
- Mix Dry Ingredients: In a medium bowl, whisk together the gluten-free flour, baking powder, baking soda, and salt. Whisking aerates the mixture, which helps the dense gluten-free batter rise properly.
- Combine Wet Ingredients: In a large mixing bowl, combine the sugar, oil, prepared flax egg, cooled coffee, and vanilla extract. Whisk vigorously for about 2 minutes until the mixture is smooth and slightly thickened. The oil provides moisture, while the coffee intensifies the flavor without making the cake taste like liquid.
- Combine Batter: Add the dry ingredients to the wet ingredients. Stir gently with a spatula just until combined. Do not overmix; a few small lumps are acceptable. Fold in the chopped walnuts last to distribute them evenly throughout the batter.
- Bake: Pour the batter into the prepared pan and smooth the top. Bake for 25–30 minutes. The cake is done when the top is golden brown, springs back lightly to the touch, and a toothpick inserted into the center comes out clean or with a few moist crumbs.
- Cool Completely: Remove the cake from the oven and let it cool in the pan for 10 minutes. Then, turn it out onto a wire rack to cool completely. This step is critical; frosting a warm cake will cause the buttercream to slide off and melt.
- Make the Buttercream: While the cake cools, beat the softened vegan butter in a mixer on medium speed for 3 minutes until pale and creamy. Gradually add the sifted powdered sugar, alternating with the dissolved espresso mixture. Beat on high for 2 minutes until fluffy. Add vanilla and salt at the end.
- Frost and Garnish: Once the cake is fully cool, spread the coffee buttercream evenly over the top. Press additional toasted walnut halves onto the frosting for decoration. Slice and serve.
Why It Can Come Out Wrong
Too Dense: Gluten-free flours lack the elasticity of wheat flour. If you overmix the batter after adding the flour, the starches can become gummy. Mix only until no dry streaks remain. Also, ensure your baking powder and soda are fresh; expired leaveners result in a flat, heavy cake.
Too Dry: Using too much flour is the most common error. Gluten-free blends vary in density. Weighing your flour (140g) is more accurate than scooping with a cup, which can pack it down. If the batter looks stiff, add 1 tablespoon of extra coffee or water.
Runny Frosting: If the buttercream separates or melts, the vegan butter was likely too warm when beaten, or the cake was not cool enough. Always use room-temperature butter (not melted) and ensure the cake surface is cold to the touch before applying the frosting.
Scaling the Batch
| Batch Size | Flour | Sugar | Pan Size |
|---|---|---|---|
| Half | ½ cup (70 g) | ⅜ cup (75 g) | 6-inch round or 4 muffins |
| Double | 2 cups (280 g) | 1 ½ cups (300 g) | Two 8-inch rounds or 9×13 inch sheet |
Storage and Safety
Store leftovers in an airtight container at room temperature for up to 2 days. Because the cake contains no preservatives and uses plant-based fats, it dries out quickly if exposed to air. For longer storage, refrigerate for up to 4 days. Bring to room temperature before serving to restore softness. You can also freeze unfrosted cake layers wrapped tightly in plastic wrap for up to 3 months. Thaw overnight in the refrigerator before frosting.
Ingredient Swaps
If you cannot find a gluten-free flour blend with xanthan gum, add ¼ tsp xanthan gum to your favorite rice or almond flour mix. Almond flour can replace half the all-purpose flour for a moister crumb, but reduce the baking time by 5 minutes as nuts bake faster. For a nut-free version, substitute the walnuts with chocolate chips or dried cranberries.
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).