Skip to main content

Macaroni and Cheese from Scratch: A Complete Guide

| ~7 min read | Mac and Cheese

Sections
  1. What "From Scratch" Actually Means
  2. The Core Ingredients and Why They Matter
  3. Step-by-Step Method
  4. Common Problems and How to Fix Them
  5. Baked Versus Stovetop
  6. Storage, Reheating and Food Safety
  7. Frequently Asked Questions

Yes, macaroni and cheese from scratch is entirely doable at home, and it does not require a packet of powdered cheese sauce. At its core it is cooked pasta tossed with a sauce built from a fat, flour, milk and melted cheese, then baked or served straight from the pot. The whole dish comes together in about 30 to 40 minutes and uses ingredients most kitchens already have: butter, flour, milk, cheese, and a box of elbow macaroni.

What "From Scratch" Actually Means

Scratch macaroni and cheese means you make the cheese sauce yourself rather than reconstituting a boxed mix. The classic method is a béchamel: melt butter, whisk in an equal weight of flour, cook the raw-flour taste out, then stream in milk while whisking until the mixture thickens. Cheese goes in off the heat so it melts smoothly instead of breaking.

There is a second, older style sometimes called "custard" or "southern" macaroni and cheese, where cooked pasta is layered with grated cheese and a mixture of milk and eggs, then baked until set. Both are scratch methods; they just thicken differently. The béchamel version is faster and more foolproof, while the custard version gives a firmer, sliceable bake.

What scratch macaroni is not: a health food, a low-effort weeknight dump meal, or something that keeps indefinitely. It is rich, it is best eaten fresh, and leftovers need proper handling.

The Core Ingredients and Why They Matter

  • Pasta: Elbow macaroni is traditional, but any short shape works — penne, fusilli, cavatappi, shells. Use about 8 ounces (225 g) of dry pasta for a sauce built on 2 tablespoons each of butter and flour and 2 cups of milk; that ratio feeds four as a side or two to three as a main.
  • Fat and flour: Equal parts by volume, cooked together into a roux. This is what thickens the milk. Skipping the roux gives you a thin, watery sauce.
  • Milk: Whole milk gives the richest result. Lower-fat milk works but produces a thinner sauce; you can compensate with slightly more cheese or a touch more flour.
  • Cheese: A melting cheese plus a flavor cheese. Sharp cheddar is the standard, but it can turn grainy at high heat. Blending cheddar with a softer melting cheese — Gruyère, fontina, or a bit of American cheese — gives a smoother sauce.
  • Seasoning: Salt, pepper, a pinch of mustard powder or a dash of hot sauce. Mustard powder is a traditional addition that sharpens the cheese flavor without tasting like mustard.

Step-by-Step Method

  1. Bring a large pot of water to a boil and salt it generously — roughly 1 tablespoon of salt per gallon of water. Add the pasta and cook to just shy of al dente, about 1 minute less than the package directs, because it will continue cooking in the oven. Reserve about 1 cup of the starchy pasta water before draining.
  2. While the pasta cooks, melt 2 tablespoons of butter in a saucepan over medium heat. Whisk in 2 tablespoons of flour and cook, stirring, for about 1 to 2 minutes until the mixture smells nutty rather than raw.
  3. Pour in 2 cups of milk in a steady stream, whisking constantly to prevent lumps. Cook, whisking, until the sauce coats the back of a spoon, roughly 5 to 8 minutes. Season with salt, pepper and mustard powder.
  4. Pull the pan off the heat and stir in the grated cheese a handful at a time until melted. If the sauce looks too thick, loosen it with a splash of the reserved pasta water.
  5. Toss the drained pasta with the sauce. At this point you have stovetop macaroni and cheese and can serve it immediately.
  6. For a baked version, transfer to a buttered dish, top with buttered breadcrumbs or extra cheese, and bake at 350°F (175°C) for about 20 to 25 minutes until bubbly and browned at the edges.

If you are adding cooked meat, such as shredded cooked chicken or browned ground beef, it must already be fully cooked before it goes into the dish. Poultry must reach 165°F (74°C) and ground beef 160°F (71°C), checked with a food thermometer rather than by color.

