Make homemade macaroni and cheese by boiling pasta, whisking a quick béchamel, melting in cheese, then serving creamy or baking to finish.
You came for a method that works every time and tastes like real comfort. This walkthrough gives you the base formula, the science behind a smooth sauce, and options for both stovetop and baked finishes. Skim the steps, then cook with confidence.
Core Steps For Creamy, Reliable Results
Think of mac and cheese as three parts: well-seasoned pasta, a silky béchamel (butter + flour + milk), and a blend of good melting cheeses. Salt the water, cook the macaroni to just shy of al dente, build the sauce, then marry pasta and sauce while they’re both hot.
Ingredient Ratios That Keep Texture On Point
Use this broad table early, then fine-tune to taste. It fits a classic family pan (serves 4–6).
| Ingredient | Amount/Ratio | Why It Works |
|---|---|---|
| Dry Elbow Macaroni | 12 oz (340 g) | Right pasta-to-sauce balance; short tubes hold sauce. |
| Water For Boiling | 3–4 quarts | Enough volume to keep pasta moving and cooking evenly. |
| Salt For Pasta Water | ~1% by weight | Seasons pasta within; adjust down if cheeses are salty. |
| Butter (For Roux) | 4 Tbsp (56 g) | Fat coats flour and brings dairy richness. |
| All-Purpose Flour | 4 Tbsp (32 g) | Thickens milk into a smooth béchamel base. |
| Whole Milk | 3 cups (710 ml) | Enough liquid for a pourable sauce that clings, not gloops. |
| Cheddar (Sharp), Grated | 8 oz (225 g) | Classic flavor; good melt when freshly grated. |
| Gruyère Or Fontina, Grated | 4 oz (115 g) | Boosts stretch and silkiness; rounds sharp cheddar. |
| Mustard Powder | 1/2 tsp | Wakes up cheese flavor without tasting “mustardy.” |
| Ground Nutmeg | Pinch | Traditional in béchamel; adds gentle warmth. |
| Black Pepper | To taste | Counterpoints richness. |
| Breadcrumb Topping (Baked) | 1 cup fresh + 2 Tbsp butter | Crunch over cream for a classic casserole finish. |
How Do You Cook Homemade Macaroni And Cheese? (Step-By-Step)
1) Boil The Pasta Right
Bring a large pot of water to a rolling boil. Salt the water to about one percent by weight. Add the macaroni and stir so it doesn’t stick. Cook to just shy of al dente, since the pasta will soften further when it meets hot sauce or bakes. Scoop out 1 cup of pasta water before draining.
2) Build A Silky Béchamel
Melt butter in a saucepan over medium heat. Whisk in flour and cook the roux for 2–3 minutes to lose raw flour taste without browning. Slowly pour in warm milk while whisking. Keep whisking until the sauce turns smooth and lightly thick, then season with salt, pepper, mustard powder, and a pinch of nutmeg.
3) Melt In Cheese Off The Heat
Take the pan off the burner. Add grated cheeses by the handful, whisking until melted and glossy before the next handful. Off-heat melting keeps the emulsion smooth and helps avoid greasy pools.
4) Combine And Finish
Fold the drained macaroni into the hot sauce. Splash in reserved pasta water if the mix looks tight. For a browned top, move the mixture to a buttered baking dish, top with buttered crumbs, and bake at 400°F (205°C) for 15–20 minutes until bubbling with a golden crust.
Cook Homemade Macaroni And Cheese On The Stovetop
Want dinner now? Keep it stovetop. Warm the sauced pasta for 1–2 minutes in the pot and serve. For extra cream, stir in a splash of evaporated milk or a spoon of cream cheese. Both add body without breaking the emulsion.
Cheese Choices That Melt Smooth
Freshly grated cheese melts better than pre-shredded bags with anti-caking starches. Sharp cheddar brings the classic bite; Gruyère, Fontina, and Monterey Jack boost meltability. Add a handful of Parmesan for savory depth, not as a base—it’s drier and can turn grainy if used alone.
What If My Sauce Turns Gritty Or Oily?
Grainy sauce often means cheese was heated too hard or added to a thin base. Oily pools point to over-hot sauce or very aged cheese with less moisture. The fix in both cases is gentle heat and the right base thickness before adding cheese.
Seasoning And Mix-In Ideas
Start simple: salt and black pepper. From there, try smoked paprika, cayenne, garlic powder, or a dash of hot sauce. Fold in cooked bacon crumbles, blanched broccoli, roasted mushrooms, or shredded rotisserie chicken. Keep add-ins dry so the sauce stays glossy.
Texture Control: Looser Or Richer
Looser, Creamier Sauce
Hold back a bit of flour in the roux, or thin with warm milk or pasta water at the end. Evaporated milk brings a creamier body with little risk of scorching.
Richer, Scoopable Casserole
Stick to the listed roux and milk, then bake with buttered crumbs. Rest the dish 5–10 minutes so slices hold together.
Common Pitfalls To Dodge
- Undersalted pasta water: The sauce can’t fix bland noodles later.
- Cheese added over high heat: Leads to split sauce and grease.
- Pre-shredded only: Anti-caking agents dull melt and flavor.
- Overcooked pasta: Turns mushy once sauced or baked.
Baked Vs. Stovetop: When To Choose Each
Pick Baked
Choose the oven when you want crunch and sliceable squares. Baked pasta is party-friendly and stays warm longer on a table. Breadcrumbs or crushed crackers add a crisp lid that contrasts the creamy base.
Pick Stovetop
Choose the pot when speed matters and you want a spoonable bowl.
Smart Shortcuts That Still Taste Homemade
- Evaporated milk trick: Swap part of the milk for evaporated milk to help the sauce stay glossy.
- Sodium citrate option: A pinch per cup of liquid locks in a smooth, diner-style melt if you like ultra-silky texture.
- One-pot method: Cook macaroni in minimal water, then add the dairy and cheese right in the pot for speed.
Safety, Storage, And Reheating
Cool leftovers in shallow containers and chill within two hours. Store in the refrigerator for three to four days. Reheat gently until steaming hot, stirring so the sauce regains its shine. Freeze baked portions if you like; thaw overnight for better texture.
How Do You Cook Homemade Macaroni And Cheese? In Real-World Kitchens
Ask home cooks that line and you’ll hear the same core beats repeated: well-salted water, a calm béchamel, cheese off the heat, and a final bake only if you crave crunch. That’s the backbone. Season, blend cheeses you love, and keep heat in check. If you ever type “how do you cook homemade macaroni and cheese?” into a search box, that base method solves nearly every version—from a fast weeknight bowl to a party-size casserole.
Quick Reference: Fixes, Swaps, And Add-Ins
Bookmark this table for later cooks. It sits near the end so you scroll past the core method first.
| Issue/Goal | Fix Or Swap | When To Use |
|---|---|---|
| Sauce looks thin | Simmer 1–2 minutes; add a small splash of evaporated milk | Right after cheese melts and before combining with pasta |
| Sauce split or oily | Whisk in warm milk off heat; add a tiny pinch of sodium citrate | When cheese was overheated or base was too thin |
| Grainy mouthfeel | Add more melted Jack/Fontina; keep heat low | When using very mature cheddar or lots of Parmesan |
| Gluten-free need | Use a 1:1 GF flour for roux or thicken with cornstarch slurry | When cooking for guests with wheat limits |
| Lactose concern | Pick aged hard cheeses; they’re naturally low in lactose | When mild lactose discomfort is a factor |
| Bolder flavor | Blend in smoked cheddar or a touch of blue | When serving adults who like a sharper edge |
| Crunch craving | Top with buttered panko; bake until golden | When turning the dish into a casserole |
| Extra veg | Fold in blanched broccoli or roasted cauliflower | When stretching the pan for more servings |
FAQ-Free Wrap-Up You Can Cook From
You now have a base that doesn’t fail: salt the water, whisk a calm béchamel, melt cheese off heat, and finish on the stove or in the oven. From there, make it yours with blends you love and add-ins your table will eat. If the question is “how do you cook homemade macaroni and cheese?”, the method above is the straight answer. Cook happy at home tonight.
Sources And Further Reading
Food allergies exist; dairy is among the major allergens. See the FDA food allergies page for guidance. For safe storage, see the USDA refrigeration guide.

