Caramelized Onion Mac and Cheese
intro
Rich, creamy baked mac and cheese loaded with slow-caramelized sweet onions, crispy golden breadcrumb topping, and sharp melty cheeses for ultimate cozy comfort.
Ingredients
Steps
Prep Base Ingredients
Place the acacia wood cutting board in the central work area. Use the 8-inch chef knife to halve, peel, and thinly slice the 3 yellow onions into uniform 1/4-inch half-moons. Use the 4-sided stainless steel box grater (large-hole side) to shred both the sharp white cheddar and Gruyère cheeses, piling shreds on the edge of the cutting board. Set aside 1/4 cup of the mixed shredded cheese for topping later. This prep takes approximately 15 minutes.
Caramelize Sweet Onions
Place the 10-inch beige enameled cast iron skillet on the stovetop over medium-low heat. Add 1 tbsp olive oil and 2 tbsp unsalted butter. Once butter melts, add all sliced onions and 1/2 tsp kosher salt. Stir to coat in fat, then cook, stirring every 3-4 minutes with the taupe silicone spatula, for 25-30 minutes until onions are deep golden amber, soft, and jammy with no crisp white bits remaining. If onions brown too quickly, reduce heat to low and add 1 tbsp water to deglaze the pan. Stir in 1 tsp chopped fresh thyme during the last 2 minutes of cooking, then scrape onions into a small dish and set aside.
Cook Pasta Al Dente
Fill the 5-quart stainless steel stock pot with 4 quarts of water, bring to a rolling boil over high heat, then add 1 tsp kosher salt. Add dry elbow macaroni and cook 1 minute less than package al dente instructions (approximately 7 minutes total), so pasta is firm to the bite with a tiny white core at the center. Reserve 1/2 cup starchy pasta water, then drain pasta completely in the stainless steel colander and set aside. Do not rinse pasta, as surface starch helps cheese sauce adhere.
Make Cheese Sauce Base
Place the 2-quart stainless steel saucepan over medium heat. Add remaining 4 tbsp unsalted butter, and once melted, whisk in all-purpose flour with the stainless steel whisk to form a smooth roux. Cook roux for 2 minutes, stirring constantly, until it smells nutty and is pale golden, with no raw flour taste. Slowly pour in whole milk while whisking constantly to avoid lumps, then bring sauce to a gentle simmer, cooking 3-4 minutes until it thickens enough to coat the back of a spoon (a finger drawn through the sauce on the spoon leaves a clear line). Remove pan from heat, stir in Dijon mustard, remaining kosher salt, black pepper, and 3/4 of the shredded cheese, whisking until fully melted and smooth.
Mix Pasta and Onions
Add drained cooked elbow macaroni, all caramelized onions, and smooth cheese sauce to the clear tempered glass mixing bowl. Stir gently with the silicone spatula to fully coat every pasta noodle in sauce, adding 1-2 tbsp reserved pasta water as needed to thin sauce so it clings evenly without clumping. Ensure caramelized onions are evenly distributed, with no large clumps stuck together.
Assemble Baking Dish
Pour the fully mixed pasta and cheese sauce into the 9x13 inch matte white ceramic baking dish, spreading into a smooth even layer with the spatula. Top pasta evenly with the reserved 1/4 cup shredded cheese. In the small terracotta ramekin, mix panko breadcrumbs with 1 tbsp melted unsalted butter and remaining 1 tsp chopped thyme until crumbs are evenly coated, then sprinkle the buttered crumb mixture in a thin even layer over the cheese topping.
Bake Until Bubbly
Place the assembled baking dish in a preheated 375°F (190°C) oven. Bake 20-25 minutes until cheese sauce bubbles vigorously around the dish edges, and the panko topping is deep golden brown and crispy. If the topping browns too quickly before sauce bubbles, tent the dish loosely with aluminum foil for remaining bake time. Remove from oven and let rest 5 minutes before serving to allow sauce to set slightly.
Tips
2.Grate cheese from blocks instead of using pre-shredded cheese: pre-shredded cheese is coated in anti-caking potato starch that prevents smooth melting, leading to a grainy, separated cheese sauce.
3.Reserve 1/2 cup starchy pasta water before draining: the starchy water emulsifies with cheese sauce to create a silky, clingy coating on every noodle, instead of sauce that runs off and pools at the dish bottom.

