How Long to Bake Macaroni and Cheese
| ~6 min read | Mac and Cheese
Sections
Bake macaroni and cheese at 375F (190C) for about 20 to 25 minutes if the pasta and sauce are already hot, or 30 to 35 minutes if you are starting from cold or assembling ahead. The real test is not the clock but the center: it should be bubbling at the edges and set enough that a spoon leaves a clean line, and the top should be golden where the cheese or crumbs sit.
The detail most people get wrong is that the bake time depends on whether the pasta is cooked and whether the sauce is warm. A casserole that goes into the oven cold, straight from the fridge, needs closer to 40 minutes and should be covered for part of it so the top does not scorch before the middle heats through. A stovetop batch spooned into a dish and topped with crumbs only needs enough oven time to melt and brown, not to cook the macaroni itself.
What Oven Temperature and Time Should You Use?
Most baked macaroni and cheese recipes settle on 350F to 375F (175C to 190C). Higher heat browns the top fast but can split a dairy sauce or leave the middle cool, and lower heat dries the pasta while it waits for the top to color. A middle setting of 375F (190C) is a good default because it heats the center quickly without burning a breadcrumb topping.
Use these times as a starting range, then judge by look and feel:
- Warm pasta and warm sauce, assembled and baked right away: 20 to 25 minutes at 375F (190C), until bubbling at the edges and golden on top.
- Cold assembled dish from the fridge: 35 to 40 minutes at 375F (190C), covered with foil for the first 20 minutes, then uncovered to brown.
- Large batch in a deep dish (3 quarts or more): add 5 to 10 minutes to the above, because a deep layer takes longer for heat to reach the center.
- Individual ramekins or a shallow gratin dish: 15 to 20 minutes at 375F (190C), since a thin layer heats through fast.
If you are reheating a fully cooked, refrigerated portion rather than baking from scratch, 20 minutes at 350F (175C) covered, then 5 to 10 minutes uncovered, is usually enough to bring it back to bubbling.
Should the Macaroni Be Cooked Before Baking?
Yes, in almost every baked version. Boil the pasta in salted water until just shy of tender, usually 1 to 2 minutes less than the package directions, then drain. It finishes cooking in the oven as it absorbs sauce, and stopping early keeps it from turning to mush during the bake.
The exception is a no-boil baked method, where dry pasta goes into the dish with extra liquid, usually about 3 cups of milk or a milk-and-broth mix for 8 ounces (about 225 g) of dry macaroni, and bakes covered at 375F (190C) for 35 to 40 minutes, then uncovered for 10 to 15 minutes. That method needs more liquid than a standard recipe because the pasta drinks it up. Stir once halfway so the top layer does not stay dry.
Whichever route you take, the pasta should be fully tender when the dish comes out. If a fork still meets resistance in the center after the top is brown, cover the dish with foil and give it another 10 minutes.
How Do You Know When It Is Done?
Look for three signs together, not just one. The sauce should bubble steadily around the rim of the dish. The surface should be browned in patches, not uniformly dark. And a spoon dragged through the center should leave a brief gap that fills in slowly, which means the sauce has thickened rather than staying watery.
If the top browns before the middle is hot, tent the dish loosely with foil and keep baking. If the sauce looks loose and separates, the oven was likely too hot or the dish baked too long; a lower temperature of 350F (175C) and a shorter time protect against that. A quick check with an instant-read thermometer in the center should read at least 165F (74C) for a dish containing eggs or dairy-heavy custard, which is the standard safe temperature for reheated and egg-based dishes.
What Changes the Bake Time?
Several things move the number up or down, and knowing them saves you from guessing.
Dish size and depth
A shallow 9-by-13-inch dish spreads the mixture thin and bakes faster than a deep 8-inch square dish holding the same amount. Match the dish to the recipe: about 2 quarts for 8 ounces (225 g) of dry pasta, and 3 to 4 quarts for a pound (about 450 g).
Starting temperature
An assembled dish that sat in the fridge overnight is the biggest time-changer. Add roughly 15 minutes compared with baking right after mixing, and cover it early so the top does not burn while the center catches up.
The topping
Fresh soft breadcrumbs brown in 10 to 15 minutes, while coarse dry crumbs or crushed crackers can darken in under 10. Add the topping partway through, or cover the dish with foil until the last 10 to 15 minutes, so it colors at the same pace as the filling heats.
Cheese and sauce thickness
A sauce made with a roux and milk is thicker and sets faster than one made by simply melting cheese into cream. Softer cheeses release more liquid, so a dish heavy on them may need a few extra minutes uncovered at the end to tighten up.
How Long Can Macaroni and Cheese Sit Out?
No more than 2 hours at room temperature, and just 1 hour if the room is above 90F (32C). This is a dairy-rich dish, and bacteria grow quickly in the warm zone. Keep it hot above 140F (60C) on a buffet with a warming tray, or cool it fast and refrigerate.
To cool leftovers quickly, spread the macaroni in a shallow container rather than leaving it in the deep baking dish, then cover and refrigerate once it stops steaming. Eat refrigerated leftovers within 3 to 4 days. Reheat portions to 165F (74C), and reheat only what you plan to eat rather than warming the whole dish repeatedly.
Freezing works but changes the texture. Baked macaroni and cheese freezes well for about 2 to 3 months; thaw overnight in the fridge and reheat covered at 350F (175C) until hot in the center, adding a splash of milk to loosen the sauce. Pasta frozen and thawed can turn slightly soft, so a freshly baked dish is better for company.
Can You Assemble It Ahead and Bake Later?
Yes, and this is where the time range matters most. Assemble the dish with cooked pasta and warm sauce, let it cool, cover, and refrigerate for up to 24 hours. When you are ready to bake, do not put a cold dish straight into a hot oven uncovered; the topping burns before the middle warms.
Instead, cover with foil and bake at 375F (190C) for 25 minutes, then uncover and bake another 10 to 15 minutes until bubbling and browned. If the dish is still cold in the center at that point, keep it covered and give it another 10 minutes. A cold dish added to a hot oven also stresses glass and ceramic bakeware, so letting it sit on the counter for 20 to 30 minutes before baking is a sensible step.
For a stovetop version you plan to brown later, keep the cooked macaroni and sauce separate until just before baking, then combine, top, and bake for the shorter 20 to 25 minutes.