French Onion Mac and Cheese
Updated Sep 10, 2026
This post may contain affiliate links. Please read our disclosure policy.
French Onion Mac and Cheese combines two comfort food classics! Creamy cheddar and Gruyère mac and cheese is loaded with caramelized onions, fresh thyme, and all the flavors of French onion soup. It’s topped with buttery panko breadcrumbs and broiled until golden and bubbly, just like the cheesy topping on French onion soup.
Looking for more French onion recipes? Try my Viral One Pot French Onion Pasta, French Onion Soup, French Onion Oyster Crackers, or One Pan French Onion Orzo.

🐝 Quick Look: French Onion Mac and Cheese
- What it is: Creamy cheddar and Gruyère mac and cheese with caramelized onions, fresh thyme, and a golden, cheesy breadcrumb topping inspired by classic French onion soup.
- Time: 20 minutes prep, 1 hour 10 minute cook, 1 hour 30 minutes total.
- Servings: 4 generous main dish portions or 6–8 side dish portions
- Main ingredients: Pasta, yellow onions, cheddar, Gruyère, whole milk, and panko breadcrumbs.
Why You’ll Love This Recipe
- Rich and cheesy: A creamy cheddar and Gruyère sauce makes every bite extra rich and cheesy. If you love mac and cheese, try my Baked White Cheddar Mac and Cheese, One Pot Copycat Trader Joe’s Butternut Squash Mac and Cheese, or One Pot Orzo Mac and Cheese recipe.
- All the French onion soup flavor: Sweet caramelized onions, fresh thyme, and Gruyère bring the classic soup flavors to mac and cheese. If you love this combination, try my One Pot French Onion Pasta too!
- Golden, crispy topping: Buttery panko breadcrumbs and three types of cheese get broiled until golden and bubbly. The perfect finishing touch!
- Perfect for special occasions: This is a great side dish for holidays, Friendsgiving, or dinner parties. Serve it alongside my Air Fryer Pistachio Honey Brussels Sprouts.
Table of Contents
Key Ingredients

See the recipe card below for the complete list of ingredients with exact quantities.
- Onions: Yellow onions are my favorite for caramelizing. They become sweet, soft, and deeply golden brown, giving this mac and cheese its signature French onion flavor.
- Gruyère Cheese: Nutty, creamy, and perfect for melting! Gruyère pairs perfectly with sharp cheddar and brings that classic French onion soup flavor.
- Panko Breadcrumbs: A fun twist on the toasted baguette in French onion soup! These light, crispy breadcrumbs create a golden, crunchy topping when broiled with extra cheese.
Tips and Substitutions
- Onions: Don’t rush the caramelization! Cook the onions low and slow until deeply golden brown and soft. If they start sticking or browning too quickly, add a splash of water and lower the heat.
- Sherry or brandy: Either works great for deglazing the onions. For an alcohol-free option, substitute ¼ cup low-sodium beef or vegetable broth.
- Cheese: I love sharp white cheddar and Gruyère, but Trader Joe’s Caramelized Onion Cheddar is delicious here too! A combined cheddar-Gruyère cheese is another great option. Freshly shred your cheese for the smoothest sauce.
- Pasta: Shells, shelbows, cavatappi, elbows, or rotini all work well. Cook the pasta slightly under al dente so it doesn’t get too soft.
- Sauce consistency: The cheese sauce should be creamy and pourable before assembling. If it’s too thick, stir in a splash of milk.
- Broiling: Use broiler-safe crocks or a baking dish and watch closely! The topping can go from golden to burnt quickly.
How to Make French Onion Mac and Cheese
See the recipe card below for full instructions and exact amounts.

- Add the sliced onions to a Dutch oven with butter, olive oil, and salt. Cover and cook briefly to help release their moisture and jump-start caramelization.

- Continue cooking uncovered, adding the thyme halfway through, until the onions are deeply caramelized.

- Remove the thyme, deglaze with sherry or brandy, and stir in the Worcestershire sauce.

