• Skip to main content
  • Skip to primary sidebar
The Little Ferraro Kitchen logo
menu icon
go to homepage
  • Mediterranean Recipes
  • Recipe Index
  • Cookbooks
  • About
  • Contact
search icon
Homepage link
  • Mediterranean Recipes
  • Recipe Index
  • Cookbooks
  • About
  • Contact
×
Home » Recipes » Vegetarian Recipes

Caramelized Onion Mac and Cheese

Published: Nov 20, 2026 by Samantha Ferraro · This post may contain affiliate links · Leave a Comment

Jump to Recipe

This caramelized onion mac and cheese is rich, creamy and perfectly cheesy. Made with three cheeses and just a half a pound of pasta, this decadent side dish has a lightly golden top and deeply caramelized onions in every bite.

This caramelized onion mac and cheese has three cheeses with a gooey center and slightly golden topping.
Jump to:
  • About This Recipe
  • 📋 Ingredients
  • 🍋 Substitutions and Variations
  • ⏲️ Instructions
  • 📍 Recipe Tips
  • Serving Suggestions
  • More Onion Recipes to Try
  • Caramelized Onion Mac and Cheese

About This Recipe

If you love caramelized onions, this mac and cheese is for you! Sweet, deeply caramelized yellow onions are folded into a creamy béchamel sauce with three cheeses: nutty Gruyère, buttery Fontina and creamy Gouda. A little fresh thyme, Dijon mustard and Worcestershire sauce add savory layer of flavor, balancing the sweetness of the onions.

And if you're as big a fan of caramelized onions as I am, make a batch and add them to French onion stuffed mushrooms or my French tartiflette, a potato and bacon casserole with caramelized onions.

📋 Ingredients

Ingredients for caramelized onion mac and cheese with fontina, Gruyere and Gouda, fresh thyme and Dijon mustard.
  • Yellow Onions: Take your time caramelizing them until they're deeply golden brown, soft and jammy. They will look like a lot of onions at first, but they'll cook down a lot. This is also a great step to make ahead!
  • Gruyère, Gouda and Fontina: This combination creates a creamy, gooey texture. I recommend buying blocks and grating the cheese yourself for the smoothest sauce.
    • Gruyère adds a nutty, slightly savory flavor.
    • Gouda melts beautifully and adds creaminess.
    • Fontina also melts well and brings another layer of buttery, nutty flavor.
  • Pasta: Use a short pasta shape with little pockets or ridges that catch all that creamy cheese sauce. Shells, elbows or cavatappi all work well.
  • Whole Milk and Heavy Cream: These are the foundation of the creamy béchamel sauce. Using a combination of milk and cream gives the mac and cheese a rich texture without making it overly heavy.
  • Nutmeg: A classic addition to béchamel sauce, freshly grated nutmeg adds a subtle warmth that rounds out the creamy cheese sauce.
  • Dijon Mustard: This is added to the cheese sauce for a little tangy, savory depth of flavor. If Dijon isn’t available, substitute with ½ teaspoon of mustard powder.
  • Worcestershire Sauce: Worcestershire is deep and savory and helps balance the sweetness of the caramelized onions.

See recipe card for full information on ingredients and quantities.

🍋 Substitutions and Variations

  • Cheese: Gruyère, Gouda and Fontina are my favorite combination, but you can use any combination of the three. Mild cheddar, mozzarella or finishing with Parmesan are also great options.
  • Breadcrumb Topping: For a crunchy topping, toss ¾ cup Panko breadcrumbs with olive oil, fresh thyme, minced garlic and a pinch of salt. Scatter over the mac and cheese before baking.
  • Onion Flavor Additions: Swap the Worcestershire sauce for a splash of dry sherry or red wine. A little beef stock is another delicious option.
  • Pasta: Shells work beautifully for catching the cheese sauce, but elbow macaroni, cavatappi or any short pasta will work.

⏲️ Instructions

Start sautéing the sliced onions, sautéing every so often.

Sauté the Onions. Saute the onions in butter and olive oil until softened and lightly golden.

Continue sautéing the onions until the onions caramelize and have a deep amber color.

Caramelize the Onions. Continue cooking slowly until deeply golden, sweet and jammy, about 45-60 minutes.

Melt butter and whisk in flour and cook for a few minutes to make the roux for the mac and cheese.

Make the roux. Melt butter and whisk in the flour until pale and bubbly.

