Curious Minds

Clear answers to science and history questions

Who Invented Mac and Cheese? History and Origins Explained

· 7 min read · History

Macaroni and cheese was not invented by a single person but evolved over centuries, with early forms appearing in medieval Europe and the dish taking its modern shape in 18th-century America through the influence of Thomas Jefferson and his enslaved chef James Hemings.

Background

The origins of macaroni and cheese trace back to pasta dishes in Italy and cheese-based casseroles in England. Medieval cookbooks from the 13th century, such as the Liber de Coquina, include recipes for pasta with grated cheese and butter. By the 14th century, the Forme of Cury, an English culinary manuscript, described a dish called 'makerouns' — sheets of pasta layered with melted butter and cheese. These early versions were baked or boiled and served as savory pies or puddings.

In the 18th century, pasta became more accessible in Europe due to advancements in extrusion technology, particularly in Naples. English travelers brought back recipes for 'macaroni' dishes, which were often prepared with cheddar or Parmesan. The dish gained popularity among the British upper class as a fashionable Italian-inspired food.

How It Works

Macaroni and cheese combines cooked pasta with a cheese sauce, typically made by creating a roux of butter and flour, adding milk to form a béchamel, then melting in cheese such as cheddar, Gruyère, or American. The starch from the pasta helps thicken the sauce, while the fat and proteins in the cheese create emulsification when heated gently. Baking the dish allows the top to brown via the Maillard reaction, adding texture and flavor complexity.

The key to a smooth sauce is temperature control: overheating causes cheese proteins to seize and separate, resulting in a grainy texture. Using cheeses with good melting properties — like young cheddar, Monterey Jack, or fontina — and adding acid (such as a touch of mustard or paprika) can improve stability. Some recipes include egg yolks to bind the custard-like base, especially in baked versions.

How to Choose

When selecting ingredients for homemade macaroni and cheese, consider the pasta shape, cheese blend, and sauce base. Elbows, shells, or cavatappi are ideal because their curves and ridges hold sauce well. Avoid overcooking pasta; it should be al dente, as it continues to absorb liquid during baking.

For cheese, use a combination for depth: a sharp cheddar for tang, a melty cheese like Gruyère or Fontina for smoothness, and a Parmesan rind simmered in the milk for umami. Pre-shredded cheese often contains anti-caking agents like cellulose that can hinder melting, so grating your own is recommended. Whole milk or a mix of milk and cream provides richness without making the sauce greasy.

  • Pasta: 8 oz elbow macaroni per 2 cups sauce
  • Butter: 3 tbsp for roux
  • Flour: 3 tbsp for roux
  • Milk: 2 cups whole milk, warmed
  • Cheese: 2 cups shredded sharp cheddar, 1 cup Gruyère
  • Optional: 1 tsp Dijon mustard, pinch of nutmeg, breadcrumb topping

Common Problems

One frequent issue is a broken or grainy sauce, caused by overheating the cheese or using low-moisture, aged cheddar that doesn’t emulsify well. To fix this, remove the sauce from heat before adding cheese, and stir in gradually off the burner. Another problem is dryness after baking, which occurs when too much liquid evaporates or the pasta absorbs excess sauce. This can be prevented by slightly undercooking the pasta and ensuring the sauce is loose before combining.

A bland flavor often results from under-seasoning or using mild cheese. Always season the pasta water generously, and taste the sauce before combining — it should be slightly oversalted, as the pasta will dilute it. Adding a dash of hot sauce, smoked paprika, or black pepper enhances depth. If the top burns before the center is hot, tent the dish with foil and bake at a lower temperature (325°F) for longer.

Comparisons

Stovetop macaroni and cheese is creamier and quicker, ideal for weeknight meals, while baked versions develop a crust and firmer texture, making them better for gatherings. Boxed mixes use powdered cheese and sodium phosphate to create a stable, meltable sauce at low cost, but they lack the complexity of real cheese and often contain preservatives and artificial colors.

Compared to other pasta bakes like lasagna or baked ziti, macaroni and cheese is simpler, relying on starch-thickened sauce rather than ricotta or meat layers. It is also more adaptable — easy to scale up or down, and forgiving of ingredient substitutions. Unlike risotto, which requires constant stirring, macaroni and cheese can be assembled and baked with minimal active time.

