French Onion Mac And Cheese

Creamy French onion mac and cheese bubbling with golden Gruyère and caramelized onion topping Save
Creamy French onion mac and cheese bubbling with golden Gruyère and caramelized onion topping | homecookledger.com

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
Baked French onion mac and cheese featuring sweet caramelized onions mixed through cheesy pasta Save
Baked French onion mac and cheese featuring sweet caramelized onions mixed through cheesy pasta | homecookledger.com

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
Golden brown French onion mac and cheese topped with crispy panko and fresh parsley garnish Save
Golden brown French onion mac and cheese topped with crispy panko and fresh parsley garnish | homecookledger.com

There is something about pulling this bubbling dish out of the oven that makes any ordinary Tuesday feel like a celebration.

Recipe FAQs

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.

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.

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.

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.

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.

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.

French Onion Mac And Cheese

Creamy pasta with sweet caramelized onions, Gruyère and cheddar cheeses, topped with buttery breadcrumbs.

Prep 20m
Cook 45m
Total 65m
Servings 4
Difficulty Medium

Ingredients

Vegetables

  • 2 large yellow onions, thinly sliced
  • 2 cloves garlic, minced

Pasta

  • 10 oz elbow macaroni or short pasta

Dairy & Cheese

  • 3 tbsp unsalted butter
  • 1 tbsp olive oil
  • 2 tbsp all-purpose flour
  • 2 cups whole milk
  • 1/2 cup heavy cream
  • 1 1/2 cups Gruyère cheese, grated
  • 1/2 cup sharp cheddar cheese, grated
  • 1/4 cup Parmesan cheese, grated

Other

  • 1/2 cup dry white wine
  • 1 tsp fresh thyme leaves
  • 1/2 tsp salt, plus more to taste
  • 1/4 tsp black pepper
  • 1 tsp Worcestershire sauce

Topping

  • 1/2 cup panko breadcrumbs
  • 2 tbsp unsalted butter, melted
  • 1/4 cup Gruyère cheese, grated
  • 1 tbsp chopped fresh parsley

Instructions

1
Prepare Oven and Baking Dish: Preheat oven to 400°F. Grease a 2-quart baking dish with butter or cooking spray.
2
Caramelize the Onions: In a large skillet, heat 3 tbsp butter and 1 tbsp olive oil over medium heat. Add sliced onions, thyme, and 1/2 tsp salt. Cook, stirring frequently, for 20-25 minutes until deeply caramelized and golden brown. Lower heat as needed to prevent burning.
3
Add Aromatics and Deglaze: Stir in minced garlic and cook for 1 minute until fragrant. Add white wine and Worcestershire sauce, scraping up browned bits from the bottom of the skillet. Simmer for 3 minutes until mostly evaporated. Remove caramelized onions from heat and set aside.
4
Cook the Pasta: Bring a large pot of salted water to a boil. Cook pasta according to package directions until just al dente. Drain well and set aside.
5
Prepare the Cheese Sauce: In the same skillet (wipe clean if needed), melt 2 tbsp butter over medium heat. Whisk in flour and cook for 1-2 minutes to remove raw taste. Gradually whisk in milk and heavy cream, stirring constantly until sauce thickens, 3-5 minutes.
6
Add Cheeses to Sauce: Reduce heat to low. Stir in Gruyère, cheddar, and Parmesan cheeses until completely melted and smooth. Season with black pepper.
7
Combine Pasta and Sauce: Fold caramelized onions and drained pasta into the cheese sauce, mixing well to distribute evenly.
8
Transfer to Baking Dish: Pour the pasta mixture into the prepared baking dish, spreading into an even layer.
9
Prepare Topping: In a small bowl, combine panko breadcrumbs, melted butter, and grated Gruyère cheese. Mix until crumbs are evenly coated.
10
Bake Until Golden: Sprinkle breadcrumb topping evenly over the pasta. Bake for 20 minutes until topping is golden brown and sauce is bubbling around the edges. Let rest for 5 minutes before garnishing with parsley and serving.
Additional Information

Equipment Needed

  • Large skillet
  • Large pot for boiling pasta
  • Whisk
  • 2-quart baking dish
  • Wooden spoon
  • Mixing bowls
  • Cheese grater

Nutrition (Per Serving)

Calories 670
Protein 26g
Carbs 61g
Fat 36g

Allergy Information

  • Contains milk and dairy products
  • Contains wheat and gluten
  • Some cheeses may contain animal rennet; verify vegetarian labeling if required
  • Worcestershire sauce traditionally contains anchovies; use vegetarian alternative or omit if necessary
Meredith Sloan

Passionate home cook sharing simple, family-friendly recipes and practical kitchen tips.