Some recipes make you think, ‘That looks nice enough, but I doubt it’s anything special.’ Then you have your first forkful and change your mind. This walnut, carrot and apple cake is one of those recipes. It looks unassuming, and the flavour bowls you over. The combination might sound odd at first, yet it’s this unlikely trio that makes the cake work. The carrot keeps the crumb light and moist, the apple adds a subtle hint of sweetness and freshness, and the walnuts give each slice a crunch that transforms its texture.
At Mestre das Receitas, we’re choosy about the recipes we publish. We tested this one, tweaked it and tested it again until the crumb was soft but held together when sliced, and the kitchen filled with the smell of the cake well before it was due out of the oven. If you’re after something a little different for afternoon tea, or a cake that will impress without a single exotic ingredient, settle in and read on.
Ingredients for walnut, carrot and apple cake
Before you switch on the oven, lay everything out on the worktop. This is a straightforward cake, but having the ingredients ready makes mixing much easier. Check the quantities carefully, especially the walnuts and apple, as they’re the stars here.
For the walnut cake
- 3 fresh whole eggs, preferably at room temperature so they mix more evenly
- 1 cup caster sugar, or granulated sugar if you prefer a slightly coarser texture
- 1/2 cup neutral vegetable oil, such as corn or sunflower oil, so the other flavours come through
- 1 cup finely grated carrot, preferably grated on the fine side of the grater so it blends into the mixture
- 1 medium apple, peeled and grated (Fuji or Gala both work well, and there’s no need to squeeze out all the juice)
- 1 cup roughly chopped walnuts, reserving a few whole ones for decoration if you’d like a prettier finish
Dry ingredients and raising agent
- 2 cups of sifted plain flour for a lighter crumb
- 1 teaspoon good-quality ground cinnamon with a fragrance strong enough to fill the kitchen
- 1/2 teaspoon of nutmeg, freshly grated if possible, as it has a noticeably different flavour from ready-ground nutmeg
- 1 tablespoon baking powder. Check the date before using it, as stale baking powder can spoil the texture
- 1 generous pinch of salt to balance the sweetness and bring out the other flavours
For the cream cheese icing
- 200 g cream cheese, at room temperature for smooth, lump-free icing
- 3 tablespoons sifted icing sugar, which dissolves quickly and gives the icing a silky texture
- 1 teaspoon good-quality vanilla essence, avoiding cheap artificial varieties
- 2 to 3 tablespoons cream, to adjust the consistency to your liking
The cream cheese icing is optional, but it really does make the cake. The gentle tang of the cheese cuts through the sweetness in a way a simple sugar syrup never could. If you’d like something simpler, a lemon drizzle works beautifully too.
How to make walnut, carrot and apple cake step by step

Preheat the oven to 180°C. Grease a 22 cm round cake tin (or a 20×30 cm rectangular tin) with butter, then dust it with flour. The mixture comes together quickly and you’ll only need one large mixing bowl.
Mixing the walnut cake batter
In a large bowl, beat the eggs and sugar with a whisk or an electric mixer on medium speed for about 3 minutes, until slightly paler and thicker. Pour in the oil in a thin stream, stirring all the time until well combined. Add the grated carrot and apple, then stir with a spatula until evenly mixed. This is when the batter turns orange and starts to smell wonderful.
Sift in the flour a little at a time, alternating with the cinnamon, nutmeg and salt. Fold gently, lifting the mixture from the bottom of the bowl, and take care not to overwork it. Finally, fold in the baking powder and chopped walnuts, keeping the larger pieces intact. Pour the mixture into the prepared tin and bake for 35 to 40 minutes.
How to tell when the walnut cake is baked
The skewer test is still the most reliable way to tell. Insert a skewer into the centre of the cake at around 35 minutes. If it comes out clean or with just a few moist crumbs clinging to it, the cake is ready. Avoid opening the oven during the first 30 minutes, as the cake could sink. Once baked, leave it to cool in the tin for 10 minutes before turning it out onto a wire rack.
Making the cream cheese icing for the perfect walnut cake
Wait until the cake is completely cool, as icing will melt and slide off a warm cake. Beat the cream cheese, icing sugar and vanilla together with a fork or an electric mixer on low speed. Add the cream a little at a time until the icing spreads easily but still holds its shape. It should be neither runny nor stiff. Spread it over the cake with a palette knife or spoon and finish with the reserved whole walnuts.
Tried-and-tested walnut cake variations and substitutions

