Pesto Mac and Cheese

title 1
Pesto Mac and Cheese
⏱️ cook time 25 minutes
🍽️ servings 4
⚡ Difficulty easy

intro

Creamy, cheesy classic baked mac and cheese swirled with bright, herbaceous basil pesto, topped with crispy parmesan panko for a perfect balance of rich comfort and fresh summer flavor.

Ingredients

Dry elbow macaroni 225g (8oz)
Unsalted butter 2 tbsp (28g)
All-purpose flour 2 tbsp (16g)
Whole milk 1.5 cups (360ml)
Sharp white cheddar cheese 170g (1.5 cups, grated)
Grated parmesan cheese 35g (1/4 cup + 1 tbsp)
Basil pesto 80g (1/3 cup)
Panko breadcrumbs 15g (1/4 cup)
Garlic powder 1/4 tsp
Kosher salt 1 tbsp (for pasta water) + 1/4 tsp (for sauce)
Freshly ground black pepper 1/4 tsp
Fresh basil leaves 5-6 small leaves

Steps

1

Boil Pasta Al Dente

Preheat oven to 400°F (200°C). Fill the large 6-quart stainless steel stock pot with 4 liters of cold tap water, add 1 tablespoon of kosher salt (water should taste as salty as seawater), and bring to a rolling boil over high heat. Add dry elbow macaroni, stir immediately with the slotted stainless steel pasta spoon to prevent noodles from sticking to the pot bottom, and cook for 8 minutes (2 minutes less than package directions) for very al dente pasta, as noodles will continue to cook in the hot cheese sauce. Use the clear glass measuring cup to reserve 1/4 cup (60ml) of starchy, cloudy pasta water, then drain pasta completely in the large stainless steel colander; do not rinse pasta, as the surface starch helps the sauce cling.

Step 1
step1:Boil Pasta Al Dente
Step 1
step1:Boil Pasta Al Dente
2

Grate Fresh Cheese

While pasta cooks, set the box grater inside the 2L clear glass mixing bowl, and coarsely grate the block of sharp white cheddar, letting shreds fall directly into the bowl. Set aside 1 tablespoon of grated parmesan for the topping, then add the remaining parmesan to the bowl with cheddar, tossing lightly to combine. Avoid pre-shredded cheese for this recipe, as its anti-caking coating creates a grainy sauce.

Step 2
step2:Grate Fresh Cheese
3

Build Cheese Sauce Base

Place the medium 3-quart stainless steel saucepan over medium heat, add unsalted butter, and melt until foamy and bubbling. Add all-purpose flour, whisking constantly with the silicone whisk for 2 full minutes to cook out the raw flour taste; the finished roux will be pale golden and smell faintly nutty. Slowly pour in whole milk, whisking continuously to prevent lumps from forming, and cook for 4 minutes until the sauce thickens enough to coat the back of a spoon (you will be able to draw a clear, clean line through the sauce on the spoon with your finger). Season with garlic powder, black pepper, and remaining 1/4 tsp kosher salt.

Step 3
step3:Build Cheese Sauce Base
Step 3
step3:Build Cheese Sauce Base
4

Melt Cheese into Sauce

Reduce stovetop heat to low, add the shredded cheddar and parmesan mixture to the thickened béchamel a small handful at a time, stirring slowly with the beech wood spoon until cheese is fully melted and smooth before adding the next handful. If sauce feels too thick, stir in 1-2 tablespoons of reserved starchy pasta water to thin to a smooth, pourable consistency. Remove pan from heat once all cheese is incorporated; do not boil the sauce, as high heat will cause cheese to separate and turn grainy.

Step 4
step4:Melt Cheese into Sauce
5

Fold in Pasta and Pesto

Add the fully drained elbow macaroni to the cheese sauce in the saucepan, stirring gently with the beech wood spoon to coat every noodle evenly in sauce. Add basil pesto, and fold through only 2-3 times to create distinct bright green marbled swirls throughout the mac and cheese; do not fully mix pesto into the sauce, as overmixing will dull the bright green color and can make pesto taste bitter.

Step 5
step5:Fold in Pasta and Pesto
6

Add Crispy Breadcrumb Topping

Scoop the pesto mac and cheese mixture into the matte cream ceramic baking dish, spreading it into a smooth, even layer with the back of the beech wood spoon. In the small matte white ramekin, mix panko breadcrumbs with the reserved 1 tablespoon of parmesan cheese, then sprinkle the crumb mixture evenly across the entire top of the mac and cheese. Do not press the crumbs into the pasta, as this will prevent them from crisping evenly.

