Appetizers
A cheese and onion tart with a flaky pastry crust and melty, golden cheese filling is the ultimate crowd-pleaser for any gathering. The combination of crisp, buttery layers and rich, savory toppings creates a dish that’s both satisfying and elegant.
I’ve perfected this recipe over years of testing, ensuring the crust stays perfectly crisp while the filling delivers that irresistible cheesy pull-apart texture.
The secret to this tart lies in the balance of ingredients and technique—using a high-quality shortcrust or puff pastry for that signature flakiness, while the cheese and onion filling gets baked just long enough to melt beautifully without burning.
The caramelized onions add a touch of sweetness that complements the sharpness of the cheese, making every bite unforgettable. This recipe is designed to impress without being overly complicated, so even home cooks can achieve restaurant-quality results.
Once baked, you’ll have a golden, bubbling tart with edges that crisp up beautifully and a center that’s rich, creamy, and just slightly gooey. The aroma alone will have everyone gathering around your table, and the first bite will leave them asking for seconds.
Whether you’re serving it as an appetizer or a light main dish, this tart is sure to become a favorite in your rotation.
For extra flair, top with fresh herbs like thyme or parsley before serving, or add a sprinkle of flaky sea salt to enhance the flavors.
The versatility of this recipe means it works for casual weeknight dinners or more formal gatherings—all while keeping the prep straightforward and the results consistently delicious.
Ingredients for cheese and onion tart
Six ingredients make this flaky, melty tart—no fancy shopping needed.
| Ingredient | Amount | Notes |
|---|---|---|
| Puff Pastry Sheets 🍞 | 1 sheet | Thawed if frozen, store-bought preferred |
| Yellow Onions 🧅 | 2 large | Thinly sliced for caramelizing |
| Unsalted Butter 🧈 | ½ cup | Cold, cut into small pieces |
| Sharp Cheddar Cheese 🧀 | 1 ½ cups | Shredded, block preferred |
| Gruyère Cheese 🧀 | ½ cup | Shredded, adds nutty depth |
| Heavy Cream 🥛 | ¼ cup | Full-fat for richness |
| All-Purpose Flour 🌾 | ½ cup | For thickening filling |
| Fresh Thyme Leaves 🌿 | ¼ cup | Chopped, for garnish |
| Flaky Sea Salt 🧂 | 1 tbsp | For finishing |
| Egg Wash 🥚 | 1 whole | 1 egg beaten with 1 tbsp water |
| Granulated Sugar 🍚 | 1 tbsp | For caramelizing onions |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly cracked |
| Garlic Cloves 🧄 | 2 cloves | Minced, optional but recommended |
The pastry is everything. Puff pastry from Whole Foods or Trader Joe's gives the best flakiness, but store-brand puff pastry works too. Look for sheets that aren’t rock-hard—those mean they’re old. The cheese combo is key: sharp cheddar for tang and Gruyère for nutty depth. I always buy pre-shredded cheddar (it melts better), but block cheddar shredded yourself tastes fresher. For the onions, yellow onions caramelize best—skip the red or white. If you’re feeling fancy, grab a small bag of pearl onions too—they add texture when caramelized.
No puff pastry? Shortcrust pastry works in a pinch, but it won’t be as flaky. Short on Gruyère? Extra sharp cheddar plus a sprinkle of Parmesan gets you close. The heavy cream can be swapped for half-and-half if that’s all you’ve got, but trust me on the full-fat version. Forgot thyme? Fresh parsley or chives work too. The sugar in the onions is non-negotiable—it’s what makes them sweet and jammy. If you’re using garlic, mince it super fine so it blends into the filling without chunks. And if your onions start browning too fast, cover the pan with a lid to slow it down.
This tart reheats beautifully—just 10 minutes at 350°F until bubbly. Keeps 3-4 days in the fridge, covered tightly. For make-ahead, assemble the tart, refrigerate overnight, then bake fresh the next day. The filling gets even more flavorful after resting. Freeze unbaked tarts for up to 2 months—just thaw in the fridge before baking. Slice it thin for appetizers or thick for a hearty main. Leftovers? Toast slices until crispy for a next-day snack.
Why You'll Love This Recipe
- Puff Pastry Shortcut: I swear by store-bought puff pastry here—no rolling, no stress. Just unfold, layer, and bake. That golden, flaky crust happens without a single pinch of flour on my counters.
- Melty Magic Combo: Sharp cheddar and Gruyère together? It’s the cheesy equivalent of peanut butter and jelly. The onions caramelize just enough to sweeten the bite, while the butter keeps everything rich but not greasy.
- Office Picnic Ready: Between us, this tart is my go-to for work lunches. Slice it, pack it, and watch coworkers ask for seconds. (Yes, even the gluten-free ones—puff pastry’s magic extends beyond the usual suspects.)
- Budget-Friendly Feast: One sheet of pastry, a single onion, and a block of cheese stretch to feed four. Leftovers reheat beautifully, and the cost per serving? Less than half of what you’d pay for takeout. My wallet thanks me every time.
Step-by-step instructions for cheese and onion tart recipe
Here's how to create a golden, flaky masterpiece with rich caramelized onions and melted cheese.
Prepare the Caramelized Onion Filling
In a large skillet, melt the 0.5 cup unsalted butter over medium heat. Add the 2 large yellow onions that have been thinly sliced and the 1 tablespoon granulated sugar. Stir occasionally for 20 minutes until the onions soften and begin to turn golden brown.
Here's the thing—you want them to caramelize but not burn. When the onions are tender and the butter has mostly rendered out, add the 2 cloves minced garlic and cook for another 30 seconds until fragrant. Remove from heat and let cool slightly before mixing with the other ingredients.
Create the Cheese Filling Mixture
In a medium bowl, combine the 1.5 cups shredded sharp cheddar cheese and 0.5 cup shredded gruyère cheese. Add the caramelized onions (with any remaining butter), the 0.25 cup heavy cream, the 0.5 cup all-purpose flour, and the 0.5 teaspoon ground black pepper. Mix well until fully combined and the cheese begins to melt slightly.
The reason we add the flour now is to help thicken the filling and create that perfect creamy texture. If the mixture seems too thick, add a splash of water—just enough to make it spreadable but not runny. This is your filling that will go between the layers of puff pastry.
Assemble the Tart Layers
Preheat your oven to 375°F. Unfold the 1 sheet puff pastry sheet on a lightly floured surface and gently roll it out if needed to create a rectangle about 12x15 inches. Cut the pastry in half lengthwise to create two equal rectangles.
Spread half of the cheese filling evenly over one pastry rectangle, leaving a ½-inch border along the edges. Top with the second pastry rectangle, pressing gently to seal the edges. Trim any excess pastry and use a fork to crimp the edges for a decorative finish. Cut a few small slits on top to allow steam to escape during baking.
Bake to Golden Perfection
Place the assembled tart on a parchment-lined baking sheet. Brush the top with the 1 whole egg wash and sprinkle evenly with the 1 tablespoon flaky sea salt. Bake for 30-35 minutes until the pastry is golden brown and the filling is bubbly.
Here's where patience pays off—the tart needs that time to develop a beautiful golden crust. If the top browns too quickly, tent it loosely with foil for the last 10 minutes. The internal temperature should reach 165°F when checked with an instant-read thermometer.
Finish and Serve Warm
Remove the tart from the oven and let it rest for 10 minutes before slicing. This resting time allows the filling to set slightly, making it easier to serve without losing all the delicious cheese filling.
Garnish with the 0.25 cup chopped fresh thyme leaves just before serving. The contrast of the flaky, buttery pastry with the rich, caramelized onion and melted cheese filling creates a perfect balance of textures and flavors. Serve warm with a crisp green salad for a complete meal.
Pro Tips For Making Cheese And Onion Tart
- Pre-Cook Your Onions: Slice the onions thin enough to caramelize in 10 minutes—not 20. I learned this the hard way after serving a tart with barely softened onions. Use a sharp knife and work in batches if needed; the extra time upfront saves you from a bland filling.
- Chill the Pastry: Pop the puff pastry in the fridge for 15 minutes before rolling. It’s less likely to shrink or tear, and the butter layers stay intact. I used to skip this, and half my tarts would look like sad, puffed pancakes instead of a golden crust.
- Mix Cheeses Roughly: Grate the sharp cheddar and Gruyère separately, then toss them together with a pinch of salt—no need to blend them into a paste. The texture stays better, and you get those melty pockets of Gruyère in every bite. (Yes, even if it looks uneven.)
- Brush Butter Sparingly: Use just enough unsalted butter (about 2 tablespoons) to coat the pastry before baking, not drown it. Too much makes the crust soggy, and you’ll end up with a greasy mess instead of a crisp, flaky finish. Trust me, less is more here.
Make-ahead tips for this recipe
Prep Ahead Strategy
Assemble the tart completely—including the cheese filling and pastry layers—but skip baking. Place it in an airtight container and refrigerate for up to 24 hours. This lets flavors meld beautifully, and you’ll bake it fresh when ready. The filling will be even more cohesive and flavorful after resting. 💫
Freezer-Friendly Assembly
For maximum convenience, assemble the tart and freeze it unbaked. Wrap it tightly in plastic wrap followed by a layer of aluminum foil to prevent freezer burn.
Store for up to 2 months. When ready to bake, thaw in the fridge overnight, then bake as directed. This works especially well for holiday gatherings.
Partial Prep Shortcuts
Caramelize the onions in advance—they keep well in the fridge for 3 days or frozen for 1 month. Store them in an airtight container with a splash of water to maintain moisture.
You can also pre-shred the cheese and mix the filling ingredients ahead, storing them separately until ready to assemble. This cuts your active cooking time by 20 minutes.
Baking from Frozen
If you’re short on time, you can bake the tart straight from frozen. Add 10-15 minutes to the baking time and tent with foil to prevent over-browning.
The center will still reach 165°F safely. I’ve done this with great success—just monitor closely after 20 minutes to avoid drying out the pastry.
Reheating Leftovers
Slice the tart and reheat individual portions in a 350°F oven for 10-12 minutes until bubbly and golden. For a quick fix, use the microwave on 50% power for 45-60 seconds, then cover with a damp paper towel to restore crispiness.
The filling reheats beautifully, making this tart perfect for meal prep.
Make-Ahead Serving Tips
If serving at room temperature, let the tart sit at room temperature for 15-20 minutes before slicing. This helps the filling soften slightly for easier serving. For a restaurant-style presentation, slice into 1-inch squares and arrange on a platter with fresh thyme sprinkled on top.
The contrast of warm tart and cool garnish elevates the dish instantly. 🌟
Nutrition facts
Frequently asked questions
Can I make this tart with shortcrust pastry instead of puff pastry?
Yes, but the texture will be different. Shortcrust won't be as flaky, but it still creates a delicious, sturdy tart. For best results, use a high-fat shortcrust recipe (like 1 cup butter to 2 cups flour) and bake at 375°F for 25-30 minutes until golden. The filling will be the star, so don't worry about losing the flakiness.
How do I prevent the cheese from getting too oily or runny?
Add the 0.5 cup flour to your cheese mixture to thicken it properly. If the filling still seems too loose, chill it for 15 minutes before assembling. Overmixing can also release moisture—just combine until smooth. The 10-minute rest before baking helps everything set perfectly.
Can I use frozen puff pastry for this recipe?
Just thaw it completely in the fridge for 30-45 minutes before using. Place the sheet between two parchment sheets to prevent curling. Never microwave frozen puff pastry—it makes the layers gummy. Handle gently when assembling to avoid tearing.
What's the best way to reheat slices for a crispy texture?
For oven reheating, wrap slices in foil and bake at 350°F for 8-10 minutes until bubbly. For microwave reheating, use 50% power for 30-45 seconds, then cover with a damp paper towel to restore crispiness. The key is speed—don't overheat or the pastry will get soggy.
Can I add other vegetables to this tart?
Yes! Try sautéed mushrooms, spinach, or roasted bell peppers for extra flavor. Just make sure to drain excess moisture first—wet vegetables can make the pastry soggy. Add them to the cheese mixture or layer them between the pastry sheets before baking.
