I first tried caramelised onion mac and cheese on a chilly evening and the sweet onions against the creamy sauce won me over instantly. Soft pasta gets coated in a rich white sauce, studded with deeply browned red onions, then baked under a golden cheese blanket that stretches with every scoop. It elevates classic mac into something special without extra work. This version feels cozy yet impressive enough for guests.
Worth trying next: Homemade Taco Bell Crunchwrap Supreme Recipe
Why you’ll love this recipe
This baked mac brings sweet caramelised onions and stretchy cheese together perfectly.
- Deep onion flavor makes every bite more interesting
- Golden bubbly top delivers serious cheese pull
- Ready in under an hour with simple steps
- Comfort food that still feels a little elevated
Ingredients
These ingredients create the exact caramelised onion baked mac shown in the video.
- 12 oz elbow macaroni
- 3 large red onions
- 3 cloves garlic
- 4 tbsp butter
- 3 tbsp flour
- 2.5 cups milk
- 2 cups shredded mozzarella
- 1.5 cups shredded cheddar
- 2 tbsp oil
- 1 tsp salt
- 1/2 tsp black pepper

You can use yellow onions if red are unavailable, though red give a sweeter result. Whole milk creates the creamiest sauce, but 2% works. Mix any melting cheeses you prefer. Pre-shredded is fine, but freshly grated melts more smoothly.
Another reader favorite: Easy Savory Cheese Pancakes with Red Peppers
Step-by-step instructions
These eight steps recreate the caramelised onion mac and cheese exactly as shown.
Step 1: Caramelise the onions
Heat oil in a large pan over medium-low. Add sliced red onions and garlic, cooking slowly until soft, deep brown, and sweet, about twenty minutes.
Step 2: Cook the pasta
Boil elbow macaroni in salted water until just al dente. Drain well and set aside so it is ready for the sauce.
Step 3: Start the sauce base
In the same pan, melt butter over medium heat. Whisk in flour and cook for one minute until it smells nutty and turns light golden.

Step 4: Build the cream sauce
Slowly pour in the milk while whisking constantly. Keep stirring until the sauce thickens into a smooth, silky consistency that coats a spoon.
Step 5: Combine pasta and onions
Add the cooked macaroni and most of the caramelised onions to the sauce. Stir gently until every piece is evenly coated and glossy.
Step 6: Transfer to baking dish
Pour the mixture into a greased baking dish and spread it evenly. Reserve a few caramelised onions for the top layer.
Step 7: Top with cheese and onions
Scatter the remaining onions over the pasta, then sprinkle mozzarella and cheddar generously across the surface for a golden crust.

Caramelised Onion Baked Mac and Cheese
Equipment
- 1 | Large skillet | for onions and sauce
- 1 | Pot | for boiling pasta
- 1 | Whisk |
- 1 | Baking dish | 9×13 or similar
- 1 | Spatula |
Ingredients
- 12 | oz | elbow macaroni |
- 3 | large | red onions | sliced
- 3 | cloves | garlic |
- 4 | tbsp | butter |
- 3 | tbsp | flour |
- 2.5 | cups | milk |
- 2 | cups | shredded mozzarella |
- 1.5 | cups | shredded cheddar |
- 2 | tbsp | oil |
- 1 | tsp | salt |
- 0.5 | tsp | black pepper |
Instructions
- Caramelise sliced red onions and garlic in oil over medium-low heat until deep brown.
- Cook elbow macaroni until al dente and drain.
- Melt butter, whisk in flour, and cook one minute.
- Slowly add milk while whisking until the sauce thickens.
- Stir pasta and most of the caramelised onions into the sauce.
- Transfer mixture to a greased baking dish.
- Top with remaining onions and shredded cheeses.
- Bake at 375°F for 20-25 minutes until golden and bubbling.
- Tip: Let the bake rest 5 minutes before serving for the best cheese pull.
Notes
Reheat in a 350°F oven to keep the top crispy.
Assemble ahead and refrigerate unbaked for up to 1 day.
Yellow onions can replace red if needed.
Step 8: Bake until bubbly
Bake at 375°F for twenty to twenty-five minutes until the top is deeply golden and bubbling. Let it rest five minutes before scooping.
Tips & common mistakes
A few key points keep the onions sweet and the sauce silky smooth.
- Cook onions low and slow for true caramelisation
- Whisk the sauce constantly to prevent lumps
- Undercook pasta slightly so it stays firm when baked
- Rest the bake briefly for cleaner, stretchier scoops

Recipe variations
Simple changes let you customize this caramelised onion mac easily.
- Spicier version: Add a pinch of cayenne or chili flakes
- Lighter option: Use low-fat milk and less cheese
- Extra protein: Stir in cooked bacon or shredded chicken
- Different cheese: Swap cheddar for Gruyère or smoked gouda
What to serve with this recipe
These sides balance the rich, creamy mac and cheese beautifully.
- Crisp green salad with sharp vinaigrette
- Roasted broccoli or simple steamed greens
- Garlic bread for extra comfort
- Light white wine or sparkling water
You might also like: Creamy Cheesy Meat Sauce Rigatoni Pasta
Frequently asked questions
Here are answers to common questions about making this baked mac successfully.
Can I prepare this ahead of time?
Yes, assemble the dish completely, cover, and refrigerate up to one day. Bake just before serving and add five extra minutes if starting cold.
How do I store leftovers?
Cool completely and keep in an airtight container in the fridge for up to three days. Reheat in the oven at 350°F so the top stays crisp.
Can I freeze the baked mac?
Yes, freeze after baking and cooling. Thaw overnight in the fridge and reheat covered until hot throughout.
Why are my onions not caramelising?
Keep the heat low and give them time. Stir occasionally and resist adding water—slow cooking draws out natural sugars for that deep flavor.
Final thoughts
This caramelised onion baked mac and cheese turns a classic into something unforgettable with sweet onions and a golden cheese top. It is cozy enough for weeknights yet special enough to share. Make a pan soon and tell me how the cheese pull turned out in the comments. A quick rating helps others discover this comforting favorite too.