Common Problems and How to Fix Them

  • Grainy or stringy sauce: Usually caused by too much heat. Add cheese off the heat, grate it yourself rather than using pre-shredded (which is coated in anti-caking starch), and avoid boiling once the cheese is in.
  • Lumps in the sauce: The milk went in too fast or the roux was not whisked smooth. Whisk vigorously; a stubborn lump can be pressed out with a whisk or strained.
  • Dry baked macaroni: Overbaking, or not enough sauce for the amount of pasta. Undercook the pasta slightly and keep the sauce a little looser than you think it needs to be.
  • Broken sauce after baking: High heat and long baking can split a cheese sauce. A custard-style bake with egg holds up better to longer oven time.
  • Bland flavor: Under-salted pasta water or too mild a cheese. Sharp cheddar, a little mustard powder and adequate salt make the difference.

Baked Versus Stovetop

Stovetop macaroni and cheese is faster, creamier and easier to control. Baked macaroni adds a browned crust and a firmer texture, which many people consider the defining feature of the dish. The trade-off is that baking dries the sauce slightly and can push a delicate cheese sauce toward breaking. A middle path: make the stovetop version, top with crumbs, and run it under the broiler for a few minutes rather than baking it through.

The custard style sits between the two. Eggs and milk are whisked together, poured over layered pasta and cheese, and baked until the custard sets. It is more forgiving of oven time but requires care: the egg mixture should be combined and baked promptly, and the finished dish should reach 160°F (71°C) internally for the egg to be safely set.

Storage, Reheating and Food Safety

Cool leftovers and refrigerate them within 2 hours of cooking (1 hour if the room is above 90°F). Keep the fridge at 40°F (4°C) or below. Most cooked macaroni and cheese keeps 3 to 4 days in the refrigerator. For longer storage, freeze portions at 0°F (-18°C); the texture suffers somewhat, so reheat gently.

Reheat leftovers to 165°F (74°C), whether in the microwave, on the stovetop with a splash of milk, or in the oven. Never thaw frozen macaroni on the counter; thaw it in the refrigerator, in cold water, or in the microwave. If you are making the dish ahead, assemble it, refrigerate promptly, and bake it within a day or two.

One safety note specific to this dish: any recipe containing raw egg, such as a custard-style bake, must be fully cooked before eating. Do not taste the raw custard mixture. Anyone at higher risk from raw or undercooked eggs — pregnant people, young children, older adults and people with weakened immune systems — should use pasteurized eggs if making a recipe where eggs are not fully cooked.

Frequently Asked Questions

Can I make macaroni and cheese without flour?

Yes. You can skip the roux and melt cheese directly into warmed milk or cream, but the sauce will be thinner and more prone to separating. Another option is to use evaporated milk, which thickens slightly on its own, or to rely on a custard-style bake where eggs do the thickening.

Why does my cheese sauce taste like flour?

The roux was not cooked long enough. Flour needs a minute or two of cooking in the fat to lose its raw taste before the milk goes in. If the finished sauce still tastes floury, a longer simmer will help, along with a little more salt and cheese.

What is the best cheese for macaroni and cheese?

Sharp cheddar is the classic choice, but it melts best when combined with a softer cheese such as Gruyère, fontina or a small amount of American cheese. Very aged cheeses can turn grainy, so blend them rather than using them alone.

Can I use pre-shredded cheese?

You can, but pre-shredded cheese is coated with starch to stop it clumping, and that starch can make the sauce grainy or thick. Grating a block of cheese yourself gives a noticeably smoother result.

How much pasta should I cook per person?

About 2 ounces (55 g) of dry pasta per person as a side dish, or 3 to 4 ounces (85 to 115 g) as a main. For a family-sized baked dish serving four to six, 8 to 12 ounces of dry pasta with a sauce built on 2 to 3 cups of milk is a reliable range.

Can I freeze macaroni and cheese?

Yes. Freeze it in portions at 0°F (-18°C), ideally before baking or after baking and cooling quickly. Thaw in the refrigerator and reheat to 165°F (74°C). The sauce may look slightly separated after freezing; stirring during reheating helps bring it back together.

Similar articles