This gluten free cheese and onion pie is a hearty, comforting bake that brings together sweet, slow-cooked onions and a rich, cheesy filling, all encased in a crisp, buttery gluten free pastry. It’s a classic British pub favorite, adapted here so everyone can enjoy it, whether you’re gluten free by necessity or choice. The key to its success is a well-chilled pastry and a deeply caramelized onion base, which creates a pie that’s both satisfying and full of flavor.
Ingredients
- For the pastry:
- 2 cups (250 g) gluten free all-purpose flour (with xanthan gum, see Tips)
- 1/2 tsp salt
- 1/2 cup (115 g) cold unsalted butter, cut into small cubes
- 1 large egg, lightly beaten
- 2–3 tbsp (30–45 ml) ice-cold water
- For the filling:
- 2 tbsp (30 g) unsalted butter or olive oil
- 3 large onions (about 1.5 lb / 680 g), thinly sliced
- 1 tsp salt
- 1/2 tsp black pepper
- 1 tsp dried thyme (or 1 tbsp fresh)
- 1 cup (240 ml) whole milk (or unsweetened dairy-free milk)
- 1 tbsp cornstarch (cornflour) mixed with 2 tbsp (30 ml) cold water
- 2 cups (200 g) grated sharp cheddar cheese (or a mix of cheddar and Gruyère)
- 1 tsp Dijon mustard (optional)
- 1 egg, beaten, for egg wash
Instructions
- Make the pastry: In a large bowl, whisk together the gluten free flour and salt. Add the cold butter cubes and rub in with your fingertips until the mixture resembles coarse breadcrumbs. (You can also pulse in a food processor.) Add the beaten egg and 2 tablespoons of ice water, and mix with a fork until the dough starts to come together. If it seems too dry, add the remaining water, 1 teaspoon at a time. The dough will be soft and slightly sticky.
- Chill the dough: Turn the dough out onto a piece of plastic wrap, shape into a flat disc, wrap well, and refrigerate for at least 30 minutes (or up to 2 days). Chilling is essential for gluten free pastry to firm up and prevent crumbling.
- Caramelize the onions: While the dough chills, heat the butter or oil in a large skillet over medium heat. Add the sliced onions, salt, pepper, and thyme. Cook, stirring occasionally, for 20–25 minutes, until the onions are soft and golden brown. If they start to stick, add a splash of water. Set aside to cool slightly.
- Make the cheese sauce: In a medium saucepan, heat the milk over medium heat until steaming. In a small bowl, whisk the cornstarch slurry again, then pour it into the hot milk, whisking constantly. Cook for 2–3 minutes until the mixture thickens to a custard-like consistency. Remove from heat and stir in the grated cheese and Dijon mustard (if using) until smooth. Season with extra salt and pepper to taste.
- Combine filling: Stir the caramelized onions into the cheese sauce. Let the filling cool completely before assembling the pie. (You can speed this up by placing the bowl in an ice bath.)
- Preheat oven and roll out pastry: Preheat your oven to 375°F (190°C). Place a baking sheet in the oven to preheat as well. On a piece of parchment paper lightly dusted with gluten free flour, roll out two-thirds of the pastry to a circle about 12 inches (30 cm) in diameter. Use the parchment to help lift it into a 9-inch (23 cm) pie dish. Press the pastry gently into the dish, leaving any overhang.
- Fill the pie: Pour the cooled filling into the pastry-lined dish and spread evenly.
- Top with pastry: Roll out the remaining pastry to a circle about 10 inches (25 cm) in diameter. Place it over the filling. Trim the overhang and crimp the edges to seal. Cut a few small slits in the top to allow steam to escape. Brush the top with the beaten egg.
- Bake: Place the pie on the preheated baking sheet and bake for 35–40 minutes, until the pastry is golden brown and the filling is bubbling. If the edges brown too quickly, cover them with foil.
- Rest and serve: Let the pie rest for at least 10 minutes before slicing. This allows the filling to set and makes serving easier.
Tips
- Use a good gluten free flour blend: For best results, use a blend that contains xanthan gum (like King Arthur or Bob’s Red Mill). If your blend doesn’t include it, add 1/2 teaspoon of xanthan gum to the flour. This helps the pastry hold together.
- Don’t skip chilling: Chilling the dough is non-negotiable for gluten free pastry. It prevents the butter from melting too quickly, which would make the crust tough and crumbly.
- Cool the filling: Adding hot filling to the pastry will melt the butter and make the crust soggy. Always cool the onion-cheese mixture completely before assembling.
- Substitutions: For a dairy-free version, use vegan butter and dairy-free milk and cheese. The cheese flavor will be milder, so consider adding a little nutritional yeast for savoriness.
Serving Suggestions
Serve this pie warm, straight from the oven, with a side of steamed green vegetables, a crisp salad, or some mashed potatoes. It’s also delicious with a spoonful of chutney or pickled onions on the side. For a heartier meal, pair it with roasted root vegetables or a bowl of tomato soup.
Variations
- Add potato: Layer thinly sliced cooked potato in the bottom of the pie before adding the onion-cheese filling for a more substantial pie.
- Herb twist: Add a handful of chopped fresh chives or parsley to the filling for extra freshness.
- Different cheese: Swap the cheddar for a smoked cheese, or use a mix of mozzarella and parmesan for a different flavor profile.
- Individual pies: Make small hand pies or use ramekins for individual servings. Adjust baking time to about 20–25 minutes.
Storage and Reheating
Store leftovers in an airtight container in the refrigerator for up to 4 days. To reheat, place slices in a preheated oven at 350°F (175°C) for 10–15 minutes, or until heated through. You can also microwave individual slices for 1–2 minutes, but the pastry won’t be as crisp. This pie can also be frozen (baked or unbaked) for up to 3 months. Thaw overnight in the refrigerator before reheating or baking.
Frequently Asked Questions
Can I make this pie ahead of time? Yes, you can assemble the pie completely and refrigerate it unbaked for up to 24 hours. When ready to bake, you may need to add 5–10 minutes to the baking time since the filling will be cold.
Why is my gluten free pastry crumbling? This usually happens if the dough isn’t chilled enough, or if the flour blend lacks a binder like xanthan gum. Make sure to chill the dough thoroughly and use a blend with xanthan gum. If the dough cracks when rolling, just patch it with your fingers – it’s very forgiving.
Can I use a store-bought gluten free pie crust? Absolutely. If you’re short on time, a pre-made gluten free pie crust (or puff pastry) works well. Just follow the package instructions for blind baking if required.
What can I use instead of milk? Any unsweetened milk alternative works, such as almond, oat, or soy milk. Keep in mind that the sauce may be slightly thinner, so let it cook a minute longer to thicken.
How do I know when the pie is done? The pastry should be golden brown and the filling should be visibly bubbling through the slits. If you have a thermometer, the internal temperature should be at least 165°F (74°C) for food safety.
Can I add meat to this pie? Yes, cooked and shredded chicken or ham would be a great addition. Just stir it into the filling before assembling.
Related
- Danish Apple Crumble: Easy Nordic Recipe
- Deep Fried Bread: Easy Yeast Recipe
- Cullen Skink with Leeks: Smoky Scottish Soup
More recipes to cook
Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes
Spotted an error? Tell us and we will correct it (corrections policy).