Fourth of July cookie dough is edible sugar-cookie dough dyed red, white and blue with sprinkles and white chocolate chips, meant to be eaten by the spoonful or scooped into cups for a cookout crowd. It tastes like vanilla sugar-cookie dough: buttery, sweet and soft, with crunchy sprinkles folded through. Because it is served raw, the flour is heat-treated and the eggs are pasteurised, so it suits kids’ tables, potlucks and any July 4th party where you want a no-bake dessert that takes under an hour.
Ingredients
- 2 1/4 cups (280 g) all-purpose flour, heat-treated (see step 1)
- 1/2 cup (115 g) unsalted butter, softened
- 3/4 cup (150 g) granulated sugar
- 2 tbsp (25 g) light brown sugar, packed
- 1 tsp (5 ml) vanilla extract
- 1/4 tsp salt
- 3 tbsp (45 ml) milk, plus more if needed
- 1 pasteurised egg, or 3 tbsp (45 ml) pasteurised liquid egg product
- 1/2 cup (85 g) white chocolate chips
- 1/3 cup (40 g) red, white and blue sprinkles
- Red and blue gel food colouring, a small dab of each
Instructions
- Heat-treat the flour first: spread it on a rimmed baking sheet and bake at 350°F (175°C) for 5-10 minutes, stirring once halfway. Raw flour can carry E. coli, so heat-treating it to 160°F (71°C) throughout makes the dough safe to eat raw. Check with an instant-read thermometer in a few spots, then cool the flour completely, about 15 minutes.
- Beat the softened butter, granulated sugar and brown sugar with a hand mixer on medium speed for 2 minutes, until light and fluffy.
- Beat in the vanilla, salt, pasteurised egg and 3 tbsp (45 ml) milk. Raw eggs can carry Salmonella, so use pasteurised eggs; pregnant people, young children, older adults and anyone with a weakened immune system should avoid raw eggs and raw flour.
- Add the cooled flour and mix on low speed just until a soft dough forms. If it is dry and crumbly, add milk 1 tsp (5 ml) at a time.
- Divide the dough into three bowls: roughly 1 1/2 cups (190 g) in one, and the rest split between two. Dye one smaller portion red and one blue with a dab of gel colouring, kneading with clean hands or a spatula until even. Leave the large portion white.
- Press the three portions back together in the bowl without fully mixing, so you get streaks of red, white and blue. Fold in the white chocolate chips and sprinkles with a spatula.
- Refrigerate the dough for 15 minutes so it firms up enough to scoop. Serve in small cups, cones or by the spoonful.
Why Heat-Treated Flour
Flour is a raw agricultural product and is not treated to kill bacteria at the mill, so any dough eaten raw needs the flour baked or microwaved to 160°F (71°C) first. The oven method in step 1 is the most even; you can also microwave the flour in 30-second bursts, stirring between each, until it reads 160°F (71°C) on a thermometer, typically 60-90 seconds total. Let it cool fully before mixing so the butter does not melt. Pasteurised shell eggs and carton liquid egg products are heat-treated to kill Salmonella, which is why they are the only eggs safe in raw dough. Keep the finished dough refrigerated at 40°F (4°C) or below.
Make-Ahead Timeline
The dough can be made up to 2 days ahead and refrigerated in an airtight container; the colours deepen slightly as they sit, so add colouring conservatively if making ahead. For a July 4th cookout, make it on July 2nd, scoop into serving cups on the morning of the party, and keep the cups chilled until guests arrive. It also freezes well: portion into 1-tbsp (15 ml) balls on a lined tray, freeze 1 hour until solid, then bag them and freeze for up to 3 months. Thaw in the refrigerator for about 30 minutes before serving.
Serving and Pairings
Scoop about 3 tbsp (45 ml) per serving into small paper cups, waffle cones or mini mason jars, and top with extra sprinkles or a few white chocolate chips. For a party spread, set out the dough with dippers: pretzel sticks, graham crackers, strawberries and blueberries keep the red-white-and-blue theme. It also works as an ice cream topping, pressed into the sides of a sundae, or swirled through vanilla ice cream. Serve it chilled; at room temperature it softens and the colours smear.
Leftovers and Storage
Refrigerate leftover dough within 2 hours of serving (1 hour if the party is outdoors above 90°F/32°C). In an airtight container in the refrigerator it keeps about 4 days; frozen in 1-tbsp (15 ml) portions it keeps about 3 months. Because it contains butter, milk and egg, do not leave it out on a dessert table for the whole afternoon. If you want to bake the leftovers instead of eating them raw, drop spoonfuls onto a lined sheet and bake at 350°F (175°C) for 10-12 minutes, until the edges are set and the centres look slightly underdone; egg dishes should reach 160°F (71°C).
Swaps and Colours
Gel food colouring gives strong colour without thinning the dough; liquid colouring works too but needs more drops and can make the dough sticky, so compensate with a little extra flour, 1 tbsp (8 g) at a time. For a dairy-free version, use plant-based butter and oat milk; check labels on the white chocolate chips, since many contain milk. Swap the white chocolate chips for dried cranberries and fresh blueberry halves folded in at the last minute for a fruit version, or use mini M&M-style candy-coated chocolates in holiday colours. Salted butter works if you drop the added salt.
Turning It Into Cookies
This dough bakes into soft sugar cookies if you would rather serve baked cookies on the Fourth. Chill it for 30 minutes, roll 1 1/2-tbsp (20 g) balls, and bake at 350°F (175°C) for 10-12 minutes on a parchment-lined sheet, until the edges are set. Cool on the sheet 5 minutes before moving to a rack. The sprinkles bleed slightly into the dough during baking, so add half of them after baking as a topping if you want crisp colour. Baked cookies keep 3-4 days in an airtight container at room temperature.
Related
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).