- Prepare the cheese sauce with a butter and flour roux, milk, seasonings, and shredded cheese.

- Stir the cooked pasta into the cheese sauce until evenly coated.

- Fold in the caramelized onions.

- Transfer to a baking dish and top with seasoned breadcrumbs, shredded cheese, Parmesan, and black pepper.

- Broil until golden and bubbly, then let rest briefly before serving.
Recipe FAQs
Yes! I recommend caramelizing the onions up to 2 days ahead and storing them in the refrigerator. For the creamiest results, make the pasta and cheese sauce just before serving.
Absolutely! Double the ingredients and use a larger baking dish, such as a 9×13-inch dish. Keep an eye on the topping while broiling, since cooking times can vary.
More French Onion Recipes

French Onion Mac and Cheese
Equipment
- Dutch Oven or large heavy-bottomed pot
- Oven Safe Crocks or 8×8-inch baking dish
Ingredients
Caramelized Onions
- 1 tablespoon Extra Virgin Olive Oil
- 1 tablespoon Unsalted Butter
- 3 medium Yellow Onions, thinly sliced (or 2 large onions)
- ½ teaspoon Kosher Salt
- 3 sprigs Fresh Thyme
- ¼ cup Dry Sherry, or 2 tablespoons Brandy
- 1 teaspoon Worcestershire Sauce
Mac and Cheese
- 8 ounces Pasta, such as shells or shellbows
- 4 tablespoons Unsalted Butter
- ¼ cup All Purpose Flour
- 1 ¾ cups Whole Milk
- ½ teaspoon Garlic Powder
- ½ teaspoon Black Pepper
- ¼ teaspoon Cayenne
- ¼ teaspoon Dry Mustard
- 1 teaspoon Better Than Bouillon Reduced Sodium Beef Base, optional
- 4 ounces Sharp White Cheddar Cheese, about 1 cup shredded
- 4 ounces Gruyère Cheese, about 1 cup shredded
- Kosher Salt, to taste
Breadcrumb Topping
- 1 cup Panko Breadcrumbs
- 2 tablespoons Unsalted Butter, melted
- ¼ teaspoon Garlic Powder
- ¼ teaspoon Kosher Salt, or to taste
- ¼ teaspoon Black Pepper, or to taste
- 1 ounce Sharp White Cheddar Cheese, about ¼ cup shredded
- 1 ounce Gruyère Cheese, about ¼ cup shredded
- 1 ounce Parmesan Cheese, about ¼ cup finely grated
Instructions
Caramelized Onions
- Start the onions: Heat the olive oil and butter in a Dutch oven or large pot over medium heat. Add the sliced onions and kosher salt. Stir, cover, and cook for 5 minutes.
- Caramelize: Reduce heat to medium-low and cook uncovered for 45–60 minutes, stirring occasionally, until the onions are deeply golden brown and caramelized. Add the thyme sprigs halfway through cooking.
- Deglaze: Remove and discard the thyme sprigs. Add the sherry or brandy, scraping up any browned bits from the bottom of the pot. Stir in the Worcestershire sauce and cook for 1–2 minutes, until the liquid has mostly evaporated.
Mac and Cheese
- Cook the pasta: While the onions caramelize, cook the pasta in a large pot of salted boiling water for 1 minute less than package directions. Drain.
- Make the roux: Melt the butter in a saucepan over medium heat. Whisk in the flour and cook for 2 minutes, stirring constantly, until lightly golden.
- Make the sauce: Slowly whisk in the milk until smooth. Add the dry mustard, cayenne, garlic powder, black pepper, and beef base, if using. Cook over medium heat, whisking frequently, until the sauce thickens enough to coat the back of a spoon, about 2–3 minutes once simmering.
- Add the cheese: Remove from heat and stir in the cheddar and Gruyère until melted and smooth.
- Combine: Stir the cooked pasta into the cheese sauce until coated. Fold in the caramelized onions. Add a splash of milk if the sauce is too thick, then taste and season with kosher salt as needed.
Topping and Assembly
- Prepare the topping: Preheat the broiler. In a small bowl, combine the panko, melted butter, garlic powder, salt, and pepper.
- Assemble: Transfer the mac and cheese to an 8×8-inch broiler-safe baking dish or individual broiler-safe crocks. If using crocks, place them on a baking sheet. Sprinkle with the seasoned breadcrumbs, followed by the remaining cheddar, Gruyère, and Parmesan. Finish with freshly cracked black pepper.
- Broil: Broil for 3–5 minutes, watching closely, until golden and bubbly. Rotate the dish if needed for even browning. Let rest for a few minutes before serving.
Video
Notes
- Caramelizing the onions: The onions should be deeply golden brown, soft, and significantly reduced in volume. Cooking time varies depending on your pot and heat. If they begin sticking or browning too quickly, add a splash of water and reduce the heat.
- Sherry or brandy: Both work well for deglazing the onions. Use ¼ cup dry sherry or 2 tablespoons brandy. For an alcohol-free option, substitute ¼ cup low-sodium beef or vegetable broth.
- Cheese: Freshly shredded cheese melts more smoothly than pre-shredded. Sharp white cheddar and Gruyère are my go-to combination, but Trader Joe’s Caramelized Onion Cheddar is delicious here too! You can also use a combined cheddar-Gruyère cheese to save time. Just use the same total amount of cheese.
- Beef base and salt: Better Than Bouillon adds extra savory depth but is optional. If omitting, season the cheese sauce with kosher salt to taste. This recipe uses Diamond Crystal kosher salt. If using salted butter or a different brand of salt, adjust accordingly.
- Pasta: Shells, shelbows, cavatappi, elbows, or rotini all work well. Cook the pasta 1 minute less than package directions to prevent it from becoming too soft when combined with the hot cheese sauce and broiled.
- Sauce consistency: The cheese sauce should be creamy and pourable. If it becomes too thick, stir in a splash of milk before assembling.
- Baking dish: Use an 8×8-inch broiler-safe baking dish or individual broiler-safe crocks. Make sure your bakeware is specifically rated for broiler use.
- Make ahead: Caramelize the onions up to 2 days ahead and refrigerate in an airtight container. Prepare the pasta and cheese sauce just before serving for the best texture.
- Storage and reheating: Refrigerate leftovers in an airtight container for up to 4 days. Reheat gently in the microwave or a 350°F oven until heated through, adding a splash of milk if needed to loosen the sauce.
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.














