Lemon Coconut Cake That Tastes Like Sunshine
This Lemon Coconut Cake is sunshine in every slice—zesty, moist, and just the right amount of sweet. You get bright lemon flavor, tender crumb, and a whisper of coconut that keeps each bite interesting. The batter comes together fast, and the frosting is silky and citrusy without being fussy. Make it for birthdays, brunch, or that random Tuesday when you need a win. Ready to bake something that tastes like a vacation?
Why This Lemon Coconut Cake Works
- Big lemon flavor: Fresh lemon zest and juice in both cake and frosting keep the citrus front and center.
- Ultra-moist crumb: Coconut milk and shredded coconut lock in moisture without heaviness.
- Not-too-sweet balance: Tangy lemon cream cheese frosting tames the sugar and highlights the zest.
- Beginner-friendly: Simple mixing method, pantry staples, and clear bake cues for success.
- Great make-ahead: Layers bake and freeze beautifully; frosting spreads like a dream even the next day.
- Party-worthy texture: Tender, fluffy interior with a light coconut chew for contrast.
Ingredients You’ll Need

- 2 1/4 cups (280g) all-purpose flour — spoon and level for accuracy.
- 2 teaspoons baking powder — fresh for the best rise.
- 1/2 teaspoon baking soda — supports lift with the lemon juice.
- 1/2 teaspoon fine sea salt — balances sweetness.
- 1 cup (200g) granulated sugar — you can sub part with coconut sugar, but color will darken.
- 1/2 cup (100g) light brown sugar — adds moisture and a hint of caramel.
- 3 large eggs, room temperature — room temp blends better.
- 1/2 cup (115g) unsalted butter, melted and slightly cooled — easy mixing, great flavor.
- 1/2 cup (120ml) neutral oil (canola or avocado) — keeps the cake tender even when chilled.
- 1 cup (240ml) canned full-fat coconut milk, well shaken — for moisture and coconut aroma.
- 1/3 cup (80ml) fresh lemon juice — about 2–3 lemons.
- 2 tablespoons lemon zest — pack the zest for max flavor.
- 1 teaspoon vanilla extract — rounds out the citrus.
- 1 cup (80g) unsweetened shredded coconut — adds gentle texture.
- For the frosting: 8 oz (225g) cream cheese, softened — tang is key.
- 1/2 cup (115g) unsalted butter, softened — for smooth, fluffy frosting.
- 3–3 1/2 cups (360–420g) powdered sugar, sifted — adjust to your preferred thickness.
- 2–3 tablespoons fresh lemon juice — start with 2, add more to taste.
- 1 tablespoon lemon zest — for extra zing.
- 1 teaspoon vanilla extract — optional but lovely.
- Pinch of salt — sharpens the lemon flavor.
- Optional garnish: toasted coconut flakes and thin lemon slices.
Instructions
- Prep: Preheat oven to 350°F (175°C). Grease and line two 8-inch round cake pans with parchment. Lightly flour the sides. This prevents sticking and gives clean releases.
- Dry mix: In a large bowl, whisk flour, baking powder, baking soda, and salt. Set aside.
- Wet mix: In another bowl, whisk granulated sugar, brown sugar, and eggs until slightly thick and pale, about 1 minute. Whisk in melted butter, oil, coconut milk, lemon juice, lemon zest, and vanilla.
- Combine: Add dry ingredients to wet in two additions, whisking gently just until smooth. Fold in shredded coconut. Do not overmix—stir until no dry pockets remain.
- Bake: Divide batter evenly between pans. Tap pans twice on the counter to pop large bubbles. Bake 24–28 minutes, until centers spring back and a toothpick comes out mostly clean with a few moist crumbs.
- Cool: Let cakes cool in pans 10 minutes, then turn out onto racks and peel off parchment. Cool completely before frosting. Warm cakes will melt frosting—worth the wait.
- Frosting: Beat cream cheese and butter on medium-high until smooth and fluffy, 2–3 minutes. Add powdered sugar gradually, then lemon juice, zest, vanilla, and a pinch of salt. Beat until creamy. Adjust with more sugar for thickness or a splash of lemon juice for tang.
- Assemble: Place one layer on a stand. Spread about 3/4 cup frosting on top. Add second layer and frost the top and sides. For flair, press toasted coconut flakes onto the sides and swirl the top with the back of a spoon.
- Chill briefly: Refrigerate 20–30 minutes to help the frosting set, especially if transporting.
- Serve: Slice with a warm knife for clean cuts. Garnish with lemon slices or extra zest if you’re feeling fancy.
Fridge: Keep the frosted cake covered in the fridge for up to 4 days. Bring slices to room temp for 20–30 minutes before serving—flavors pop more when not ice-cold.
Freezer: Wrap unfrosted layers tightly in plastic and foil; freeze up to 2 months. Thaw in the fridge overnight, then frost. You can also freeze individual frosted slices for 1 month; thaw in the fridge.
Reheating: Not needed for cake, but a 10–15 second microwave zap softens a chilled slice nicely.
Storage Instructions

