Print

The Ultimate, Tested French Onion Mac and Cheese Recipe

A close-up of baked French Onion Mac and Cheese with a golden panko crust.

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

Our ultimate, tested homemade French Onion Mac and Cheese recipe expertly combines creamy Gruyère-Cheddar sauce with slow-cooked, deeply savory caramelized onions and a crunchy panko topping.

Ingredients

Scale

4 medium Yellow Onions, thinly sliced

2 tbsp unsalted butter (for onions)

1 tsp fresh thyme leaves

1/2 tsp kosher salt (for onions)

1/4 cup vegetable or beef broth

1 pound dry pasta (cavatappi or shells)

1/2 cup (1 stick) unsalted butter (for roux)

1/2 cup all-purpose flour

4 cups whole milk, warmed

1 tsp Dijon mustard

1/2 tsp black pepper, 1/4 tsp nutmeg

8 oz. Gruyère cheese, freshly grated

8 oz. Sharp White Cheddar, freshly grated

Salt to taste

2 tbsp unsalted butter, melted (for topping)

1 cup panko breadcrumbs

1/4 cup grated Parmesan cheese

Instructions

1. Melt 2 tbsp butter in a large pot over medium-low heat. Add onions, 1/2 tsp salt, and thyme. Cook until dark golden brown, about 45–60 minutes.

2. Pour in the 1/4 cup broth and scrape up any browned bits. Remove onions and set aside.

3. Cook pasta until al dente. Drain and set aside.

4. In the same pot, melt the remaining 1/2 cup butter. Whisk in 1/2 cup flour and cook for 1–2 minutes.

5. Gradually whisk in the 4 cups of warm milk. Bring to a simmer, stirring until thickened. Remove from heat.

6. Whisk in Dijon, pepper, and nutmeg. Add Gruyère and Cheddar gradually, stirring until smooth.

7. Gently fold in the cooked pasta and most of the caramelized onions.

8. Transfer to a buttered 9×13-inch baking dish. Top with panko, Parmesan, and melted butter.

9. Bake at 375°F for 20 minutes, or until bubbling and golden. Let cool for 10 minutes before serving.

Notes

For the smoothest sauce, always grate your own cheese from the block.

This dish can be prepped up to 24 hours ahead, but add the topping just before baking.

Reheat leftovers in the oven with a splash of milk or broth to prevent dryness.

Nutrition