Classic Homemade Mac and Cheese Recipe - Creamy & Delicious

On 2/14/2026, 9:12:08 AM

Learn how to make classic homemade mac and cheese from scratch. Rich creamy cheese sauce, crispy golden topping, easy steps for perfect comfort food.

Table of Contents

This homemade mac and cheese recipe covers everything from ingredient selection to baking. Use freshly grated cheese for smooth melting. Build a béchamel sauce with butter, flour, and milk. Add cheese off heat to prevent graininess. Undercook pasta slightly before baking at 350-375°F for 25-35 minutes with a crispy panko topping.

Question

Answer

Why should I grate my own cheese?

Pre-shredded cheese contains anti-caking agents that prevent smooth melting and create grainy sauce.

How do I prevent grainy cheese sauce?

Remove the pot from heat before adding cheese to prevent separation and graininess.

How long should I cook the pasta before baking?

Cook pasta 3-4 minutes less than al dente since it continues cooking in the oven.

What temperature should I bake mac and cheese?

Bake at 350°F to 375°F for 25-35 minutes until bubbly and golden on top.

How long does leftover mac and cheese last?

Store in airtight containers up to 4 days in the fridge or freeze up to 2 months.

Gather your ingredients for the best homemade mac and cheese

Classic homemade mac and cheese starts with quality ingredients. Skip the boxed stuff. Real cheese and fresh pasta make all the difference.

Pasta and Base Ingredients

Pasta

1 lb elbow macaroni or cavatappi

Butter

¾ cup unsalted butter

Flour

6 tbsp all-purpose flour

Milk

5 cups whole milk

Cheese Selection

The cheese makes or breaks your dish. Use freshly grated cheese for smooth melting. Pre-shredded bags contain anti-caking agents that create grainy sauce.

  • Sharp cheddar - 1.5 lbs, main flavor driver
  • Gruyère - 1 cup, adds nutty depth
  • Parmesan - ½ cup, for topping

Seasonings and Topping

Salt

¾ tsp

Black pepper

¼ tsp

Dry mustard

1 tsp

Paprika

½ tsp

Panko breadcrumbs

1 cup

Dry mustard amplifies cheese flavor without tasting like mustard. Paprika adds color and mild smokiness.

For a Southern-style variation, swap some milk for evaporated milk. This creates extra richness and a silkier texture.

Build a rich creamy cheese sauce from scratch

The secret to perfect mac and cheese sauce lies in the béchamel base. A proper roux creates silky smooth results every time.

Make the Roux

Melt butter in a large pot over medium heat. Whisk in flour and cook for 1-2 minutes. The mixture should bubble but not brown. This cooks out the raw flour taste.

Butter

¾ cup

Flour

6 tbsp

Cook time

1-2 minutes

Add Milk Slowly

Pour milk in gradually while whisking constantly. This prevents lumps. Keep whisking until the sauce thickens enough to coat the back of a spoon.

  • Add milk in 4-5 batches
  • Whisk between each addition
  • Sauce should coat a spoon when ready
  • Remove from heat before adding cheese

Melt the Cheese

Take the pot off the heat. Add shredded cheese in handfuls. Stir until completely melted before adding more. Adding cheese off the heat prevents grainy separated sauce.

Season with salt, pepper, and dry mustard. Taste and adjust. The sauce should taste slightly salty since pasta dilutes flavor.

For extra richness, stir in cream cheese or a splash of heavy cream. This trick works great for quick stovetop versions too.

Bake until golden and bubbly for the perfect finish

Combine drained pasta with cheese sauce. Transfer to a buttered 9x13 baking dish. The pasta should swim in sauce since it absorbs liquid while baking.

Prepare the Crispy Topping

Mix panko breadcrumbs with melted butter and parmesan. Sprinkle evenly over the mac and cheese. This creates the signature crunchy crust.

Panko breadcrumbs

1 cup

Melted butter

3 tbsp

Parmesan

¼ cup

For a Ritz cracker topping, crush 1 cup crackers and mix with butter. Sweeter and butterier than panko.

Baking Temperature and Time

  • Temperature - 350°F to 375°F
  • Time - 25-35 minutes
  • Visual cue - Bubbly edges and golden top

Critical Pasta Tip

Cook pasta 3-4 minutes less than al dente for baked mac and cheese. The pasta continues cooking in the oven. Overcooked pasta turns mushy.

Let the finished dish rest 5-10 minutes before serving. This makes portioning easier and prevents burning mouths on molten cheese.

For three-cheese baked mac or five-cheese versions, the baking process stays the same. Just adjust your cheese blend.

Expert tips to elevate your mac and cheese game

Small tweaks make the difference between good and unforgettable mac and cheese. These pro tips guarantee restaurant-quality results.

Always Grate Your Own Cheese

Pre-shredded cheese contains cellulose and anti-caking agents. These prevent smooth melting. Grate cheese fresh from blocks for velvety sauce.

  • Use box grater or food processor
  • Grate cheese while cold, easier to handle
  • Let cheese come to room temp before adding

Choose the Right Pasta Shape

Elbow macaroni

Classic choice, holds sauce well

Cavatappi

Corkscrew shape traps more cheese

Shells

Great for thick chunky sauces

Penne

Larger bites, works for grownup versions

Cavatappi pasta holds more sauce per bite than elbows. Try it for your next batch.

Fix Common Problems

  • Grainy sauce - Cheese got too hot. Add off heat next time.
  • Thin sauce - Cook roux longer. Add more cheese.
  • Dry baked mac - Start with more sauce. Pasta absorbs liquid.
  • Bland flavor - Add more salt. Cheese needs salt to shine.

Make Ahead and Storage

Crockpot mac and cheese works great for parties. Assemble ahead and cook on low 2-3 hours.

Store leftovers in airtight containers up to 4 days. Reheat with a splash of milk to restore creaminess. Freeze portions up to 2 months, though texture may change slightly.

For weeknight convenience, try 3-ingredient mac and cheese or 6-ingredient versions that skip the roux entirely.