This baked spaghetti layers tender pasta, savory meat sauce, and plenty of melted cheese in one comforting casserole. It’s easy to prepare with familiar ingredients, and a brief bake brings everything together without drying out the noodles.
Ingredients
- 12 ounces dried spaghetti
- 1 tablespoon olive oil
- 1 pound ground beef, preferably 85% lean
- 1 small yellow onion, finely chopped (about 1 cup)
- 2 cloves garlic, minced
- 1 jar (24 ounces) marinara sauce
- 1/2 teaspoon dried Italian seasoning
- 1/4 teaspoon red pepper flakes, optional
- 1/2 teaspoon kosher salt, plus more for pasta water
- 1/4 teaspoon black pepper
- 1 large egg
- 1/2 cup whole-milk ricotta
- 1/2 cup grated Parmesan cheese, divided
- 2 cups shredded low-moisture mozzarella, divided
- 2 tablespoons chopped fresh parsley, optional
Instructions
- Heat the oven and prepare the dish. Set a rack in the center of the oven and heat it to 375°F (190°C). Lightly grease a 9-by-13-inch baking dish.
- Cook the spaghetti. Bring a large pot of water to a boil, salt it generously, and add the spaghetti. Cook until just shy of al dente, following the package’s timing but checking about 2 minutes early. The noodles will soften further in the oven. Drain well; do not rinse.
- Make the meat sauce. While the pasta cooks, heat the olive oil in a large skillet over medium heat. Add the ground beef and onion. Cook for 7–9 minutes, breaking up the meat, until it is browned and the onion is tender. Drain excess fat if needed. Add the garlic and cook for about 30 seconds, just until fragrant.
- Season and simmer. Stir in the marinara, Italian seasoning, red pepper flakes if using, salt, and black pepper. Bring the sauce to a gentle simmer and cook for 5 minutes. Taste and adjust the seasoning; remember that the cheeses will add saltiness.
- Mix the cheese layer. In a medium bowl, stir together the egg, ricotta, and 1/4 cup of the Parmesan until evenly combined. Keep the remaining Parmesan and mozzarella for the top.
- Combine pasta and sauce. Add the drained spaghetti to the skillet if it is large enough, or use the empty pasta pot. Toss thoroughly with the meat sauce so the noodles are coated. If the sauce seems unusually thick, stir in a splash of hot water; the mixture should be saucy rather than dry.
- Layer the casserole. Spread about half of the spaghetti mixture in the prepared dish. Spoon the ricotta mixture in small dollops over the noodles and gently spread it as evenly as possible. Add the remaining spaghetti. Sprinkle with the mozzarella and the remaining 1/4 cup Parmesan.
- Bake until hot and melted. Bake uncovered for 20–25 minutes, until the edges are bubbling and the cheese is melted. For a more golden top, broil for 1–2 minutes at the end, watching closely so it does not burn. For food safety, the center should reach 165°F (74°C); check with an instant-read thermometer without touching the bottom of the dish.
- Rest and serve. Let the casserole stand for 10 minutes before cutting. This helps the layers settle and makes serving easier. Sprinkle with parsley, if desired.
Tips
- Undercook the pasta slightly. Spaghetti that is fully soft before baking can turn mushy. Aim for just shy of al dente, and drain it promptly.
- Keep the casserole moist. Coat every strand well with sauce. If your marinara is especially thick or your pasta has been sitting after draining, loosen the mixture with a little hot water before layering.
- Choose the right cheese. Low-moisture mozzarella melts smoothly without releasing as much liquid as fresh mozzarella. Whole-milk ricotta makes a creamy layer; if it looks watery, drain it briefly in a fine-mesh strainer.
- Make-ahead carefully. Assemble the casserole, cover, and refrigerate for up to 24 hours before baking. Let a cold glass or ceramic dish sit at room temperature while the oven heats, then bake until the center is hot and reaches 165°F; add 10–15 minutes as needed. Do not leave perishable ingredients at room temperature for more than 2 hours total.
Serving Suggestions
Serve baked spaghetti with a crisp green salad dressed with vinaigrette to balance the rich sauce and cheese. Garlic bread or warm rolls are handy for scooping up any extra sauce. For a simple vegetable side, try roasted broccoli, green beans, or zucchini. Since the casserole is filling, modest portions of sides are usually enough.
Variations
Use ground turkey or Italian sausage in place of the beef, or use half beef and half sausage for a more seasoned sauce. For a meatless version, omit the beef and sauté sliced mushrooms, chopped bell pepper, or spinach with the onion; use enough vegetables to replace the volume and cook off excess moisture before adding sauce. You can swap the ricotta layer for 4 ounces of softened cream cheese mixed with the egg, or omit the egg and ricotta for a simpler, all-in-one pasta bake. Add sliced olives or a pinch of fennel seed to the sauce if those flavors suit your table. Keep the overall amount of sauce and cheese similar so the casserole bakes evenly.
Storage and Reheating
Refrigerate leftovers within 2 hours of baking, divided into shallow airtight containers or covered securely. They keep for 3–4 days in the refrigerator at 40°F (4°C) or below. Reheat individual portions in the microwave, covered loosely, in short intervals until steaming hot throughout; stir or rotate if needed. To reheat a larger portion, cover it with foil and warm in a 350°F (175°C) oven until the center reaches 165°F (74°C), usually 20–30 minutes depending on portion size. Add a spoonful of water or sauce if the pasta looks dry. Reheat only the portion you plan to eat. For longer storage, freeze cooled portions in airtight, freezer-safe containers for up to 2–3 months; thaw overnight in the refrigerator before reheating, or reheat from frozen until the center reaches 165°F.
Frequently Asked Questions
Can I make baked spaghetti without ricotta?
Yes. Leave it out for a straightforward spaghetti-and-meat-sauce casserole, or replace it with a few small dollops of cottage cheese or softened cream cheese. The egg helps bind the ricotta layer, so omit the egg too if you are not making that layer.
Should I cover baked spaghetti while it cooks?
No, this recipe is baked uncovered so the mozzarella can melt and lightly brown. If the top is browning before the center is hot, loosely cover the dish with foil for the remainder of the bake.
Can I assemble it the night before?
Yes. Cover the assembled dish and refrigerate it for up to 24 hours. Bake it cold, allowing extra time, and verify that the center reaches 165°F (74°C). If your baking dish is cold glass or ceramic, avoid placing it directly into a hot oven unless its manufacturer says it is safe for that temperature change.
How do I keep the pasta from getting mushy?
Cook the spaghetti 1–2 minutes less than the package’s al dente time, drain it promptly, and avoid overbaking. Check for bubbling edges and a hot center rather than leaving it in the oven longer just to brown the cheese.
Can I freeze baked spaghetti?
Yes. Freeze cooled portions in airtight containers for up to 2–3 months for best quality. Thaw in the refrigerator when possible, then reheat until the center reaches 165°F (74°C). Texture may be slightly softer after freezing.
What can I use instead of ground beef?
Ground turkey, ground chicken, or Italian sausage all work. Cook poultry until it reaches 165°F (74°C), and cook ground beef or pork to at least 160°F (71°C) before adding the sauce. For a meatless casserole, use sautéed mushrooms and vegetables instead.