After 4 years — a showstopper. I found this recipe on TikTok in 2022, and I’ve made it for every major gathering since then because it is such a slam dunk hit for everyone that eats it! I’m not on that social media platform anymore, but I always come back here to review it. Thank you for such a tasty and creative dish that’s made so many people smile!
WOW! This made my day. Thank you so much for this incredible review. It really is a special recipe 🙂
This is one of my all-time favorite recipes! It’s SO decadent and cheesy. I hope you love it!
This was so delicious! Best mac and cheese I’ve ever had!
This hasn’t even come out of the oven yet and i’ve never been so compelled to write a 5 star review! I tried the little but that was stuck to my spoon and it was INCREDIBLE. The instructions also were super easy to follow. I cook and bake a lot and usually have some sort of hiccup with the recipe and have to tweak but this came out amazing as is!d
WOW thank you so much for this nice comment! I’m so happy to hear the first bite was so good. I hope the final dish comes out perfectly for you!
This recipe is delicious. Mine didn’t look as beautiful as yours, but definitely a crowd pleaser
This recipe was incredible! I saw it on Tiktok and knew I had to try it. It was very easy to follow, and I really appreciated all the steps and how it explained how to multitask. The mac and cheese turned out PERFECT. Definitely will have to try the other recipes- and probably make this one again.
Wow thank you so much for this comment and taking the time to try out and review this recipe! I hope you find some more recipes you love!