Costs

Homemade macaroni and cheese using real ingredients typically costs between $1.50 and $2.50 per serving, depending on cheese quality and regional prices. A boxed mix averages $0.50 to $0.75 per serving but offers less nutritional value and flavor depth. Buying cheese in block form and grating it yourself is more economical than pre-shredded, and pasta is one of the most affordable staples.

For a family of four, a homemade version with sharp cheddar, Gruyère, and elbow macaroni costs roughly $8–$12 total, while a premium boxed four-pack might cost $6–$8 but contains more sodium and additives. Leftovers reheat well, making it a cost-effective meal for meal prep.

Safety

Cooked macaroni and cheese should not be left at room temperature for more than two hours, or one hour if the ambient temperature is above 90°F, to prevent bacterial growth. Store leftovers in shallow containers in the refrigerator at 40°F or below and consume within three to four days. When reheating, ensure the internal temperature reaches 165°F to kill potential pathogens.

Freezing is safe for up to two months; thaw overnight in the refrigerator before reheating. Avoid reheating more than once, as repeated temperature cycling increases food safety risks and degrades texture. If the dish develops an off smell, slimy texture, or mold, discard it immediately.

Alternatives

For those avoiding dairy, vegan versions use nutritional yeast, cashew cream, or blended steamed vegetables like carrots and potatoes with plant-based milk and thickeners such as tapioca starch or agar-agar. Brands like Daiya and Violife offer shreds designed to melt, though they may not replicate the stretch of dairy cheese.

Gluten-free pasta made from rice, corn, or legumes works well, though it may absorb more sauce and become mushy if overcooked. Adding xanthan gum to the sauce can help compensate for the lack of gluten in thickening. For lower-carb options, cauliflower florets can replace pasta entirely, baked with a cheese sauce to create a low-starch alternative.

Frequently Asked Questions

Did Thomas Jefferson invent macaroni and cheese?

No, Thomas Jefferson did not invent macaroni and cheese, but he helped popularize it in the United States. He encountered pasta dishes in Europe and brought back a pasta machine. His enslaved chef, James Hemings, trained in French cuisine, likely prepared macaroni and cheese at Monticello, contributing to its early American presence.

Is macaroni and cheese really Italian?

While pasta originated in Italy, the specific combination of macaroni and melted cheese as a baked casserole is not traditional Italian cuisine. Italians typically serve pasta with cheese grated on top, not mixed into a sauce. The dish as known in America is an Anglo-American adaptation with roots in Northern European pasta bakes.

Why is orange cheese used in mac and cheese?

The orange color in many macaroni and cheese dishes comes from annatto, a natural food coloring added to cheeses like cheddar and American. It does not affect flavor but creates the familiar orange hue associated with the dish, especially in processed versions. White cheddar makes a perfectly valid, though less traditionally colored, mac and cheese.

Can I make mac and cheese without flour?

Yes, you can make a flourless version by using a slurry of cornstarch or arrowroot mixed with cold milk, or by relying on the starch from the pasta and the natural thickening of reduced cream. Some recipes use evaporated milk or cream cheese as a base to avoid a roux entirely, resulting in a richer, gluten-free sauce.

What’s the best cheese for mac and cheese?

There is no single 'best' cheese, but a blend works best. Sharp cheddar provides flavor, while Gruyère, Fontina, or Monterey Jack offer meltability. A small amount of Parmesan adds umami. Avoid very dry, aged cheeses like Parmigiano-Reggiano as the main cheese, as they can make the sauce grainy unless combined with melty varieties.

Is it safe to eat mac and cheese left out overnight?

No, macaroni and cheese left out at room temperature for more than two hours should not be consumed due to the risk of bacterial growth, including Staphylococcus aureus and Bacillus cereus, which can produce heat-resistant toxins. When in doubt, throw it out.

In this article
  1. Background
  2. How It Works
  3. How to Choose
  4. Common Problems
  5. Comparisons
  6. Costs
  7. Safety
  8. Alternatives
  9. Frequently Asked Questions