This French Onion Mac and Cheese is made with deeply caramelized onions, Gruyère, and a creamy cheese sauce, then broiled until golden and bubbly. A rich, cozy, and indulgent twist on classic French onion soup.
Start the onions: Heat olive oil and butter in a Dutch oven or large pot over medium heat. Add the onions and a big pinch of salt. Stir, cover, and cook for 5 minutes.
Caramelize: Reduce heat to medium-low and cook uncovered for 30 to 40 minutes, stirring occasionally, until deeply golden. Add thyme sprigs halfway through.
Deglaze: Add the sherry and scrape up any browned bits. Stir in Worcestershire sauce and cook until the liquid reduces. Remove and discard the thyme sprigs.
Mac and Cheese
Cook the pasta: While the onions caramelize, boil the pasta 1 minute less than package directions. Drain and reserve ½ cup of pasta water.
Make the roux: In a saucepan, melt the butter over medium heat. Whisk in the flour and cook for 2 minutes until lightly golden. Slowly whisk in the milk. Add dry mustard, cayenne, smoked paprika, garlic powder, black pepper, and beef base (if using). Increase heat to medium-high and whisk constantly for 3 to 5 minutes until thickened.
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. Add a splash of pasta water if the sauce needs thinning. Fold in the caramelized onions.
Topping and Assembly
Make the topping: Preheat broiler. Mix the melted butter with panko, cayenne, smoked paprika, garlic powder, salt, and pepper.
Assemble: Spoon the mac and cheese into oven-safe crocks or a baking dish. Add the breadcrumb topping, then extra cheddar, Gruyère, and Parmesan. Finish with cracked pepper.
Broil: Broil for 3 to 5 minutes, watching closely, until golden and bubbly. Serve hot.
Video
Notes
Caramelizing the onions: Take your time with this step for the best French onion flavor. Cook the onions low and slow until deep golden brown, stirring occasionally.
Cheese: For the creamiest sauce, use freshly shredded cheddar and Gruyère. Pre-shredded cheese can make the sauce grainy. Add the cheese off the heat and stir until fully melted.
Pasta: I used pasta shells because they hold onto the sauce well. Cavatappi, elbow macaroni, or rotini also work.
Bakeware: If you don’t have oven-safe crocks, bake in a 2–3 quart baking dish (such as a casserole dish or 9×13 pan).
Broiling: Broil for 3-5 minutes, watching closely. The topping can brown quickly.
Make Ahead: Assemble up to 1 day ahead (without the panko topping), cover tightly, and refrigerate. Add the topping just before broiling so it stays crisp.
Storage: Store leftovers in an airtight container in the fridge for up to 4 days.
Reheat: Reheat in the oven at 350°F until warmed through, or microwave in short bursts. Add a sprinkle of extra cheese or breadcrumbs before reheating if you want to refresh the topping.