Step 6
step6:Add Crispy Breadcrumb Topping
7

Bake Until Bubbly

Carefully place the baking dish on the middle rack of the preheated 400°F (200°C) oven, and bake for 10-12 minutes, until the sauce is bubbling around the dish edges and the breadcrumb topping is deep golden and crispy. Remove from the oven, using the linen towel to hold the hot dish edge, and let rest for 3 minutes before serving to allow the sauce to set slightly.

Step 7
step7:Bake Until Bubbly
Step 7
step7:Bake Until Bubbly

Tips

1.Grate cheese fresh for the silkiest sauce: Pre-shredded store-bought cheese is coated in potato starch and anti-caking agents that prevent smooth melting, leading to a grainy, gritty sauce texture instead of the creamy, velvety consistency you get from freshly grated cheese.
2.Don’t skip reserving pasta water: The starchy, salty pasta water acts as a natural emulsifier that thins cheese sauce without making it watery, helping the sauce cling tightly to every pasta noodle instead of sliding off and pooling at the bottom of the dish.
3.Fold pesto in lightly for best flavor and color: Over-stirring pesto into the hot sauce can bruise the basil and make it taste bitter, while leaving bright green marbled swirls keeps the fresh herb flavor bright and creates a more visually appealing dish than a uniform dull green sauce.

✨ 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

Pesto Mac and Cheese:Frequently Asked Questions

1.Can I use store-bought basil pesto instead of homemade for this recipe? ▾
Absolutely! Opt for refrigerated fresh basil pesto over shelf-stable jarred options when possible for brighter, more herbaceous flavor. Stir ⅓ to ½ cup of pesto into your finished cheese sauce right before combining it with cooked pasta, so you don’t cook off the delicate basil notes. Taste as you go to avoid overpowering the sharp white cheddar flavor.
2.Why does my homemade cheese sauce turn out grainy sometimes? ▾
Grainy cheese sauce almost always stems from overheating the cheese or adding it too quickly. After making your butter-and-flour roux and warming the whole milk, take the pan completely off the heat before stirring in shredded sharp white cheddar in small handfuls. Shred your own cheese, too—pre-shredded bags have anti-caking starches that cause a grainy texture.
3.Can I make this pesto mac and cheese ahead of time for a potluck or meal prep? ▾
You totally can! Assemble the unbaked mac and cheese (hold off on adding the parmesan panko topping until right before baking) in a covered baking dish, and refrigerate for up to 3 days. When ready to bake, add the panko topping, tack on 5 to 7 extra minutes of bake time to account for the cold dish, and cook until bubbly around the edges.
4.I don’t have elbow macaroni on hand—can I use a different pasta shape? ▾
No problem at all! Elbow macaroni is classic because its curved ridges hold creamy cheese sauce beautifully, but any short, ridged pasta shape works great. Try cavatappi, rotini, small shells, or campanelle—just cook the pasta 1 minute less than package directions for al dente, as it will finish cooking while the dish bakes. Skip long, smooth pasta like spaghetti that won’t grip the sauce.
5.How do I get the parmesan panko topping crispy instead of soggy? ▾
For perfectly crunchy topping every time, melt 1 tablespoon of unsalted butter first, toss it with the panko and grated parmesan until evenly coated, then spread it in a thin, uniform layer over the mac right before baking. Bake uncovered on the middle rack, and for extra crunch, broil for the last 1 to 2 minutes—watch closely so the panko doesn’t burn.
6.What can I use if I don’t have whole milk for the cheese sauce? ▾
You can make easy swaps, but remember higher fat content makes for a creamier sauce. 2% milk works fine if you add an extra tablespoon of butter to your roux to make up for the lower fat. Skip skim milk entirely—it will make the sauce thin and watery. For an extra luxe twist, swap ¼ cup of milk for heavy cream for a silkier, richer finish.

Comments (9)

2 days ago

OMG this pesto mac and cheese is a total game changer! I threw this together last night for my picky 7 and 9 year olds who turn their nose up at anything green, and they both asked for SECONDS. Cook time was totally accurate too, 25 minutes flat from grabbing ingredients out of the fridge to sitting down for dinner. 10/10 will be adding this to our weekly meal prep rotation!

yesterday

