Who Invented Macaroni and Cheese? History & Recipe

Updated November 22, 2026

Total time
55 min
prep 20 min · cook 35 min
Serves
8
portions as written

Jump to recipe

Macaroni and cheese is a beloved comfort food of pasta tossed in a creamy cheese sauce, baked or served stovetop. While its exact origins are disputed, the dish as we know it today evolved from Italian and French culinary traditions, and it was popularized in America by Thomas Jefferson, who served a version at the White House in 1802. This recipe delivers a classic, velvety baked mac and cheese with a golden, crispy topping—simple to make and deeply satisfying.

Ingredients

  • 1 lb (450 g) elbow macaroni (or similar short pasta)
  • 4 tbsp (56 g) unsalted butter, plus more for greasing
  • 1/4 cup (30 g) all-purpose flour
  • 3 cups (710 ml) whole milk, warmed
  • 1 tsp (5 g) salt
  • 1/2 tsp (1 g) black pepper
  • 1/2 tsp (1 g) paprika (optional)
  • 3 cups (340 g) sharp cheddar cheese, shredded (about 12 oz)
  • 1 cup (100 g) Gruyère or Monterey Jack cheese, shredded (about 4 oz)
  • 1/2 cup (45 g) panko breadcrumbs (optional, for topping)
  • 2 tbsp (28 g) butter, melted (if using breadcrumbs)

Instructions

  1. Preheat your oven to 375°F (190°C). Grease a 9×13-inch (23×33 cm) baking dish with butter.
  2. Bring a large pot of salted water to a boil. Cook the macaroni according to package directions until al dente (about 7–8 minutes). Drain and set aside.
  3. In a large saucepan over medium heat, melt the 4 tablespoons (56 g) of butter. Whisk in the flour and cook, stirring constantly, for 1–2 minutes until the mixture is bubbly and lightly golden (this is a roux).
  4. Gradually whisk in the warm milk, a little at a time, until smooth. Continue cooking, stirring frequently, until the sauce thickens and coats the back of a spoon, about 5–7 minutes.
  5. Reduce heat to low. Add the salt, pepper, and paprika (if using). Stir in the shredded cheddar and Gruyère (or Monterey Jack) a handful at a time, stirring until each addition is melted and the sauce is smooth. Do not let it boil.
  6. Add the cooked macaroni to the cheese sauce and stir until well coated. Pour the mixture into the prepared baking dish.
  7. If using breadcrumbs, mix the panko with the 2 tablespoons (28 g) of melted butter and sprinkle over the top.
  8. Bake for 20–25 minutes, until the top is golden and the edges are bubbly. Let rest for 5 minutes before serving.

Tips

  • Use good melting cheese: Cheddar, Gruyère, and Monterey Jack melt smoothly. Avoid pre-shredded cheese, as it contains anti-caking agents that can make the sauce grainy.
  • Don’t overcook the pasta: Cook it al dente because it will continue to cook in the oven. Overcooked pasta becomes mushy.
  • Warm the milk: Adding cold milk to a hot roux can cause lumps. Warm the milk in the microwave or a small pot before whisking it in.
  • Make it ahead: You can assemble the mac and cheese (without breadcrumbs) a day ahead, cover, and refrigerate. Add the breadcrumbs just before baking; you may need to add 10–15 minutes to the baking time.

Serving Suggestions

Serve this macaroni and cheese as a main dish with a crisp green salad and roasted vegetables, or as a hearty side alongside grilled chicken, meatloaf, or barbecue ribs. It’s also a classic holiday side that pairs well with ham or turkey.

Variations

  • Add protein: Stir in cooked bacon, diced ham, or shredded chicken before baking.
  • Spice it up: Add a pinch of cayenne pepper, a dash of hot sauce, or some diced jalapeños to the cheese sauce.
  • Try different cheeses: Swap the Gruyère for smoked gouda, fontina, or pepper jack for a different flavor.
  • Make it gluten-free: Use gluten-free pasta and a gluten-free flour blend for the roux. Check that your breadcrumbs are gluten-free too.
  • Add vegetables: Fold in steamed broccoli, peas, or sautéed mushrooms for a more substantial dish.

Storage and Reheating

Refrigerate leftovers in an airtight container within 2 hours of cooking. It will keep for 3–4 days. To reheat, place individual portions in the microwave for 1–2 minutes, or reheat the whole dish in a 350°F (175°C) oven for 15–20 minutes, until hot and bubbly. If the mac seems dry, add a splash of milk before reheating. You can also freeze the baked mac and cheese for up to 3 months; thaw overnight in the fridge before reheating.

Frequently Asked Questions

Who actually invented macaroni and cheese? The exact inventor is unknown. The first recorded recipe for a baked pasta and cheese dish appears in a 14th-century Italian cookbook, but the dish gained popularity in America through Thomas Jefferson, who served it at the White House in 1802 after encountering it in France. Jefferson’s enslaved chef James Hemings is often credited with introducing it to the U.S. after training in French cuisine.

Why is my cheese sauce grainy? Graininess usually comes from using pre-shredded cheese (which contains anti-caking agents) or overheating the sauce. Always shred your own cheese and keep the heat low when melting it. Also, avoid letting the sauce boil after adding cheese.

Can I make macaroni and cheese without an oven? Yes! Prepare the pasta and cheese sauce as directed, then serve immediately as a stovetop version. It won’t have the crispy topping, but it’s just as creamy and delicious.

What’s the best cheese for macaroni and cheese? Sharp cheddar is classic for its flavor, but combining it with a melting cheese like Gruyère, fontina, or Monterey Jack creates a smoother, more luxurious sauce. Avoid cheeses that don’t melt well, like feta or goat cheese, unless you’re using them as a flavor accent.

Can I use a different pasta shape? Absolutely. Any short pasta works well—shells, cavatappi, fusilli, or penne. Just adjust the cooking time to the package directions and aim for al dente.

Is it safe to reheat macaroni and cheese? Yes, as long as it was refrigerated within 2 hours of cooking and consumed within 3–4 days. Reheat leftovers to an internal temperature of 165°F (74°C) to ensure safety.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).