4th Of July Cake Recipe

A spectacular three-layer vanilla cake with vibrant red and blue berry fillings, wrapped in silky cream cheese frosting and decorated with fresh seasonal berries for a patriotic celebration centerpiece.
Difficulty:
Intermediate
Prep Time:
45 mins
Cook Time:
35 mins
Serves:
1 cake (12 slices)
An overhead shot of a pristine white three-layer cake standing tall on a vintage blue cake stand against a rustic wooden table. Soft natural light streams in, highlighting the smooth cream cheese frosting covering the exterior. The cake is crowned with an artistic arrangement of fresh strawberries, blueberries, and raspberries in a circular pattern, creating the impression of fireworks. A slice has been removed, revealing the striking red, white, and blue layers within—vibrant strawberry-tinted cake on the bottom, classic vanilla in the middle, and blueberry-infused cake on top. Small American flags decorate the perimeter, while scattered berries and mint leaves add pops of color against the clean white frosting. Tiny sugar stars glisten across the top, catching the light like miniature sparklers.

Ingredients

<ul class="ingredients-main-list"><li class="ingredients-single-item">345g cake flour (or all-purpose flour)</li><li class="ingredients-single-item">2 tsp baking powder</li><li class="ingredients-single-item">1/2 tsp baking soda</li><li class="ingredients-single-item">1/2 tsp salt</li><li class="ingredients-single-item">225g unsalted butter, softened</li><li class="ingredients-single-item">400g granulated sugar</li><li class="ingredients-single-item">4 large eggs, room temperature</li><li class="ingredients-single-item">2 tsp vanilla extract</li><li class="ingredients-single-item">240ml buttermilk, room temperature</li><li class="ingredients-single-item">60g fresh or frozen blueberries, plus more for decoration</li><li class="ingredients-single-item">3 tbsp blueberry jam</li><li class="ingredients-single-item">60g fresh or frozen strawberries, plus more for decoration</li><li class="ingredients-single-item">3 tbsp strawberry jam</li><li class="ingredients-single-item">Red and blue food coloring gel (optional for enhanced color)</li><li class="ingredients-single-item">100g fresh raspberries for decoration</li><li class="ingredients-single-item">Fresh mint leaves for garnish</li><li class="ingredients-single-item">For the cream cheese frosting:</li><li class="ingredients-single-item">450g cream cheese, softened</li><li class="ingredients-single-item">225g unsalted butter, softened</li><li class="ingredients-single-item">750g powdered sugar, sifted</li><li class="ingredients-single-item">2 tsp vanilla extract</li><li class="ingredients-single-item">1/4 tsp salt</li></ul>

Equipment

<ul class="equipment-main-list"><li class="equipment-single-item">Three 20cm (8-inch) round cake pans</li><li class="equipment-single-item">Stand mixer with paddle attachment</li><li class="equipment-single-item">Parchment paper</li><li class="equipment-single-item">Offset spatula</li><li class="equipment-single-item">Food processor or blender</li><li class="equipment-single-item">Wire cooling racks</li><li class="equipment-single-item">Cake turntable (optional but helpful)</li></ul>
BAKE SMARTER

Kitchen Converter

Quickly switch between common baking units without leaving the recipe.

Convert
Result—

Volume uses US cups, tablespoons, and teaspoons. Converting weight to volume depends on the ingredient.

Directions

