How Long to Cook Mac and Cheese (Baked)
Baked macaroni and cheese casserole.
The Short Answer
In the oven at 350°F, mac and cheese (baked) takes 25–35 minutes. Scroll down for all cooking methods, detailed instructions, and tips from the Professor.
Cooking Methods
🔥 Oven
Temperature: 350°F
Time: 25–35 minutes
Rest: 5 minutes
For a stovetop-prepared mac and cheese transferred to a baking dish. Top with breadcrumbs before baking. Bake until bubbly and golden on top.
⚡ Instant Pot / Pressure Cooker
Pressure: High
Time: 4–5 minutes
Release: Quick release
Add dry pasta, water (just enough to cover), and salt. 4-5 minutes on high pressure. Quick release, stir in butter, milk, and cheese. One-pot mac and cheese in under 15 minutes total.
Make your cheese sauce on the stovetop first, combine with cooked pasta, then bake. Trying to bake raw pasta in a cheese sauce rarely works. The two-step method ensures the pasta is perfectly cooked and the sauce is silky.
Frequently Asked Questions
Use a little more sauce than you think you need before baking. The pasta absorbs sauce as it bakes. Cover with foil for the first 20 minutes, then uncover to brown the top.
The Bottom Line
Mac and Cheese (Baked) is straightforward to cook when you know the time and temperature. Use the method that fits your equipment and schedule, and always let the food rest before cutting or serving. Resting allows juices to redistribute and carryover cooking to finish the job.
Source: Culinary reference | Last verified: March 19, 2026 | Our methodology