Gluten-Free Chocolate Chip Cookie Bars Recipe
In this article
These gluten-free chocolate chip cookie bars are dense, chewy treats with a buttery flavor and melted chocolate pockets. They work well as a quick dessert for a potluck or a sturdy snack for lunchboxes because they hold their shape better than individual cookies.
Serves 16 · Prep 15 min · Cook 25 min · Total 40 min
Ingredients
- 1 cup (225 g) unsalted butter, softened to room temperature
- 3/4 cup (150 g) granulated white sugar
- 3/4 cup (150 g) packed brown sugar
- 2 large pasteurised eggs
- 1 teaspoon (5 ml) vanilla extract
- 2 1/4 cups (315 g) gluten-free all-purpose flour blend (check the label for a 1:1 baking ratio)
- 1 teaspoon (5 g) baking soda
- 1/2 teaspoon (3 g) salt
- 2 cups (340 g) semi-sweet chocolate chips
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9x9 inch (23x23 cm) square baking pan or line it with parchment paper, leaving an overhang on the sides for easy removal.
- In a large bowl, cream together the softened butter, granulated sugar, and brown sugar using a hand mixer or stand mixer on medium speed for about 2 to 3 minutes until the mixture is light and fluffy.
- Add the pasteurised eggs one at a time, beating well after each addition, then stir in the vanilla extract.
- In a separate medium bowl, whisk together the gluten-free flour blend, baking soda, and salt. Since raw flour can contain bacteria, heat-treat the flour to 160°F (71°C) in the microwave or oven and let it cool before adding it to the wet ingredients if you intend to taste the batter.
- Gradually add the dry ingredients to the creamed butter mixture on low speed, mixing just until combined. Do not overmix, as this can affect the texture of the bars.
- Fold in the chocolate chips by hand using a spatula until they are evenly distributed throughout the dough.
- Press the dough evenly into the prepared 9x9 inch (23x23 cm) pan. Use the back of a spoon or a piece of parchment paper to flatten the top.
- Bake at 350°F (175°C) for 22-25 minutes. The bars are done when the edges are golden brown and the center is set but not overly browned.
- Remove the pan from the oven and let the bars cool completely in the pan for at least 30 to 60 minutes before slicing. This allows the gluten-free structure to set so the bars do not crumble.
Identifying Done Bars and Texture Issues
The most reliable way to tell if these bars are finished is to look at the edges and the center. The edges should be a deep golden brown and should slightly pull away from the sides of the pan. The center should look matte and feel firm to a light touch; if the center looks wet or jiggles significantly, bake for another 2 to 3 minutes.
If the bars come out too soft, they may have been underbaked or the flour blend had too much starch. If they are hard or brittle, they were likely left in the oven too long. Because gluten-free flours absorb moisture differently than wheat flour, the bars may seem slightly underdone when first pulled from the oven, but they firm up significantly during the cooling process. Slicing them while hot often results in the bars falling apart, so patience during the cooling phase is necessary for clean squares.
Equipment for Even Baking and Slicing
A 9x9 inch (23x23 cm) metal baking pan is the standard for this recipe. Metal conducts heat quickly, which helps create the browned, crisp edges typical of cookie bars. If you only have a glass or ceramic dish, be aware that these materials hold heat longer and may brown the bottom of the bars more quickly; you might need to reduce the oven temperature by 25°F (15°C) or check for doneness 5 minutes earlier.
For the best results when cutting, use a sharp chef's knife or a bench scraper. To get perfectly clean edges, wipe the knife with a damp cloth between each cut. If you used parchment paper, you can lift the entire block of bars out of the pan and place them on a cutting board, which provides a more stable surface for slicing into 16 equal squares.
Safe Storage and Shelf Life
Refrigerate these bars within 2 hours of baking to ensure food safety, especially since they contain eggs. Once cooled, store them in an airtight container in the refrigerator for 3 to 4 days. To keep them from drying out, place a piece of parchment paper between layers of bars.
For longer storage, these bars freeze well. Wrap individual squares in plastic wrap and place them in a freezer-safe bag for up to 3 months. To thaw, leave a bar in the refrigerator overnight or microwave it for 10 to 15 seconds. When reheating leftover bars in the microwave, ensure they reach an internal temperature of 165°F (74°C) if they have been stored for several days, though for a simple cookie bar, a quick warm-up is usually sufficient.
Customizing Flavors and Textures
You can swap the semi-sweet chocolate chips for dark chocolate chips for a less sweet result or white chocolate chips for a creamier taste. Adding 1/2 cup (60 g) of chopped walnuts or pecans provides a crunch that contrasts with the chewy texture of the gluten-free dough. If you prefer a salty-sweet profile, sprinkle 1/2 teaspoon (3 g) of flaky sea salt over the top of the dough immediately before placing the pan in the oven.
If you do not have a 1:1 gluten-free flour blend, you can use a combination of almond flour and a gluten-free starch, but this will change the density and lift of the bars. Almond flour creates a moister, denser bar that is more fragile. For those avoiding dairy, you can substitute the unsalted butter with a chilled plant-based butter stick, though the bars may spread slightly more and have a softer set. Always check the labels of your flour and butter substitutes to ensure they meet your dietary needs.
Serving and Pairing Ideas
These bars are rich and sweet, so they pair best with beverages that have a bitter or acidic profile. A cold glass of milk or a dairy-free alternative like almond or oat milk is a classic pairing. For adults, a cup of black coffee or a strong Earl Grey tea balances the sugar and butter. If serving these at a party, arrange them on a platter with fresh strawberries or raspberries to add a tart, fresh element to the plate.
For a more decadent dessert, serve a slightly warmed square with a scoop of vanilla bean ice cream. The heat from the bar will melt the ice cream slightly, creating a sauce-like consistency. Because these bars are denser than a standard cookie, they also work well as a base for a dessert trifle; crumble a few bars into the bottom of a glass and layer with whipped cream and sliced bananas.
Safety with Raw Ingredients
Raw flour and raw eggs can carry bacteria such as E. coli and Salmonella. To minimize risk, use pasteurised eggs and heat-treat your gluten-free flour. To heat-treat flour, spread it on a baking sheet and bake at 350°F (175°C) until a thermometer inserted into the flour reads 160°F (71°C), then let it cool completely before measuring. Pregnant people, young children, older adults, and anyone with a weakened immune system should strictly avoid consuming raw or underbaked dough and batter.