A dairy-free vanilla cake is a plain butter-style cake made with oil instead of butter and a plant milk instead of dairy milk, so it tastes and slices like an everyday birthday cake. It suits birthdays, lunchboxes, afternoon tea and school bake sales where someone at the table avoids dairy. Serve it plain with a dusting of icing sugar, or topped with dairy-free chocolate ganache and fresh berries.
Why Oil Cakes Work
A cake made with oil instead of butter stays soft for two to three days at room temperature, where a butter cake firms up by day two. Oil also removes the creaming step: you whisk wet and dry ingredients separately, combine, and bake. The crumb is slightly denser and more moist than a creamed butter cake, which is why oil cakes are the standard base for dairy-free baking.
The other dairy risk in a plain cake is butter in the icing. The ganache below uses coconut cream and dark chocolate instead. Check the chocolate label: some dark chocolates contain milk solids, so look for one marked dairy-free or vegan.
Ingredients
Cake
- 2 cups (250 g) plain flour
- 1 3/4 cups (350 g) white sugar
- 2 tsp (10 g) baking powder
- 1/2 tsp (3 g) baking soda
- 1/2 tsp (2.5 g) fine salt
- 1 cup (240 ml) soy or oat milk, at room temperature
- 1/2 cup (120 ml) neutral oil (rice bran, canola or light olive oil)
- 2 large eggs (about 100 g each in shell)
- 2 tsp (10 ml) vanilla extract
- 1 tbsp (15 ml) apple cider vinegar or white vinegar
Dairy-Free Chocolate Topping
- 150 g (about 5 oz) dairy-free dark chocolate, chopped
- 1/2 cup (120 ml) coconut cream
Instructions
- Heat the oven to 350°F/175°C. Grease two 8-inch (20 cm) round cake tins and line the bases with baking paper, or use one 9 x 5-inch (23 x 13 cm) loaf tin.
- Whisk the flour, sugar, baking powder, baking soda and salt in a large bowl until no lumps remain.
- In a separate bowl, whisk the milk, oil, eggs, vanilla and vinegar for about 30 seconds until smooth. The vinegar reacts with the baking soda for extra lift; you may see slight fizzing, which is normal.
- Pour the wet mixture into the dry and fold with a spatula just until the flour disappears. Do not overmix; 30-45 seconds of folding is enough. The batter should be smooth and pourable.
- Divide between the tins and bake 25-35 minutes for rounds (50-60 minutes for a loaf) until golden, the top springs back when lightly pressed, and a skewer inserted in the centre comes out clean.
- Cool in the tins 10 minutes, then turn out onto a rack and cool completely, about 45 minutes, before icing.
- For the topping: warm the coconut cream in a small saucepan until steaming (do not boil), pour over the chopped chocolate in a bowl, stand 2 minutes, then stir until smooth. Cool 10-15 minutes until it thickens to a spreadable consistency, then spread over the cooled cake. This cake is fully baked, so the raw-flour and raw-egg warnings that apply to batters do not apply to the finished cake; still, do not eat the raw batter because of the raw flour and raw eggs.
Swaps And Substitutions
- Plant milk: soy, oat, almond or rice milk all work 1:1. Soy and oat give the closest crumb to dairy milk; rice milk is thinner, so the cake is slightly softer. Avoid canned coconut milk here unless you want a coconut flavour.
- Oil: rice bran, canola, sunflower or light olive oil, 1:1. Rice bran and canola are the most neutral; strong olive oil adds a savoury edge.
- Eggs: replace each egg with 1 tbsp (15 g) ground flaxseed mixed with 3 tbsp (45 ml) water, rested 5 minutes. The crumb becomes denser and slightly gummier but still slices cleanly.
- Gluten-free: use a 1:1 gluten-free flour blend with xanthan gum, same weight. Expect a slightly tighter crumb.
- Sugar: brown sugar works cup for cup and adds a caramel note plus a moister, darker crumb.
Check labels on the plant milk, chocolate and baking powder for milk-derived ingredients; some brands process on shared equipment, which matters for a milk allergy.
Equipment Notes
Two 8-inch (20 cm) round tins give the classic birthday-cake shape; one 9 x 5-inch (23 x 13 cm) loaf tin works for a lunchbox cake and needs the longer bake time above. A 9 x 13-inch (23 x 33 cm) rectangular tin bakes in about 30-35 minutes and serves a crowd. No stand mixer is needed: two bowls, a whisk and a spatula cover it. If your tins are dark non-stick, drop the oven to 325°F/165°C and check 5 minutes early, as dark tins brown faster.
Storing The Cake
Uniced cake keeps 3-4 days at cool room temperature in an airtight container, or 3-4 days refrigerated once iced (the ganache contains coconut cream, so refrigerate it). Freeze uniced or iced cake wrapped tightly for up to 3 months; thaw at room temperature 2-3 hours. Do not leave iced cake out more than 2 hours (1 hour above 90°F/32C). If the ganache firms up too much in the fridge, let the cake stand 30 minutes before slicing.
Common Cake Problems
Sunken centre: usually the oven was opened before 20 minutes, or the baking soda was old. Replace baking soda every 6 months or so and keep the door shut until the minimum bake time.
Dense, oily crumb: overmixing after adding the flour develops the gluten. Fold only until the flour disappears.
Dry cake: overbaking. Pull the rounds at 25 minutes and test with a skewer; carryover heat finishes the centre.
Ganache splits: the cream was too hot. Warm it only until steaming, and if the mixture does split, whisk in 1 tsp (5 ml) of warm plant milk to bring it back together.
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).