This Vegan Coconut Cake is soft, tender, and full of coconut flavor! It's made with coconut extract and sweetened shredded coconut for plenty of flavor in every bite, then finished with a fluffy coconut frosting and even more shredded coconut. The result is a classic coconut layer cake that's completely dairy-free and eggless like my Vegan Chocolate Cake.

Quick Look: Vegan Coconut Cake
- Method: Whisk the batter in a bowl, then use a hand mixer or stand mixer to mix the frosting until light and fluffy.
- Why Make THIS Version? Tender and moist cake layers and fluffy frosting that's packed with coconut inside and out!
- No Need To: Use eggs or dairy to make this delicious cake recipe! It is completely vegan.
- Secret to Success: Freeze the cake layers for 30 minutes before assembling the cake for extra stability and ease.
- Key Ingredients: Shredded sweetened coconut, coconut extract, non-dairy butter, non-dairy milk, and sugar.
- Calories/Serving: 509 kcal.
- Freezer-Friendly: Yes. Freeze your cooled cake layers and finished frosting separately for up to a month.
As a culinary school-trained baker, I love making layer cakes, like my Vegan Vanilla Cake, Vegan Funfetti Cake, and Chocolate Espresso Cake. And this Vegan Coconut Cake recipe is all about packing big coconut flavor into both the cake layers and the frosting. I use coconut extract to give the cake a stronger coconut flavor, while sweetened shredded coconut adds texture and flavor throughout the layers and outside the cake.
If you're new to making layer cakes, don't worry! I train new bakers all the time. And I included all of my expert tips in this post so your cake comes out perfectly the first time. I'll walk you through each step, from mixing the batter and baking the layers to making the frosting and stacking and frosting the cake. So let's make it!
Jump to:
Why You'll Love This Vegan Cake Recipe
- This cake is surprisingly simple to make. And I've included all my best tips and tricks for stacking and assembling layer cakes.
- It's packed with coconut flavor from coconut extract and plenty of shredded coconut in the cake layers, the frosting, and on the outside of the cake.
- This Vegan Coconut Cake is super soft and moist without using any eggs or dairy!
- The coconut frosting is ready in 10 minutes and is light and fluffy.
- And most importantly, it's absolutely delicious!
Ingredient Notes

Coconut Extract: Coconut extract adds a buttery, coconut flavor to the cake layers and the frosting. If you leave it out, your cake will still be delicious, but will have more of a vanilla flavor rather than coconut.
Shredded Sweetened Coconut: I used Baker's Sweetened Flaked Coconut. You will need two 7-ounce bags for this recipe! But you won't use all of the second bag. Don't use unsweetened coconut for this recipe. It is much chewier than sweetened coconut, so it is better suited for making vegan coconut cookies.
Non-Dairy Milk: I use oat milk in my cake recipes, like my vegan yellow cake, because that is what I keep on hand at my house. But I have also made this cake with soy milk, almond milk, and boxed coconut milk. They all work great.
Vegan Butter: Be sure that your vegan butter comes in a stick or block form. The kind that comes in a tub is softer because it's formulated for spreading. If you use tubbed vegan butter to make the coconut frosting, it will be too soft.
Substitutions and Variations
I made a vegan coconut frosting for this cake for extra coconut flavor, but you can also use vegan cream cheese frosting or vegan vanilla frosting!
How to make this Vegan Coconut Cake

Step 1. To make the coconut cake, combine sugar, non-dairy milk, vegan butter, lemon juice, vanilla extract, and coconut extract in a large bowl. Whisk well to combine.

Step 2. Add flour, baking powder, baking soda, and salt. Whisk until just combined. Then, add the shredded coconut and use a spatula to fold it into the batter.
The batter will have a similar texture to pancake batter!

Step 3. Divide the batter between two 8-inch round cake pans. Use a spatula to spread the cake batter out evenly, and bake the cakes in a 350°F oven for about 26-29 minutes. They should be brown around the edges, golden on top, and a toothpick inserted into the center of the cakes should come out clean.
Allow the vegan coconut cake layers to cool completely, then turn them out of their pans onto a parchment-lined baking sheet and place them in the freezer for 30 minutes before assembling the cake.

Step 4. When the cakes are mostly cool, make the vegan coconut frosting by creaming vegan butter until completely smooth.
Next, add the powdered sugar and mix until combined. The mixture will be very thick.
Then, add the vanilla and coconut extract and non-dairy milk, and mix on medium speed until light and fluffy.

Step 5. To stack the cake, place one layer upside down on a cake stand or cake board. This gives you a flat, even surface to start with.
Top the cake layer with about ¾ cup of frosting and spread it out evenly, all the way to the edges of the cake. Sprinkle about ¼ cup of shredded coconut on top of the frosting and top with the remaining cake layer, upside down again.

