These 4th of July Sugar Cookies are an ideal treat for Fourth of July or Memorial Day celebrations. The royal icing gives each star-shaped cookie a beautiful, festive finish that looks impressive but is surprisingly simple to make.

Decorated in red, white, and blue, these cookies are perfect for parties, cookouts, or gifting. The buttery cookie base is tender and flavorful, and the royal icing dries to a smooth finish you can pipe and detail to create flags, stripes, dots, or additional stars.
Table of contents
- Why We Love This Recipe
- Ingredients
- Cookies
- Icing
- How to Make 4th of July Sugar Cookies
- FAQs
- Pro Tips
- More 4th of July Desserts
Why We Love This Recipe
The dough is quick to prepare and yields delicious, sturdy cookies that hold their shape well for cutting into stars. The royal icing gives a polished look, and the cookie flavor is buttery with a hint of vanilla. These cookies are great for decorating with kids or for making a themed dessert tray.
Ingredients

Cookies
- Flour. Measure accurately by spooning into the cup rather than scooping to avoid packing.
- Unsalted butter. Use softened butter at room temperature for a smooth creaming process.
- Eggs. Room-temperature eggs help the dough mix evenly.
- Vanilla extract. Pure vanilla gives the best flavor.
Icing
- Egg whites. Separate carefully to avoid yolk in the whites for best royal icing texture.
- Powdered sugar. Sift to remove lumps and ensure a silky icing.
- Gel food coloring. Gel colors yield vivid reds and blues without thinning the icing.
A full ingredient list and quantities are provided in the recipe card at the bottom of the page.
How to Make 4th of July Sugar Cookies
- Step 1. Preheat the oven to 325°F (163°C).

Step 2. Cream the softened butter and sugar until smooth and not grainy.

Step 3. Add the eggs and mix until incorporated.

Step 4. Stir in the vanilla extract.

Step 5. Sift the dry ingredients—flour, baking powder, and salt—together in a separate bowl.

Step 6. Add the dry mixture to the wet ingredients and mix until fully combined.

Step 7. Mix until the dough is smooth and all ingredients are well incorporated.

Step 8. Form the dough into a ball, wrap it tightly in plastic wrap, and chill for about 6 hours or overnight.

Step 9. After chilling, let the dough soften slightly. Lightly flour the surface and rolling pin as needed.

Step 10. Roll the dough to about 1/2 inch thick and use a star cookie cutter to cut shapes.

Step 11. Line baking sheets with parchment and transfer the cut cookies with a metal spatula. Bake 8–10 minutes until edges are lightly browned. Cool on a wire rack.

Step 12. While cookies cool, prepare the royal icing using a stand mixer or hand mixer.

Step 13. Mix the icing (except food coloring) on medium speed for about 4 minutes. If it’s too soft, add powdered sugar 1/4 cup at a time until it reaches the desired firmness.

Step 14. Aim for a 15-second consistency: when you run a spatula across the icing, the line should disappear in about 15 seconds.

Step 15. Divide the icing into three bowls for coloring.

Step 16. Tint the icings with red, white (leave one plain), and blue gel food coloring.

Step 17. Transfer icing to piping bags for decorating.

Step 18. Flood each cookie with the colored icing and allow it to set. Use the remaining white icing in a bag fitted with a small tip to add final details once the base has set.

Step 19. Decorate with patriotic stripes, dots, or flag designs. Let icing dry completely for 2–3 hours without covering the cookies.
FAQs
Stored at room temperature in an airtight container, decorated sugar cookies keep about 5–7 days. Make sure the icing is fully set before storing.
If the icing is too thin, it may have too much air from high-speed mixing—try mixing on low and pop any bubbles. If it’s too soft, add powdered sugar 1/4 cup at a time until you reach the 15-second consistency. If it’s too thick, add small amounts of water until it loosens to the desired consistency.
A glass or mason jar rim works well for cutting round cookies. They won’t be stars but can still be decorated in patriotic colors.
Drying time depends on humidity and temperature. It can take a few hours to up to 24 hours. Plan for at least 2–3 hours before handling decorated cookies.

Pro Tips
- Cool completely before decorating. Allow cookies to cool fully so icing sets smoothly.
- Don’t overmix. Overmixing dough or icing can change texture and structure.
- Roll thickness. Aim for about 1/2 inch thickness for cookies that hold their shape and bake evenly.

More 4th of July Desserts
- Red White and Blue Strawberries
- American Flag Charcuterie Board
- Red White and Blue Bark Recipe
- Red White and Blue Popsicles
- Easy 4th of July Cookies
- Patriotic Whoopie Pies
Try this festive cookie recipe at your next gathering and enjoy decorating. If you make them, leave a comment or rating to share how they turned out.

4th of July Sugar Cookies
Ingredients
- Cookie Ingredients:
- 5 cups flour
- 2 tsp baking powder
- 1 tsp salt
- 1 1/2 cup unsalted butter softened at room temperature
- 2 cups granulated sugar
- 4 Eggs
- 2 tsp Vanilla Extract
- Icing Ingredients:
- 2 egg whites
- 1 cup powdered sugar
- 1/2 tsp cream of tartar
- Gel Food Coloring
Instructions
-
COOKIE INSTRUCTIONS:
-
Preheat the oven to 325°F.
-
Cream the softened butter and sugar until smooth and not grainy.
-
Add all eggs and mix until combined. Then add vanilla and continue mixing.
-
Sift the flour, baking powder, and salt together and add to the wet mixture. Mix until blended.
-
Form dough into a ball, wrap tightly, and chill 6 hours or overnight. Let soften slightly before rolling.
-
Lightly flour your surface and rolling pin, roll dough to 1/2 inch thick, and cut star shapes.
-
Place cookies on parchment-lined baking sheets and bake 8–10 minutes until edges are lightly browned. Transfer to a wire rack to cool.
-
ICING INSTRUCTIONS:
-
Combine icing ingredients (except food coloring) and mix on medium speed about 4 minutes. Adjust powdered sugar to reach a 15-second consistency.
-
Divide icing into three bowls and tint red and blue, leaving one portion white. Place icings into piping bags.
-
Flood cookies with colored icing and allow to set for 2–3 hours. Use reserved white icing with a fine tip to add final decorations.
-
Once icing has fully hardened, store cookies in an airtight container at room temperature for up to 5–7 days.