Roasted Garlic Mac and Cheese

title 1
Roasted Garlic Mac and Cheese
⏱️ cook time 1 hour
🍽️ servings 6
⚡ Difficulty medium

intro

Velvety, rich mac and cheese infused with sweet mellow roasted garlic, topped with crispy golden panko for the ultimate cozy, crowd-pleasing comfort food.

Ingredients

Elbow macaroni 340g (12 oz)
Sharp cheddar cheese (block) 225g (8 oz)
Gruyere cheese (block) 110g (4 oz)
Whole garlic bulb 1 large (60g)
Unsalted butter 4 tbsp (56g)
All-purpose flour 3 tbsp (24g)
Whole milk 2 cups (480ml)
Heavy cream 1/2 cup (120ml)
Panko breadcrumbs 1/2 cup (30g)
Fresh thyme 2 tsp (chopped, plus sprigs for garnish)
Dijon mustard 1 tsp
Kosher salt 1 tsp (plus extra for pasta water)
Freshly ground black pepper 1/2 tsp
Extra virgin olive oil 1 tsp

Steps

1

Roast Garlic Bulb

Preheat oven to 400°F (200°C). Use the paring knife to slice 1/4 inch off the top of the whole garlic bulb, exposing the tips of all individual cloves. Drizzle the cut surface with 1 tsp olive oil, then wrap the bulb tightly in the 12x12 inch aluminum foil sheet. Place directly on the middle oven rack and roast for 40 minutes, until cloves are soft, golden, and spreadable when squeezed. Set aside to cool for 10 minutes before handling.

Step 1
step1:Roast Garlic Bulb
Step 1
step1:Roast Garlic Bulb
2

Boil Pasta Al Dente

Fill the 8 quart stock pot with 6 quarts of heavily salted water (water should taste as salty as seawater), bring to a rolling boil over high heat. Add 340g elbow macaroni, stir with the slotted spoon to prevent sticking, and cook for 2 minutes less than the package instructions for al dente (pasta will finish cooking in the oven). Reserve 1/2 cup of starchy pasta water, then drain pasta thoroughly and set aside; do not rinse.

Step 2
step2:Boil Pasta Al Dente
3

Grate Fresh Cheeses

Use the coarse side of the box grater to shred the 8oz sharp cheddar and 4oz gruyere cheese into the medium stainless steel mixing bowl. Toss lightly to combine, then set aside 1/2 cup of the shredded cheese mix for topping. Pre-shredded cheese is not recommended, as it contains anti-caking agents that make the sauce grainy.

Step 3
step3:Grate Fresh Cheeses
4

Build Sauce Roux

Place the 3 quart heavy-bottomed saucepan over medium heat. Add 4 tbsp unsalted butter, and once fully melted and foaming slightly, whisk in 3 tbsp all-purpose flour with the silicone whisk. Cook the roux for 3 minutes, whisking constantly, until it turns a pale golden color and smells nutty, with no raw flour taste remaining.

Step 4
step4:Build Sauce Roux
5

Whisk Cheese Sauce

Slowly pour 2 cups whole milk and 1/2 cup heavy cream into the roux, whisking constantly to prevent lumps, until the sauce thickens to a smooth, nappe consistency (coats the back of a spoon, about 5 minutes). Reduce heat to low, squeeze all soft roasted garlic cloves out of their skins into the sauce, add 1 tsp Dijon mustard, 1 tsp kosher salt, 1/2 tsp black pepper, and 1 tsp chopped fresh thyme, whisking to combine. Stir in the shredded cheese (reserving the 1/2 cup for topping) one handful at a time, whisking until fully melted and smooth. If sauce is too thick, add a splash of reserved pasta water to thin.

Step 5
step5:Whisk Cheese Sauce
Step 5
step5:Whisk Cheese Sauce
6

Mix Pasta and Sauce

Add the drained cooked elbow macaroni to the saucepan with the cheese sauce, stir gently with the slotted spoon until every pasta noodle is evenly coated in sauce, adding 1-2 tbsp reserved pasta water as needed to make the sauce cling smoothly to the pasta ridges without clumping.

Step 6
step6:Mix Pasta and Sauce
7

Assemble Mac and Cheese

