
This caramelized onion and gruyère tart transforms humble ingredients into an elegant dish that tastes like it came from a French bistro. The magic happens when onions slowly transform into sweet, golden strands that perfectly complement the nutty gruyère cheese.
I first made this tart for a dinner party when I needed something that could be prepared in advance. My guests were so impressed they thought I had ordered from a local patisserie. Now it's my go-to recipe when I want to seem fancy without much effort.
Ingredients
- Pie crust: Store-bought saves time, but homemade adds extra flakiness if you have 15 minutes to spare
- Large onions: The star of the show, choose sweet varieties like Vidalia or yellow onions for the best caramelization
- Butter: Unsalted is best so you can control the seasoning level
- Olive oil: Prevents butter from burning during the long caramelization process
- Gruyère cheese: Splurge on a good quality aged variety for that distinctive nutty flavor
- Eggs: Provides structure to the filling and creates a custard-like texture
- Heavy cream: Creates richness and silky texture in every bite
- Fresh thyme leaves: Adds an earthy aroma that cuts through the richness
- Bacon pieces: Optional but adds a wonderful smoky contrast to the sweet onions
- Salt and pepper: Simple seasonings that enhance all the other flavors
Step-by-Step Instructions
- Prepare The Bacon:
- Cook bacon pieces in a large pan until crispy and golden. This usually takes about 5-7 minutes over medium heat. The fat renders out, creating little savory crunchy bits that will add texture to the finished tart. Set aside on paper towels, but save some of the bacon grease for the next step.
- Caramelize The Onions:
- Add butter to the same pan with a touch of the reserved bacon grease. Introduce your thinly sliced onions and cook over medium heat for about 10 minutes, stirring frequently until they begin to soften. Then reduce heat to low and continue cooking for about 40 minutes. This slow cooking process allows the natural sugars in the onions to develop fully. Be patient here — the deeper the color, the sweeter and more complex the flavor will be.
- Prepare The Crust:
- Roll out your pastry dough and carefully place it into your tart pan, pressing it gently into the corners. Prick the bottom all over with a fork to prevent bubbling. Line with parchment paper and fill with pie weights or dried beans. Blind bake at 375°F for 15 minutes, then remove the weights and bake 5 more minutes until the crust is lightly golden and set.
- Assemble The Filling:
- Sprinkle a generous layer of grated Gruyère onto the warm crust, creating a protective barrier that helps prevent sogginess. Spread your caramelized onions evenly over the cheese layer. In a separate bowl, whisk together eggs, heavy cream, and thyme leaves until well combined, then pour this custard mixture over the onions, allowing it to fill in all the gaps.
- Bake To Perfection:
- Top the tart with more Gruyère and sprinkle with the reserved bacon pieces. Bake in your preheated oven for 25-30 minutes until the filling is set in the center and the top develops a beautiful golden brown color. You can tell it's done when the center barely jiggles when gently shaken.
- Allow To Rest:
- Let the tart cool for at least 10 minutes before slicing. This resting period allows the filling to fully set and makes for cleaner, neater slices. The flavors also continue to develop during this time.

The onions are truly the heart of this recipe. I learned from my French grandmother that proper caramelization cannot be rushed. She would spend Sunday afternoons slowly cooking onions for the week, savoring their transformation from sharp and pungent to meltingly sweet. The aroma would fill the entire house, signaling comfort was on its way.
Storage Solutions
This tart keeps beautifully in the refrigerator for up to three days. Simply cover it tightly with plastic wrap once completely cooled. For best results, reheat slices in a 350°F oven for about 10 minutes until warmed through. While you can use a microwave, the crust will remain crisper with the oven method.
Creative Variations
The basic formula of this tart is endlessly adaptable. Try swapping the Gruyère for goat cheese and adding caramelized pears for a sweeter option. Or go Mediterranean with feta cheese, sun-dried tomatoes, and a sprinkle of oregano. For a more substantial meal, fold in sautéed mushrooms or roasted red peppers. Each variation creates an entirely new experience while maintaining the comforting foundation.
Perfect Pairings
Serve this tart with a peppery arugula salad dressed simply with lemon and olive oil. The bright acidic notes cut through the richness perfectly. For a delightful brunch, add a glass of crisp white wine like Sauvignon Blanc or a light rosé. The combination of the tart's savory depth with the wine's acidity creates a balanced sophisticated meal.

This tart is the perfect marriage of elegance and comfort food. It's sure to become a favorite in your kitchen!
Frequently Asked Questions
- → How long does it take to caramelize onions properly?
Properly caramelizing onions takes about 50 minutes total - first cooking them on medium heat for 10 minutes, then lowering the heat and cooking for another 40 minutes, stirring occasionally. This slow process allows the onions' natural sugars to develop fully into that signature sweet, rich flavor. Rushing this step will result in onions that are sautéed rather than truly caramelized.
- → Can I make this tart ahead of time?
Yes! You can prepare this tart a day ahead and refrigerate it. You can also make the components separately - caramelize the onions up to 3 days ahead and store them refrigerated, and pre-bake the crust a day in advance. Assemble and bake when needed. Alternatively, fully bake the tart, cool completely, then refrigerate for up to 3 days. Reheat in a 350°F oven for about 15 minutes before serving.
- → What can I substitute for Gruyere cheese?
If you can't find Gruyere, good substitutes include Swiss cheese, which has a similar nutty flavor but is milder, or Fontina, which offers excellent melting properties with a mild flavor. Other options include Emmental, Jarlsberg, or even a combination of mozzarella (for meltability) and Parmesan (for flavor).
- → What should I serve with this onion tart?
This tart pairs beautifully with a simple green salad dressed with a light vinaigrette to balance the richness. For a more substantial meal, serve it with roasted vegetables, a cup of tomato soup, or even a light fruit salad. For wine pairing, try a crisp white wine like Sauvignon Blanc or a light-bodied red like Pinot Noir.
- → How can I prevent a soggy tart bottom?
To prevent a soggy bottom, make sure to blind bake the crust first (pre-bake with pie weights for 15 minutes, then another 5 minutes without weights until golden). Another trick is to sprinkle some cheese on the bottom of the pre-baked crust before adding the onions - this creates a barrier between the wet filling and the crust. Finally, allow the tart to cool for 10-15 minutes before cutting, which helps the filling set completely.
- → Can I freeze this tart?
Yes, you can freeze this tart either baked or unbaked. For unbaked, prepare the tart up to the point of baking, wrap it well in plastic wrap and foil, and freeze for up to 3 months. Thaw overnight in the refrigerator before baking. For baked tarts, cool completely, wrap tightly, and freeze for up to 2 months. Thaw in the refrigerator and reheat in a 350°F oven until warmed through.