This flag cake is a classic American sheet cake: a moist vanilla buttermilk base topped with fluffy whipped cream frosting and arranged with fresh strawberries and blueberries to mimic the Stars and Stripes. It’s the centerpiece for a Fourth of July cookout or picnic, serving a crowd with minimal fuss. The cake is sturdy enough to hold the fruit topping, and the tangy buttermilk keeps it tender for days.
Ingredients
- 2 ½ cups (300 g) all-purpose flour
- 2 ½ teaspoons baking powder
- ½ teaspoon baking soda
- 1 teaspoon salt
- 1 cup (2 sticks, 226 g) unsalted butter, softened
- 1 ¾ cups (350 g) granulated sugar
- 3 large eggs, room temperature
- 1 tablespoon vanilla extract
- 1 ½ cups (360 ml) buttermilk, room temperature
- 2 cups (480 ml) heavy cream, cold
- ⅓ cup (40 g) powdered sugar
- 1 teaspoon vanilla extract (for frosting)
- 2 cups (about 300 g) fresh strawberries, hulled and sliced
- 1 ½ cups (about 200 g) fresh blueberries
Instructions
- Preheat oven to 350°F (175°C). Grease a 9×13-inch (23×33 cm) baking pan and line with parchment paper.
- In a medium bowl, whisk together flour, baking powder, baking soda, and salt. Set aside.
- In a large bowl, beat butter and sugar with an electric mixer on medium speed until light and fluffy, about 3 minutes. Add eggs one at a time, beating well after each. Mix in vanilla.
- With mixer on low, add flour mixture in three additions, alternating with buttermilk, beginning and ending with flour. Mix just until combined; do not overmix.
- Pour batter into prepared pan and smooth the top. Bake for 28–32 minutes, until a toothpick inserted in the center comes out clean. Cool in the pan on a wire rack for 15 minutes, then turn out onto a rack to cool completely, at least 1 hour.
- Once cake is completely cool, make the frosting: in a large chilled bowl, beat heavy cream, powdered sugar, and vanilla on medium-high speed until stiff peaks form, about 3–4 minutes.
- Spread frosting evenly over the top of the cake.
- Arrange blueberries in a 3-inch (7.5 cm) square in the top-left corner (or top-right, as you prefer) to form the star field. Place strawberry slices in horizontal rows across the remaining frosting to form the stripes. Refrigerate until serving.
Why Did My Cake Turn Out Dry or Dense?
A dry cake usually comes from overbaking or overmixing. Check the cake at 28 minutes; if the toothpick has moist crumbs, it’s done. Overmixing develops gluten, making the crumb tough. Mix only until the flour disappears. If the cake is dense, the leavener may be old—test baking powder by stirring 1 teaspoon into ⅓ cup hot water; it should bubble vigorously. Also, ensure all ingredients are at room temperature so the batter emulsifies properly.
Why Is My Frosting Runny or Grainy?
Runny whipped cream frosting means the cream was not cold enough or was overwhipped into butter. Chill the bowl and beaters for 15 minutes before starting. Whip on medium-high until stiff peaks form, but stop as soon as they do—overwhipping turns the cream grainy and then buttery. If the cream is too warm, it will never hold stiff peaks; start with cream straight from the fridge. For a more stable frosting, you can substitute 1 cup (240 ml) of the heavy cream with 1 cup (240 ml) of mascarpone cheese, but the flavor will be richer.
How Long Does Flag Cake Keep?
Store the frosted cake covered in the refrigerator for up to 3 days. The fruit may release juice and make the frosting weep after 24 hours; for best appearance, add the fruit within 2 hours of serving. Unfrosted cake layers can be wrapped tightly in plastic wrap and frozen for up to 3 months; thaw in the refrigerator overnight before frosting. Do not freeze the frosted cake with fresh fruit—the berries will become mushy.
What Can I Substitute for Buttermilk?
If you don’t have buttermilk, make a quick substitute: pour 1 ½ tablespoons of lemon juice or white vinegar into a liquid measuring cup, then add whole milk to reach 1 ½ cups (360 ml). Let stand 5 minutes until it curdles. This substitute will work the same in the batter, though the cake may be slightly less tender. For a dairy-free version, use 1 ½ cups (360 ml) unsweetened oat milk mixed with 1 ½ tablespoons lemon juice, and use a dairy-free butter substitute; the cake will be a bit more delicate.
How Should I Serve and Decorate the Flag Cake?
Serve the cake chilled or at room temperature within 2 hours of decorating. For a neater flag, arrange the blueberries in a tight grid pattern—about 5 rows of 4 berries. For the stripes, use 13 horizontal rows of strawberry slices, leaving the top-left corner empty for the star field. If you prefer a more abstract flag, you can scatter the berries in a freeform pattern. Pair with grilled burgers, potato salad, or cold lemonade. For a festive touch, dust the top with a little powdered sugar just before serving, but note it will dissolve into the cream.
Can I Make This Cake Ahead of Time?
Yes, you can bake the cake layers up to 2 days ahead and store them tightly wrapped at room temperature. Frost the cake no more than 8 hours before serving, and add the fruit no more than 2 hours before serving to keep the berries fresh. The whipped cream frosting is best made fresh, but you can whip it up to 2 hours ahead and refrigerate in a covered bowl; re-whip briefly if it deflates.
What If I Don’t Have a 9×13 Pan?
You can use two 8-inch (20 cm) round pans; bake for 22–26 minutes, and stack the layers with frosting between them, then frost the top and sides. Or use a 10×15-inch (25×38 cm) jelly-roll pan; bake for 18–22 minutes, and you’ll have a thinner cake that serves more people. Adjust the fruit amounts proportionally—for the jelly-roll pan, you may need about 3 cups strawberries and 2 cups blueberries.
Why Does My Cake Stick to the Pan?
Grease the pan thoroughly with butter or shortening, then dust with flour, tapping out the excess. Using parchment paper is the most reliable method—cut it to fit the bottom of the pan, grease the pan, then press the paper in. Let the cake cool in the pan for 15 minutes before turning out; if you leave it too long, steam condenses and can make it stick.
Can I Use Frozen Berries?
Frozen berries are not recommended for the topping because they release excess juice and turn mushy as they thaw. For the cake batter, you could fold in frozen blueberries, but they may sink and bleed color. Stick with fresh berries for the flag design. If fresh strawberries are out of season, you can use raspberries or sliced plums, but the colors will differ.
What’s the Best Way to Cut a Flag Cake?
Use a long, thin-bladed knife and cut straight down, wiping the blade between cuts. For clean slices, dip the knife in hot water and dry it before each cut. You can cut the cake into 15 even rectangles (3 across by 5 down) or into squares for a more casual look. The fruit may slide slightly, so cut gently.
How Do I Prevent the Whipped Cream from Weeping?
Weeping happens when the cream is overwhipped or when the cake is not completely cool before frosting. Make sure the cake is at room temperature (about 70°F/21°C) before spreading the frosting. Also, avoid leaving the cake out for more than 2 hours total (1 hour if above 90°F/32°C). If you need to hold it longer, refrigerate it; the cream will stay firm but the cake may dry out slightly.
Can I Use a Boxed Cake Mix Instead?
Yes, you can use a white or yellow cake mix prepared according to package directions for a 9×13 pan, then cool and frost as directed. The homemade version has a finer crumb and more vanilla flavor, but the boxed mix will save time. If using a mix, reduce the baking time by 5 minutes and check for doneness earlier.
What If I Want a Chocolate Flag Cake?
For a chocolate version, replace ½ cup (60 g) of the flour with ½ cup (50 g) unsweetened cocoa powder, and increase the buttermilk to 1 ¾ cups (420 ml). The cake will be darker and richer; the red and blue berries will pop against the dark crumb. Baking time may increase by 2–3 minutes; check with a toothpick.
How Should I Store Leftovers?
Refrigerate leftover cake in an airtight container for up to 3 days. The fruit will soften, but the cake and cream remain safe. If you have unfrosted cake, wrap it tightly and store at room temperature for up to 2 days, or freeze for up to 3 months. Always discard any cake left out at room temperature for more than 2 hours.
This flag cake is a straightforward dessert that delivers a visual punch. The combination of sweet strawberries, tart blueberries, and creamy frosting over a tender vanilla cake makes it a crowd-pleaser. With the tips above, you can adjust it to your pan, timeline, and taste.
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).