Slowly whisk in milk into the roux and continue whisking until slightly thickened.

Make the Béchamel. Gradually whisk in the milk and cream until the sauce is smooth and slightly thickened.

Stir the cheeses into the white sauce, in batches until completely melted and thick.

Melt the Cheese. Add the shredded cheeses in batches, stirring until melted before adding the next batch. Reserve some for topping.

Add the caramelized onions to the thickened cheese sauce and stir to combine.

Stir in the Onions. Fold most of the caramelized onions into the cheese sauce.

Top the macaroni and cheese with the rest of the cheese mixture before baking.

Assemble. Transfer the mac and cheese to a baking dish and top with remaining onions and resreved cheese.

Bake the caramelized onion macaroni and cheese until the cheese has melted and is slightly browned on top.

Bake. Bake until cheese has melted and lightly golden, about 10-15 minutes. Broil, for a few minutes if desired.

📍 Recipe Tips

  • Take Your Time with the Onions: This is the longest step, but it’s worth it. Cook the onions slowly for about an hour until deeply golden and caramelized. Cover your pan as needed and continue sautéing.
  • Grate Your Own Cheese: Freshly grated cheese melts more smoothly than pre-shredded.
  • Add Milk Gradually: When making bechamel, slowly whisk the milk into the roux to keep the sauce smooth.
  • Melt Cheese Slowly: On very low heat, add the cheeses in batches and whisk until smooth before adding the next batch.
  • Undercook the Pasta: Cook 1–2 minutes less than package directions since it will finish baking.
  • Make the Caramelized Onions Ahead: Caramelize the onions up to 2–3 days ahead and refrigerate until ready to use.
Serve the caramelized onion mac and cheese in bowls.

Serving Suggestions

This caramelized onion mac and cheese makes a wonderful addition to Thanksgiving dinner or a weekend roast. The rich, cheesy sauce and sweet caramelized onions pair beautifully with roasted meats, chicken and other seasonal sides.

Serve alongside:

  • Dutch Oven Roast Chicken
  • Stuffed Turkey Breast
  • Sausage Stuffed Cornish Hens
  • Tomahawk Steak with Shallot Butter

More Onion Recipes to Try

  • Homemade caramelized onion dip recipe.
    Caramelized Onion Dip
  • This easy onion agrodolce is flavored with garlic, sweet golden raisins and tangy vinegar.
    Sicilian Onion Agrodolce
  • Caramelized onion stuffed mushrooms with Gruyere cheese and crispy panko breadcrumbs.
    French Onion Stuffed Mushrooms
  • This onion boursin tart is made with puff pastry and layered with creamy boursin cheese, thinly sliced red onions, parmesan cheese and finished with a drizzle of balsamic.
    Onion Tart with Puff Pastry and Boursin Cheese
Caramelized onion macaroni and cheese with a lightly golden top and gooey melty cheeses.

Caramelized Onion Mac and Cheese

Samantha Ferraro

LittleFerraroKitchen.com

This caramelized onion mac and cheese is made with Gruyère, Gouda and Fontina for a creamy and gooey side dish that's loaded with sweet caramelized onions.
No ratings yet
Print Recipe Pin Recipe
Prevent your screen from going dark
Prep Time 20 minutes mins
Cook Time 1 hour hr 15 minutes mins
Total Time 1 hour hr 35 minutes mins
Course Side Dish
Cuisine American, French
Servings 6 servings

Equipment

  • Chef Knife
  • glass measuring cups
  • Silicone Whisk
  • Cheese Grater

Ingredients
 
 

Caramelized Onions

  • 2 large yellow onions thinly sliced
  • 2 tablespoons unsalted butter
  • 1 tablespoon olive oil
  • 1 teaspoon Worcestershire sauce
  • 2 garlic cloves finely minced
  • 1 tablespoon fresh thyme leaves
  • Salt and pepper

Mac and Cheese

  • ½ pound short cut pasta
  • 4 tablespoons unsalted butter
  • 3 tablespoons flour
  • 2 ½ cups whole milk
  • ½ cup heavy cream
  • 1 teaspoon Dijon mustard
  • ¼ teaspoon grated nutmeg
  • Salt and pepper
  • 2 cups Gouda cheese grated
  • 1 cup Gruyere cheese grated
  • 1 cup Fontina cheese