OMG this caramelized onion mac and cheese is a total game changer! My two picky 7 and 9 year olds went back for seconds and didn’t even complain about onions. Made it for our Sunday family dinner and my husband asked if we can have it again next week. 10/10, worth every minute of cook time!
Brought this to my neighborhood potluck last weekend and people were literally scraping the dish clean! The sweet caramelized onions cut through the rich cheese so perfectly, not heavy at all like regular boxed mac. Only note is I added a little extra crispy bacon on top, chef’s kiss.
I swapped the dairy for cashew cream and nutritional yeast to make this vegan, and it still slapped! The caramelized onions add so much depth that you don’t even miss the regular cheese. Great base recipe to tweak for dietary needs.
Wait as someone who can barely make ramen without burning it, I was nervous the difficulty said medium but this was actually doable? The caramelizing onions part took longer than I thought but it was so worth it. My roommates thought I ordered takeout lmao
SO good. I made this for my book club meeting and half the group asked for the recipe before they even finished their first bite. The only con is my house smelled like onions for two days after, totally worth it though.
I thought 55 minutes was too long for a weeknight meal but I pre-caramelized the onions on Sunday during meal prep and this came together in 15 minutes on Tuesday night! Perfect hack for busy schedules. Will be adding this to my regular rotation.
Took a chance and used a mix of sharp white cheddar and gruyere instead of just regular cheddar, and holy cow it was amazing. The nuttiness from the gruyere pairs so well with the sweet onions. 10/10 will make again.
Made this for our post-hike family dinner and even my super picky teen who only eats fast food said it was ‘bussin’. High praise coming from him! I topped mine with breadcrumbs toasted in butter for a little extra crunch, highly recommend.
Smoked this on my pellet grill at 350 instead of baking it in the oven and let me tell you, that subtle smoke flavor with the caramelized onions? Absolute game day winner. My buddies were raving during the football watch party.
I’ve tried so many fancy mac and cheese recipes from NYC restaurants and this one is better than half of them. The balance of sweet, savory, cheesy is perfect, no weird grainy cheese sauce texture like a lot of recipes have. Will be making this for date night this weekend.
Wait I burned the onions first try because I got distracted scrolling TikTok lmao. Second time I set a timer to stir every 3 minutes and they came out perfect. This reheats so good for lunch all week, way better than the sad office cafeteria food.
I’ve been making mac and cheese for my grandkids for 50 years and I have to say, adding caramelized onions is such a nice upgrade. It adds a depth of flavor I never would have thought to add. My oldest granddaughter asked for the recipe to take to college with her.
Added a little drizzle of hot sauce on top of my serving and it was chef’s kiss. The heat cuts through the richness perfectly. My whole family cleaned their plates, even the toddler who’s been going through a ‘no cheese’ phase lately. Win!
Was skeptical that onions belonged in mac and cheese but my wife begged me to make this and wow, I was wrong. The sweet caramelized flavor doesn’t taste like regular sharp onion at all, it just makes the cheese taste better. 10/10, eating my words (and a second helping).
Used gluten-free elbow pasta and a gluten-free flour blend for the roux and you literally can’t tell the difference. So many mac and cheese recipes get gummy with GF pasta but this was perfectly creamy. Finally a good GF mac recipe that doesn’t suck!
Made this for a third date last night and he asked if I wanted to be exclusive after dinner. Coincidence? Maybe. But this mac and cheese is so good it definitely didn’t hurt my chances. Served it with roasted broccoli and a crisp white wine, 10/10 date night meal.
Kinda messed up the roux at first and it was lumpy so I blended it real quick with my immersion blender and no one noticed lol. Don’t stress if you mess up a step, this recipe is pretty forgiving even for messy cooks like me.
Made this for my kid’s soccer team end-of-season potluck and all the parents were asking for the recipe. I doubled the batch and there was zero left. The only thing I’ll do differently next time is make a triple batch because the kids devoured it before some of the parents got a serving!