The Ultimate Cheese Sauce for Mac and Cheese

Learn how to make the tastiest, rich and creamy Cheese Sauce for Mac and Cheese with the easiest melt-and-mix method. Always smooth, never grainy, try this simple recipe and find out why everyone LOVES it!

Old Fashioned Baked Macaroni and Cheese with a spoon scooping some out.

I’m excited to share with you my go-to recipe for the ultimate cheese sauce, perfect for mac and cheese. Whether you’re making stovetop mac and cheese or pulling out a baking dish for old-fashioned baked macaroni and cheese, this creamy cheddar cheese sauce will take your elbow macaroni to the next level.

I’ll walk you through choosing the right cheeses for a flawless melt, and give you some simple yet effective tips for achieving that perfect consistency.

Say goodbye to grainy cheese sauces. With these tips and techniques, achieving a smooth, velvety texture is a breeze.

Cheddar Cheese Sauce for mac and cheese.

Here’s What You Need for the Homemade Mac and Cheese Sauce

Ultimate Cheese Sauce for Mac and Cheese Ingredients

Creating the perfect cheese sauce for your homemade mac and cheese starts with the right ingredients. Each plays a unique role in creating that creamy, indulgent texture and flavor.

  • Butter: Forms the base of the roux, giving richness and depth to the sauce.
  • All-purpose Flour: Thickens the sauce, ensuring a smooth and creamy consistency.
  • Whole Milk: The liquid base of the sauce, it provides creaminess and balances the flavors.
  • Sharp Cheddar Cheese: Adds a bold, tangy flavor that is essential to the classic mac and cheese taste.
  • Gruyere or Monterey Jack Cheese: Offers a creamy texture and a mild, nutty flavor.
  • Parmesan Cheese: Brings a salty, umami depth to the sauce.
  • Salt: Enhances the overall flavor profile of the sauce.
  • Onion Powder: Adds a subtle hint of onion without the texture of fresh onions.
  • Black Pepper: Provides a slight heat and complexity.
  • Paprika: Adds a hint of smokiness and color to the sauce.
  • Garlic Powder: Infuses a mild, savory undertone.
Ingredients for Cheese Sauce for mac and cheese.

Variations and Substitutions

There are several ways to tweak this recipe to suit your taste or to use what you have on hand.

  • Different Cheeses: Feel free to experiment with other types of cheese like blue cheese, pepper jack, smoked gouda, swiss, colby jack or mozzarella cheese.
  • Gluten-Free: Replace all-purpose flour with a gluten-free flour blend to make the sauce gluten-free.
  • Extra Creaminess: For a richer sauce, substitute some milk with heavy cream.
  • Spicy Kick: Add a half teaspoon of cayenne pepper, dry mustard or hot sauce for a bit of heat.
  • Herbs and Spices: Customize with herbs like thyme or oregano, or spices like mustard powder for additional flavors.
Baked Macaroni and Cheese ingredients

Grab these Tools

To make this cheese sauce, you’ll need a few basic kitchen tools.

  • Large Saucepan: For melting butter and combining all the ingredients.
  • Whisk: Essential for stirring and ensuring a smooth, lump-free sauce.
  • Measuring Cups and Spoons: For accurate measurement of ingredients.
  • Cheese Grater: If you’re using block cheese, you’ll need this to grate it.
  • Wooden Spoon: Useful for stirring the sauce as it thickens.
Combining sauce and cooked macaroni pasta.

How to Make the Ultimate Cheese Sauce for Mac and Cheese: An Easy Guide

Whipping up the Ultimate Cheese Sauce for Mac and Cheese is easier than you might think. Follow this guide for a foolproof, creamy, and delicious sauce that’s perfect for any pasta dish.

Melting and Mixing

Start by melting butter in a large saucepan over medium heat. Once melted, whisk in the all-purpose flour. This mixture, known as a roux, will thicken your sauce. Cook the roux for 1-2 minutes, stirring constantly to avoid any burning.

It will smell like shortbread cookies when it is done.

