July 4th Sugar Cookies
Festive, soft, and topped with red, white, and blue royal icing, these July 4th sugar cookies are the perfect patriotic treat for your Independence Day celebration.
Prep
30 min
Cook
15 min
Total
45 min
Servings
24 cookies
Ingredients
Tools that make this easier
Optional — the recipe works without them.
As an Amazon Associate, I earn from qualifying purchases.
- Most useful here Maple Rolling Pin Rolls the chilled sugar cookie dough to 1/4-inch thickness before cutting. Check price on Amazon
- Electric Hand Mixer Beats the meringue powder and powdered sugar to stiff peaks for the royal icing. Check price on Amazon
- Piping Bags and Tips Pipes the red, white and blue icing outlines before flooding the centers. Check price on Amazon
Instructions
- 1
Whisk the dry ingredients. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
- 2
Cream the butter and sugar. In a large bowl, beat the softened butter and granulated sugar with an electric mixer on medium speed for about 2 minutes, until light and fluffy with no visible sugar granules.
- 3
Add the egg and extracts. Beat in the egg, vanilla, and almond extract (if using) until fully combined, scraping down the sides of the bowl once.
- 4
Mix in the flour. Add the flour mixture in two batches, mixing on low speed just until no dry streaks remain. The dough will look thick and slightly crumbly at first — that's normal. Press it together with your hands if needed.
- 5
Chill the dough. Divide the dough in half, flatten each piece into a disc, and wrap tightly in plastic wrap. Refrigerate for at least 1 hour or up to 2 days. Chilling prevents spreading and keeps your cookie shapes crisp.
- 6
Roll and cut. Preheat the oven to 350°F (175°C) and line baking sheets with parchment paper. Roll the dough out on a lightly floured surface to about ¼-inch thickness. Cut with star, flag, or round cookie cutters and place shapes 1 inch apart on the prepared sheets.
- 7
Bake. Bake for 10–12 minutes, until the edges are just barely golden but the centers still look slightly underdone. They firm up as they cool. Let cookies rest on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely before decorating.
- 8
Make the royal icing. While the cookies cool, beat the meringue powder, sifted powdered sugar, and 5 tablespoons of warm water on low speed until combined, then increase to high and beat for 5–7 minutes until the icing holds stiff peaks. Add more water a teaspoon at a time if it's too thick to pipe smoothly.
- 9
Color and decorate. Divide the icing into three bowls. Leave one white, tint one red and one blue with gel food coloring. Pipe outlines with thicker icing, then thin a small amount with a few drops of water for flooding (filling in) larger areas. Add sprinkles while the icing is still wet so they stick. Let the decorated cookies dry at room temperature for at least 2 hours, until the icing is completely set and hard to the touch.
Used in this recipe: Maple Rolling Pin Electric Hand Mixer Piping Bags and Tips (Amazon, affiliate links)
Notes
Tips for Success
- Chill the dough between batches if it gets warm and sticky to prevent spreading and loss of shape detail.
- Dip cookie cutters in flour before each press for cleaner edges, especially on detailed star shapes.
- Use room-temperature butter that leaves a dent when pressed rather than too-soft butter to avoid greasy, thin cookies.
- Pipe an outline with stiff icing and let it set before flooding to prevent colors from bleeding into each other.
Common Mistakes to Avoid
- Don't skip chilling the dough — warm dough spreads and loses shape detail.
- Don't overbake — remove cookies when edges are barely golden and centers look slightly underdone to keep them soft.
- Don't use liquid food coloring — it thins the icing and makes it harder to control.
Nutrition (per serving)
200 kcal
Calories
2g
Protein
30g
Carbs
7g
Fat
0g
Fiber
60mg
Sodium
These July 4th sugar cookies are soft, buttery cut-out cookies topped with red, white and blue royal icing. The recipe makes 24 cookies and takes about 45 minutes of active time, plus at least 1 hour of dough chilling and 2 hours for the icing to set. The dough holds its shape in the oven, giving you a flat canvas for stars, flags or simple sprinkle designs.

