Gluten-Free Dairy-Free Lemon Blueberry Layer Cake Recipe

There’s something unmistakably like spring about a lemon blueberry layer cake. This gluten-free, dairy-free lemon blueberry layer cake with whipped blueberry cream cheese frosting is bright, tender, and bursting with flavor in every bite. Gather your blueberries and head to the kitchen.


Note: This post contains affiliate links from which I earn a small commission at no extra cost to you. Thank you for supporting CAKED by Katie.

A purple frosted lemon blueberry cake sitting on a white cake stand. It is topped with fresh blueberries, bright yellow lemon slices, and purple frosting rosette swirls.

Gluten-Free Lemon Blueberry Layer Cake (Dairy-Free)

Soft, tender lemon cake layers are studded with juicy blueberries and finished with a tangy-sweet whipped blueberry cream cheese buttercream. The natural purple hue from the blueberry compote and the bright citrus from fresh lemon juice make this cake a perfect spring or summer centerpiece.

What Makes Up a Lemon Blueberry Layer Cake

This cake has three main components that combine for a balanced flavor and texture:

  • Cake layers – light, fluffy lemon cakes dotted with blueberries.
  • Blueberry compote – a cooked, reduced blueberry mixture that delivers real fruit flavor and color for the frosting.
  • Frosting – whipped cream cheese buttercream enhanced with the reduced blueberry compote for color and brightness.

A close up picture of a purple frosted lemon blueberry layer cake. There is a large slice cut into the cake and slightly taken out of it. There are blueberries and lemon slices on the top of the cake.

Ingredients Overview

This recipe is written gluten-free and dairy-free, but notes are included for swaps if you don’t need those restrictions. Be sure to consult the full ingredient list in the recipe card below for precise amounts.

  • Gluten-free flour blend: Check whether it contains xanthan gum. If you’re not gluten-free, regular cake flour can be substituted.
  • Dairy-free butter: Use a plant-based butter substitute, or use regular butter if you prefer.
  • Fresh lemon juice and zest: Fresh juice and zest provide the best bright lemon flavor.
  • Dairy-free milk: Unsweetened almond milk works well; any milk (dairy or non-dairy) is fine.
  • Oil: Neutral oils like canola or vegetable oil help keep the cake tender.
  • Blueberries: Fresh or frozen blueberries both work; wild blueberries are smaller and can distribute more evenly in the batter.
  • Dairy-free cream cheese: Use a full-fat dairy-free cream cheese for the best texture—or regular cream cheese if not dairy-free.

A lemon blueberry layer cake covered in purple blueberry frosting. It's sitting on a white cake stand and there are a few pieces missing allowing you to see the two cake layers inside which are speckled with blueberries.

How to Make the Blueberry Compote

The blueberry compote concentrates real blueberry flavor without relying on extracts. Because blueberries release a lot of water, reducing them into a compote removes excess liquid and intensifies the flavor so it will mix into the frosting without thinning it.

Place fresh or frozen blueberries in a small saucepan with sugar and a pinch of salt. Heat over medium-high until the berries release their juices and the mixture comes to a simmer, then lower the heat to medium and simmer while stirring until the volume has reduced by about three-quarters. You should end up with roughly 1/4 cup of compote; timing depends on whether the berries were fresh or frozen.

Transfer the compote to a shallow dish, press plastic wrap directly onto the surface to prevent a skin, and let it cool completely before using in the frosting.

A slice of purple frosted lemon blueberry cake. It has two white cake layers full of blueberries and is topped with lemon sliced and fresh blueberries.

Step-by-Step Instructions (Summary)

1. Whisk the dry ingredients together (flour, baking powder, salt, and xanthan gum if needed) and set aside.

2. Cream butter, sugar, oil, and lemon zest until light and fluffy. Beat in eggs and vanilla.

3. Add the dry ingredients, then slowly add lemon juice and milk, mixing until just combined.

4. Toss blueberries with a little flour and gently fold them into the batter.

5. Divide batter between two prepared 8-inch pans and bake until a toothpick comes out clean. Cool completely on a rack.

6. Make the blueberry compote and let it cool fully.

7. For the frosting, beat cold butter and cold cream cheese until smooth, add powdered sugar and salt on low, then fold in 1/4 cup of the cooled blueberry compote. Beat until light and fluffy, then chill until needed.

A purple lemon blueberry cake top covered in frosting swirls, lemon slices, and blueberries.

Cake Assembly Tips

Cream cheese-based frostings can be soft, and dairy-free versions are often even softer. For stability, this recipe uses two 8-inch layers rather than many thin layers.

  • Chilled frosting: Work with the frosting chilled. When you’re ready to stack, whip it briefly after removing from the fridge to restore spreadability.
  • Level your layers: Level cakes so layers sit flat and stable.
  • Keep it cool: If the frosting gets too soft while assembling, refrigerate the cake and frosting until firm enough to continue.

A purple frosted lemon blueberry cake sitting on a white cake stand. It is topped with fresh blueberries, bright yellow lemon slices, and purple frosting rosette swirls.

How to Decorate

Decorate however you like, but here’s the approach used for the pictured cake:

1. Apply a thin crumb coat and chill for 20 minutes.

2. Add a final layer of frosting and smooth the sides; small blueberry speckles are normal because of the compote and add character. Chill again for 20 minutes.

3. Pipe rosettes around the top border using a standard star tip (Wilton 1M works well). Arrange thin lemon slices and extra blueberries around the rosettes, and finish with a bit of lemon zest.