Pour the sauced pasta mixture into the 9x13 inch matte off-white ceramic baking dish, spreading it into an even layer. In the 8cm matte cream ceramic ramekin, mix 1/2 cup panko breadcrumbs with the reserved 1/2 cup shredded cheese and remaining 1 tsp chopped thyme. Sprinkle this crumb topping evenly across the entire surface of the mac and cheese.

Step 7
step7:Assemble Mac and Cheese
Step 7
step7:Assemble Mac and Cheese
8

Bake to Golden Perfection

Place the assembled baking dish on the middle oven rack, bake at 400°F (200°C) for 20-25 minutes, until the sauce is bubbling around the edges and the panko topping is deep golden brown and crispy. Remove from the oven and let rest for 10 minutes before serving, to allow the sauce to set slightly.

Step 8
step8:Bake to Golden Perfection

Tips

1.Skip pre-shredded cheese for this recipe: pre-shredded cheese is coated in potato starch and anti-caking agents that prevent smooth melting, leading to a grainy, separated sauce instead of the velvety texture you get from freshly grated cheese.
2.Cook pasta 2 minutes less than the package al dente recommendation: noodles will continue to cook and absorb cheese sauce as the dish bakes, so undercooking slightly prevents mushy, oversoft macaroni in the final dish.
3.Let the baked mac and cheese rest for a full 10 minutes after removing it from the oven: cutting into it immediately will cause runny, sliding sauce, while resting lets the cheese sauce thicken and set for clean, scoopable portions.

✨ You May Also Like

Main Course
🍜 United Kingdom

A showstopping classic of tender seared beef, savory mushroom duxelles, and crisp prosciutto wrapped in flaky golden puff pastry, baked to juicy perfection.

⏱️ 2 hours 1Main Course ★ 4.7
Main Course
🍜 India

Tender charred marinated chicken simmered in a rich, spiced creamy tomato sauce, this iconic Anglo-Indian curry pairs perfectly with basmati rice or warm naan.

⏱️ 50 minuteMain Course ★ 4.6
Main Course
🍜 Thailand

Classic tangy, sweet, and savory Thai stir-fried rice noodles with shrimp, tofu, and crunchy garnishes, balancing all five core Thai flavor profiles.

⏱️ 30 minuteMain Course ★ 4.5
Main Course
🍜 United Kingdom

Crispy golden beer-battered cod and fluffy double-fried chips, served with tangy tartar sauce and malt vinegar: the timeless, beloved British pub comfort classic.

⏱️ 45 minuteMain Course ★ 4.7
Main Course
🍜 Mexico

Smoky, chile-marinated pork tacos with caramelized pineapple, fresh cilantro, and lime: a beloved classic Mexican street food perfect for casual summer gatherings.

⏱️ 1 hour 45Main Course ★ 4.8
Main Course
🍜 United States

Crunchy Fritos corn chips layered with savory beef chili and melted cheddar, topped with cool, zesty fixings for a beloved, cozy Tex-Mex comfort food.

⏱️ 35 minuteMain Course ★ 4.8

Roasted Garlic Mac and Cheese:Frequently Asked Questions

