Indulge in the ultimate comfort food fusion where classic French onion soup meets creamy mac and cheese. This rich and satisfying dish features slowly caramelized onions cooked until deeply golden and sweet, folded into a velvety three-cheese sauce made with Gruyère, sharp cheddar, and Parmesan. The whole creation gets topped with buttery panko breadcrumbs and baked until golden and bubbling.
Perfect for cold weather dinners or feeding a hungry crowd, this vegetarian main comes together in just over an hour. The caramelized onions bring natural sweetness and depth, while the blend of cheeses creates that irresistible gooey texture everyone loves. Serve alongside a crisp green salad and your favorite white wine for a complete meal.
The best ideas happen when you are too hungry to think straight. I was standing in my kitchen halfway through making French onion soup when I remembered I had promised my roommates mac and cheese for dinner. The onions were already smelling incredible, all sweet and golden, and suddenly putting them together felt like the most obvious thing in the world.
That first night we ate it straight from the baking dish, standing around the counter with forks in hand. My friend Sarah actually closed her eyes after the first bite and said this was what comfort food was supposed to taste like. Now whenever anyone comes over for dinner on a cold night, this is what they ask for.
Ingredients
- 2 large yellow onions, thinly sliced: Yellow onions caramelize beautifully and become naturally sweet as they cook down
- 2 cloves garlic, minced: Adds that aromatic base that makes everything taste better
- 300 g (10 oz) elbow macaroni or short pasta: Elbows catch the sauce and onions in every single bite
- 3 tbsp unsalted butter: Essential for both caramelizing the onions and making the béchamel sauce
- 1 tbsp olive oil: Prevents the butter from burning while cooking down the onions
- 2 tbsp all-purpose flour: Creates that velvety smooth cheese sauce base
- 500 ml (2 cups) whole milk: Whole milk gives the richest, creamiest results
- 120 ml (1/2 cup) heavy cream: Takes the sauce from good to absolutely decadent
- 130 g (1 1/2 cups) Gruyère cheese, grated: Gruyère melts beautifully and has that nutty flavor that makes everything special
- 60 g (1/2 cup) sharp cheddar cheese, grated: Sharp cheddar cuts through the richness and adds a familiar comfort flavor
- 30 g (1/4 cup) Parmesan cheese, grated: Adds a salty, umami depth that you cannot quite put your finger on
- 120 ml (1/2 cup) dry white wine: Deglazes the pan and adds acidity to balance all the rich elements
- 1 tsp fresh thyme leaves (or 1/2 tsp dried): Thyme and onions are best friends in the flavor world
- 1/2 tsp salt, plus more to taste: Essential for bringing out all the flavors
- 1/4 tsp black pepper: Freshly cracked pepper makes such a difference here
- 1 tsp Worcestershire sauce (optional): Even if you do not know what is in it, it adds incredible depth
- 60 g (1/2 cup) panko breadcrumbs: Panko creates the lightest, crunchiest topping
- 2 tbsp unsalted butter, melted: Helps the breadcrumbs turn golden and crispy
- 20 g (1/4 cup) Gruyère cheese, grated: Extra cheese on top is never a bad decision
- 1 tbsp chopped fresh parsley (optional): Adds a fresh pop of color and brightness
Instructions
- Caramelize the onions until they are deeply golden:
- Heat 3 tbsp butter and 1 tbsp olive oil in a large skillet over medium heat, then add the sliced onions, thyme, and 1/2 tsp salt. Cook for 20 to 25 minutes, stirring often and lowering the heat if they start browning too quickly. You want them dark, sticky, and impossibly sweet.
- Add the aromatics and wine:
- Stir in the garlic and cook for just 1 minute until fragrant. Pour in the white wine and Worcestershire sauce, scraping up all those browned bits from the bottom of the pan. Let it simmer for about 3 minutes until almost completely evaporated, then set the onions aside.
- Cook the pasta:
- Boil the pasta in salted water until it is just shy of al dente since it will cook more in the oven. Drain well and set aside.
- Make the cheese sauce:
- In the same skillet, melt 2 tbsp butter over medium heat and whisk in the flour, cooking for 1 to 2 minutes. Slowly whisk in the milk and cream, stirring constantly until the sauce thickens, about 3 to 5 minutes.
- Melt in the cheese:
- Reduce the heat to low and stir in the Gruyère, cheddar, and Parmesan until completely melted and smooth. Season with pepper and taste to see if it needs more salt.
- Combine everything:
- Fold the caramelized onions and cooked pasta into the cheese sauce, making sure every piece of pasta is coated and the onions are distributed throughout.
- Assemble and top:
- Transfer the mixture to your prepared baking dish. Mix the panko, melted butter, and extra Gruyère in a small bowl, then sprinkle it evenly over the top.
- Bake until bubbly:
- Bake for 20 minutes until the cheese is bubbling up through the crumbs and the top is golden brown. Let it rest for 5 minutes before serving to let everything set slightly.
My sister made this for her boyfriend after he had a terrible week at work, and he told her it tasted like a hug in a baking dish. That is exactly what I am going for comfort food that actually comforts you.
Making It Ahead
You can caramelize the onions up to two days in advance and keep them in the refrigerator. The whole assembled dish can be refrigerated for 24 hours before baking, just add an extra 10 minutes to the baking time and cover with foil if the top browns too quickly.
Cheese Substitutions
While Gruyère is the classic choice, Swiss cheese works beautifully if you cannot find it. For a sharper bite, try adding some aged Gouda or even a bit of fontina for extra meltiness. Just keep the total amount of cheese the same.
Serving Suggestions
A crisp green salad with an acidic vinaigrette cuts right through the richness. A dry white wine like Sauvignon Blanc pairs perfectly with the caramelized onion sweetness. This dish also loves being served alongside roasted Brussels sprouts or garlic green beans.
- Let it rest for at least 5 minutes before serving so the sauce has time to thicken slightly
- The leftovers reheat surprisingly well in the microwave with a splash of milk
- Make extra because people always go back for seconds
There is something magical about how French onion soup flavors translate into mac and cheese form. This recipe has become my go to for whenever I need to feed people something that feels like a warm embrace.
Recipe Questions & Answers
- → What makes this different from regular mac and cheese?
-
The addition of slowly caramelized onions brings deep, sweet flavor inspired by French onion soup. The onions are cooked for 20-25 minutes until golden and jammy, then folded into the cheesy pasta along with white wine and Worcestershire sauce for extra depth.
- → Can I make this ahead of time?
-
Yes! Assemble the entire dish up to 24 hours in advance, cover tightly, and refrigerate. When ready to bake, add 10-15 minutes to the baking time since it will be cold. The topping can also be prepared separately and added just before baking.
- → What cheese works best for this dish?
-
Gruyère is the star here, offering nutty, melty qualities perfect for French onion flavors. Sharp cheddar adds tanginess while Parmesan brings salty depth. If Gruyère isn't available, Swiss cheese makes a good substitute with similar melting properties.
- → How do I get the onions properly caramelized?
-
Cook sliced onions over medium heat with butter and oil, stirring frequently to prevent burning. This takes 20-25 minutes—don't rush it! The onions should turn deep golden brown and shrink significantly. Lower the heat if they start browning too quickly.
- → What should I serve with this?
-
A crisp green salad with vinaigrette cuts through the richness beautifully. Steamed or roasted vegetables like broccoli or green beans also work well. For wine, pair with a dry white like Sauvignon Blanc or a light red such as Pinot Noir.
- → Can I add protein to make it non-vegetarian?
-
Absolutely! Cooked bacon pieces, crumbled sausage, or even shredded chicken would pair wonderfully with the French onion flavors. Add the protein when folding the onions into the cheese sauce so everything heats through evenly.