Moist Lemon Coconut Cake
This lemon coconut cake is bright, tender, and packed with fresh lemon flavor in every bite. Coconut keeps the crumb soft, while a tangy lemon glaze soaks right in.

It’s the kind of cake you can bring to a weekend dinner or simply bake on a Sunday and enjoy all week.
What Makes This Lemon Coconut Cake So Good
The combination of fresh lemon zest and coconut milk in the batter gives it a subtle tropical note without being heavy. A generous amount of lemon juice and zest cuts through the sweetness, so each slice tastes bright instead of cloying.
The lemon glaze adds a sweet-tart punch that balances the rich crumb, and the shredded coconut throughout adds a nice chew. It’s one of those cakes that stays moist for days.
Ingredients

- 1 3/4 cups all-purpose flour: spooned and leveled for accuracy
- 1 cup granulated sugar
- 2 tsp baking powder
- 1/2 tsp salt
- 2 large eggs: at room temperature
- 1/2 cup vegetable oil: canola or avocado oil work too
- 1/2 cup full-fat coconut milk: stirred well before measuring
- 1/4 cup fresh lemon juice
- 2 tbsp lemon zest: from about 2 large lemons
- 1 tsp vanilla extract
- 1 cup sweetened shredded coconut
For the glaze
- 1 cup powdered sugar
- 2 to 3 tbsp fresh lemon juice: adjust for desired thickness
Variations / Substitutions
- Gluten-free: use a 1-to-1 gluten-free flour blend that contains xanthan gum.
- Dairy-free: this cake is naturally dairy-free as written; use a dairy-free powdered sugar if needed.
- Sweeter swap: replace granulated sugar with coconut sugar for a deeper caramel note; the cake will be a bit denser.
- Lime instead of lemon: use equal amounts of lime zest and juice for a lime-coconut cake.
- Less sweet coconut: swap sweetened shredded coconut for unsweetened; the cake will still be moist but less sugary.
If you love the lemon-coconut combo, try our Lemon Coconut Muffins.
How to Make Moist Lemon Coconut Cake
Step 1: Mix the Dry Ingredients

In a large bowl, whisk together the 1 3/4 cups flour, 1 cup sugar, 2 tsp baking powder, and 1/2 tsp salt until well combined. This takes only a few seconds.
A quick whisk aerates the flour and distributes the leavening evenly, so you get a consistent rise without any pockets of baking powder.
Step 2: Whisk the Wet Ingredients

In a separate medium bowl, whisk the 2 eggs, 1/2 cup oil, 1/2 cup coconut milk, 1/4 cup lemon juice, 2 tbsp lemon zest, and 1 tsp vanilla until smooth, about 1 minute.
The mixture will look slightly curdled from the lemon juice, but that’s normal. It will come together as soon as you add the dry ingredients.
Step 3: Fold in the Coconut

Pour the wet mixture into the dry ingredients and stir with a spatula until barely combined, then gently fold in the 1 cup shredded coconut. Stir just until you no longer see dry flour, about 30 seconds.
A few streaks of flour are fine before you add the coconut; they’ll disappear as you fold it in. Overmixing can make the cake tough, so stop as soon as everything comes together.
Step 4: Bake the Loaf

Preheat your oven to 350°F (180°C). Grease a 9×5-inch loaf pan, then pour in the batter and smooth the top. Bake for 50 to 55 minutes, until a toothpick inserted in the center comes out clean or with a few moist crumbs.
The top will be golden and domed, and the edges will just start pulling away from the sides of the pan. Let the cake cool in the pan for 10 minutes, then turn it out onto a wire rack to cool completely.
Step 5: Drizzle the Lemon Glaze

While the cake cools, whisk the 1 cup powdered sugar with 2 to 3 tablespoons lemon juice in a small bowl until smooth. Start with 2 tablespoons and add more a little at a time until the glaze is thick but pourable.
Once the cake is completely cool, set the wire rack over a piece of parchment paper and drizzle the glaze generously over the top. Let it set for about 15 minutes, then slice and serve. The glaze will firm into a glossy, tangy finish.
Tips for the Best Lemon Coconut Cake
- Line the pan with parchment: grease the loaf pan, then add a parchment sling with overhang on the long sides for easy removal.
- Use room temperature ingredients: eggs and coconut milk blend more smoothly when they’re not cold, so pull them from the fridge 30 minutes before you start.
- Toast the coconut: spread the shredded coconut on a baking sheet and toast at 350°F (180°C) for 5 to 7 minutes until golden, then let it cool before adding. It deepens the nutty flavor.
- Check early: every oven runs differently, so start testing the cake at 45 minutes with a toothpick.
Bake times by pan size:
| Pan | Size | Approx bake time |
|---|---|---|
| Loaf pan | 9×5-inch | 50–55 mins |
| Round cake pan | 8-inch | 30–35 mins |
| Muffin tin | 12-cup | 18–22 mins |
Storing Leftover Lemon Coconut Cake
- Refrigerate: store in an airtight container in the fridge for up to 5 days. Bring slices to room temperature before serving.
- Freeze: wrap the unglazed cake tightly in plastic wrap and freeze for up to 3 months. Thaw at room temperature, then glaze just before serving.
Frequently Asked Questions
My cake sank in the middle, what went wrong?
It was likely underbaked or overmixed. Make sure a toothpick comes out clean, and stir only until the flour disappears.
Can I use lemon extract instead of fresh lemon?
Yes, replace the lemon juice and zest with 1 teaspoon of lemon extract, but the flavor will be less bright than fresh.
How do I keep the glaze from being too runny?
Add more powdered sugar, a tablespoon at a time, until the glaze is thick enough to drizzle but still pourable.
Is it okay to leave out the shredded coconut?
Yes, you can omit it for a plain lemon cake. The batter works the same way, just skip the folding step.

Ingredients
Method
- Preheat oven to 350°F (180°C) and grease a 9×5-inch loaf pan.
- In a large bowl, whisk together flour, sugar, baking powder, and salt.
- In a separate bowl, whisk eggs, oil, coconut milk, 1/4 cup lemon juice, zest, and vanilla until smooth.
- Pour wet ingredients into dry and stir until just combined, then gently fold in shredded coconut.
- Pour batter into the prepared pan and bake for 50 to 55 minutes, until a toothpick comes out clean.
- Cool in the pan for 10 minutes, then turn out onto a wire rack to cool completely.
- Whisk powdered sugar with 2 to 3 tbsp lemon juice to make the glaze. Drizzle over the cooled cake and let set before slicing.
