Flag cake is a classic American dessert that shines during patriotic holidays like the Fourth of July, Memorial Day, and Labor Day. Not only is it beautiful and eye-catching, but it’s also light, flavorful, and incredibly easy to make. This cake combines a soft vanilla or white cake base with a whipped topping and fresh berries, arranged to resemble the American flag. The result is a dessert that’s both festive and crowd-pleasing, perfect for warm-weather gatherings and outdoor celebrations.
The base of the flag cake is typically a moist, tender sheet cake. A simple vanilla or white cake is often used to let the colors of the flag really pop. The cake can be homemade or made from a box mix, depending on how much time you have. Once baked and cooled, it becomes the perfect canvas for decorating.
The topping is usually a layer of whipped cream or whipped topping, which gives the cake a light, fluffy texture and a creamy finish. It also acts as the “frosting” that holds the flag design in place. The whipped topping is gently spread across the cooled cake to create a smooth surface for the berries.
Fresh strawberries and blueberries are the stars of the decoration. Blueberries form the stars portion of the flag in the upper left corner, while halved strawberries are arranged in neat rows to mimic the red stripes. The whipped topping in between serves as the white stripes, making the flag come to life with bold, natural colors. You can also experiment with other fruits like raspberries or blackberries for a different twist, but the classic combo of strawberries and blueberries keeps the look clean and instantly recognizable.
Flag cake is not just pretty — it’s also delicious. The combination of sweet, juicy berries, fluffy whipped topping, and moist cake creates a refreshing dessert that’s perfect for hot summer days. It’s light enough to enjoy after a big barbecue and easy enough to prepare ahead of time.
Whether you’re hosting a backyard party or attending a potluck, flag cake is a fun and festive way to celebrate with something sweet. It brings patriotic flair to the table and gives everyone a reason to come back for seconds.

Ingredients
- 2 cups all-purpose flour
- 1 tsp baking powder
- 1/2 tsp baking soda
- 1/2 tsp salt
- 1/2 cup unsalted butter softened
- 1 cup granulated sugar
- 2 eggs large,
- 1 tsp vanilla extract
- 1 cup buttermilk
- 1/4 cup Red food coloring
- 1/4 cup Blue food coloring
- 4 cups heavy cream
- 1/2 cup powdered sugar
- 1 tsp vanilla extract
- strawberries for decorating
- blueberries for decorating
- raspberries for decorating
Instructions
- Preheat the oven to 350°F (175°C) and grease a 9x13-inch baking dish.
- In a medium bowl, whisk together the flour, baking powder, baking soda, and salt.
- In a separate large bowl, cream together the butter and sugar until light and fluffy.
- Beat in the eggs one at a time, then stir in the vanilla extract.
- Gradually mix in the dry ingredients, alternating with the buttermilk, until just combined.
- Divide the batter into two equal portions and stir in the red food coloring into one portion and the blue food coloring into the other.
- Pour the colored batters into the prepared baking dish, alternating colors to create a flag design.
- Bake in the preheated oven for 25-30 minutes or until a toothpick inserted into the center comes out clean.
- Allow the cake to cool completely.
- In a chilled bowl, whip the heavy cream, powdered sugar, and vanilla extract until stiff peaks form.
- Frost the cooled cake with the whipped cream and decorate the top with strawberries, blueberries, and raspberries in a flag pattern.
- Refrigerate the cake until ready to serve.
Nutrition










