Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Au Gratin Mac and Cheese Recipe

· 7 min read · Home Tech

In this article
  1. Ingredients and Yield
  2. Cooking the Pasta
  3. Making the Roux
  4. Building the Sauce
  5. Incorporating the Cheese
  6. Combining Pasta and Sauce
  7. Preparing the Baking Dish
  8. Adding the Topping
  9. Baking the Casserole
  10. Checking Doneness and Texture
  11. Safety and Storage
  12. Variations and Substitutions
  13. Flavor Enhancements
  14. Measuring and Scaling Tips
  15. Common Mistakes and How to Fix Them

Au gratin mac and cheese is a baked casserole that combines cooked elbow macaroni with a rich cheese sauce, topped with breadcrumbs and baked until golden and bubbly.

Ingredients and Yield

For a standard 4‑serving batch you need 8 ounces (225 g) elbow macaroni, 2 cups (480 ml) whole milk, 2 tablespoons (30 g) unsalted butter, 2 tablespoons (15 g) all‑purpose flour, 2 cups (200 g) shredded sharp cheddar cheese, 1 cup (100 g) shredded Gruyère cheese, ½ cup (50 g) grated Parmesan cheese, 1 teaspoon (5 g) dry mustard powder, ¼ teaspoon (1 g) paprika, ½ teaspoon salt, ¼ teaspoon freshly ground black pepper, and ¾ cup (50 g) panko breadcrumbs for the topping. If you prefer a larger dish, double every ingredient and use a 9 × 13‑inch (23 × 33 cm) baking dish; the baking time stays the same because the depth of the casserole does not change dramatically.

Cooking the Pasta

Bring a large pot of water to a rolling boil, add 1 tablespoon salt, then add the macaroni. Cook for exactly 7 minutes, then test a piece; it should be firm to the bite but no longer crunchy (al dente). Drain the pasta in a colander and rinse briefly with cool water to stop the cooking process; this also removes excess starch that can make the sauce gummy. Set the drained pasta aside while you prepare the sauce.

Making the Roux

In a heavy‑bottomed saucepan melt the butter over medium heat. When the butter foams, sprinkle the flour over it and whisk continuously for 1 minute; this cooks out the raw flour taste and creates a blond roux. The roux should turn a light golden color but never brown, because browning changes the flavor profile and can make the sauce taste nutty rather than creamy.

Building the Sauce

Gradually pour the milk into the roux while whisking vigorously to prevent lumps. Continue whisking as the mixture thickens; after about 4 minutes it will coat the back of a spoon and leave a distinct line when you run your finger through it. At this point the sauce should be smooth and glossy. Remove the pan from the heat and stir in the dry mustard, paprika, salt, and pepper. The mustard adds a subtle tang that balances the richness of the cheese.

Incorporating the Cheese

Add the shredded cheeses in three batches, stirring each batch until fully melted and incorporated before adding the next. Start with the cheddar, then the Gruyère, and finish with the Parmesan. The total cheese weight is about 350 g; the mixture should become thick and velvety. If the sauce looks too thick, whisk in an extra ¼ cup (60 ml) of milk; if it looks too thin, let it simmer gently for another minute, but do not let it boil, as boiling can cause the cheese to separate.

Combining Pasta and Sauce

Transfer the cooked macaroni to a large mixing bowl, pour the cheese sauce over it, and stir until every piece is evenly coated. The pasta should be fully submerged in a creamy coating; there should be no dry spots. Taste a small spoonful; it should be seasoned but not overly salty, because the Parmesan and added salt already contribute flavor.

Preparing the Baking Dish

Grease a 9‑inch (23 cm) baking dish with a thin layer of butter or cooking spray. Spoon the macaroni‑cheese mixture into the dish, spreading it into an even layer about 1‑inch (2.5 cm) deep. The even depth ensures uniform baking and prevents edges from drying out while the center stays undercooked.

Adding the Topping

In a small bowl combine the panko breadcrumbs with 1 tablespoon melted butter; toss until the crumbs are lightly coated. Sprinkle the buttered breadcrumbs evenly over the surface of the casserole. The butter helps the crumbs brown evenly and adds a nutty aroma. For extra flavor, you may add 1 teaspoon (2 g) of dried thyme or a pinch of cayenne pepper to the breadcrumb mixture.