1.Why should I use block cheese instead of pre-shredded for this mac and cheese? ▾
Pre-shredded cheese is coated in potato starch and anti-caking agents to prevent clumping in the bag, which leads to grainy, less melty cheese sauce. Grating your own sharp cheddar and Gruyere straight from the block gives you that ultra-smooth, velvety texture, as fresh-grated cheese melts far more evenly into your butter-based roux for a luxe, consistent sauce.
2.How do I roast the garlic bulb so it comes out sweet and mellow, not bitter? ▾
Slice the top ¼ inch off the whole garlic bulb to expose the clove tips, drizzle with a tiny bit of olive oil, wrap tightly in aluminum foil, and roast at 400°F for 35–40 minutes until cloves are soft and pale golden. Squeeze cooled cloves straight into your cheese sauce—they mash easily into a sweet, mild paste with none of the harsh raw garlic’s sharp bite.
3.Can I use a different pasta shape instead of elbow macaroni? ▾
Absolutely, though elbow macaroni is classic because its curved ridges hold thick cheese sauce perfectly. If you swap it, pick another short, ridged shape like cavatappi, small shells, or rotini. Skip long, smooth pastas like spaghetti, since they won’t catch sauce and roasted garlic bits well. Cook pasta 1 minute less than package directions so it stays firm through baking.
4.Why does my cheese sauce sometimes turn out grainy instead of velvety? ▾
Grainy sauce almost always comes from overheating cheese or adding it too quickly. Once your butter and flour roux is smooth and you’ve whisked in your milk, take the pan off the heat before stirring in grated cheddar and Gruyere a handful at a time. Never boil the sauce after adding cheese, and skip pre-shredded cheese, the other common culprit for gritty texture.
5.How do I get crispy golden panko topping instead of soggy panko? ▾
Toss your panko crumbs in a couple tablespoons of melted unsalted butter first, then spread them evenly across the top of the mac and cheese right before baking. For ideal crunch, bake uncovered at 375°F for 20–25 minutes until bubbly. If you want an extra-golden top, broil for the last 1–2 minutes, but watch closely so the crumbs don’t burn.
6.Can I make this roasted garlic mac and cheese ahead for a party or potluck? ▾
You bet! Assemble the mac and cheese (hold the panko topping) and store it covered in the fridge for up to 2 days. When you’re ready to bake, top with buttered panko, add 10–15 minutes to the bake time to account for the cold dish, and bake until bubbly around the edges and golden on top. It’s a reliably crowd-pleasing comfort food pick.
7.I don’t have Gruyere on hand—what’s a good substitute? ▾
Gruyere adds a nutty, mild depth that pairs perfectly with sharp cheddar and roasted garlic, but if you don’t have it, swap it for equal amounts of fontina, smoked gouda, or extra sharp white cheddar. Avoid super soft, high-moisture cheeses like fresh mozzarella, since they’ll make your sauce watery instead of rich and velvety.
8.Will a whole bulb of garlic make the mac and cheese taste too strong or overpowering? ▾
One whole roasted bulb is perfectly balanced! Roasting tames garlic’s harsh, sharp bite into a sweet, caramelized, mellow flavor that blends right into the cheese sauce instead of tasting sharp or spicy. If you’re a total garlic superfan, you can roast a second bulb, but one gives that noticeable but not overwhelming roasted garlic note the recipe is built around.
9.Do I have to bake this mac and cheese, or can I make it stovetop? ▾
You can absolutely skip the bake if you’re short on time! Toss cooked al dente pasta with the roasted garlic cheese sauce on the stovetop, then toast buttered panko in a small skillet over medium heat for 2–3 minutes until golden, and sprinkle it over top. The bake gives that classic cozy, bubbly texture, but stovetop is a faster weeknight win.
10.Why do I need to cook the pasta a minute less than the package directions say? ▾
Pasta continues to cook when tossed in hot cheese sauce and baked in the oven, so cooking it a full minute shy of al dente keeps it from turning mushy by the time your mac and cheese is done. You want it to have a tiny firm bite when you drain it—don’t rinse it, either, since the starchy coating helps cheese sauce cling to every noodle.
11.Can I freeze leftover roasted garlic mac and cheese? ▾
Yes, it freezes really well! Let fully cooked leftovers cool completely, then portion into airtight, freezer-safe containers and freeze for up to 3 months. Thaw in the fridge overnight, then reheat in the oven at 350°F covered for 20 minutes, then uncover for 5 minutes to crisp the panko back up. Stir in a splash of milk if the sauce feels too thick.
12.What kind of milk works best for the creamiest cheese sauce? ▾
Whole milk gives you the richest, creamiest base without being too heavy, but you can use 2% if that’s what you have—just avoid skim milk, since it will make the sauce thin and watery. For an extra luxe twist, swap ¼ cup of the milk for heavy cream, but don’t go overboard or the sauce will feel overly rich instead of balanced.
13.Why does the recipe call for unsalted butter instead of salted butter? ▾
Unsalted butter lets you control exactly how much salt goes into your roux, cheese sauce, and panko topping. Both sharp cheddar and Gruyere have natural salt content, so using salted butter can easily make the final dish overly salty before you even add extra seasoning. If you only have salted butter, skip added salt at the start and season to taste at the end.
14.My cheese sauce broke and separated—how do I fix it fast? ▾
A broken, separated sauce usually happens from too-high heat, but it’s easy to rescue! Take the pan completely off the heat, add a tablespoon of ice-cold milk, and whisk vigorously for 30–60 seconds until it emulsifies back into a smooth, velvety consistency. If it’s still separated, add a tiny pinch of cream cheese and keep whisking to pull it back together.
15.Can I add mix-ins like bacon or broccoli to this mac and cheese? ▾
Absolutely, this recipe is super customizable! Crispy cooked bacon, roasted broccoli, caramelized onions, or diced cooked chicken all pair beautifully with the sweet roasted garlic and sharp cheese flavor. Just make sure any mix-ins are fully cooked and patted dry before stirring them in—watery veggies will thin out your cheese sauce and make the final dish soggy.
16.How do I reheat leftovers without the sauce getting greasy or clumpy? ▾
The best way to reheat leftovers is low and slow in the oven, covered, at 325°F for 15–20 minutes. Stir in 1–2 tablespoons of whole milk per serving before reheating to loosen the sauce back up to that creamy consistency. For single servings in the microwave, heat in 30-second bursts, stirring between each, with a splash of milk to keep it smooth.
17.What cheese ratio gives that perfect cheesy pull without being too stringy? ▾
The 2:1 ratio of sharp cheddar to Gruyere in this recipe is ideal—sharp cheddar delivers that bold, classic mac and cheese tang, while Gruyere melts ultra-smoothly without getting overly stretchy and stringy like mozzarella. Grate it fresh off the block, add it off heat, and you’ll get a perfectly velvety sauce that coats every noodle with just the right amount of cheesy pull.