Store the frosted cake covered in the refrigerator because of the cream cheese frosting. It keeps well for 3–4 days. If storing unfrosted layers, wrap tightly at room temperature for up to 24 hours or refrigerate up to 3 days. Always let chilled cake sit at room temp before serving for the best texture.
Benefits of This Recipe
- Make-ahead friendly: Bake layers in advance and frost later without losing quality.
- Moist and forgiving: Coconut milk and oil protect against overbaking dryness.
- Balanced sweetness: Lemon cuts through richness for a cake that never feels heavy.
- Customizable: Works as cupcakes, a sheet cake, or a tall 3-layer celebration cake.
- Simple ingredients: Mostly pantry staples plus fresh lemons.
Common Mistakes to Avoid

- Overmixing the batter—leads to a dense, tough crumb. Stop when the flour disappears.
- Skipping room-temperature eggs—cold eggs can cause the batter to curdle and bake unevenly.
- Using low-fat coconut milk—the crumb won’t be as moist or flavorful.
- Frosting warm cakes—this melts and slides right off. Cool completely.
- Overbaking—start checking at 22 minutes; ovens vary. Pull when a few moist crumbs remain.
- Not zesting properly—avoid the bitter white pith; use only the yellow zest.
Alternatives
Gluten-free: Swap the flour for a quality 1:1 gluten-free blend with xanthan gum. Check doneness early; some blends bake faster.
Dairy-free: Use plant butter in both cake and frosting and a dairy-free cream cheese. The flavor stays bright and coconutty.
Less coconut: Replace shredded coconut with an extra 1/4 cup flour and switch coconut milk to whole milk. You’ll keep the lemon magic with a classic crumb.
Extra lemon: Brush layers with a quick lemon syrup (equal parts lemon juice and sugar, warmed to dissolve) before frosting for a tangy boost.
Flavor twists:
- Add 1 cup fresh blueberries to the batter (toss with 1 tablespoon flour first).
- Swap vanilla for coconut extract for a bolder coconut vibe.
- Top with a thin layer of lemon curd under the frosting for a surprise center.
FAQ
Can I make this as a sheet cake?
Yes. Bake in a 9×13-inch pan at 350°F for 30–35 minutes, until a toothpick comes out with a few moist crumbs. Cool completely, then frost right in the pan for easy serving.
How do I toast coconut for the garnish?
Spread flakes on a baking sheet and toast at 325°F for 5–8 minutes, stirring once, until golden at the edges. Watch closely—it goes from golden to burnt fast.
Can I use bottled lemon juice?
Fresh juice is best for bright flavor. Bottled can taste flat or bitter. If you must use it, add extra zest to lift the citrus notes.
What if my frosting is too runny?
Chill it for 10–15 minutes, then beat again. If still soft, add more powdered sugar a few tablespoons at a time. A pinch more salt can help balance the sweetness.
Do the layers dome a lot?
Usually not, but if they do, gently level the tops with a serrated knife once cooled. Save the scraps for a baker’s treat or crumble over yogurt.
Can I make cupcakes instead?
Absolutely. Fill liners 2/3 full and bake at 350°F for 18–22 minutes. You’ll get about 20–24 cupcakes, depending on liner size.
Final Thoughts
This Lemon Coconut Cake is bright, soft, and quietly show-stopping—the kind of dessert that turns casual get-togethers into celebrations. It’s simple enough for a weeknight project, but fancy enough for a birthday. Give it a whirl, tweak to your taste, and don’t skimp on the zest. When life hands you lemons, make cake—IMO, it’s the best policy.
Printable Recipe Card
Want just the essential recipe details without scrolling through the article? Get our printable recipe card with just the ingredients and instructions.