Adding milk to butter and flour mixture in saucepan.

Adding the Milk

Gradually pour in the whole milk, whisking continuously. This step is crucial to prevent lumps in your sauce. Keep stirring and cook until the mixture thickens to a smooth consistency.

Add the Cheese

Turn off the heat and start adding your cheeses. Add the sharp cheddar, Gruyere or Monterey Jack, and Parmesan cheese gradually. Stir each addition until the cheese is fully melted and incorporated. If needed, turn the heat to low to help melt the cheese, but be careful not to let it simmer or boil.

Adding cheddar cheese to sauce for macaroni and cheese.

Seasoning the Sauce

Finally, season your cheese sauce with salt, black pepper, paprika, and garlic powder. Adjust the seasoning to your taste, ensuring a rich and balanced flavor.

This simple yet delicious cheese sauce is now ready to be combined with your favorite pasta or used in various dishes! Enjoy the creamy, cheesy goodness.

Seasoning cheddar cheese sauce for macaroni and cheese.

Make Ahead and Storage

Making your cheese sauce ahead of time and storing it properly ensures it stays fresh and tasty for your delicious meals. Here’s how you can do it:

  • Advance Preparation: You can make the cheese sauce up to 2 days in advance. This helps the flavors meld and intensify.
  • Refrigeration: Store the sauce in an airtight container in the refrigerator. It will stay fresh for up to 5 days.
  • Freezing: If you want to keep it longer, the sauce can be frozen for up to 3 months. Be aware that freezing may slightly alter the texture.
  • Reheating: When ready to use, gently reheat the sauce on the stove over low heat. Stir constantly to prevent separation.
  • Thinning Out: If the sauce thickens upon cooling, thin it out with a little milk while reheating.
  • Avoiding Separation: To prevent the sauce from separating, avoid boiling when reheating. Gentle and gradual heating is key.
Transferring macaroni and cheese to casserole.

How to Serve This Ultimate Cheese Sauce for Mac and Cheese Recipe

Serving the Ultimate Cheese Sauce for Mac and Cheese is all about pairing it with the right base and adding your personal touch. Here are some delightful ways to bring this sauce to your table:

  • Classic Mac and Cheese: Combine the cheese sauce with 1 pound of cooked macaroni for the classic mac and cheese. Serve it hot, right out of the pot for the best taste.
  • Baked Pasta Dishes: Use this sauce in a baked pasta dish. Layer it with pasta, additional cheese, and your choice of protein or vegetables. Bake until bubbly and golden for a comforting meal.
  • Vegetable Topping: Drizzle the cheese sauce over steamed or roasted vegetables like broccoli, cauliflower, or Brussels sprouts for a cheesy twist.
  • Dipping Sauce: Serve it as a dipping sauce with breadsticks, soft pretzels, or crudites for a fun appetizer or snack.

Don’t miss my epic collection of ideas for what to serve with mac and cheese!

Adding bread crumbs on baked macaroni and cheese.

What Makes Mac and Cheese Sauce Grainy (and How to Prevent It)

Cheese sauces can become grainy or gritty due to several reasons, and understanding these can help prevent this common issue in your cooking. The main causes for a grainy cheese sauce include:

  1. High Heat: Heating cheese too quickly or at a high temperature causes the proteins in the cheese to tighten and squeeze out the fats and water, leading to separation. This results in a grainy texture as the proteins clump together.
  2. Incompatible Cheese Choice: Not all cheeses melt the same way. Hard, aged cheeses like Parmesan or sharp cheddars have less moisture and can become grainy when melted. For smoother sauces, it’s better to use young, high-moisture cheeses like American, young cheddar, or Gouda.
  3. Overcooking: The longer cheese is cooked, the more likely it is to become tough and grainy. Prolonged heat causes the proteins in the cheese to denature and lose their ability to hold moisture.
  4. Presence of Acidic Ingredients: Acidic ingredients like lemon juice, wine, or tomatoes can cause the proteins in cheese to seize up and become grainy, especially if added in excess or too early in the cooking process.
  5. Improper Emulsification: For a smooth cheese sauce, proper emulsification of the cheese with the base (like a roux or a mixture of milk and flour) is crucial. Continuous whisking and gentle heat encourage the cheese to blend smoothly with the other ingredients.
  6. Quality of Ingredients: Cheeses with additives or preservatives may not melt as well as natural cheeses. Similarly, using low-fat or non-dairy milk can affect the emulsification and result in a less smooth sauce.

