This comforting dish brings together the best of French onion soup and classic mac and cheese. Sweet yellow onions are slowly caramelized until golden and deep, then folded into a velvety cheese sauce made with Gruyère, sharp cheddar, and Parmesan. The whole thing gets topped with buttery panko breadcrumbs and baked until bubbly and golden. Perfect for cozy dinners, it serves four and takes about an hour from start to finish.
The first time I made this, my roommate walked in mid caramelization and immediately asked what smelled like a fancy bistro. Those onions took forever, but standing there stirring and watching them transform from sharp white strips into something golden and sweet felt almost meditative. Now whenever gray rainy days hit, this is the dish that makes everything feel cozy and right again.
Last winter I served this at a small dinner party when my friend was going through a rough breakup. We sat around the table for hours just talking and going back for seconds, the baking dish eventually scraped clean. Food becomes something else when it's this comforting, like an edible hug nobody has to ask for.
Ingredients
- Large yellow onions: Yellow onions sweeten beautifully as they caramelize, becoming almost like onion candy
- Elbow macaroni: The curves catch sauce perfectly, though any short pasta works in a pinch
- Unsalted butter: Letting you control exactly how much salt goes into the final dish
- Gruyère cheese: This nutty French cheese melts gorgeously and adds that classic French onion soup flavor
- Sharp cheddar: Brings a punchy contrast to the milder Gruyère and helps the sauce stay creamy
- Whole milk and heavy cream: The combination creates a rich béchamel without being too heavy
- Dry white wine: Deglazes the pan and adds brightness that cuts through all that dairy
- Fresh thyme: Earthy and aromatic, it bridges the gap between French onion soup and mac and cheese
Instructions
- Get everything ready:
- Preheat your oven to 200°C (400°F) and butter a 2 L baking dish so nothing sticks later
- Caramelize the onions:
- Melt 3 tablespoons butter with 1 tablespoon olive oil in a large skillet over medium heat, then add the sliced onions with thyme and 1/2 teaspoon salt, stirring frequently for 20 to 25 minutes until they turn deep golden brown
- Build the flavor base:
- Stir in the minced garlic for just 1 minute, then add the white wine and Worcestershire sauce, scraping up all those gorgeous brown bits from the bottom
- Cook the pasta:
- Boil the macaroni in salted water until barely al dente, remembering it will cook more in the oven, then drain well
- Make the cheese sauce:
- Wipe out the skillet and melt 2 tablespoons butter over medium heat, whisk in the flour for 1 to 2 minutes, then gradually pour in the milk and cream while whisking constantly until thickened
- Add all that cheese:
- Turn the heat to low and stir in the Gruyère, cheddar, and Parmesan until melted into a smooth sauce, then season with pepper
- Bring it together:
- Fold the caramelized onions and cooked pasta into the cheese sauce until everything is coated
- Assemble and top:
- Transfer the mixture to your prepared baking dish, then mix the panko with melted butter and extra Gruyère before sprinkling it evenly over the top
- Bake until golden:
- Bake for 20 minutes until the top is beautifully browned and the sauce is bubbling up around the edges
My sister texted me at midnight once after making this, demanding to know why her comfort food had never been this good before. She said the house smelled so incredible her neighbor actually knocked on the door to ask what she was cooking.
Make Ahead Magic
You can caramelize the onions up to two days ahead and keep them in the refrigerator, which honestly cuts the work in half. The assembled dish also refrigerates beautifully overnight, just add an extra 10 minutes to the baking time if it is cold from the fridge.
Cheese Substitutions
Swiss cheese works if you cannot find Gruyère, though the flavor will be slightly milder. For something completely different, try adding some fontina for extra meltiness or a little Parmesan right at the end for a salty kick.
Serving Ideas
A crisp green salad with an acidic vinaigrette cuts through the richness perfectly. I love serving this with a dry white wine like Sauvignon Blanc, though a light beer works just as well for casual nights.
- Toast some extra bread to soak up any sauce left on your plate
- A simple arugula salad with lemon dressing brightens the whole meal
- Leftovers reheat surprisingly well in the microwave with a splash of milk
There is something about pulling this bubbling dish out of the oven that makes any ordinary Tuesday feel like a celebration.
Recipe FAQs
- → How do I caramelize onions properly?
-
Cook sliced onions over medium heat with butter and oil for 20–25 minutes, stirring frequently. Lower the heat if they start browning too quickly. You want them deep golden and sweet, not burnt.
- → Can I make this ahead?
-
Yes! Assemble everything up to the baking step, cover, and refrigerate for up to 24 hours. Add 5–10 minutes to the baking time since it will be cold.
- → What pasta works best?
-
Elbow macaroni is traditional, but any short pasta like shells, cavatappi, or penne works well. Just cook until al dente so it doesn't get mushy during baking.
- → Can I freeze leftovers?
-
Leftovers freeze well for up to 3 months. Portion into airtight containers and thaw overnight in the refrigerator before reheating with a splash of milk.
- → What can I substitute for Gruyère?
-
Swiss cheese works well as a substitute. For a sharper flavor, try aged Gouda or Comté. The key is using a cheese that melts smoothly.
- → How do I get the topping extra crispy?
-
Broil for the last 2–3 minutes of baking, watching closely so it doesn't burn. The melted butter in the panko helps it turn golden and crunchy.