Go Back
Gruyere Mac and Cheese with Caramelized Onions

Gruyere Mac and Cheese with Caramelized Onions

Gruyere Mac and Cheese with Caramelized Onions is a rich, comforting baked pasta dish that balances creamy cheese sauce with the deep sweetness of slowly cooked onions. The nutty flavor of Gruyere melts beautifully into the sauce, creating a smooth and savory base that coats every piece of pasta.
Prep Time 20 minutes
Cook Time 55 minutes
Total Time 1 hour 15 minutes
Servings 6 servings
Calories 564 kcal

Ingredients
  

  • 300 grams elbow macaroni
  • 30 milliliters olive oil
  • 450 grams yellow onions thinly sliced
  • 6 grams kosher salt divided
  • 42 grams unsalted butter
  • 30 grams all-purpose flour
  • 600 milliliters whole milk warmed
  • 1 gram Dijon mustard
  • 1 gram garlic powder
  • 1 gram black pepper
  • 240 grams Gruyere cheese shredded
  • 50 grams Parmesan cheese finely grated
  • 60 grams panko breadcrumbs
  • 15 grams chopped fresh parsley

Instructions
 

  • Bring a large pot of well-salted water to a boil. Add the elbow macaroni and cook until just shy of al dente according to the package directions, usually about 1 to 2 minutes less than fully cooked. Drain well and set aside.
  • While the pasta cooks, heat the olive oil in a large skillet over medium heat. Add the sliced onions and 3 grams of the kosher salt. Cook, stirring often, for 25 to 30 minutes until the onions are deeply golden, soft, and caramelized. Lower the heat if they begin to brown too quickly. Transfer the onions to a bowl.
  • Preheat the oven to 190 degrees Celsius. Lightly butter or oil a 2-liter baking dish.
  • In a large saucepan, melt the butter over medium heat. Sprinkle in the flour and whisk constantly for about 1 minute until a smooth paste forms and the raw flour smell fades.
  • Slowly pour in the warmed milk while whisking continuously to prevent lumps. Cook for 3 to 5 minutes, whisking often, until the sauce thickens enough to coat the back of a spoon.
  • Whisk in the remaining 3 grams kosher salt, Dijon mustard, garlic powder, and black pepper. Reduce the heat to low, then add the Gruyere and 35 grams of the Parmesan a handful at a time, stirring until fully melted and smooth.
  • Fold the cooked macaroni and the caramelized onions into the cheese sauce. Stir until the pasta is evenly coated, then transfer the mixture to the prepared baking dish and spread it into an even layer.
  • In a small bowl, combine the panko breadcrumbs, remaining 15 grams Parmesan, and chopped parsley. Sprinkle the mixture evenly over the mac and cheese.
  • Bake for 18 to 20 minutes until bubbling around the edges and golden on top. Let the dish rest for 5 minutes before serving so the sauce can settle slightly.

Notes

Nutrition is an approximate estimate per serving based on 6 servings and can vary with the exact brands of pasta, cheese, and breadcrumbs used.
Refrigerate leftovers in an airtight container for up to 3 days.