To fix a grainy cheese sauce, you can remove it from the heat and allow it to cool slightly, then whisk it vigorously. Adding a small amount of cold milk or cream can help restore its smooth texture.

Whisking cheese sauce for mac and cheese.

4 Common Mistakes When Making the Ultimate Cheese Sauce for Mac and Cheese

Here are the most frequent mix-ups to avoid when making the Ultimate Cheese Sauce for Mac and Cheese:

  • Overheating the Sauce: Excessive heat can cause the cheese to separate and become grainy. I take the sauce off the heat before I sprinkle in the cheese. “Turn off the stove before you cheese, so you make sure it doesn’t seize!” (Say that out loud in a singsong voice, please.)
  • Adding Cheese Too Quickly: Dumping all the cheese in at once can lead to lumps. Gradually add cheese and stir until each batch is melted.
  • Neglecting the Roux: Not cooking the roux (butter and flour mixture) properly can affect the sauce’s thickness and flavor. Cook it for 1-2 minutes to remove the floury taste. It will smell like shortbread cookies when it’s ready to add liquid.
  • Seasoning Mistakes: Not seasoning the sauce properly can result in a bland flavor, but you also need to be sure to season your pasta cooking water adequately so that it doesn’t dilute the seasoning of the sauce. You also want to be sure to drain the macaroni noodles completely so that additional water doesn’t sneak in.

If you’re making baked mac and cheese, make sure you don’t leave it in the oven longer than it needs to be, which also causes it to overheat. See all my tips for that and get my favorite baked mac and cheese recipe here.

Stirring cheddar cheese sauce for maroni and cheese.

FAQs About the Ultimate Cheese Sauce for Mac and Cheese

Just skimming through? Here are some quick answers to the commonly-asked questions.

What is the best cheese to melt for mac and cheese?
The best cheeses for melting are those that are creamy and flavorful, like sharp cheddar, Gruyere, or Monterey Jack. Here’s my ultimate guide to the best cheese for baked macaroni and cheese. They melt smoothly and give a rich taste.

How can I keep my mac and cheese creamy?
To keep your mac and cheese creamy, avoid overcooking the cheese sauce and use a combination of cheeses known for their melting properties. Don’t be tempted to add too much macaroni, as it will absorb the sauce and dry it out.

How do you melt block cheese for mac and cheese?
Grate the block cheese first to ensure even melting. Melt it gradually into the sauce with the heat turned off (or on low heat), stirring constantly to avoid clumping.

How do you make mac and cheese sauce smoother?
For a smoother sauce, melt the cheese slowly over low heat and stir continuously. Ensure the roux is well-cooked and smooth before adding milk and cheese.

Why is my mac n cheese sauce grainy?
The sauce can turn grainy if the cheese is added too quickly, the heat is too high, or if pre-shredded cheese with anti-caking agents is used. Melt cheese slowly over low heat and use freshly grated cheese.

What to do if mac and cheese sauce is lumpy?
If the sauce is lumpy, try whisking it vigorously. If that doesn’t work, passing the sauce through a fine sieve can help remove lumps.

What cheeses are best combined for mac and cheese?
A combination of sharp cheddar for flavor, Gruyere or Monterey Jack for creaminess, and Parmesan for depth works well for mac and cheese.

What is the best pair for mac and cheese?
Mac and cheese pairs well with a variety of sides like a fresh green salad, steamed vegetables, crispy bacon, or garlic bread.