Comments (17)

1 week ago

Game changer! I’ve made so many boring boxed mac versions over the years but this roasted garlic twist is next level. The garlic gets so sweet and mellow when you roast it, no sharp bite at all. Brought it to my office potluck last week and people were begging me for the recipe before we even finished lunch.

2 days ago

Really solid mac and cheese! I used a mix of sharp cheddar and gouda because that’s what I had in the fridge, and it turned out great. Only note is I wish the recipe said how big the baking dish should be, I almost overflowed my 9x13 when I poured the cheese sauce in. Still tasted amazing though!

just now

First time making homemade mac and cheese that didn’t turn out grainy! The roasted garlic tip is chef’s kiss. My roommates are already asking when I’m making this again, might have to double the batch next time so we have leftovers for late night study sessions.

2 weeks ago

Perfect for meal prep! I divided this into 5 individual containers for my work lunches, and it reheated like a dream all week. The roasted garlic flavor gets even better after a day or two in the fridge, honestly. 10/10, no notes.

yesterday

Made this for my grandkids when they visited over the weekend, and they said it was better than the mac and cheese they get at their favorite restaurant. High praise coming from a couple of 10 year olds who live on chicken nuggets and boxed pasta! The roasted garlic adds such a nice depth without being overpowering.

2 hours ago

Taste was great, but I messed up the roux somehow and my sauce came out way too thin? I followed the measurements exactly, not sure what went wrong. Ended up having to add a bunch of extra cheese to thicken it up, which worked but threw off the garlic ratio a little for me.

30 minutes ago

So sorry the roux gave you trouble! A common culprit is adding the milk too fast — make sure to whisk in small splashes at a time until it’s fully smooth before adding more, and keep the heat on medium-low so it doesn’t seize up. Next time it’ll turn out perfect, I promise!

1 week ago

Obsessed! I added a little crispy panko topping with parmesan before baking, and it added the perfect crunch to contrast the creamy sauce. The roasted garlic is such a good call, I’ll never make plain mac and cheese again.

5 days ago

Oh the panko topping idea is genius! I was just thinking this needed a little texture, I’m definitely stealing that trick when I make this this weekend.

2 weeks ago

Made this as a side for our weekend brisket cookout, and it paired so well with the smoky meat! Only thing is I thought the cook time was a little long for a weeknight, took me closer to an hour and 15 minutes total with prep. But for a weekend meal? Absolute home run.

1 week ago

So glad it was a hit at your cookout! Great note on the timing — if you roast the garlic ahead of time (it keeps in the fridge for up to 2 weeks!) you can cut the total cook time down to 30 minutes for busy weeknights.

5 days ago

Wow, this is the creamiest mac and cheese I’ve ever made at home! I used whole wheat pasta because that’s what I keep in my pantry, and it still tasted incredible, didn’t get mushy at all while baking.

3 days ago

So glad you mentioned whole wheat pasta works! I’ve been nervous to swap it in for regular pasta in baked mac because I thought it would be too grainy, I’ll have to try that.

3 days ago