Storage and Freezing

Store the assembled cake in an airtight container in the fridge for up to 7 days. The cake can be frozen for up to 6 months. To prepare layers ahead: cool fully, wrap tightly in plastic, and freeze. Thaw layers at room temperature for about an hour before stacking and decorating.

A slice of purple frosted lemon blueberry cake. It has two white cake layers full of blueberries and is topped with lemon sliced and fresh blueberries.

The Yummiest Gluten-Free Lemon Blueberry Layer Cake

This cake is a celebration of spring and summer flavors—tart lemon, sweet blueberry, and a fluffy, tender crumb all come together to make a vibrant layer cake. If you make it, share a photo on social media and tag @cakedbykatie; feedback and reviews are always welcome.

Fresh Summer Baking Ideas

Other bright, seasonal recipes to try include sangria cupcakes, pina colada cake, orange blossom cake, lemon raspberry layer cake, and strawberry shortcake cupcakes.

A slice of purple frosted lemon blueberry cake. It has two white cake layers full of blueberries and is topped with lemon sliced and fresh blueberries.

Gluten-Free Lemon Blueberry Layer Cake (Dairy-Free)


  • Author: Katie Stymiest
  • Total Time: 1 Hour 30 Minutes
  • Yield: 14 Slices
  • Diet: Gluten Free

Description

Soft fluffy layers of gluten-free and dairy-free lemon cake bursting with blueberries. Paired with a sweet and tangy blueberry cream cheese frosting, this cake is the perfect summer sweet treat!


Ingredients

Lemon Blueberry Cake

  • 1 3/4 cup (224g) gluten-free flour blend*
  • 2 teaspoons baking powder
  • 1 teaspoon fine sea salt
  • 1/2 teaspoon xanthan gum**
  • 2/3 cup (151g) dairy-free salted butter, room temperature
  • 1 1/2 cups (300g) granulated sugar
  • 1 tablespoon canola or vegetable oil
  • 1 tablespoon lemon zest
  • 2 large eggs, room temperature
  • 1 teaspoon vanilla extract
  • 1/2 cup (117ml) lemon juice, freshly squeezed
  • 1/4 cup (59ml) dairy-free milk, room temperature
  • 1 1/2 cups (180g) blueberries, fresh or frozen
  • 2 tablespoons gluten-free flour blend (for tossing with blueberries)

Blueberry Compote

  • 1 cup (120g) blueberries, fresh or frozen
  • 1 teaspoon granulated sugar
  • Pinch of fine sea salt

Blueberry Cream Cheese Buttercream

  • 1 cup (227g) dairy-free salted butter, cold
  • 1 cup (227g) dairy-free cream cheese, cold
  • 7 cups (840g) icing sugar
  • 1 teaspoon fine sea salt
  • 1/4 cup blueberry compote
  • Optional: lemon slices, blueberries, and zest for decorating

Instructions

Lemon Blueberry Cake

  1. Preheat oven to 350°F and prepare two 8-inch round pans with baking spray and parchment paper.
  2. Whisk flour, xanthan gum (if using), baking powder, and salt; set aside.
  3. Cream butter, sugar, oil, and lemon zest until light and fluffy (about 5 minutes). Add eggs and vanilla and mix until combined.
  4. Add dry ingredients on low, then slowly add lemon juice and milk and mix until just combined. Scrape the bowl as needed.
  5. Toss blueberries with 2 tablespoons flour and gently fold into batter.
  6. Divide batter between prepared pans and bake about 30–35 minutes, or until a toothpick comes out clean. Cool in pans 10 minutes, then invert onto a rack to cool completely.

Blueberry Compote

  1. Combine blueberries, sugar, and a pinch of salt in a small pot over medium-high heat. When simmering, reduce heat to medium and simmer, stirring, until reduced by about 3/4 (5–10 minutes).
  2. Remove from heat, transfer to a shallow bowl, press plastic wrap onto the surface, and chill until fully cooled.

Blueberry Cream Cheese Buttercream

  1. Beat cold butter and cold cream cheese on high until light and fluffy (about 5 minutes). Scrape down the bowl.
  2. Add icing sugar and salt on low speed until combined.
  3. Stir in 1/4 cup cooled blueberry compote on low, then beat on high until light and fluffy. Chill until ready to use.

Cake Assembly

  1. Level cooled cake layers if needed. Place one layer on a cake board or plate and spread approximately 2 cups frosting over it. Top with the second layer.
  2. Apply a thin crumb coat and refrigerate 20 minutes. Finish with a final coat of frosting and smooth the sides. Leave the top edge slightly textured if desired.
  3. Pipe rosettes around the top with a star tip and arrange lemon slices and extra blueberries for decoration. Chill until serving.
  4. Store slices in an airtight container in the fridge up to 7 days or freeze up to 6 months.

Notes

* Check if your gluten-free flour blend already contains xanthan gum.

** Omit added xanthan gum if your flour blend already includes it.

  • Prep Time: 60 Minutes
  • Cook Time: 30 Minutes
  • Category: Cake
  • Method: Baking
  • Cuisine: American

Nutrition (per slice)

  • Calories: 633
  • Sugar: 58 g
  • Sodium: 227 mg
  • Fat: 38 g
  • Saturated Fat: 21 g
  • Carbohydrates: 73 g
  • Fiber: 3 g
  • Protein: 6 g
  • Cholesterol: 147 mg

Did you make this recipe?

Share a photo and tag me — I can’t wait to see what you’ve made!