Step 6. Frost the outside of the cake with the remaining frosting.
Then, over a baking sheet to catch the falling coconut, use your hand to gently press shredded coconut on top of the cake and onto the sides of the cake, making sure all of the frosting is covered. Serve!
Vegan Coconut Cake FAQs
To store, cover the cake or put it into a cake box and store it in the refrigerator for up to 4 days.
Allow the cake to sit at room temperature for about 30 minutes before serving for the best texture.
Be sure to use sweetened shredded coconut for this coconut cake recipe! Unsweetened coconut can be tough and chewy.
Vegan cakes, like my Vegan Strawberry Shortcake Cake, have no eggs, milk, or butter. I use non-dairy alternatives for milk and butter in this recipe. And I add extra vegan butter and moisture to compensate for the lack of eggs and a combination of leaveners for a tender crumb structure.
No! Canned coconut milk is too high in fat to substitute for oat milk in this recipe. You can use boxed coconut milk beverage, but it won't add any additional coconut flavor to the cake.
Megan's Expert Tips
If you are a beginner at making layer cakes, don't skip freezing the layers before stacking the cake. This will chill the cake layers, making them firmer and making the cake more stable when stacked. I recommend this for every cake, from this Vegan Coconut Cake to my Vegan Red Velvet Cake recipe.
Placing the cake layers upside down gives you an even, flat surface to start with. And that makes it easier to keep the surface even and flat!
When pressing the shredded coconut onto the top and sides of the cake, be sure to do it over a baking sheet to catch the falling coconut. This makes an otherwise messy job easy to clean up!

Looking for More Vegan Layer Cake Recipes?
If you tried this Vegan Coconut Cake recipe or any other recipe on my website, please leave a 🌟 star rating and let me know how it went in the 📝 comments below. Thanks for visiting today!
📖 Recipe

Vegan Coconut Cake
Equipment
- 2 8" Round Cake Pans
- 1 Large Mixing Bowl
- 1 Whisk
- 1 Rubber Spatula
- 1 Stand Mixer or Hand Mixer
- 1 Cake Stand or Large Plate
Ingredients
For the Coconut Cake Layers
- 2 ⅔ Cup All-Purpose Flour
- 2 ½ teaspoon Baking Powder
- ¼ teaspoon Baking Soda
- ¼ teaspoon Kosher Salt
- 1 ½ Cups Granulated Sugar
- 1 ½ Cups Non-Dairy Milk
- 9 tablespoon Vegan Butter, melted and cooled
- 1 tablespoon Lemon Juice or White Vinegar
- 1 tablespoon Vanilla Extract
- ¾ teaspoon Coconut Extract
- ¾ Cup Shredded Sweetened Coconut
For the Coconut Frosting
- 16 tablespoon Vegan Butter, room temperature
- 4 Cups Powdered Sugar, sifted
- 1 ½ teaspoon Vanilla Extract
- ½ teaspoon Coconut Extract
- 2 tablespoon Non-Dairy Milk
For Stacking and Decorating the Cake
- 2 Cups Shredded Sweetened Coconut
Instructions
To Make the Cake Layers
- Preheat oven to 350°F. Grease two 8-inch round cake pans and insert a parchment circle into the bottom of each pan.
- In a medium bowl, combine the flour, baking powder, baking soda and salt. Whisk to combine.2 ⅔ Cup All-Purpose Flour, 2 ½ tsp Baking Powder, ¼ tsp Baking Soda, ¼ tsp Kosher Salt
- In a large bowl, combine sugar, non-dairy milk, melted vegan butter, lemon juice, vanilla and coconut extract. Whisk to combine.1 ½ Cups Granulated Sugar, 1 ½ Cups Non-Dairy Milk, 9 Tbsp Vegan Butter, melted and cooled, 1 Tbsp Lemon Juice or White Vinegar, 1 Tbsp Vanilla Extract, ¾ tsp Coconut Extract
- Add the dry ingredients to the wet ingredients and whisk to form the batter. Then add the shredded coconut and use a spatula to fold it into the batter.¾ Cup Shredded Sweetened Coconut
- Divide the batter between the two prepared 8-inch cake pans. If you have a kitchen scale, it will be about 21 ounces per pan. Use a spatula to spread the batter out evenly, then bake in a 350°F oven for 26-29 minutes, or until the cakes are brown around the edges, golden across the top, and a toothpick inserted into the center of the cakes comes out clean.
- Allow the cakes to cool completely, then turn them out of their pans onto a parchment-lined baking sheet and place them into the freezer for 30 minutes before frosting. See note!
Make the Coconut Frosting
- In a large bowl using a hand mixer, or in a stand mixer fitted with the paddle attachment cream the vegan butter until completely smooth. Then add the powdered sugar and mix on low until combined. Scrape the bowl down with a rubber spatula.16 Tbsp Vegan Butter, room temperature, 4 Cups Powdered Sugar, sifted
- Add the vanilla and coconut extract and mix on low until combined. Scrape the bowl dow, then, add the non-dairy milk and mix on medium speed until light and fluffy, about 1 minute.1 ½ tsp Vanilla Extract, ½ tsp Coconut Extract, 2 Tbsp Non-Dairy Milk
Stack and Decorate the Cake
- Once the cakes are completely cool, place one layer upside down on a cake board or cake plate. Top the layer with about ¾ cup of coconut frosting and use an offset spatula or a butter knife to spread the frosting to the edges. Top the frosting with about ¼ cup of shredded coconut, then top with the remaining cake layer, upside down again.2 Cups Shredded Sweetened Coconut
- Frost the exterior of the cake with the remaining frosting. Then, working over a baking sheet to catch the falling coconut, gently press shredded coconut into the top and sides of the cake, making sure to cover the entire cake. Serve!









Melissa Gelfand says
Awesome!!!! This recipe is the best! It's hard when health conditions force a food allergy...this is an absolute gift!!
Jeff Todesco says
This is one of the best cakes I’ve ever tasted.
Cindy says
Will this recipe work with almond flour as trying to do grain-free?
Megan Calipari says
I don't recommend it. But I'm sure there are delicious grain-free cake recipes out there for you to try! The conversion is just not usually 1:1.