One of the best things about this recipe is how adaptable it is. The basic ingredients are simple, and you can make a few changes while keeping the cake’s distinctive character. These are the variations we’ve tried and recommend.
Lactose-free walnut cake
For a lactose-free icing, use lactose-free cream cheese and lactose-free cream in the quantities given. You can also replace the icing with an orange syrup. Heat the juice of 1 large orange with 2 spoonfuls of sugar until the sugar dissolves, then drizzle the syrup over the cake while it is still warm.
Gluten-free walnut cake
Brown rice flour mixed with 1 tablespoon of potato starch works well in place of the plain flour. The crumb will be a little denser, but the flavour stays the same. Avoid using just one alternative flour, as it’s the combination that helps the cake hold together.
Walnut cake with less sugar
Reduce the sugar in the cake mixture to 3/4 cup and choose a slightly riper apple for its natural sweetness. The result is a well-balanced cake with a gentler sweetness, ideal if you prefer it to stay in the background.
Walnut cake with other fruit and nuts
You can replace the apple with a pear or a ripe, mashed Cavendish banana. If using banana, half a large one is enough. Chopped Brazil nuts or pecans work well in place of the walnuts. If you like dried fruit, a few raisins or dried cranberries add a little tang and chew without affecting how the cake holds together.
Walnut cake with extra spice
If you like autumnal flavours, add 1/4 teaspoon of ground cardamom and a pinch of ground cloves. Together with the cinnamon and nutmeg already in the cake, they give it a deeper, warmer flavour that’s especially good in winter or on a cold, rainy day.
Tips on texture, presentation and storage for your walnut cake

Keeping the walnut cake moist
Part of this cake’s appeal is its light, moist crumb. Leave all the moisture in the grated carrot, as the cake needs it. If the grated apple is very juicy, give it a gentle squeeze with your hands before adding it, especially on humid days when the flour absorbs less liquid.
Slicing the walnut cake
Let the cake cool before slicing, especially if it has cream cheese icing. For neat slices, use a long knife. Run the blade under hot water and dry it before cutting. You can keep the uniced cake covered at room temperature for up to 2 days. If it has cream cheese icing, keep it in the fridge and eat it within 3–4 days. About 20 minutes before serving, take out just the slices you need.
Can you freeze it?
Yes, it freezes very well. Wrap the uniced cake first in cling film and then in kitchen foil, and freeze for up to 2 months. To defrost, transfer it to the fridge the night before. Once the cake has thawed and come to room temperature, make the cream cheese icing fresh.
The story behind this walnut cake’s unlikely combination

Putting vegetables in cakes is nothing new. Carrot cake’s rise in popularity in the United States dates back to the Second World War, when sugar and butter were rationed and cooks looked for other ways to add sweetness and moisture. Carrots, with their natural sugars, fitted the bill, and the cake was good enough to outlast rationing by many years.
The apple serves a similar purpose. In parts of Central Europe, particularly Germany and Austria, bakers have long made cakes with grated fruit mixed into the batter instead of simply arranged on top. Apple gives the crumb a subtler moistness than carrot does, with a hint of freshness that balances the sweetness and keeps the cake from becoming cloying. Walnuts, meanwhile, have long featured in celebration cakes from Greece to Russia, both for their flavour and because many traditions associate them with prosperity.
This recipe brings those strands together, with American influences, European roots and the knack for improvisation that Brazilian cooks know so well. It’s a cake that belongs to no one place, and perhaps that’s why it feels at home on any table.
A final word on your walnut cake

This cake shows how a simple recipe, made with care and good ingredients, can outshine many a more elaborate bake. The combination of carrot, apple and walnuts is no passing fad. Their flavours balance each other beautifully, and the cream cheese icing turns an afternoon treat into a cake you could serve on any occasion.
If you make it, tell us in the comments how it turned out. If you try a variation of your own, we’d love to hear about it too. This recipe was made to be adapted. Enjoy your cake, from all of us at Mestre das Receitas.
Frequently asked questions about walnut, carrot and apple cake
Should I grate the carrot finely, or can I use a coarse grater?
The fine side of the grater is ideal because the smaller shreds blend into the crumb as the cake bakes, giving it an even texture. A coarse grater leaves little pieces of carrot you can feel in each slice. That works too, though the texture is different. If you prefer a completely smooth mixture, use a blender to purée the carrot with the oil, then combine the purée with the other ingredients.
Can I use a green apple instead of Fuji or Gala in the walnut cake?
Yes, though the cake will taste slightly sharper. Green apples contain less sugar and more pectin, which can give the cake a slightly firmer crumb. You may want to add an extra 2 tablespoons of sugar to balance the tartness.
Can I bake the walnut cake as cupcakes or muffins?
Yes, the mixture works very well for both. Fill the cases 3/4 full and reduce the baking time to 18 to 22 minutes at the same temperature (180°C). Start checking at 18 minutes, as smaller cakes bake more quickly and can dry out if left too long.
Does the cream cheese icing on the walnut cake need to be kept in the fridge?
Yes. Keep the cake with cream cheese icing in the fridge. When serving, leave it out for no more than 2 hours, or 1 hour if the room temperature is above 32 °C. If you prefer softer icing, take the individual portions out of the fridge about 15 minutes before serving.
How much does the walnut cake rise, and what size tin should I use?
It rises moderately, reaching about 5 to 6 cm in height in a 22 cm tin. In a smaller tin (20 cm), it will rise higher and may need an extra 5 minutes in the oven. In a larger tin (25 cm or a rectangular tin), the cake will be shallower and bake more quickly, so start checking at 28 minutes.
Can I use peanuts or cashews instead of walnuts?
Unsalted roasted peanuts work well and give the cake a bolder, distinctly Brazilian flavour. Cashews are milder and go well with the apple. Avoid salted peanuts, as the extra salt throws the flavours out of balance.