This is my new go-to comfort food! It was rainy and gross all day earlier this week, so I whipped this up and ate way too much of it straight out of the baking dish. No regrets. Is there a way to make this dairy free without losing the creamy texture?

2 days ago

Yay for cozy rainy day meals! For a dairy free version, swap in your favorite unsweetened oat milk, a dairy free sharp cheddar alternative, and a tablespoon of nutritional yeast to amp up that cheesy depth — it works surprisingly well!

1 week ago

Brought this to my neighborhood block party and it was the first dish empty! People kept coming up to me asking if I’d catered it, little did they know it was a pretty straightforward recipe. The roasted garlic makes it taste way fancier than it is.

5 days ago

I was looking for a new dish to bring to our annual block party next month, this sounds perfect! Did you make it the day of or prep it the night before?

30 minutes ago

Just pulled this out of the oven! The garlic smell is filling my whole apartment, it smells incredible. I accidentally burned the top a little bit because my oven runs hot, but the part I tasted while it was cooling is so good.

5 minutes ago

That smell is the best part of making this recipe! Quick tip for next time: if your oven runs hot, turn the temp down 25 degrees and cover the dish with foil for the first 20 minutes of baking to prevent the top from browning too fast.

2 weeks ago

OMG I am a roasted garlic FIEND so this recipe was made for me! I roasted two whole heads of garlic instead of one because I’m extra, and it was absolute perfection. So creamy, so flavorful, way better than any restaurant mac and cheese I’ve had.

1 week ago

Two heads of garlic?! That sounds like my kind of mac! I was worried one would be too much, but if you did two and it worked I’m definitely following your lead when I make this.

5 days ago

Love the extra garlic move! There’s no such thing as too much roasted garlic in my book — it’s so sweet and mild when it’s roasted, even two heads won’t overpower the cheese sauce.

3 days ago

First time meal prepping anything that wasn’t just grilled chicken and rice, and this was so easy to follow! Quick question: can I freeze individual portions of this for later, or will the sauce separate when I thaw it?

2 days ago

I freeze this all the time! Just let it thaw in the fridge overnight, then reheat in the microwave with a splash of milk stirred in, and it’s good as new. No separation issues for me.

yesterday

Great advice from @FreezerMealPro! It freezes really well for up to 3 months — just make sure to store it in an airtight container to avoid freezer burn, and add that little splash of milk when reheating to bring the creaminess back.

1 week ago

Made this for my son’s 8th birthday party, all the kids devoured it! I was worried the roasted garlic would be too ‘grown up’ for a bunch of elementary schoolers, but they didn’t even notice, they just kept asking for more. Total win.

5 days ago

This is exactly what I was worried about! My kids turn their noses up at anything they think is ‘adult food’, so I’m glad to hear the garlic is mellow enough for kid palates.

3 days ago

Trust me, my kid complains if there’s even a tiny piece of onion on his plate, and he ate two full servings. The garlic is just sweet and savory, no sharp bite at all, they’ll love it!

5 days ago

Really tasty! I stirred in some roasted broccoli and crispy bacon bits to make it a full meal, and it was chef’s kiss. Only reason it’s 4 stars instead of 5 is I wish there was a little more cheese sauce, mine felt a little dry after baking.

3 days ago

The broccoli and bacon additions sound incredible! If you like extra saucy mac, you can easily bump up the sauce by 25% (1.25x the butter, flour, milk, and cheese measurements) so it doesn’t dry out while baking.

2 days ago

Thank you so much for the tip! I’m making this again next week for my roommate’s birthday, and I’ll definitely increase the sauce so it’s extra creamy. Can’t wait!

2 days ago

Okay, full transparency: I forgot to roast the garlic ahead of time and just sautéed minced garlic in butter for the roux instead, and it was STILL amazing. I know it’s not quite the recipe, but I was in a rush and it still turned out so creamy and flavorful. 10/10, even when you half-ass parts of it it’s good.

yesterday

Oh my god I’m so glad you said that! I’m making this tonight after work and I totally forgot to roast garlic earlier, I was about to panic. Sautéed garlic it is!

2 hours ago

No shame in the shortcut! Roasted garlic is definitely worth it for that deep, sweet flavor, but sautéed garlic works perfectly in a pinch — I’ve done it myself more than once on busy nights. So glad it still turned out great for you!