
This swirled blueberry lemon cake brings the perfect balance of bright citrus and sweet berry flavors together in every slice. The vibrant yellow cake studded with bursts of blueberry compote creates a showstopper dessert that tastes even better than it looks.
I first made this cake for my sister's garden party last summer, and guests were taking photos before they even tasted it. Now it's requested at every family gathering from Easter to Labor Day.
Ingredients
For the Lemon Cake
- All-purpose flour: provides structure while remaining tender when properly measured
- Baking powder: ensures a proper rise without being too dense
- Salt: enhances all flavors and balances sweetness
- Unsalted butter: allows you to control salt content while adding richness
- Granulated sugar: sweetens and helps create a tender crumb
- Eggs: bind ingredients and add structure to the cake
- Lemon zest: contains essential oils that provide intense lemon flavor
- Fresh lemon juice: adds brightness and acidity
- Buttermilk: creates tenderness and helps activate the baking powder
For the Blueberry Compote
- Fresh blueberries: look for plump berries with no signs of mold
- Sugar: balances the natural tartness of the berries
- Lemon juice: brightens and enhances the blueberry flavor
- Cornstarch: thickens the compote to perfect spreading consistency
For the Lemon Cream Cheese Frosting
- Cream cheese: use full-fat for the best texture and flavor
- Unsalted butter: creates a stable frosting that pipes beautifully
- Powdered sugar: dissolves completely for smooth frosting
- Vanilla extract: adds depth and balances the tang
- Fresh lemon juice: provides bright citrus flavor
Step-by-Step Instructions
Prepare the Lemon Cake Batter
- Step 1:
- Begin by positioning your oven rack in the center and preheating to 350°F. Thoroughly grease two 9-inch cake pans with butter then dust with flour, tapping out excess. For insurance against sticking, line the bottoms with parchment paper.
- Step 2:
- Whisk the dry ingredients in a medium bowl until no lumps remain.
- Step 3:
- In your stand mixer with paddle attachment, cream butter and sugar for a full 3-4 minutes until extremely light and fluffy this creates air pockets for a tender cake.
- Step 4:
- Add eggs one at a time, allowing each to fully incorporate before adding the next. Mix in lemon zest and juice the batter may look slightly curdled at this point, which is normal.
- Step 5:
- With mixer on low, add dry ingredients in three additions, alternating with buttermilk, beginning and ending with flour mixture. Stop mixing as soon as ingredients are incorporated to avoid developing gluten.
Bake the Cake
- Step 1:
- Pour batter evenly between prepared pans, using a kitchen scale if available to ensure layers are identical. Smooth tops with an offset spatula.
- Step 2:
- Bake for 25-30 minutes, rotating pans halfway through. Test doneness by inserting a toothpick in the center it should come out with just a few moist crumbs.
- Step 3:
- Cool in pans for 10 minutes before running a knife around edges and inverting onto cooling racks. Allow to cool completely before frosting.
Make the Blueberry Compote
- Step 1:
- Combine blueberries, sugar, and lemon juice in a medium saucepan over medium heat. Stir occasionally as mixture comes to a simmer.
- Step 2:
- Once berries begin to burst and release juice, cook for about 5 minutes. Mix cornstarch with water in a small bowl until completely smooth.
- Step 3:
- While stirring constantly, pour slurry into simmering berry mixture. Continue cooking for 2-3 minutes until noticeably thickened. Transfer to a bowl and refrigerate until completely cooled.
Prepare the Lemon Cream Cheese Frosting
- Step 1:
- In a stand mixer with paddle attachment, beat cream cheese and butter on medium-high speed until completely smooth with no lumps, about 2 minutes. Scrape down bowl thoroughly.
- Step 2:
- With mixer on low, gradually add powdered sugar, stopping to scrape sides as needed. Add vanilla and lemon juice, then increase speed to medium-high and beat for 3 minutes until extremely light and fluffy.
- Step 3:
- If frosting seems too soft, refrigerate for 20 minutes before using.