What’s the best milk for mac and cheese?
Whole milk is ideal for mac and cheese as it provides the right balance of fat and flavor for a creamy sauce.

Can I use pre-shredded cheese for mac and cheese?
While convenient, pre-shredded cheese often contains anti-caking agents that can affect the sauce’s texture. For best results, use freshly grated cheese.

Is it okay to add spices to mac and cheese sauce?
Absolutely! Spices like mustard powder, paprika, or a hint of cayenne can add a nice depth of flavor to your sauce.

How do I reheat mac and cheese without drying it out?
Reheat mac and cheese slowly on the stove, adding a splash of milk to keep it creamy. Stir continuously to avoid separation.

Can this cheese sauce be used for other dishes?
Yes, this versatile cheese sauce can be used in other dishes like nachos, vegetable gratins, or as a dip.

How can I make a gluten-free mac and cheese sauce?
For a gluten-free version, substitute all-purpose flour with a gluten-free flour blend in the roux.

Up Next in Mac and Cheese

Other Creamy Sauces You’ll Love

Old Fashioned Baked Macaroni and Cheese with a spoon scooping some out.

Cheese Sauce for Mac and Cheese (Impossibly Creamy!)

Prep Time 5 minutes
Cook Time 20 minutes
Servings 8
Keyword cheddar cheese sauce for macaroni and cheese, cheese sauce for mac and cheese, cheese sauce for macaroni and cheese, homemade mac and cheese sauce


  • ½ cup Butter
  • ½ cup All-purpose Flour
  • 5 cups Whole Milk
  • 3 cups Shredded Sharp Cheddar Cheese
  • 2 cups Shredded Gruyere or Monterey Jack Cheese (or more cheddar)
  • 1 cup Freshly Grated Parmesan Cheese
  • 1 ½ tsp Kosher salt plus more to taste
  • 1 tsp Onion Powder
  • ½ tsp Black Pepper
  • ½ tsp Paprika
  • ½ tsp Garlic Powder
  • 1 lb Macaroni cooked


  • Melt the butter over medium heat in a large saucepan.
  • Whisk in the flour and cook for 1-2 minutes, stirring constantly.
  • Gradually add the milk, whisking continuously to avoid lumps. Continue cooking until the mixture thickens.
  • Turn off the heat. Add the cheeses a small handful at a time, stirring until fully melted before adding the next handful. If needed, turn the heat on to low to finish melting the cheese, but avoid letting the sauce simmer or boil.
  • Season with salt, black pepper, paprika, and garlic powder. Mix well.
  • Stir in cooked macaroni and serve.


For the creamiest sauce, avoid turning the heat back on after adding cheese as it can cause the sauce to separate and become grainy.
Adjust salt to taste. If the sauce tastes bland, a secret ingredient is soy sauce. It adds salt and umami flavor.


Calories: 649kcalCarbohydrates: 16gProtein: 33gFat: 51gSaturated Fat: 30gPolyunsaturated Fat: 2gMonounsaturated Fat: 13gTrans Fat: 0.5gCholesterol: 155mgSodium: 1569mgPotassium: 339mgFiber: 1gSugar: 8gVitamin A: 1674IUVitamin C: 0.1mgCalcium: 1057mgIron: 1mg
Keyword cheddar cheese sauce for macaroni and cheese, cheese sauce for mac and cheese, cheese sauce for macaroni and cheese, homemade mac and cheese sauce

Last Updated on February 22, 2024 by Jennifer Pallian BSc, RD

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
1 month ago

5 stars
Mac and cheese is a weekly rotation in our house, and this cheese sauce recipe is a game-changer. Creamy and delicious!

1 month ago

5 stars
I’ll never buy store-bought cheese sauce again. This recipe is a keeper.

1 month ago

5 stars
I used this sauce for my mac and cheese, and it was the creamiest I’ve ever made. Thanks for sharing your tips!

Join the Foodess Tribe

Be the first to get new recipes and science-based cooking and baking tips straight to your inbox for free

Would love your thoughts, please comment.x