Baking the Casserole

Place the dish in a preheated oven set to 375°F (190°C). Bake for 20‑25 minutes, checking at the 20‑minute mark. The casserole is done when the topping is golden brown and the sauce is bubbling around the edges. Use an instant‑read thermometer to verify that the interior reaches at least 160°F (71°C); this is the USDA safe temperature for dishes containing dairy and eggs. If the top browns too quickly, cover the dish loosely with aluminum foil for the remaining time.

Checking Doneness and Texture

After baking, let the casserole rest for 5 minutes; this allows the sauce to set slightly, making it easier to cut clean portions. Cut a piece and examine the interior: the sauce should be thick but still creamy, not watery or grainy. The pasta should be tender but retain a slight bite; overcooked pasta becomes mushy and can fall apart when served.

Safety and Storage

Cool any leftovers to room temperature within 2 hours of removing the dish from the oven. Transfer the cooled casserole to an airtight container and refrigerate; it will keep safely for up to 3 days. When reheating, place a portion in a microwave‑safe dish and heat until the internal temperature reaches 165°F (74°C), as measured with a food thermometer. Alternatively, reheat in a 350°F (175°C) oven for 15‑20 minutes, covered with foil to prevent the topping from burning.

Raw milk, eggs, or flour are not used in this recipe, but if you substitute raw ingredients, follow USDA guidance: raw eggs must be cooked to 160°F (71°C), and raw flour should be toasted in a dry pan for 5 minutes before use to kill any potential pathogens. Garlic or herb oils used in variations should be stored in the refrigerator and consumed within 4 days to avoid botulism risk.

Variations and Substitutions

If you are lactose intolerant, replace the milk with 1 ½ cups (360 ml) lactose‑free milk and use dairy‑free shredded cheese blends that melt well; expect a slightly thinner sauce, so add an extra 1 tablespoon (8 g) of flour to the roux. For a gluten‑free version, substitute the all‑purpose flour with 2 tablespoons (15 g) gluten‑free rice flour and use gluten‑free elbow macaroni; the cooking time for the pasta remains 7 minutes.

You can also change the cheese profile: use 1 cup (100 g) shredded mozzarella for a stretchier top layer, or add ½ cup (50 g) crumbled blue cheese for a bold flavor contrast. Each cheese contributes a different melt point; blending a high‑moisture cheese (mozzarella) with a low‑moisture cheese (Parmesan) creates a balance of stretch and crispness.

Flavor Enhancements

For a subtle smoky note, stir in ½ teaspoon (2 g) smoked paprika with the regular paprika. If you enjoy a hint of heat, add a pinch of cayenne pepper to the breadcrumb topping. Fresh herbs such as chopped parsley or chives can be sprinkled over the finished dish just before serving; about 1 tablespoon (3 g) of fresh herbs adds color and a fresh finish without overwhelming the cheese.

Measuring and Scaling Tips

When scaling the recipe up or down, keep the ratios of liquid to cheese consistent. For every additional 8 ounces (225 g) of pasta, add 1 cup (240 ml) of milk, 1 tablespoon (15 g) butter, and 1 tablespoon (8 g) flour to the roux, and increase the cheese blend by roughly ½ cup (50 g) total. Use a kitchen scale for the most accurate results, especially for cheese and flour, because volume measurements can vary by brand and packing density.

Common Mistakes and How to Fix Them

If the sauce becomes lumpy, whisk vigorously while slowly adding the milk and continue cooking for another minute; a small immersion blender can also smooth out lumps. If the sauce separates and looks grainy, remove it from heat and stir in a splash of cold milk; the sudden temperature change can help re‑emulsify the sauce. Over‑browned breadcrumbs can be prevented by covering the dish with foil for the first 15 minutes of baking, then removing the foil to finish browning.

If the casserole looks dry after baking, it may have baked too long or the oven ran hot; next time reduce the oven temperature by 10°F (5°C) and check after 15 minutes. If the top does not brown enough, switch the oven to broil for 1‑2 minutes, watching closely to avoid burning.