Instructions
 

  • Caramelize the Onions. Melt butter with olive oil in a large skillet over medium-low heat.
  • Add sliced onions and a generous pinch of salt. Cook slowly, stirring occasionally, until deeply golden, soft and jammy, about 45-60 minutes. Cover with a lid, as needed.
  • Once the onions are deeply golden, stir in Worcestershire sauce, minced garlic and fresh thyme and continue cooking for another 1–2 minutes, until fragrant. Set aside.
  • Cook the Pasta. Bring a large pot of generously salted water to a boil. Add the pasta and cook 1-2 minutes less than the package directions. Drain well and set aside.
  • Make the Béchamel Cheese Sauce. In a large Dutch oven or saucepan, melt butter over medium heat. Whisk in flour and cook for 1–2 minutes, stirring constantly, without allowing it to brown.
  • Gradually whisk in the milk and cream, a little at a time, until smooth. Continue whisking and simmer gently for several minutes until the sauce begins to thicken slightly. Stir in Dijon mustard, freshly grated nutmeg, salt and black pepper.
  • Reduce heat to low or remove from heat. Gradually add most of the cheeses, a handful at a time, stirring until melted and smooth before adding more. Reserve the remaining cheese for the topping.
  • Assemble the Mac & Cheese. Preheat the oven to 375°F.
  • Stir two-thirds of the caramelized onions into the cheese sauce and add the cooked pasta and gently fold until evenly coated.
  • Transfer the mac and cheese into an 8x 10-inch baking dish and top with the remaining caramelized onions and shredded cheese.
  • Place the baking dish on a baking sheet, to catch any spills and bake for 10-15 min until the cheese is melted and top is lightly golden. For a more deeply browned top, broil for 3-4 minutes, watching closely.
  • Serve. Remove from the oven and let rest for a few minutes before serving.

Notes

  • Grate Your Own Cheese: Freshly grated cheese melts more smoothly than pre-shredded.
  • Make a Smooth Béchamel: Whisk the milk into the roux gradually.
  • Add Cheese Slowly: Melt the cheese in batches over low heat, stirring until smooth.
  • Undercook the Pasta: Cook 1–2 minutes less than package directions since it will finish baking.
  • Make Ahead: Caramelize the onions up to 2–3 days ahead and refrigerate.
Did you make this recipe?Let us know by leaving a comment and 5 star rating!

More Hearty & Flavorful Vegetarian Recipes

  • Sweet Potato Stuffed Oranges
  • Hawaiian purple sweet potato pie with a creamy white coconut haupia layer and toasted macadamia nuts on top.
    Purple Sweet Potato Haupia Pie
  • Tall, fluffy cheese souffle with a beautifully puffed, golden-brown top.
    Julia Child's Cheese Soufflé
  • Homemade pierogies are filled with two different mixtures, with one filled with potato and cheese and the other with sauerkraut and sour cream.
    Easy Homemade Pierogies

Sharing is caring!

  • Facebook
  • Twitter
  • Email
  • Print

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recipe Rating




This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Samantha Ferraro twirling pasta headshot.

Hi, I'm Samantha! I started this blog for my love of world cuisine and cultural flavors! You’ll find everything here from Jewish recipes, Middle Eastern, Italian and more!

More about me →

Weeknight Mediterranean Recipes

  • Roasted chicken with turmeric, fennel and citrus.
    Roast Chicken with Fennel and Citrus
  • Vegetarian pasta fagioli recipe with pasta and beans and topped with grated Parmesan cheese and fresh herbs.
    Vegetarian Pasta Fagioli
  • Fresh herb roasted salmon.
    Herb Crusted Salmon
  • Julia Child's creamy potato leek soup with fresh thyme and olive oil on top.
    Julia Child's Creamy Potato Leek Soup
  • One pot chicken with rice and chickpeas is seasoned with bold spices and layered with fresh lemon slices.
    One Pot Lemon Chicken and Rice with Chickpeas
  • Recipe for zuppa toscana with potatoes, kale and sausage.
    Zuppa Toscana with Sausage

Love Mediterranean Food?

Get recipes and weekly ingredient tips straight to your inbox!


Thank you!

You have successfully joined our subscriber list.

Follow on Bloglovin

Footer

↑ back to top

Featured In

About

  • Privacy Policy
  • Accessibility Policy

Newsletter

  • Sign Up! for emails and updates

Contact

  • Contact

As an Amazon Associate I earn from qualifying purchases.

Copyright © 2025 · Samantha Ferraro · Little Ferraro Kitchen · All Rights Reserved

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required