How Long to Bake Mac and Cheese: Times, Temps and Creamy Tips

Baked mac and cheese usually needs 20 to 30 minutes at 350°F (175°C). Learn how to time it by pan size and keep the sauce creamy, not dry.

Close-up of a homemade baked macaroni and cheese in a white dish. Perfect comfort food for lunch or dinner.
Photo: Ronmar Lacamiento / Pexels

Baked mac and cheese takes about 20 to 30 minutes in a 350°F (175°C) oven when the pasta is already cooked and mixed with a hot cheese sauce. A deep casserole dish or a topping of breadcrumbs can add 10 to 15 minutes. The dish is done when the edges bubble, the center is hot and the top is lightly golden. Creaminess comes mostly from the sauce, not the oven: a loose, generous sauce and a short bake keep the noodles from drying out.

How long does mac and cheese bake at 350°F (175°C)?

Most home recipes land between 20 and 35 minutes at 350°F (175°C). The range depends on the starting temperature and the depth of the dish.

  • Hot sauce and freshly cooked pasta in a 9×13-inch dish: about 20 to 25 minutes, mainly to melt the topping and brown the surface.
  • Same mixture in a deep 2-quart casserole: about 25 to 35 minutes, because the center is farther from the heat.
  • Cold or refrigerated assembled dish: add 10 to 15 minutes and cover with foil for the first part so the top does not brown before the middle warms.
  • Individual ramekins: roughly 15 to 20 minutes.

These are typical ranges, not exact figures. Ovens run hot or cool, so check at the early end of the range.

What oven temperature works best?

A moderate oven, 350°F (175°C), is the usual choice because it heats the center before the edges dry out. Some bakers use 375°F (190°C) for a shorter bake of 15 to 20 minutes when the dish is shallow and already hot. A higher temperature browns the top faster but also pulls moisture from the sauce at the edges.

The same logic applies to other pasta bakes. The timing in how long to bake lasagna at 350 and 375°F follows the same pattern of covered heating first, then uncovered browning.

How do you know it is done?

Look for three signs: sauce bubbling at the edges, a golden top, and a center that is steaming hot when you push a spoon into it. If you want a number, a food thermometer in the middle should read at least 165°F (74°C) when you are reheating a dish that was made ahead, which is the safe temperature the USDA Food Safety and Inspection Service gives for leftovers.

A baked custard-style version, made with eggs, should be cooked until the center is set and no longer wobbles. Eggs-based sauces overcook quickly, so pull the dish when the middle just stops moving.

How do you keep baked mac and cheese creamy?

A creamy result starts with a sauce that looks a little too thin before baking. The pasta keeps absorbing liquid, and the oven drives off more. These habits help:

  • Undercook the pasta slightly. Boil it 1 to 2 minutes short of the package time so it can finish in the sauce without turning soft.
  • Make a generous sauce. A béchamel (butter, flour and milk) with cheese melted in should coat the noodles and pool a little at the bottom of the bowl.
  • Shred the cheese yourself. Pre-shredded cheese often carries anti-caking starch, which can make a sauce grainy.
  • Add cheese off the heat. Stir it into the warm, not boiling, sauce so the fat does not separate.
  • Do not overbake. Every extra 5 to 10 minutes dries the surface and thickens the sauce.
  • Cover for part of the time. Foil traps steam in a dish that goes in cold.

Which cheeses melt best?

Medium-firm cheeses such as cheddar, Gruyère, fontina and Monterey Jack melt smoothly. Sharp, aged cheddar adds flavor but can turn oily if the sauce gets too hot, so many cooks blend it with a milder melter. Parmesan works well in the topping or in small amounts inside the sauce, but a sauce made mostly of very hard cheese tends to clump.

What topping should you use?

Breadcrumbs mixed with a little melted butter brown in about 10 to 15 minutes and add crunch. A layer of extra shredded cheese on top browns faster, so it suits a shorter bake. Add either topping at the start of baking for a dish that goes in hot, or after the foil comes off for a cold dish.

If you are baking other sides at the same time, the oven temperature often matches well with roasted vegetables. See how long to bake sweet potatoes for times that fit a 350 to 400°F range, and chicken drumstick times at 375 to 425°F if a main dish shares the oven.

How do you reheat leftovers without drying them out?

Stir in a spoonful of milk per serving, cover the dish with foil and heat in a 350°F (175°C) oven until the center reaches 165°F (74°C), usually 15 to 25 minutes for a small portion. Refrigerate leftovers within 2 hours of cooking, as the FoodSafety.gov guidance for cooked dishes advises.

Quick answers

Can you assemble mac and cheese a day ahead?

Yes. Cover and refrigerate the unbaked dish, then bake it covered and add 10 to 15 minutes to the time. Keep the topping off until the last stretch of baking.

Why did my baked mac and cheese turn dry?

Usually the sauce was too thick to begin with, the pasta was fully cooked before baking or the dish stayed in the oven too long. A looser sauce and a shorter bake fix most cases.

Should the dish be covered or uncovered?

Cover it when it goes in cold, and uncover it for the last 10 to 15 minutes to brown the top. A hot dish can bake uncovered the whole time.