Easy Coconut Cake with Creamy Frosting – Soft & Moist
In this article
This easy coconut cake is a tropical dream: a tender, moist crumb infused with coconut milk and shredded coconut, topped with a silky cream cheese frosting and more coconut flakes. It’s a simple, from-scratch recipe that uses basic ingredients and comes together in about an hour, making it perfect for birthdays, summer parties, or any time you crave a taste of the islands.
Ingredients
- For the cake:
- 2 cups (250g) all-purpose flour
- 1 ½ teaspoons baking powder
- ½ teaspoon baking soda
- ½ teaspoon salt
- ¾ cup (170g) unsalted butter, softened
- 1 cup (200g) granulated sugar
- 3 large eggs, at room temperature
- 1 teaspoon vanilla extract
- 1 cup (240ml) full-fat coconut milk (well shaken)
- 1 cup (80g) sweetened shredded coconut
- For the frosting:
- 8 oz (225g) cream cheese, softened
- ½ cup (115g) unsalted butter, softened
- 3 cups (360g) powdered sugar, sifted
- 1 teaspoon vanilla extract
- 2 tablespoons heavy cream or milk (if needed for consistency)
- 1 cup (80g) sweetened shredded coconut, for topping
Instructions
- Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans, or line with parchment paper.
- In a medium bowl, whisk together the flour, baking powder, baking soda, and salt. Set aside.
- In a large bowl, using an electric mixer, beat the softened butter and sugar together until light and fluffy, about 2–3 minutes.
- Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract.
- With the mixer on low speed, add the dry ingredients in three additions, alternating with the coconut milk, starting and ending with the dry ingredients. Mix until just combined – do not overmix.
- Fold in the shredded coconut with a spatula.
- Divide the batter evenly between the prepared pans. Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean. The tops should be golden brown.
- Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely. This is crucial – the frosting will melt if the cake is warm.
- While the cakes cool, make the frosting: In a large bowl, beat the cream cheese and butter until smooth and creamy. Add the powdered sugar gradually, beating until fluffy. Mix in the vanilla extract. If the frosting is too thick, add the heavy cream or milk one tablespoon at a time until it reaches a spreadable consistency.
- Once the cakes are completely cool, place one layer on a serving plate. Spread a generous amount of frosting on top. Place the second layer on top and frost the top and sides of the cake.
- Press the remaining shredded coconut onto the top and sides of the frosted cake. Slice and serve.
Tips
- Room temperature ingredients: For the best texture, make sure the butter, eggs, and cream cheese are at room temperature before starting. Cold ingredients can cause the batter to curdle and the frosting to be lumpy.
- Don’t overmix the batter: Overmixing develops gluten, which makes the cake tough. Mix just until the flour is incorporated.
- Substitutions: You can use light coconut milk, but the cake will be less rich. For a dairy-free version, use vegan butter and a dairy-free cream cheese alternative. Unsweetened shredded coconut works too – just add an extra tablespoon of sugar to the batter if you prefer a sweeter cake.
- Common mistake: Frosting a warm cake is the most common issue. Be patient – let the cake cool completely (about 1 hour) before frosting.
Serving Suggestions
Serve this coconut cake as a dessert at summer gatherings, luau-themed parties, or as a delightful birthday cake. It pairs beautifully with a cup of hot tea or coffee, or a glass of cold milk. For an extra tropical touch, serve with fresh pineapple slices or mango cubes on the side.
Variations
- Lemon-Coconut: Add 1 tablespoon of lemon zest to the batter and substitute the vanilla in the frosting with lemon juice for a bright, citrusy twist.
- Pineapple-Coconut: Fold ½ cup of crushed pineapple (drained well) into the batter along with the shredded coconut.
- Toasted Coconut: For a nuttier flavor, toast the shredded coconut for the topping in a dry skillet over medium heat for 2–3 minutes until golden, then cool before pressing onto the cake.
- Cupcakes: This recipe makes about 24 cupcakes – bake for 18–20 minutes and adjust frosting accordingly.
Storage and Reheating
Store the frosted cake in an airtight container in the refrigerator for up to 4 days. Because of the cream cheese frosting, it must be kept chilled. Let it sit at room temperature for 20–30 minutes before serving for the best flavor and texture. You can also freeze the unfrosted cake layers (wrapped tightly in plastic wrap and foil) for up to 3 months. Thaw overnight in the refrigerator before frosting. Reheating individual slices in the microwave for 10–15 seconds works well if you like a warm cake, but it’s not necessary.
Frequently Asked Questions
Can I use coconut extract instead of vanilla?
Yes, you can replace the vanilla extract with coconut extract for a stronger coconut flavor. Use 1 teaspoon in the batter and ½ teaspoon in the frosting, as coconut extract is potent.
Why did my cake sink in the middle?
This usually happens if the oven door is opened too early during baking, or if the batter is overmixed. Make sure to preheat the oven properly and avoid opening the door until the minimum baking time has passed.
Can I make this cake gluten-free?
Yes, you can substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture may be slightly denser, but it will still be delicious.
How do I know when the cake is done?
Insert a toothpick into the center – it should come out clean or with a few moist crumbs. The edges will also start to pull away from the pan.
Can I use canned coconut cream instead of coconut milk?
Yes, but it’s thicker and richer. If you use coconut cream, you may need to add a couple of tablespoons of milk or water to the batter to maintain the right consistency.
Is it okay to leave the cake out at room temperature?
Because of the cream cheese frosting, it’s not safe to leave it out for more than 2 hours (or 1 hour if it’s very warm). Always refrigerate leftovers promptly.