
This vegan chocolate cake is rich, indulgent, and completely dairy-free—yet no one would ever guess it’s vegan. Moist chocolate cake layers paired with a bright, slightly tart raspberry filling and finished with silky chocolate buttercream create a dessert that feels bakery-worthy and special enough for celebrations.
What makes this vegan chocolate cake shine is its simplicity. No egg replacers, no complicated techniques—just pantry-friendly vegan ingredients that work together beautifully. Brewed coffee enhances the cocoa flavor, while oil keeps the cake soft and tender for days. If you’re a fan of rich desserts, you’ll also love my vegan vanilla cake and vegan streusel cupcakes.
Whether you’re baking for a birthday, holiday, or simply craving a decadent vegan dessert, this cake delivers bold chocolate flavor with a fruity contrast that balances every bite.
Step-by-Step Instructions: How to Make Vegan Chocolate Cake
Prepare Your Pans and Oven
Preheat your oven to 350°F (175°C). Grease and line two 8-inch round cake pans with parchment paper. This ensures easy release and clean layers.
Mix the Dry Ingredients
In a large mixing bowl, whisk together:
- All-purpose flour
- Granulated sugar
- Cocoa powder
- Baking powder
- Baking soda
- Salt
Whisk thoroughly to evenly distribute the leavening agents and cocoa.




Combine the Wet Ingredients
In a separate bowl, whisk together:
- Dairy-free milk
- Vegetable oil
- Vanilla extract
- White vinegar
The vinegar reacts with the baking soda to help the cake rise and stay fluffy—no eggs required.
Add the Coffee or Hot Water
Slowly whisk in the hot brewed coffee or hot water. The heat helps bloom the cocoa powder, intensifying the chocolate flavor without making the cake taste like coffee.
Combine and Mix
Pour the wet ingredients into the dry ingredients and mix until just combined. The batter will be thin—this is exactly what you want for a moist vegan chocolate cake.
Bake
Divide the batter evenly between prepared pans. Bake for 30–35 minutes, or until a toothpick inserted into the center comes out clean.


Cool Completely
Allow cakes to cool in the pans for 10 minutes, then turn out onto a wire rack. Cool completely before filling and frosting.
Making the Raspberry Filling (Homemade, Vegan & Dairy-Free)
This homemade raspberry filling adds a bright, naturally tart contrast to the rich chocolate cake and is made with simple, vegan pantry ingredients. It thickens beautifully and holds its shape between cake layers.



Add raspberries, cane sugar, and lemon juice to a saucepan over medium heat. Cook for 8–10 minutes, stirring frequently, until the raspberries break down. In a small bowl, whisk cornstarch and water until smooth. Stir the cornstarch slurry into the raspberry mixture. Continue cooking for 1–2 minutes until thickened. Remove from heat and stir in vanilla extract. If you desire to remove the seeds, with a fine wire strainer, use a spoon to press the raspberries so that the seedless pulp falls into a bowl below.Transfer filling to a bowl and cool completely before assembling the cake.
How to Make Vegan Chocolate Buttercream
In a double boiler over medium-low heat, melt the chocolate and the vegan butter together until smooth, stirring occasionally. Remove from heat and allow to cool for 10-15 minutes until it is just warm to the touch. Gradually add confectioners’ sugar and salt; Mix until fully incorporated. Add vanilla extract. Slowly mix in dairy-free milk until desired consistency is reached. Beat on medium-high speed for 2–3 minutes until light and fluffy.





How to Assemble the Vegan Chocolate Cake with Raspberry Filling (Step-by-Step)
Once your vegan chocolate cake layers have completely cooled, it’s time to assemble this rich and elegant dessert. Proper assembly ensures clean layers, balanced flavor, and a professional bakery-style finish.
Start by placing one vegan chocolate cake layer on a serving plate or cake stand. Using an offset spatula, spread an even layer of homemade vegan raspberry filling over the top, leaving about a ½-inch border around the edges. This border helps prevent the filling from spilling out once the second layer is added. The raspberry filling should be fully cooled and thickened, which allows it to hold its shape and create a defined layer between the cakes.


Gently place the second vegan chocolate cake layer on top, pressing down lightly to secure it. If needed, use a paper towel to wipe away any excess filling around the edges. Apply a thin crumb coat of vegan chocolate buttercream over the entire cake to seal in crumbs, then refrigerate the cake for 15–20 minutes. Once chilled, finish frosting the cake with a smooth or swirled layer of chocolate buttercream, decorating as desired. This method results in a beautifully layered vegan chocolate cake with raspberry filling that slices cleanly and looks just as good as it tastes.
Substitutions and Variations
- Flour: Use a 1:1 gluten-free baking flour for a gluten-free option
- Raspberry filling: Substitute strawberry, cherry, or blackberry preserves
- Cake style: Bake as a 9×13 sheet cake or cupcakes (adjust bake time)
- Extra richness: Add dairy-free chocolate chips to the batter
- Frosting flavor: Add a pinch of espresso powder for deeper chocolate notes