Ingredients
Cookie dough
- 2¼ cups all-purpose flour, spooned and leveled, plus more for rolling
- ½ teaspoon baking powder
- ¼ teaspoon salt
- ¾ cup (1½ sticks) unsalted butter, softened to room temperature
- ¾ cup granulated sugar
- 1 large egg, at room temperature
- 2 teaspoons vanilla extract
- ½ teaspoon almond extract (optional, adds a bakery-style flavor)
Royal icing
- 3 cups powdered sugar, sifted
- 2 tablespoons meringue powder
- 5-6 tablespoons warm water
- Red and blue gel food coloring (gel keeps the icing thick; liquid dye thins it out)
For decorating
- Star-shaped sprinkles, sanding sugar or nonpareils in red, white and blue
- Disposable piping bags or zip-top bags with a corner snipped
How to Make and Decorate Patriotic Sugar Cookies
- Whisk the dry ingredients. In a medium bowl, whisk together the flour, baking powder and salt. Set aside.
- Cream the butter and sugar. In a large bowl, beat the softened butter and granulated sugar with an electric mixer on medium speed for about 2 minutes, until light and fluffy with no visible sugar granules.
- Add the egg and extracts. Beat in the egg, vanilla and almond extract (if using) until fully combined, scraping down the sides once.
- Mix in the flour. Add the flour mixture in two batches, mixing on low speed just until no dry streaks remain. The dough will look thick and slightly crumbly at first; press it together with your hands if needed.
- Chill the dough. Divide the dough in half, flatten each piece into a disc, and wrap tightly in plastic wrap. Refrigerate for at least 1 hour or up to 2 days. Chilling prevents spreading and keeps the shapes crisp.
- Roll and cut. Preheat the oven to 350°F (175°C) and line baking sheets with parchment paper. Roll the dough on a lightly floured surface to about ¼-inch thickness. Cut with star, flag or round cutters and place the shapes 1 inch apart.
- Bake. Bake for 10-12 minutes, until the edges are just barely golden but the centers still look slightly underdone; they firm up as they cool. Let the cookies rest on the sheet for 5 minutes, then move them to a wire rack to cool completely before decorating.
- Make the royal icing. While the cookies cool, beat the meringue powder, sifted powdered sugar and 5 tablespoons of warm water on low speed until combined, then increase to high and beat for 5-7 minutes until the icing holds stiff peaks. Add more water a teaspoon at a time if it’s too thick to pipe smoothly.
- Color and decorate. Divide the icing into three bowls. Leave one white and tint one red and one blue with gel coloring. Pipe outlines with thicker icing, then thin a small amount with a few drops of water for flooding larger areas. Add sprinkles while the icing is still wet so they stick. Let the decorated cookies dry at room temperature for at least 2 hours, until the icing is completely set and hard to the touch.

Why Sugar Cookies Spread and Icing Bleeds, and How to Prevent It
- Cookies spread and lose shape: the most common causes are warm dough or an oven that runs cool. Chill the dough thoroughly before rolling, verify the oven temperature with an oven thermometer, and if it still spreads, try an extra tablespoon of flour next time.
- Dough gets warm and sticky while cutting: slide it onto a sheet pan and refrigerate for 10 minutes.
- Ragged edges on stars: dip the cutters in flour before each press for cleaner edges.
- Greasy, thin cookies: the butter was too soft. Room-temperature butter should leave a dent when pressed without your finger sinking right through.
- Hard, dry cookies: overbaking. Take them out when the edges are barely golden and the centers still look slightly underdone.
- Colors bleed into each other: pipe an outline with stiff icing and let it set for a few minutes before flooding the inside.
- Runny or hard-to-control icing: liquid food coloring adds moisture. Gel gives vivid red and blue with a drop or two without changing the consistency.
- Icing won’t dry: meringue-powder royal icing dries hard at room temperature; allow at least 2 hours, up to overnight for thickly flooded areas. A fan nearby can help, but avoid humid rooms.
Choosing Cutters and Designs
Stars are the easiest shape for beginners because they look festive with one color and some sprinkles. Round cutters work for American flag cookies with striped icing. Larger cutters (3-4 inches) give more decorating space without needing fine piping skills.
Serving Patriotic Sugar Cookies
Stack them on a tiered tray for a dessert table, or bag a few in clear cellophane tied with ribbon for party favors. They go well next to other Fourth of July desserts, such as July 4th cupcakes, patriotic fruit salad or an American flag cake.
Storing and Freezing the Cookies and Dough
Undecorated cookies keep in an airtight container at room temperature for up to 1 week, or freeze in a single layer for up to 3 months. The dough can be refrigerated for up to 2 days or frozen for up to 3 months.
Once decorated, let the icing dry completely before stacking between layers of parchment paper. Decorated cookies keep at room temperature for about 5 days. Avoid refrigerating iced cookies, since condensation can make the colors bleed. To get ahead, bake and freeze the plain cookies, then decorate the day before or the morning of the event.
Patriotic Sugar Cookie FAQ
Can these cookies be made ahead?
Yes. Make the dough up to 2 days ahead, or bake and freeze undecorated cookies, then decorate them the day before your event and let the icing dry overnight.
Can I use regular food coloring instead of gel?
It works, but liquid coloring thins the icing and is harder to control. Gel gives vibrant shades without changing the consistency.