Cake was too sweet for my taste. Next time, I might cut back on the sugar. 🙁
Does anyone know if I can use powdered sugar instead of granulated sugar in the cake?
Delicious! But I used margarine instead of butter and it still worked. Flexible recipe!
Cake? I thought this was a cookie recipe.
I still think it’s just a glorified cookie. 🤷♀️
It’s a cake, but it has a cookie-like texture! 👍
Too sweet for me. Maybe cut down on the sugar next time. But it’s super pretty, I’ll give it that!
I totally get you! It is really sweet. Maybe I’ll try it with less sugar next time too. But dang, it looks amazing! 😍
Yum! Cake was fantastic! 😂 Definitely gonna use this for the next family gathering! 🎉
Why does it need so much food coloring? Seems a bit much for a cake. Can I just skip it?
I had a hard time with the batter. It didn’t look right and my colors got all mixed up. Not sure what I did wrong.
Don’t worry, it happens! Maybe your colors mixed because you stirred too much? Try to be more gentle next time. Good luck!
This cake turned out amazing! Everyone loved it at the party. Definitely a 5-star recipe!
Not very practical for everyday. Way too complicated for me, and where do I even buy blue food coloring?
This is the best cake I ever made! Followed the recipe perfectly.
Wow, that’s amazing! I love a good cake! 🎉
Best cake? Really? It’s a bit too colorful for me…
I tried making this for the Fourth of July but ended up making a mess. Cake was good but still, it was frustrating.
I followed the recipe but my cake turned out so dry 🙁 What did I do wrong? Not sure if it’s worth trying again.
I’m so sorry to hear that! A dry cake can happen if you overmix the batter or bake it too long. Maybe try checking it a few minutes earlier next time? Don’t give up! 🙂
I really thought the cake would taste different with colors, but. It was just cake. Nothing special.
I totally agree! It looked nice but didn’t taste any different than a regular cake. Kinda disappointing.
That’s a weird take! Maybe you did something wrong? It’s all about the decorating for this one! 😄
It’s just a cake, how hard can it be? I made it with the kids and we had a blast!
Sounds fun! I might try it out with my kids too! Thanks for sharing!
This is too much work for a cake. I just wanted a simple recipe. Maybe next time try something easier.
This cake was amazing! Everyone loved it at the party. Will make again!
This cake was a hit at our 4th of July party! So festive and delicious!
Great recipe, but I think I over-whipped the cream. Oops!
This cake is so much fun to make! The colors really pop and it was a hit at the party. Everyone loved it!
I’m so glad you enjoyed it! The colors are definitely eye-catching. I might try this for Fourth of July!
Yummy! But is there really that much food coloring needed?
I thought the same thing! Seems kinda excessive, but maybe it’s for the look? 🤷♀️
Honestly, who needs that much coloring?! Just use a bit for flavor! This seems like a sugar overload. 😬
Looks pretty but honestly, who has time for all this? I just stick to brownies, less hassle.
I totally get what you mean! Brownies are so much easier. But this cake does look fun for a special occasion, right? Just save it for a party or something!
This cake looks way too complicated! Who has time for all that? Just give me a simple recipe, please.
I didn’t think it would turn out looking like a flag. Mine was a big mess.
Looks fun but too much food coloring for me. Can’t we use fruits? 🤷♂️
Nah, I think the food coloring is fine. It makes it look festive! Fruits are tasty, but they don’t give the same pop, you know?
I get where you’re coming from! Using fruits instead of food coloring sounds more natural. But the colors are kind of fun for a party. 🌈
Not sure why anyone would want artificial colors. Can I just use fruits to color it? Seems healthier.
My kids had a blast helping me make this. They loved the decorating part! Will definitely make again for the 4th!
I love this recipe! It looks just like the pic. Couldn’t find buttermilk so I used regular milk. Still turned out great!
My kids helped and they had a blast making it. Super cute cake! We’ll be making it again for sure.
This cake is AMAZING! I made it for the 4th of July, and everyone loved it. The colors are so vibrant!
Looks fun, but isn’t it just a regular cake with food coloring? How does that make it so “AMAZING”? 🤔
I’m so glad to hear that! I made it last year for my family reunion, and it was a hit! The colors really do pop!
I tried making this but my cake turned out dry… Maybe I messed something up?
Don’t worry, it happens to the best of us! Maybe you overbaked it? Just keep trying, you’ll get it right next time! 😊
Totally nailed it! Perfect for the 4th of July! 🇺🇸
Took way longer than expected! Plus, the colors bled into each other. Not what I hoped for.
Just okay. The whipped cream was too sweet for my taste. Next time, less sugar.
The cake tasted fine but the decoration was harder than I thought. It’s not as easy as it looks!
I don’t even kno what a buttermilk is, can I just use regular milk?
Yes, you can use regular milk. It won’t taste exactly the same, but it’ll work!
Flag cake? More like flag disaster! 😂 Mine fell apart. Better luck next time!
Don’t worry, sometimes cakes just have a mind of their own! 😂 Try again, I’m sure you’ll nail it next time!
Flag cake? Sounds unnecessary tbh. Why not just a regular cake?
Flag cake? More like flag mess! Didn’t turn out like the picture. Need real skill for this.
I think your expectations were too high! It takes practice to nail these fancy cakes. Don’t give up!
Maybe it wasn’t as pretty, but it still must’ve tasted good! Cakes are about taste, right?
Is there a way to make this without all that dye? Maybe using fruit or somthing? I’m tryin to be healthier.
I don’t think the cake will look right without the dye. Fruits might not give the same effect. Just saying!
You can totally use fruit for the colors! Like blend strawberries for red and blueberries for blue. Healthier and natural! 🍓💙
I had a hard time with the colors. They mixed together and just looked like a mess. Flavor was okay though.
OMG this is sooo good! Made it for the 4th of July and it was gone in seconds!!
Cake was nice, but my oven is old and it burned on the edges. Watch your time! But still taste great.
This cake is a hit at my BBQs! Looks amazing, tastes even better. Everyone loved it!
This recipe is too complicated! Who has time for all this?
Mine came out a little dry at 30 minutes, I think my oven runs hot. Still tasty though.
Good catch on the oven—mine runs hot too. Next time I’d try 325°F and check around 22–25 min, because 30 can tip it dry.
Heavy cream frosting tip: keep everything cold. Mine softened when I waited too long, so I had to chill it again before spreading.
Made this for a party—looks *exactly* like a flag! The whipped cream frosting is super fluffy, and the color split is gorgeous.
I loved this cake! It was a hit at our 4th of July party! 🎆
Why so much heavy cream? It’s delicious but it feels super rich for me. I might cut it in half next time or do a lighter frosting.
I’m confused—baking soda AND baking powder? Shouldn’t that be only one? Maybe it works, but I feel like this might turn out dense if both are off.
I get the confusion, but in baking soda + baking powder is totally normal. Baking powder gives lift, and baking soda helps react with the buttermilk (an acid). So it’s not “double” for no reason—it’s kind of a two-part chemistry thing.
You’re not wrong to be suspicious, but it should be fine if the amounts are right. 1 tsp baking powder + 1/2 tsp baking soda for 2 cups flour and 1 cup buttermilk sounds pretty standard for a tender cake. If it’s dense, I’d look more at overmixing or not creaming the butter/sugar enough.
I made it for a party and people kept grabbing seconds 😅 The whipped cream frosting was perfect.
I’m skeptical about the “flag pattern” with just alternating pours—mine kind of blurred together. Still tasty though, and the colors were vibrant.
The directions are clear, but I wish it said how thick to layer the batter. I kinda just eyeballed it.
Totally get that—this batter is kind of on the looser side, so I just spread it evenly across the pan. I’d say “fill the pan in a single, even layer” rather than a super thick strip.
The instructions say bake 25-30 mins, but nothing about layering thickness… I’d love a mm measurement too. I tried eyeballing once and my red/blue edges got uneven 😭
This is such a fun idea! The alternating red/blue layers look exactly like a flag when sliced.
I think it’s overrated. Too much butter and sugar for me, and the red/blue combo tastes kinda artificial.
I thought flag cake was made with Jello? Why use food coloring?
I think the food coloring gives it more vibrant colors than Jello would! Plus, it’s more about the cake than just a dessert mix.
Could use a little more structure for the batter layering. Like do you pour in strips or alternate dollops? I watched a video after and fixed it.
Just made it and it was ok. Didn’t taste as good as I thought it would be…maybe too much vanilla?
Maybe you added too much vanilla, or your ingredients weren’t fresh? I’ve had that happen. Consider trying less next time!
Yum! This was super fun to make with my kids. They enjoyed the decorating part the most!
That sounds like a blast! Decorating is the best part, right? Great memories with the kids!
Looks fun, but isn’t using food coloring kinda unhealthy? I thought they were bad for kids?
This is not a real flag cake, more like colored cake with berries. Also 2 eggs for 2 cups flour seems low… unless it’s supposed to be light?
2 eggs for 2 cups flour does seem a little light, yeah—but with all that whipped cream on top it probably tastes fluffy anyway. I’d still add 1 more egg if you want extra richness.
I get what you mean on the “flag” part 😅 It’s basically a two-color cake + berries, not like a strict, single-structure flag. Still looks awesome though.
Cool idea for a cake but my colors mixed together, turned into a mushy mess. 😕
Sounds like a messy situation! Maybe try separating the colors more next time? 😅
Totally delicious! 😋 I’ll be making this every year from now on.
What if I don’t have buttermilk? Can I just use regular milk?
Not gonna lie, I used gel food coloring instead and it came out kinda darker, but that was kinda cool? Also strawberries sank into the cream a bit.
Not gonna lie, it’s a lot of steps for a home bake, but the flavor is good. The whipped topping tasted great—maybe a pinch more salt would balance it.
Totally agree—flag cakes look simple but the steps add up. Glad the flavor hit though! I’ll try a tiny pinch more salt next time; with the sweet whipped topping it probably needs it.
I accidentally used baking powder that was expired by like… a year. Cake still rose a little, but it was kind of sad. The recipe itself seems solid.
This is such a fun Fourth-of-July vibe. I followed the alternating pour step and it came out way cleaner than I expected.
I think the baking soda is unnecessary here. I followed everything and the crumb felt a bit too dense. Would love to try it again with only baking powder.
I actually leave the baking soda in and it’s always fine for me 🤷♀️. Dense crumb usually happens when the batter gets overmixed after you add the dry ingredients or if the oven runs cool.
That’s a really good point—baking soda and baking powder do different jobs. If your crumb came out dense, I’d be tempted to try just baking powder too and maybe make sure you’re measuring flour correctly. Let us know how it turns out!
My toothpick came out clean at 25 minutes but the center was still a little gooey—probably my oven runs hot/cold. Overall good though, and the decoration is easy.
25 min seems short to me. I’d bake closer to 35 or the center never really sets, especially with all the color mix. Also, I mixed the colors all at once once and it looked like a tie-dye flag 😅 Still tasted good though.
Thanks for sharing! I also get a “toothpick clean but still gooey” situation sometimes—my oven runs wild too. Did you end up adding a few extra minutes or just let it set as it cooled?
Is it supposed to bake only 25-30 minutes? Mine took closer to 40 because my oven runs slow. Don’t trust the timer blindly.
I used gel food coloring instead of liquid—came out darker and slightly uneven, but still cool. Texture was good.
My blue color looked more purple, not gonna lie. I think my food coloring brand is stronger/weaker. Still cute!
This is such a fun idea for parties—my kids loved the flag pattern. I did find I needed a couple extra minutes in the oven, but it still came out really moist.
I tried it once and my design basically mixed together. Maybe I over-stirred or my layers weren’t poured carefully.
I followed it closely but my blue layer bled into the red a bit. Still tasted great though—very sweet and rich.
Gonna be my new go-to cake for all holidays! (:
Heavy cream + powdered sugar frosting is the move. I could eat that by itself.
Honestly same—heavy cream + powdered sugar frosting is dangerously good. I’d absolutely eat it straight off a spoon.
“Flag cake” sounds cooler than it tastes—still sweet, but it felt more like a themed snack than a dessert wow.
I tried something similar once and the colors bled a bit—did you have any issues with the red and blue mixing in the pan? I’m curious how strict the alternating needs to be.
I’ve made it twice and never had much “bleeding” like I expected. The red/blue stayed pretty distinct as long as you don’t over-mix the colored batters after adding the color. When I pour, I try to alternate in a steady rhythm instead of swirling the pan too much.
Hmm mine kinda blended at the edges… I think I probably overworked the batter. Also I used gel food coloring (way more potent) and ended up doing a thicker pour—so maybe thinner batter helps keep lines. But strict alternating? I didn’t measure it; I just tried to take turns pouring each color.
The cake tasted good, but my batter got a bit weirdly thick after adding color—still baked fine though. Might be the butter temp?
Mine didn’t really make a neat flag design—the colors kind of mixed together when I poured. Still tasted good though, so I’m calling it “abstract flag” lol.
This is way more work than a normal sheet cake. Also, 1/4 cup of each food coloring felt excessive—next time I’ll use less.
Totally agree on the food coloring—those 1/4 cups each sound like a lot. I’d do like half that and see how it goes. Otherwise this looks amazing but definitely more effort than a simple sheet cake.
It was alright, but too sweet for my taste. Could use less sugar.
Made it for a 4th of July potluck and everyone asked for the recipe. My center took closer to 32 minutes, but it still came out great.
Congrats! 32 minutes is totally believable—my oven runs hot/cold depending on the day. Love that everyone asked for the recipe 😄
Wait, you baked it in 32 mins and it still came out good? I always thought red/blue batter would take longer. Gonna try this—thanks for the real-life timing!
Hard pass. Too much fuss with colors + decorating. I’d rather just make a simple vanilla cake.
This looks like such a fun holiday dessert. The alternating red/blue layers are giving major patriotic vibes. I’d probably bump the berries slightly for extra color!
I tried this and it was a mess! The colors didn’t turn out right and my kids didn’t like it. 🙁
Y’all, this is the best cake ever! Super fun and delicious.
I totally agree! This cake is a hit at every party! 🎉
Looks fun, but is the food coloring even safe? I heard it can mess with your stomach.
This cake looks amazing! I can’t wait to make it for the 4th of July.
Looks too hard, all those colors! Can’t I just use chocolate?
I’m sure it will be a hit! The colors are so festive! 🎉
The ingredient list says 1 tsp vanilla extract twice—so I assume one for batter and one for frosting. I almost skipped it the second time lol.
Yep! I did the same—vanilla once in the batter and once in the whipped cream. It really helps the frosting taste more “dessert-y” instead of plain cream. 😄
The cake is moist and the flavor is actually nice, not just ‘pretty food.’ My kids asked for it again for the next holiday.
Just made this cake – but I used sprinkles instead of berries. Still good!
That sounds fun! I love sprinkles. They make everything better! 🎉
Sprinkles? Really? I don’t think they go well with a flag cake. Wouldn’t berries be better?
I don’t get why it needs 4 cups heavy cream—seems excessive. I used less and it worked, but the rest is probably for safety?
Nah, I don’t think it’s for “safety.” Heavy cream quantity is for volume. The cake is 9×13—two layers of sponge plus decorations—so you need enough to cover without the cake showing.
I felt the same way at first, but 4 cups is what makes the whipped cream thick enough to actually hold the “frosted” look. If you use less, it’s more like a light coating.
Wait, are we supposed to whip the cream after the cake cools? I did, but I almost skipped it. Glad I didn’t.
10/10, perfect flag cake! 🫶
Yes!! That design is gorgeous 😍 I love how the red and blue layers stay super distinct.
Idk about 1/4 cup red + 1/4 cup blue, seems like a lot… but maybe for color. I might try less next time. Way too sweet for me personally.
Not gonna lie, 1/4 cup each of food coloring feels like a lot. Does it taste weird or just extra bright? Also my oven runs hot so I might check at 20 minutes.
This looks like the perfect patriotic dessert. The alternating red/blue batter tip is super clear and honestly the whipped-cream frosting sounds heavenly.
Yesss! The red/blue alternating layers + whipped cream frosting is exactly the vibe I want for 4th of July. The strawberries/blueberries/raspberries makes it look so festive too.
Looks cool but can it be done without all the food coloring? I’m not super into weird dyes. Also 25-30 min feels kinda short for a 9×13—might still be gooey in the middle.
Not gonna lie, 1/4 cup each of red and blue coloring feels like a lot. But the color was very bold, so maybe it’s right.
Flag cake!!! 🇺🇸
Wait, you’re baking the red and blue batter *together* like that? I feel like it’ll just swirl into purple-ish mess 😅 But I guess alternating layers helps.
Flag cake!!! 🇺🇸 This looks so fun—love the red/blue batter idea and the fresh berries on top.
Looks like it’s from one of those Pinterest videos, but honestly the steps are pretty straightforward. Cooling completely is key.
Agreed—Pinterest or not, the cooling step is what saves it. If it’s even a little warm, the whipped cream just melts.
The colors were *chef’s kiss*. I used gel food coloring instead of liquid and it turned out super vibrant. Next time I’ll pipe the whipped cream so the design looks cleaner.
Not gonna lie, the instructions to alternate colors in one pan is kind of confusing. I’d love clearer steps for the design.
Totally agree—step 7 is doing a lot. I had to reread it a few times. Clearer guidance like “drop spoonfuls in vertical stripes” would help a ton.
I was skeptical about baking two colors in one pan, but the flavor is great. The whipped cream frosting is the real star.
Bro this frosting is dangerous… I ate like half before it even went on the cake.
Haha dangerous is right 😅 If you’re already half-way done, you’re basically speed-running dessert.
Wait… does this frosting have anything “dangerous”? It’s just whipped cream, powdered sugar, and vanilla. Maybe you mean it’s too addictive?