Assemble the Cake
- Step 1:
- Place first cake layer on serving plate. Apply a thin layer of frosting to create a barrier that prevents the compote from soaking into the cake.
- Step 2:
- Pipe a dam of frosting around the edge to contain the filling. Spread about 1/2 cup of blueberry compote inside the dam, leaving a small border.
- Step 3:
- Top with second cake layer, pressing gently to secure. Apply a thin crumb coat of frosting to entire cake and refrigerate for 20 minutes to set.
- Step 4:
- Finish with remaining frosting, creating smooth sides and top.
Add the Swirled Glaze
- Step 1:
- Warm lemon curd slightly until just pourable. Reserve 1/2 cup of blueberry compote for topping.
- Step 2:
- Starting from center, spoon alternating pools of lemon curd and blueberry compote on top of the cake, allowing some to drip down sides.
- Step 3:
- Using a toothpick or skewer, gently drag through the toppings in a figure-eight pattern to create a marbled effect. Work quickly before glaze sets.
Garnish and Serve
- Step 1:
- Arrange fresh blueberries and thin lemon slices around the edge of the cake.
- Step 2:
- Refrigerate for at least 30 minutes to set the glaze and facilitate clean slicing.
- Step 3:
- For best flavor, remove from refrigerator 20 minutes before serving to take the chill off.
The blueberry compote is truly the heart of this recipe. My grandmother taught me to add just a touch of lemon juice to blueberry desserts when I was eight years old. She said it was her secret weapon to make the berry flavor "sing" rather than just whisper, and she was absolutely right. I still think of her whenever I make this cake.
Make-Ahead Options
This cake is perfect for preparing in stages, which makes it ideal for entertaining. The cake layers can be baked up to two days in advance and wrapped tightly in plastic wrap once completely cooled. Store at room temperature or freeze for up to a month. The blueberry compote can be made up to five days ahead and refrigerated in an airtight container. The frosting can be prepared one day ahead and refrigerated just bring it to room temperature and beat briefly before using. The completed cake should be assembled within 24 hours of serving for the freshest taste and texture.
Serving Suggestions
While this cake is magnificent on its own, consider serving it with a dollop of lightly sweetened whipped cream or a small scoop of vanilla bean ice cream for special occasions. A sprig of fresh mint adds a beautiful color contrast and refreshing aromatic element. For brunch gatherings, pair slices with glasses of prosecco or mimosas. The cake also complements a cup of Earl Grey tea perfectly, as the bergamot notes in the tea enhance the citrus flavors in the cake.
Seasonal Variations
During summer months when blueberries are at their peak, use fresh local berries for the most intense flavor. In winter, frozen wild blueberries make an excellent substitute they're smaller but often more flavorful than conventional frozen blueberries. For a festive holiday version, add a teaspoon of orange zest to the cake batter and substitute cranberries for half the blueberries in the compote. During spring, try folding fresh blueberries directly into the batter for bursts of fruit throughout the cake, and garnish with edible flowers for a beautiful presentation.

Frequently Asked Questions
- → How do I make the cake moist?
Use buttermilk and fresh lemon juice to enhance moisture and flavor. You can also brush the cake layers with lemon syrup before frosting.
- → Can I use frozen blueberries for the compote?
Yes, frozen blueberries work well. Be sure to thaw and drain excess liquid before using them to avoid a runny compote.
- → What is the best way to swirl the glaze?
After drizzling lemon curd and blueberry compote, use a toothpick or knife to gently swirl the two for a marbled effect.
- → Can I prepare this cake in advance?
Yes, you can bake the cake layers and prepare the frosting and compote a day in advance. Assemble and add the glaze on the day of serving.
- → What are good substitutes for buttermilk?
If you don’t have buttermilk, mix 1 cup of milk with 1 tablespoon of lemon juice or vinegar. Let it sit for 5 minutes before using.