Wait did you use storebought pesto or homemade? I’ve been nervous to try pesto mac because I thought the jarred stuff would taste weird with cheese!

yesterday

So glad your kids loved it, Mia! Jarred pesto works totally great here if you’re short on time—just grab a basil pesto you already enjoy eating on its own, and it’ll pair perfectly with the creamy cheddar sauce. If you have 5 extra minutes, homemade is amazing too, no judgment either way!

1 week ago

Brought this to our neighborhood block party potluck last weekend and people were scraping the dish clean! I added a little crispy panko topping like I do for regular baked mac, and the herby pesto cut through the richness so much better than plain mac ever does. Only note is I wished I made a double batch, it went faster than the burgers!

5 days ago

Love the panko topping hack! That crispy, crunchy layer sounds like the perfect textural contrast to the creamy pasta. Next time definitely double it—pesto mac has a way of disappearing fast at potlucks, I’ve learned that the hard way too!

30 minutes ago

SO good. I’m a college student with basically zero cooking skills and this was so easy to pull off even after my late lab class. No fancy ingredients, no confusing steps, and it tastes way better than the boxed stuff I usually live on. Will be making this at least once a week for the foreseeable future.

3 days ago

Took a chance on this for our meatless Monday dinner and it did not disappoint! I swapped in whole wheat pasta to make it a little heartier and tossed in a handful of roasted cherry tomatoes on top. The flavor combo is insane—why didn’t I think to mix pesto into mac and cheese sooner? Only giving 4 stars because I cooked mine a couple minutes too long so the pasta was mushy, totally my bad though!

2 days ago

The roasted cherry tomato addition sounds chef’s kiss! I’ve been adding grilled chicken to mine for extra protein but I need to try that tomato trick next time

2 days ago

Thanks so much for trying it, Liz! Whole wheat pasta and roasted tomatoes sound delicious—such a great call for meatless Monday. Quick tip for next time: pull the pasta 1 minute before the package says al dente if you’re tossing it with hot cheese sauce, it’ll keep cooking a little from the residual heat so it doesn’t turn mushy!

5 days ago

Made this with my 10 year old for his turn picking our Sunday dinner, and he was so proud to help stir the cheese sauce. We used the homemade pesto we had frozen from our summer basil crop and it tasted so fresh. Easy enough for a kid to help with, which is a huge win in my book.

2 days ago

Oh frozen pesto is such a smart idea! I freeze mine in ice cube trays every summer too, I’m totally pulling a couple cubes out this weekend to make this!

2 hours ago

Solid easy weeknight recipe. I’m usually not a huge fan of super rich mac and cheese, and the pesto adds just the right bright, herby kick to keep it from feeling heavy. Cook time was spot on, I didn’t have to make any weird grocery runs because I already had every ingredient in my pantry/fridge. No notes!

yesterday

Wait a second, this is the best mac and cheese I’ve ever made? I was a little skeptical that pesto and cheddar would go together but it works SO well. I did a mix of sharp white cheddar and a little parmesan because that’s what I had, and oof. So creamy, so flavorful, 100% making this for my roommate’s birthday dinner next week.

2 hours ago

The white cheddar and parm mix sounds elite! I used regular yellow cheddar last time and it was great but I bet the white cheddar lets the pesto flavor shine more

30 minutes ago

That cheese combo sounds incredible, Kelsey! The sharpness of white cheddar pairs so beautifully with basil pesto, and a little parmesan adds that perfect nutty kick. Your roommate is going to love it—happy early birthday to them!

2 weeks ago

Made a big batch of this on Sunday for my work lunches all week, and it reheats like a DREAM! I was worried the cheese sauce would get grainy or the pesto would turn brown, but it held up perfectly in the fridge for 4 days. Total game changer for busy work weeks when I don’t have time to cook every night.

1 week ago

So happy to hear it reheats well! A lot of folks ask about meal prepping this recipe, so that’s great feedback. Pro tip for anyone else prepping ahead: add a tiny splash of milk when you reheat it in the microwave to get that creamy texture back just like day one!

5 minutes ago

Tried this after seeing it pop up on my feed last night and I’m kicking myself for waiting so long. I added a little sprinkle of red pepper flakes on top for a tiny heat kick and it was chef’s kiss. Super easy, minimal cleanup, way fancier tasting than the effort required—my roommate even wandered out of his room to ask what smelled so good. 10/10, no notes.