This post may include affiliate links; for details, see our disclosure policy.

A swirl of basil pesto brings so much flavor to this classic comfort food! This pesto mac and cheese features Havarti cheese for ultra creaminess.

Pesto mac and cheese
Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!

Oh hey there, creamy pesto mac and cheese! This seriously cozy comfort food is just as gooey as it looks, and adding a swirl of bright green basil pesto is a total genius move. That genius is not from us: it’s by way of Maria Lichty, our dear friend and author of the new Two Peas and Their Pod Cookbook. We could not be more proud to see her book in print, as we’ve been chatting with her through the entire cookbook writing process. Keep reading for the recipe and more about this fabulous book.

Two Peas and Their Pod Cookbook

About the book: Two Peas and Their Pod

Last year, I crossed paths with Maria at a few events (a party in Detroit, a conference at Pinterest among others). Alex and I had known her ultra popular blog Two Peas and Their Pod for years. So it was such fun to meet the person behind the drool-worthy cookie recipes and family-friendly meals. Of course, Maria is the most kind and generous soul, and just as lovely as her writing voice seems! When we met up, Maria was in the midst of writing this book: which is an intense process, to say the least.

So it was with great anticipation that Alex and I received the Two Peas and Their Pod Cookbook: and it’s even more beautiful and drool-worthy than we imagined! The subtitle is “Everyday recipes from our family kitchen” and that’s exactly what I think of when I think of Maria and her sweet family. It’s full of fresh, beautiful photography and recipes that we can assure you will be family favorites in no time! Exactly like this pesto mac and cheese…

Pesto mac and cheese

Making pesto mac and cheese

This pesto mac and cheese was a huge hit in this house: our son Larson literally could not stop eating it. “Mac and cheese!” he would yell and try to get it out of the refrigerator himself, which at age 2 is quite the feat. Suffice it to say, this one is a serious winner. The way the Havarti cheese melts into the creamiest sauce makes it our new favorite. (I thought Gouda mac and cheese was my ultimate…before that Spaghetti squash mac and cheese.) Here are the ingredients you’ll need for this pesto mac and cheese:

  • 12 ounces elbow macaroni or other short pasta: we used gigli pasta (more on that below)
  • Butter
  • All-purpose flour
  • Milk
  • Shredded Havarti or mozzarella cheese (8 ounces)
  • Basil Pesto 

The only part that requires some technique is making a roux. What’s a roux? A “roux” is flour and butter cooked together and used to thicken sauces. It’s usually made from equal parts of flour and butter. You’ll cook the butter and flour together until they start to turn light brown, then add milk and cheese to the sauce. This is pretty standard for most mac and cheese recipes: it’s what makes the creamy sauce!

How to make it a meal? Serve it with a green salad or steamed broccoli! Head to 10 Best Sides to Serve with Mac and Cheese for our favorite recipes.

Pesto mac and cheese

What is gigli pasta?

We used gigli pasta for this pesto mac and cheese because we love using unique pasta shapes. What is it? Gigli is a short pasta shape with a fluted edge that is rolled into a cone shape or flower. This unique type of pasta is also known as campanelle and is best when served with thick sauces. Which, makes it perfect for mac and cheese! A few other of our pasta dinner ideas that work with gigli pasta:

It’s worth finding a fun pasta shape like gigli for this pesto mac and cheese: just for the novelty! But any short pasta shape will work, including:

  • Macaroni (obviously!)
  • Shells
  • Farfalle
  • Fusilli
  • Penne
  • Rigatoni
Basil pesto

Making homemade pesto

If it’s the season for basil and you’ve got a plant, making homemade pesto makes this mac and cheese even more terrific. Of course if it’s not, you can use purchased pesto: here’s one of our favorite brands.

If you decide to make your own, we have lots of great pesto recipes. Our Best Basil Pesto is the classic, made with pinenuts, basil and Parmesan, But you can use lots of types of nuts in pesto: try our Cashew Pesto with Basil or Walnut Pesto with Basil. By the way, we also have a few vegan pesto recipes: Vegan Cashew Pesto and Easy Vegan Pesto. But we assume if you’re making mac and cheese, you’re not eating vegan at the moment!

Love pesto? Check out our best recipes with pesto.

Pesto mac and cheese

This pesto mac and cheese recipe is…

Vegetarian. For gluten-free, use gluten-free pasta.

Save this recipe!
Get this sent to your inbox, plus get new recipes from us every week!
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Pesto mac and cheese

Pesto Mac and Cheese

5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

  • Author: Sonja Overhiser
  • Prep Time: 5 minutes
  • Cook Time: 15 minutes
  • Total Time: 20 minutes
  • Yield: 6
Save Recipe


A swirl of basil pesto brings so much flavor to this classic comfort food! This pesto mac and cheese features Havarti cheese for ultra creaminess.


  •  Kosher salt and freshly ground black pepper
  •  12 ounces elbow macaroni or other short pasta shape (we used gigli pasta)
  •  4 tablespoons unsalted butter
  •  ¼ cup all-purpose flour
  •  2 cups 2% milk at room temperature
  •  2 cups shredded Havarti or mozzarella cheese (8 ounces)
  •  3 tablespoons Basil Pesto or store bought basil pesto


  1. Bring a large pot of salted water to a boil. Add the pasta and cook just until al dente, about 8 minutes. Drain the pasta and set aside.
  2. In a large pot, melt the butter over medium heat. Reduce the heat to low and whisk in the flour to create a paste. Add the milk and whisk until smooth. Increase the heat to medium and continue whisking until the sauce starts to thicken, about 2 minutes. Stir in the shredded cheese and continue stirring until the cheese is melted and the sauce is smooth. Fold in the pesto.
  3. Add the pasta, stirring to combine, and cook just until the pasta is warmed through. Season with salt and pepper to taste. Serve immediately.


Reprinted with permission from Two Peas and Their Pod Cookbook by Maria Lichty

  • Category: Main Dish
  • Method: Stovetop
  • Cuisine: American

About the authors

Sonja & Alex

Hi, we’re Alex and Sonja Overhiser, married cookbook authors, food bloggers, and recipe developers. We founded A Couple Cooks to share fresh, seasonal recipes and the joy of cooking! Our recipes are made by two real people and work every time.

Leave a Comment

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star


  1. Anonymous says:

    Why did it turn grey when I added pesto to cheese sauce?

    1. Sonja Overhiser says:

      Hmm that’s interesting, we’ve never had that happen before! What brand of pesto were you using? Or what it homemade?

  2. Sarah says:

    Made this yesterday and it was delicious!

  3. Maria says:

    Thanks SO much for sharing! I am thrilled you loved the mac and cheese! I wish we could get our boys together for a mac and cheese play date:) I appreciate your support! xo

  4. Kathleen Henry says:

    Pesto and Mac and Cheese together?? This is brilliant!

  5. Terry Covington says:

    This looks great! I have used Havarti for grilled cheese sandwiches, never thought to put it in mac and cheese, but it’s one of those perfect melting cheeses. I think its unusual and mild flavor would also be the perfect pair with the pesto. Thanks for sharing this great new recipe from Maria’s new cookbook!