These cookies walk into a 4th of July party and everyone immediately stops talking about everything else.
Red, white, and blue. Star-shaped. Iced to perfection. And yes — you can 100% make these at home even if you’ve never decorated a cookie in your life.
I’ll be straight with you: the decorating part is where people get in their heads. But once you see how forgiving royal icing actually is, you’ll wonder why you ever bought store-bought cookies at all.
These are genuinely fun to make, especially if you’ve got kids around. And they taste so much better than anything from a box.
What You’ll Need
For the Sugar Cookies
- 2 ¾ cups (345g) all-purpose flour
- 1 tsp baking soda
- ½ tsp baking powder
- ½ tsp salt
- 1 cup (225g) unsalted butter, softened to room temperature
- 1 ½ cups (300g) granulated sugar
- 1 large egg, room temperature
- 1 tsp pure vanilla extract
- ½ tsp almond extract
For the Classic Sugar Cookies (Soft, Round Version)
- 2 ¾ cups (345g) all-purpose flour
- 1 tsp baking soda
- ½ tsp baking powder
- ½ tsp salt
- 1 cup (225g) unsalted butter, softened
- 1 ½ cups (300g) granulated sugar
- 1 large egg
- 1 tsp pure vanilla extract
- Red, white, and blue M&Ms
- Red, white, and blue star sprinkles
For the Royal Icing
- 3 cups (360g) powdered sugar, sifted
- 2 tbsp meringue powder
- 4–5 tbsp water (add slowly until the consistency is right)
- Red gel food coloring
- Blue gel food coloring
- Red, white, and blue star sprinkles
- White pearl sprinkles
Tools You’ll Need
- Baking sheets (2–3)
- Parchment paper
- Stand mixer or hand mixer
- Mixing bowls (large and small)
- Rubber spatula
- Rolling pin
- Star-shaped cookie cutters (large and small, various sizes)
- Round cookie cutter (3-inch, for the flag cookies)
- Cooling wire racks
- Piping bags (or zip-lock bags with a tiny corner snipped)
- Small round piping tip (#2 or #3)
- Toothpicks (for spreading icing and creating details)
- Small bowls for dividing icing
- Measuring cups and spoons
- Plastic wrap
- Offset spatula or butter knife
Pro Tips
1. Chill the dough before rolling it out.
This is the step that separates clean, sharp cookie edges from cookies that spread into blobs. Wrap the dough tightly in plastic wrap and refrigerate for at least 1 hour (overnight is even better). Cold dough holds its shape when it bakes.
2. Don’t overbake the cookies — pull them when the edges are barely golden.
The centers will look slightly underdone when you take them out. That’s correct. They firm up as they cool. Overbaked sugar cookies go hard and dry fast, and nobody wants to bite into a hockey puck.
3. Use gel food coloring, not liquid.
Liquid food dye will water down your royal icing and give you washed-out pink and light lavender instead of bold red and navy blue. Gel coloring is concentrated, so a little goes a long way. For a true deep red, you’ll need more than you think — add it in stages and let the icing rest for 5 minutes, the color deepens as it sits.
4. Make two consistencies of royal icing.
One thicker (for outlining), one thinner (for flooding the inside). To test flood consistency, drag a knife through it — it should smooth back over in about 10 seconds. Too thick and it won’t spread. Too thin and it runs off the cookie.
5. Let each color dry before adding the next.
If you put wet icing next to wet icing, the colors bleed into each other. Give each section at least 15 to 20 minutes to set before decorating on top of or right next to it.
How to Make 4th of July Cookies
Step 1: Make the Dough
- Preheat your oven to 375°F (190°C). Line baking sheets with parchment paper.
- Whisk together flour, baking soda, baking powder, and salt in a bowl. Set aside.
- In a stand mixer, beat the softened butter and sugar on medium-high for 2 to 3 minutes until light and fluffy.
- Add the egg, vanilla extract, and almond extract. Mix until combined.
- Gradually add the flour mixture on low speed until a soft dough forms. Don’t overmix.
- Divide the dough in half, flatten into discs, wrap in plastic wrap, and refrigerate for at least 1 hour.
Step 2: Roll and Cut
- Lightly flour your work surface and rolling pin.
- Roll the chilled dough out to ¼ inch thickness.
- Cut out star shapes using your cookie cutters. Re-roll scraps and keep cutting.
- Place cut cookies on the lined baking sheets, spacing them about 1 inch apart.
Step 3: Bake
- Bake for 8 to 10 minutes until the edges are just barely golden. The centers should still look slightly soft.
- Let them cool on the baking sheet for 5 minutes before transferring to a wire rack.
- Cool completely before icing — completely, not mostly. Icing a warm cookie is a fast track to a melted mess.
Step 4: Make the Royal Icing
- Beat powdered sugar, meringue powder, and 4 tablespoons of water in a stand mixer on medium-high for 5 minutes until thick and glossy.
- Divide into three bowls. Color one portion red with gel food coloring, one portion blue, and leave the third white.
- Add more water a few drops at a time to reach flood consistency in each bowl (should flow back over itself in 10 seconds).
- Transfer each color into a separate piping bag.
Step 5: Decorate the Star Cookies
For full-color stars:
- Outline the star shape with thicker icing in red, white, or blue.
- Flood the inside with the thinner icing of the same color.
- Use a toothpick to push the icing into any corners and smooth out bubbles.
- Add sprinkles or white pearl dots while the icing is still wet.
For striped stars:
- Flood the entire star with white icing. Let it set for 10 minutes.
- Pipe thin stripes of red icing across the surface.
- Use a toothpick to drag through the stripes to create a feathered effect.
- Add star-shaped sprinkles on top.
For the American Flag round cookies:
- Flood the entire cookie with white icing. Let it partially set (5 minutes).
- Pipe horizontal red stripes across the lower two-thirds.
- Flood a small square section in the top left corner with blue icing.
- While the blue section is still wet, add small white star sprinkles or pipe tiny white dots.
- Let everything dry completely (at least 1 hour) before stacking or packaging.
Step 6: Make the M&M Soft Cookies (Bonus Round)
- Follow the same dough recipe above but skip the chilling step.
- Scoop dough balls onto a lined baking sheet (about 1.5 tablespoons each).
- Press red, white, and blue M&Ms into the tops before baking.
- Bake at 375°F for 9 to 11 minutes until the edges are set but the center is still soft.
- Top with a pinch of red, white, and blue star sprinkles right after they come out of the oven.
- Cool completely on the baking sheet.
Substitutions and Variations
| Swap | Use Instead |
|---|---|
| Almond extract | More vanilla extract or lemon extract |
| Meringue powder | 2 pasteurized egg whites (same volume) |
| Royal icing | Store-bought cookie icing tubes (way easier, less pretty) |
| All-purpose flour | 1:1 gluten-free flour blend |
| Unsalted butter | Vegan butter for a dairy-free version |
| M&Ms | Patriotic Reese’s Pieces or red, white, blue chocolate chips |
| Star cutters | Any cutter shape — hearts, rounds, rectangles |
Want them softer? Add 1 extra egg yolk to the dough. More yolk = more fat = chewier, softer texture.
Gluten-free? A 1:1 GF flour blend works well here. The cookies will be slightly more delicate, so chill the dough an extra 30 minutes before cutting.
Make-Ahead Tips
Cookies are one of the most make-ahead friendly things you can bake. Here’s how to plan it out.
- Dough: Make up to 3 days ahead. Wrap tightly in plastic wrap and refrigerate. You can also freeze the dough for up to 2 months.
- Baked, un-iced cookies: Bake up to 2 days ahead. Store in an airtight container at room temperature between layers of parchment paper.
- Royal icing: Make up to 1 week ahead. Cover tightly with plastic wrap pressed directly onto the surface to prevent drying. Stir well before using.
- Decorated cookies: Fully decorated cookies keep well for up to 5 days at room temperature once the icing is completely dry.
Nutrition (Approximate Per Cookie)
| Cookie Type | Calories | Notes |
|---|---|---|
| Iced sugar star (large) | ~210 | With full royal icing |
| Iced sugar star (small) | ~130 | With thin icing layer |
| M&M soft cookie | ~190 | Without extra sprinkles |
| Plain baked sugar cookie | ~150 | No icing |
Approximate values. Will vary based on cookie size and amount of icing.
Leftovers and Storage
Room temperature: Store completely dry, iced cookies in an airtight container with parchment paper between layers. They keep well for up to 5 days.
Refrigerator: Not necessary unless your kitchen is very warm. Cold air can make royal icing slightly tacky.
Freezing (un-iced cookies): Freeze in a zip-lock bag for up to 2 months. Thaw at room temperature for 30 minutes, then decorate.
Freezing (iced cookies): Technically works, but the icing can crack when thawing. If you freeze them, thaw slowly in the fridge overnight, then let them come to room temperature before serving.
Meal Pairing Suggestions
These cookies fit perfectly into any 4th of July spread:
- Serve alongside a red, white, and blue trifle for a full dessert table
- Pack them into cellophane bags tied with ribbon as party favors
- Set them out next to ice cream sandwiches and let guests pick their dessert
- Pair with fresh lemonade, sparkling water, or a fruity white sangria
- Stack them in a mason jar tied with a ribbon for the most giftable hostess present
FAQ
Can I make these without a stand mixer?
Yes. A hand mixer works perfectly for both the dough and the royal icing. Just make sure your butter is properly softened or the dough will be tough to mix by hand.
My cookies spread a lot while baking. Why?
Almost always comes down to warm dough or too much butter. Make sure the dough is well-chilled before cutting, and double-check that you measured your butter correctly. Also make sure your baking sheet is cool — a hot sheet causes spreading right from the start.
How do I get royal icing that’s actually bright red, not pink?
Use gel coloring (not liquid), start with more than you think you need, and then let the icing rest for 5 to 10 minutes. The color intensifies as it sits. Some brands of red gel also work better than others — Americolor and Wilton are both reliable.
Can I use buttercream instead of royal icing?
You can, but buttercream doesn’t harden the same way, which means the cookies can’t be stacked or packaged without smudging. For party cookies you want to display or gift, royal icing is worth the extra step.
How far in advance can I decorate them?
Up to 3 days ahead is great. Fully dried royal icing holds up really well. Just store them in a single layer (or with parchment between layers) in an airtight container.
My icing colors are bleeding into each other. What happened?
The icing was still wet when you added the next color. Give each section at least 15 to 20 minutes to form a dry skin before adding adjacent colors. For the flag cookies especially, patience here makes a huge difference.
Wrapping Up
These cookies are genuinely one of the most fun things to bring to a 4th of July party.
Not just because they taste great, but because you made them. There’s something that hits different when the whole dessert table has your name on it.
Make a batch (or two), see how fast they disappear, and then come back here and drop a comment letting me know how they turned out. Questions, decoration wins, decoration fails — I want to hear all of it. 👇