How Long to Bake Macaroni and Cheese
| ~6 min read | Mac and Cheese
Sections
Bake macaroni and cheese at 375F (190C) for 25 to 30 minutes, until the sauce bubbles at the edges and the top is golden. A 9x13-inch pan of cooked pasta and cheese sauce, about 3 quarts, needs that full half hour; small ramekins take 15 to 20 minutes at the same heat.
That range assumes the pasta is already boiled and the sauce is warm when it goes in the oven. The baking step is not cooking the noodles from raw; it is heating the dish through and browning the top. If you skip the stovetop sauce and pour cold milk over dry pasta, you are making a different dish with a much longer oven time, closer to 50 to 60 minutes, and the result is looser and less creamy.
Match the Pan Size to the Bake Time
Depth is the number that changes your timer. A shallow layer heats fast; a deep, narrow pot of the same volume takes longer because heat has to travel to the middle.
Times by pan and portion
A 9x13-inch baking dish holding about 3 quarts: 25 to 30 minutes at 375F (190C). Individual 8-ounce ramekins: 15 to 20 minutes. An 8x8-inch square dish with half a recipe: 20 to 25 minutes. A deep 2-quart casserole: 30 to 35 minutes, because the center is thicker.
Add 5 minutes if the dish goes into the oven cold from the fridge. Assembled macaroni and cheese can be covered and refrigerated for up to 24 hours before baking; let it sit on the counter 20 to 30 minutes first so the ceramic or glass does not crack from a sudden temperature change.
Build the Dish So the Oven Time Works
The bake only succeeds if the pasta and sauce are right before they go in. Undercook the noodles by about 2 minutes less than the package says. They finish in the oven and soak up sauce, so pasta boiled to full softness turns mushy by the time the top browns.
Make a cheese sauce on the stovetop: melt 4 tablespoons (about 55 g) butter, whisk in 4 tablespoons (about 30 g) flour, cook 1 minute, then whisk in 4 cups (960 ml) milk and simmer until thick. Off the heat, stir in about 3 cups (roughly 340 g) shredded cheese until it melts. Toss with 1 pound (about 450 g) cooked elbow macaroni. This makes a 9x13-inch pan.
Warm sauce matters. Cold sauce plus cold pasta means the middle lags behind the edges, and you end up with a browned crust over a lukewarm center. Stir the pasta and sauce together while both are hot, then pour into the buttered dish.
Read the Doneness Cues, Not Just the Clock
Ovens run hot or cold, so trust the look and the feel. The sauce should bubble steadily around the rim, the cheese on top should be melted and spotted golden, and a knife slipped into the center should come out hot to the touch after a few seconds.
If the top browns before the middle is hot, tent the dish loosely with foil and give it another 5 to 10 minutes. If the center is hot but the top is pale, switch on the broiler for 1 to 2 minutes, watching constantly, since cheese goes from golden to black fast.
For a crisp topping, toss 1 cup (about 60 g) fresh breadcrumbs with 2 tablespoons melted butter and scatter over the top before baking. Add it at the start, not the end, so the crumbs toast along with the cheese.
Where the Bake Goes Wrong and How to Fix It
The most common mistake is overbaking. Cheese sauce breaks when it is held at high heat too long: the fat separates and you get a grainy, oily pool instead of a smooth sauce. Pull the dish as soon as the edges bubble. If it has already split, stir a splash of warm milk into the center and serve right away; it will not fully recover, but it loosens.
A dry dish usually means too little sauce or pasta cooked too long. Aim for a sauce that looks slightly loose when it goes into the pan, because the pasta absorbs liquid in the oven. A cup or so of extra milk whisked into the sauce before baking is a safe cushion.
A common misconception is that a longer bake makes the dish creamier. It does the opposite: extra time drives off moisture and tightens the sauce. The creamy texture comes from the stovetop sauce and a short, hot bake, not from a slow one.
Another wrong turn is baking at a low temperature to be safe. There is no food-safety reason to bake macaroni and cheese low and slow; the dairy and pasta are already cooked, and the dish is safe once it is steaming hot throughout. A moderate 375F (190C) oven browns the top while the center heats.
Half Recipe in an 8x8 Pan
Say you want a smaller batch for two or three people. Halve everything: 2 tablespoons (about 28 g) butter, 2 tablespoons (about 15 g) flour, 2 cups (480 ml) milk, about 1.5 cups (roughly 170 g) shredded cheese, and 8 ounces (about 225 g) dry macaroni boiled 2 minutes under the package time.
Pour into a buttered 8x8-inch dish. The layer is about the same depth as a full 9x13 batch, so the bake time stays close: 20 to 25 minutes at 375F (190C), until bubbling at the edges and golden on top. Check at 20 minutes; if the center is not hot, add 5 minutes. The arithmetic is the point: same depth, similar time; deeper dish, longer time.
For a 2-quart deep casserole with the same half batch, expect 30 to 35 minutes, and cover with foil for the first 20 minutes so the top does not scorch before the middle catches up.
Make-Ahead, Reheat and Keep It Safe
Assemble the dish up to a day ahead, cover, and refrigerate. Bake straight from cold with 5 extra minutes, or let it stand 20 to 30 minutes first. Cooked macaroni and cheese is a perishable dairy dish: it can sit out no more than 2 hours, or 1 hour if the room is above 90F (32C).
Leftovers keep in the fridge for 3 to 4 days in a covered container. Reheat in a 350F (175C) oven for 15 to 20 minutes, covered, with a splash of milk stirred in to loosen the sauce. Microwaving works for single portions but can leave the edges rubbery; cover the bowl and stir halfway.
Freeze baked portions for up to 2 months. Thaw overnight in the fridge, then reheat covered at 350F (175C) for 20 to 25 minutes. The sauce may look slightly grainy after freezing; stirring helps.
Macaroni and Cheese Questions That Change the Bake
Does the type of cheese change the time?
No, but it changes the texture. Aged cheeses such as sharp cheddar melt less smoothly than younger ones, so combine a sharp cheese for flavor with a softer melting cheese for body. The oven time stays the same.
Can you bake it without boiling the pasta first?
Yes, in a no-boil version, but the timing is different: about 50 to 60 minutes covered at 375F (190C), with enough milk to hydrate the dry noodles, then 10 minutes uncovered to brown. Stir once halfway so the pasta cooks evenly.
How do you know the center is hot enough?
An instant-read thermometer pushed into the middle should read at least 165F (74C), the standard for reheated leftovers and a reliable sign the dish is heated through.