Vegan Chocolate Cake with Raspberry Filling and Chocolate Buttercream
Ingredients
Equipment
Method
- Preheat oven to 350°F and prepare cake pans.
- Whisk dry ingredients together in a large bowl.
- Whisk dairy-free milk, oil, vanilla, and vinegar in another bowl.
- Slowly add hot coffee or water to wet ingredients.
- Combine wet and dry ingredients until smooth.
- Divide batter evenly and bake 30–35 minutes.
- Cool cakes completely.
- Remove from heat and allow to cool for 10-15 minutes until it is just warm to the touch.
- For the chocolate buttercream, place vegan butter and chocolate in a double boiler over medium-low heat.
- Melt the chocolate and the vegan butter together until smooth, stirring occasionally.
- Gradually add confectioners’ sugar and salt;
- Mix until fully incorporated.
- Add vanilla extract.
- Slowly mix in dairy-free milk until desired consistency is reached.
- Beat on medium-high speed for 2–3 minutes until light and fluffy.
- For the raspberry filling, Add raspberries, cane sugar, and lemon juice to a saucepan over medium heat.
- Cook for 8–10 minutes, stirring frequently, until the raspberries break down.
- In a small bowl, whisk cornstarch and water until smooth. Stir the cornstarch slurry into the raspberry mixture.
- Continue cooking for 1–2 minutes until thickened.
- Remove from heat and stir in vanilla extract.
- If you desire to remove the seeds, with a fine wire strainer, use a spoon to press the raspberries so that the seedless pulp falls into a bowl below.
- Transfer filling to a bowl and cool completely before assembling the cake.
Notes
- Allow raspberry filling to cool completely before assembling to prevent sliding.
- Use certified vegan chocolate chips and cane sugar to ensure the recipe stays dairy-free.
- If buttercream thickens too much, add dairy-free milk 1 tablespoon at a time.
- Chill cake layers briefly before frosting for cleaner assembly.
How to Store Vegan Chocolate Cake with Raspberry Filling
Proper storage will help maintain the rich texture and balanced flavor of your vegan chocolate cake
Store the fully assembled cake in an airtight container in the refrigerator for up to 4 days. Because of the raspberry filling and frosting, refrigeration helps preserve freshness and prevents the layers from becoming too soft. Make sure the cake is well covered to keep it from drying out or absorbing other flavors from the refrigerator.
For the best texture and flavor, allow slices to come to room temperature before serving. This step is important, as it softens the crumb and brings out the full richness of the chocolate while allowing the raspberry filling to taste more vibrant. For a lighter, fruit-forward option, try my vegan lemon blueberry bundt cake.
If you’d like to prepare the vegan chocolate cake ahead of time, unfrosted cake layers can be wrapped tightly in plastic wrap and stored in the freezer for up to 2 months. When ready to use, thaw the layers in the refrigerator overnight, then bring them to room temperature before assembling.
You can also freeze individual slices of the assembled cake. Wrap each slice tightly and store in a freezer-safe container for up to 1–2 months. Thaw in the refrigerator or at room temperature for a convenient, ready-to-enjoy dessert.
For best results, always keep the cake covered to maintain moisture and protect the texture of both the cake and filling.
Final Thoughts
This vegan chocolate cake is a perfect example of how plant-based baking can deliver both flavor and texture without compromise. The combination of rich chocolate layers and bright raspberry filling creates a balanced dessert that feels indulgent while still being approachable to make at home.
One of the most rewarding aspects of this recipe is its consistency. The cake bakes up soft and moist, the filling adds a fresh contrast, and the overall result feels both elegant and comforting. It’s a dessert that works just as well for special occasions as it does for everyday baking.
Because this recipe is built on simple techniques and accessible ingredients, it’s one you can return to again and again with confidence. Whether you’re baking for a celebration, sharing with friends and family, or simply treating yourself, this cake delivers dependable results every time.
If you enjoyed this vegan chocolate cake consider saving it for later, sharing it on Pinterest, or exploring more plant-based recipes on your site. Your feedback, comments, and ratings not only help other readers but also support the continued creation of reliable, high-quality recipes.
Happy baking! 🍫✨
🍰 You May Also Like

Hi, I’m Priscilla, a baking enthusiast and recipe creator sharing easy baking recipes, simple desserts, and beginner-friendly treats. At The Baking Enthusiast, I focus on creating reliable, step-by-step recipes using everyday ingredients to help you bake with confidence and enjoy the process.
