Dinners

Milk Free Chocolate Cake With Dairy-Free Frosting

Updated · By Patriot Kitchen

Total timeincludes chilling, rising or resting
1 hr 30 min
Prep
20 min
hands-on
Cook
35 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

This chocolate cake is a moist, dark sponge made without milk or butter, making it suitable for those avoiding dairy. It has a deep cocoa flavor and a tender crumb, serving as a reliable option for potlucks or birthday celebrations. The texture is achieved by using oil and a plant-based milk alternative to maintain moisture without the need for cream.

Dairy-Free Chocolate Cake Substitutions

Replacing milk and butter requires ingredients that mimic the fat content and liquid ratio of traditional baking. For the milk component, unsweetened almond milk or oat milk are standard choices. Oat milk typically provides a creamier consistency and a more neutral flavor than almond milk, which can sometimes add a slight nuttiness to the cake. Soy milk is another option that provides a similar protein structure to cow’s milk, which can help with the cake’s rise.

In place of butter, a neutral-flavored vegetable oil, such as canola or sunflower oil, is used. Oil keeps the cake moist at room temperature and when refrigerated, whereas butter-based cakes tend to firm up and become denser in the cold. If using a coconut oil, melt it first; be aware that unrefined coconut oil will impart a distinct coconut flavor to the chocolate sponge. For the frosting, a combination of vegan butter or margarine and vegetable shortening provides the necessary stability to hold the cake’s shape.

Comparing Milk Alternatives for Cake

Alternative Ratio Effect on Cake
Oat Milk 1:1 Creamy texture, neutral taste, consistent crumb.
Almond Milk 1:1 Lighter texture, subtle nutty undertone.
Soy Milk 1:1 Stronger structure, closest to dairy milk protein.
Cashew Milk 1:1 Very creamy, rich mouthfeel, pale color.

Ingredients

  • 2 cups (250 g) all-purpose flour (heat-treated to 160°F/71°C)
  • 2 cups (400 g) granulated sugar
  • 3/4 cup (75 g) unsweetened cocoa powder
  • 2 tsp (10 g) baking soda
  • 1 tsp (5 g) baking powder
  • 1 tsp (5 g) salt
  • 1 cup (240 ml) unsweetened oat milk or almond milk
  • 1/2 cup (120 ml) vegetable oil
  • 2 large (100 g) pasteurised eggs
  • 2 tsp (10 ml) vanilla extract
  • 1 cup (240 ml) boiling water
  • 1/2 cup (115 g) vegan butter, softened (for frosting)
  • 3 cups (360 g) powdered sugar (for frosting)
  • 1/2 cup (45 g) unsweetened cocoa powder (for frosting)
  • 2-3 tbsp (30-45 ml) dairy-free milk (for frosting)

Instructions

  1. Preheat the oven to 350°F (175°C). Grease two 9-inch (23 cm) round cake pans with oil and dust with cocoa powder to prevent sticking.
  2. Heat-treat the flour by spreading it on a baking sheet and heating in the oven until it reaches 160°F (71°C) on a food thermometer. This step is necessary because raw flour can contain bacteria. Let the flour cool before using.
  3. In a large mixing bowl, whisk together the heat-treated flour, sugar, cocoa powder, baking soda, baking powder, and salt until no lumps remain.
  4. Add the dairy-free milk, vegetable oil, pasteurised eggs, and vanilla extract to the dry ingredients. Mix on medium speed with a hand mixer or whisk by hand for about 2 minutes until the batter is smooth.
  5. Carefully pour in the boiling water and stir by hand. The batter will be very thin and liquid; this is the correct consistency for a moist milk-free cake.
  6. Divide the batter evenly between the two prepared 9-inch (23 cm) pans.
  7. Bake at 350°F (175°C) for 30-35 minutes. The cake is done when a toothpick inserted into the center comes out clean or with just a few moist crumbs.
  8. Remove the pans from the oven and let them cool for 10 minutes. Invert the cakes onto wire racks to cool completely before frosting.
  9. To make the frosting, beat the softened vegan butter until creamy. Sift in the powdered sugar and cocoa powder. Add dairy-free milk one tablespoon at a time and beat on high for 2-3 minutes until fluffy.
  10. Place one cake layer on a plate, spread a layer of frosting on top, then place the second cake layer on top and frost the top and sides of the cake.

Milk Free Chocolate Cake Timeline

Planning the timing ensures the cake is stable enough to frost without the layers sliding or the frosting melting. Following this timeline prevents the common issue of frosting a warm cake, which results in the frosting thinning and running off the sides.

Day Before: Bake the cake layers. Once cooled to room temperature, wrap them tightly in plastic wrap and store them in the refrigerator. Cold cakes are easier to slice and frost because they are firmer.

Day Of: Remove the cake layers from the refrigerator about 1 hour before frosting to take the chill off, or frost them while cold for a cleaner finish. Prepare the frosting 30 minutes before assembly. Frost the cake and let it set at room temperature for 30 minutes before serving.

Storing and Reheating the Chocolate Cake

Because this cake uses oil instead of butter, it remains moist longer than traditional cakes. However, the frosting contains fats that can spoil or melt. Store the frosted cake in an airtight container or under a cake dome. Keep it in the refrigerator for up to 4 days. If the cake is stored at room temperature, it should be consumed within 2 days, provided the environment is cool and the frosting does not contain highly perishable plant-based creams.

To reheat a slice of cake, let it sit at room temperature for 30 minutes to soften. If a warmer cake is preferred, microwave a slice for 10-15 seconds. Avoid overheating, as this can cause the frosting to melt rapidly. For leftovers that have been frozen, thaw the cake in the refrigerator overnight before bringing it to room temperature. The cake can be frozen for up to 3 months; wrap the layers individually in plastic wrap and then in aluminum foil to prevent freezer burn.

Serving and Pairing the Cake

This cake has a rich, dark profile that pairs well with acidic or creamy accompaniments. Serve slices with fresh raspberries or sliced strawberries to provide a tart contrast to the cocoa. A dollop of coconut whipped cream or a scoop of dairy-free vanilla bean ice cream adds a creamy element that mimics a traditional cake and ice cream pairing.

For a beverage pairing, a strong cup of black coffee or an espresso balances the sweetness of the frosting. A glass of cold almond milk provides a neutral backdrop that allows the chocolate flavor to stand out. If serving as a dessert for a larger group, dust the top of the cake with a light coating of powdered sugar or garnish with chocolate shavings for a professional appearance.

Common Chocolate Cake Texture Issues

If the cake sinks in the middle, it is often due to over-mixing the batter after the flour is added, which develops too much gluten, or opening the oven door too early, which causes a temperature drop. To prevent this, mix only until the ingredients are combined and wait until at least 25 minutes of baking have passed before checking for doneness.

A cake that is too dry usually results from over-baking. Because milk-free cakes rely on oil, they can dry out quickly if left in the oven even 5 minutes too long. Use a toothpick to check the center frequently after the 30-minute mark. If the cake is too dense, ensure the baking soda and baking powder are fresh; expired leavening agents will not produce the necessary air bubbles for a light crumb.

Grainy frosting occurs when the powdered sugar is not sifted. Always pass the powdered sugar and cocoa powder through a fine-mesh sieve before adding them to the vegan butter. If the frosting is too soft to hold its shape, refrigerate it for 15 minutes and beat it again. If it is too stiff, add dairy-free milk one teaspoon at a time until the desired consistency is reached.

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