<ol class="no-list-style"><li class="MethodStepper"><h4 class="step-title">Step 1</h4>Preheat your oven to 175°C (350°F). Grease three 20cm (8-inch) round cake pans, line the bottoms with parchment paper circles, then grease the paper and dust lightly with flour. This thorough preparation ensures your cakes will release cleanly from the pans.</li><li class="MethodStepper"><h4 class="step-title">Step 2</h4>In a medium bowl, whisk together the cake flour, baking powder, baking soda, and salt. Proper mixing of dry ingredients ensures they'll distribute evenly throughout the batter, leading to consistent texture.</li><li class="MethodStepper"><h4 class="step-title">Step 3</h4>In the bowl of your stand mixer fitted with the paddle attachment, beat the butter on medium speed until creamy, about 1 minute. Gradually add the sugar and continue beating on medium-high speed until light and fluffy, about 5 minutes. This extended creaming process incorporates air bubbles that help your cake rise and achieve a tender crumb.</li><li class="MethodStepper"><h4 class="step-title">Step 4</h4>Add eggs one at a time, beating well after each addition and scraping down the sides of the bowl as needed. Mix in the vanilla extract. Your mixture might look slightly curdled – that's perfectly normal!</li><li class="MethodStepper"><h4 class="step-title">Step 5</h4>On low speed, add the flour mixture in three additions, alternating with the buttermilk (beginning and ending with flour). Mix just until combined after each addition – overmixing develops gluten which can make your cake tough.</li><li class="MethodStepper"><h4 class="step-title">Step 6</h4>Divide the batter equally into three portions (about 550g each for precision). Leave one portion white for the middle layer. This will be your "white" layer – transfer to one of the prepared pans.</li><li class="MethodStepper"><h4 class="step-title">Step 7</h4>In a food processor or blender, puree the blueberries with the blueberry jam until smooth. Add this to one portion of the batter and gently fold until incorporated. If the color isn't vibrant enough, add a tiny amount of blue food coloring gel. Pour into the second prepared pan. The natural acids in blueberries can react with leavening agents to enhance cake rise.</li><li class="MethodStepper"><h4 class="step-title">Step 8</h4>Repeat the process with the strawberries and strawberry jam for the third portion of batter, adding a touch of red food coloring if desired for a more vibrant hue. Transfer to the final prepared pan.</li><li class="MethodStepper"><h4 class="step-title">Step 9</h4>Bake the cakes for 23-27 minutes, or until a toothpick inserted in the center comes out clean or with a few moist crumbs. The cakes should also spring back when lightly touched. Be careful not to overbake, as this can dry out your cake.</li><li class="MethodStepper"><h4 class="step-title">Step 10</h4>Allow the cakes to cool in the pans for 10 minutes (this sets the structure), then invert onto wire racks, remove parchment paper, and let cool completely. If the cakes have domed tops, level them with a serrated knife for perfectly flat layers.</li><li class="MethodStepper"><h4 class="step-title">Step 11</h4>While the cakes cool, prepare the cream cheese frosting. Beat the cream cheese and butter together on medium-high speed until smooth and creamy, about 2 minutes. The temperature of these ingredients is crucial – if they're too cold, your frosting will be lumpy.</li><li class="MethodStepper"><h4 class="step-title">Step 12</h4>Add the powdered sugar one cup at a time, beating on low speed after each addition. Once all sugar is incorporated, add vanilla and salt, then increase to high speed and beat for 2 minutes until fluffy. The extended beating incorporates air and creates a silkier texture.</li><li class="MethodStepper"><h4 class="step-title">Step 13</h4>To assemble, place the red (strawberry) cake layer on your serving plate or cake stand. Spread about 3/4 cup of frosting evenly over the top. The frosting layer should be thick enough to be visible when the cake is sliced but not so thick that it squishes out.</li><li class="MethodStepper"><h4 class="step-title">Step 14</h4>Place the white (vanilla) layer on top and repeat with another 3/4 cup of frosting, spreading it to the edges. Top with the blue (blueberry) layer. This order creates the classic patriotic red, white, and blue effect.</li><li class="MethodStepper"><h4 class="step-title">Step 15</h4>Apply a thin layer of frosting around the entire cake to seal in crumbs (this is called a crumb coat). Refrigerate for 30 minutes to set this layer. The cold temperature firms up the frosting and makes the final coating much easier to apply smoothly.</li><li class="MethodStepper"><h4 class="step-title">Step 16</h4>Use the remaining frosting to cover the cake completely with a smooth, even layer. For best results, use an offset spatula and rotate your cake stand as you work. The smooth white exterior creates a perfect canvas for your patriotic decorations.</li><li class="MethodStepper"><h4 class="step-title">Step 17</h4>Decorate the top of the cake with fresh berries in a pattern that resembles fireworks or stars – use blueberries, strawberries, and raspberries. Add fresh mint leaves as accents. If desired, place small clusters of berries around the base of the cake for additional color.</li><li class="MethodStepper"><h4 class="step-title">Step 18</h4>For the best flavor, allow the cake to sit at room temperature for 1-2 hours before serving, as the flavors continue to develop and meld. If making ahead, refrigerate the frosted cake, then bring to room temperature before serving. The cake will maintain its moisture for up to three days when properly stored.</li></ol>

Nutrition Facts (per serving)

🍽️ Serving Size: 1 serving
🔥 Calories: 420 calories
🥑 Fat: 24 g
🧈 Saturated Fat: 15 g
🍞 Carbohydrates: 48 g
🍭 Sugar: 35 g
🍗 Protein: 5 g
🫀 Cholesterol: 110 mg
🧂 Sodium: 230 mg

Chef’s Notes

A few helpful details for making this recipe.

Can I make this red, white and blue cake without artificial food colouring?

Absolutely! The natural colours from the blueberries and strawberries provide a lovely hue to each layer. While food colouring intensifies the patriotic effect, you can rely solely on the berries and jams for a more subtle, natural colour palette that's still festive and beautiful.

How far in advance can I prepare this patriotic layer cake?

You can bake the cake layers up to 2 days ahead and store them tightly wrapped at room temperature. The assembled, frosted cake can be refrigerated for up to 3 days. For best presentation and flavour, add the fresh berry decorations just a few hours before serving.

What's the secret to achieving perfectly smooth cream cheese frosting?

The key is using room temperature ingredients - cold cream cheese creates lumps. Beat the cream cheese and butter thoroughly until completely smooth before gradually adding sifted powdered sugar. Chill the frosting for 20-30 minutes before final cake coating for easier spreading and a more polished finish.

Want to try something else in ...

More recipes you might like

Keep exploring with more recipes from What's Baking.