This air fryer baked spaghetti is a comforting, homemade pasta bake that delivers hearty flavor without heating your oven. It’s similar to a spaghetti pie but with more layering and a lighter texture. Using the air fryer speeds things up and lets you make smaller portions easily.

Why You’ll Love This Recipe
Baked spaghetti sits somewhere between lasagna and a pasta pie: strands of spaghetti replace flat noodles, and layers of sauce, cheese, and optional meat create a satisfying casserole. It’s an ideal way to use leftover pasta, or you can make it with freshly cooked spaghetti or any short pasta you prefer.
The air fryer makes this dish especially convenient. You won’t heat the whole house, the cook time is shorter than a conventional oven, and it’s simple to prepare single or double portions depending on your needs.

Quick + Easy Recipes
straight to your inbox
Ingredients You’ll Need

- 8 ounces leftover spaghetti (or freshly cooked per package directions)
- 1 large egg
- ¼ cup grated Parmesan cheese
- 3 Tbsp melted butter
- 1 cup ricotta cheese
- 1 clove garlic, minced
- 1 Tbsp dried minced onion
- 1 Tbsp Italian seasoning
- ½ tsp salt
- ½ tsp black pepper
- 1 cup pasta sauce with meat (or tomato sauce for vegetarian)
- ½ cup shredded mozzarella cheese
- Chopped fresh basil or parsley for garnish (optional)
Ingredient Notes and Substitutions
- You can make this with any pasta shape or use spaghetti squash for a lower-carb alternative.
- Ricotta can be swapped for cottage cheese or softened cream cheese.
- Use a plain tomato sauce to keep the bake vegetarian, or add ½ pound cooked ground beef or Italian sausage for extra meat.
- This recipe scales easily — double it to use a full package of pasta or to feed more people.
Special equipment note:
You’ll need a pie pan, cake pan, or small casserole dish that fits your air fryer basket or rack. Use a single pan for most air fryers or two small dishes if your model has dual zones.
How to Make Air Fryer Baked Spaghetti
- If using fresh pasta, cook according to package directions and drain.
- In a medium bowl, crack the egg and whisk it until smooth.
- Add the Parmesan, melted butter, and spaghetti. Toss to coat the noodles evenly—tongs or clean hands work well.
- In a separate bowl, combine ricotta, garlic, dried minced onion, Italian seasoning, salt, and pepper. Mix until smooth.
- Preheat your air fryer to 350°F (175°C).
- Grease your casserole dish and layer: half the spaghetti, half the ricotta mixture, half the sauce, and half the mozzarella. Repeat the layers, reserving the remaining mozzarella to top later.
- Place the filled dish in the preheated air fryer basket or on the rack.
- Cook on the air fry setting for 15 minutes at 350°F.
- Add the remaining mozzarella on top.
- Cook an additional 2–3 minutes at 350°F, until the cheese melts and starts to brown.
- Remove carefully with oven mitts and garnish with chopped parsley or basil if desired. Let rest a few minutes before serving.

What to Serve With Baked Spaghetti
- Garlic bread or garlic knots
- Green salad, Caesar, or Caprese salad
- Roasted vegetables or fried zucchini
- Antipasto platter, bruschetta, or stuffed artichokes
- Meatballs or Italian sausage
- Chianti or your favorite red wine
This baked spaghetti is a complete meal but pairs beautifully with salads, bread, or small starters to round out the plate.
Recipe FAQs
Can I make baked spaghetti in an air fryer?
Yes. Boil the pasta first (or use no-boil noodles if available), then assemble and bake the casserole in the air fryer.
Do I need to preheat my air fryer?
Preheating to 350°F is recommended for even cooking. If your model doesn’t require preheating, add 2–3 minutes to the cook time to compensate.
How do I prevent sticking?
Grease the pan with spray, butter, or oil, or line it with parchment to make removal and cleanup easier.
Can I reheat baked spaghetti in the air fryer?
Yes. Reheat portions on foil or parchment at 350°F for 4–6 minutes, or until warmed through. Cover with foil if the cheese browns too quickly.
Recipe Expert Tips
- Safety: The pan will be hot when removed from the air fryer—use oven mitts and a spatula to avoid burns.
- If using leftover spaghetti, bring it to room temperature so it’s easier to mix and layer.

Storage and Reheating Tips
- Store leftovers in an airtight container in the refrigerator for up to 4 days. Freeze tightly wrapped for up to 3 months.
- Reheat in the air fryer for 4–6 minutes at 350°F on foil or parchment, microwave for about 1 minute, or bake in a conventional oven at 350°F for 10–15 minutes. Times will vary with portion size.
Final Thoughts
Air fryer baked spaghetti is an easy, crowd-pleasing casserole that brings comfort food to the table quickly. It’s flexible, forgiving, and perfect for weeknights—pair it with a simple salad and garlic bread for a complete meal everyone will enjoy.

Air Fryer Baked Spaghetti (Homemade Pasta Bake)
Ingredients
- 8 oz leftover spaghetti (or freshly cooked)
- 1 large egg
- ¼ cup grated Parmesan
- 3 Tbsp melted butter
- 1 cup ricotta cheese
- 1 clove garlic, minced
- 1 Tbsp dried minced onion
- 1 Tbsp Italian seasoning
- ½ tsp salt
- ½ tsp black pepper
- 1 cup pasta sauce with meat (or tomato sauce)
- ½ cup shredded mozzarella
- Chopped basil or parsley, optional
Instructions
- Cook pasta if using fresh and drain.
- Whisk the egg in a medium bowl.
- Toss spaghetti with Parmesan and melted butter to coat.
- Mix ricotta with garlic, minced onion, Italian seasoning, salt, and pepper.
- Preheat air fryer to 350°F.
- Grease a pan and layer half the spaghetti, half the ricotta, half the sauce, and half the mozzarella. Repeat, reserving the top mozzarella.
- Air fry at 350°F for 15 minutes.
- Add remaining mozzarella and air fry 2–3 more minutes until melted and lightly browned.
- Garnish with chopped parsley or basil and let rest a few minutes before serving.
Notes
- Swap pasta shapes or use spaghetti squash for a low-carb option.
- Ricotta may be replaced with cottage cheese or softened cream cheese.
- Add cooked ground beef or Italian sausage if you want more meat.
- Safety: the pan will be hot coming out of the air fryer—use mitts.
- Leftovers: refrigerate up to 4 days or freeze up to 3 months.
