Forget heating up the whole oven for one casserole — this air fryer baked spaghetti layers creamy ricotta, golden mozzarella, and saucy noodles into a 22-minute weeknight miracle. The convection works magic on top: deeply browned cheese and crispy little spaghetti tips you’ll fight over, while the inside stays melty and rich.

Air fryer baked spaghetti turns a weeknight pasta dinner into something special — golden, bubbly mozzarella on top, creamy ricotta layered through the middle, and crispy little spaghetti tips poking out of the crust that you’ll fight over. The whole thing takes 22 minutes start to finish, uses one cake pan, and works just as well with leftover spaghetti as it does with fresh.
This is the recipe I make when I want lasagna-level comfort without the lasagna-level time commitment, and the air fryer’s powerful convection is the secret — it browns the top in a way a conventional oven needs 45 minutes to match.

Why air fryer baked spaghetti beats oven baked spaghetti
The air fryer’s strong convection does two things a conventional oven can’t do quickly:
- It crisps exposed pasta in minutes. Those little caramelized noodle tips on top are the best part of any baked pasta — and the air fryer gets you there in 12 minutes instead of 40.
- It melts and browns cheese without drying out the inside. Because the heat is concentrated and the cook time is short, the ricotta layer stays creamy while the mozzarella on top goes deeply golden.
You also don’t have to heat your whole kitchen for one casserole. In the summer this matters a lot.

Ingredients You’ll Need
This recipe is built around pantry basics. The ricotta + mozzarella + Parmesan combination is what gives the dish that pizzeria-quality cheese pull — don’t skip any of the three.

- Spaghetti: broken in half if your pan runs small
- Olive oil: keeps drained noodles from clumping together
- Ground beef or Italian sausage: optional, skip for vegetarian version
- Yellow onion: finely chopped so it cooks evenly
- Garlic: freshly minced gives the best aromatic flavor
- Marinara sauce: use a good jarred brand, it matters
- Whole-milk ricotta: the creamy middle layer of this bake
- Large egg: binds the ricotta so slices hold together
- Low-moisture mozzarella: shred your own for the best melt
- Parmesan cheese: freshly grated adds nutty, salty depth throughout
- Dried oregano: classic Italian warmth in every saucy bite
- Dried basil: rounds out the herb notes in the sauce
- Red pepper flakes: optional pinch of heat, totally up to you
- Salt and black pepper: season to taste at every layer
- Fresh parsley or basil: bright green garnish for serving
A note on the cheese
Shred your own mozzarella. Pre-shredded bagged cheese is coated in cellulose and potato starch to keep it from clumping in the bag — and those coatings keep it from melting into that smooth, glossy layer you want on top. A block of low-moisture mozzarella costs the same, takes 90 seconds to shred, and melts dramatically better.
Equipment you’ll need
This is where most baked spaghetti recipes leave you guessing, so let’s get specific.
- A 6- to 8-inch round cake pan or square baking dish. A 7-inch round is the sweet spot. An 8×8 square works if your basket fits it.
- An air fryer with at least a 5-quart basket. Anything smaller and a pan won’t fit. The Instant Vortex 6-quart, Ninja Foodi 6.5-quart, and Cosori 5.8-quart all comfortably fit a 7-inch pan.
- Silicone-tipped tongs or pot holders. The pan comes out screaming hot and the basket is tight — regular oven mitts often don’t fit. Silicone-tipped tongs let you grip the pan edge from above.
- A silicone liner for the basket bottom is optional but protects the nonstick coating from metal pan scraping.
If you have a dual-basket air fryer (like the Ninja Foodi DualZone), use two smaller pans, one per basket, and split the recipe.
How to make air fryer baked spaghetti

Step 1: Cook the spaghetti to under al dente
Boil the spaghetti for 2 minutes less than the package says for al dente. The pasta will keep cooking in the air fryer, and if you start at full al dente you’ll end up with mushy noodles. Drain, toss with the olive oil to keep it from clumping, and set aside.

Step 2: Build the meat sauce
In a skillet over medium-high heat, brown the ground beef or sausage, breaking it into small pieces (about 5 minutes). Drain off excess fat, leaving about a tablespoon. Add the onion and cook 3 minutes until softened, then add the garlic and cook 30 seconds more. Pour in the marinara, add the oregano, basil, red pepper flakes, salt, and pepper, and simmer 5 minutes.
If you’re going vegetarian, skip the meat — start with olive oil in the pan and sauté the onion and garlic, then add the sauce.

Step 3: Mix the ricotta layer
In a small bowl, whisk together the ricotta, egg, and a pinch of salt until smooth. The egg is what holds the layer together when you slice — without it, the ricotta oozes everywhere.
Step 5: Layer the bake
Grease your cake pan with cooking spray or butter. Build in this order:
- Half the saucy spaghetti
- All of the ricotta mixture, spread in dollops and smoothed
- ½ cup of mozzarella
- ¼ cup of Parmesan
- The remaining saucy spaghetti
- The remaining ⅓ of plain meat sauce on top
- The remaining 1 cup of mozzarella
- The remaining ¼ cup of Parmesan

Step 6: Air fry
Preheat the air fryer to 350°F (175°C) for 3 minutes. Place the pan in the basket and cook for 12 minutes, or until the cheese on top is deeply golden and the edges are bubbling. If your air fryer runs hot (some Cosori and Ninja models do), check at 10 minutes and tent with foil if the cheese is browning too fast.
Step 7: Rest, then serve
This part matters. Let the bake rest for 5 minutes before serving. The layers set, the ricotta firms up, and you can actually slice clean portions instead of pulling out a sloppy spoonful. Garnish with fresh parsley or torn basil.

The right temperature: 350°F vs. 320°F
You’ll see other recipes recommend anywhere from 320°F to 380°F, and the difference matters.
- 350°F for 12 minutes is the sweet spot for this recipe. The cheese browns nicely while the inside reaches serving temperature without drying out.
- 320°F for 15 minutes works if your air fryer browns aggressively (Cosori, some Ninja models). The lower temp keeps the top from going past golden into burnt.
- 375°F+ is too hot. The cheese chars before the inside heats through, and the exposed spaghetti goes from crispy to ashy in about 90 seconds.
If this is your first time, use 350°F for 12 minutes and watch through the window at minute 10.
Make it your own: variations
- Spinach-ricotta version: Mix 1 cup of thawed, squeezed-dry frozen spinach into the ricotta layer. Adds vegetables and beautiful color.
- Pepperoni pizza spaghetti: Layer 4 oz of sliced pepperoni between the spaghetti and the top cheese layer. Tastes exactly like the kid-friendly fever dream it sounds like.
- Three-cheese, no meat: Skip the meat, add ½ cup of provolone to the cheese mix. Cheesier and faster.
- Pesto swirl: Drop 3 tablespoons of pesto by spoonfuls into the ricotta layer and swirl. Bright and herby.
- Gluten-free: Use Banza chickpea spaghetti or Jovial brown rice spaghetti. Both hold up well in baked applications.
- Spaghetti squash low-carb version: Sub 4 cups of roasted spaghetti squash strands for the pasta. Cuts carbs significantly and the texture is genuinely close.
Using leftover spaghetti instead
This recipe was practically invented for leftover pasta. Cold spaghetti from last night is starchier and stickier, which actually makes for a firmer, more sliceable bake.
If you’re starting with leftover spaghetti:
- Skip the boiling step entirely.
- Bring the pasta to room temperature first (cold pasta straight from the fridge makes the bake take 5+ extra minutes).
- Add 2–3 tablespoons of extra marinara to the pasta toss — leftover spaghetti is drier than fresh.
- Pre-cook the assembled bake for 8 minutes, then add the top mozzarella layer and cook 4 more minutes. This prevents the cheese from over-browning before the inside warms through.

What to serve with air fryer baked spaghetti
This is rich, so brightness on the side helps. My usual lineup:
- Garlic bread or air fryer Texas toast — non-negotiable for me
- A simple arugula salad with lemon, olive oil, and shaved Parmesan
- Caesar salad for a crowd-pleaser
- Roasted broccoli with garlic and red pepper flakes
- Antipasto platter if you’re entertaining (olives, cured meats, marinated artichokes)
Storage and reheating
Refrigerator: Store leftovers in an airtight container for up to 4 days.
Freezer: Wrap individual portions tightly in foil, then freeze in a zip-top bag for up to 3 months. Or freeze the entire unbaked, assembled casserole and bake from frozen by adding 8 extra minutes.
Best way to reheat (in the air fryer): Place a portion in an oven-safe ramekin or on a piece of foil, cover loosely with foil, and air fry at 325°F for 5–7 minutes. The cover prevents the cheese from over-browning a second time. Remove the foil for the last minute if you want a fresh crisp on top.
Microwave reheat: 60–90 seconds on medium power, covered with a damp paper towel. It works but you lose the crispy top.

Air fryer baked spaghetti FAQs
Can you make baked spaghetti in an air fryer? Yes — and it’s actually better than oven-baked baked spaghetti for most home cooks. The air fryer’s convection browns the cheese top in 12 minutes instead of 35–40, and the smaller pan size is perfect for a 4-person family meal without leftovers for days. You do need to pre-cook the pasta on the stovetop first; the air fryer can’t boil noodles.
What size pan fits in an air fryer for baked spaghetti? A 6- to 8-inch round cake pan or 7-inch square baking dish fits most 5+ quart air fryers. Check your basket dimensions before assembling — there should be at least ½ inch of clearance on every side for the air to circulate. If you have a 4-quart or smaller air fryer, you’ll need to halve the recipe and use a 5-inch round pan or two ramekins.
Do I need to preheat my air fryer for baked spaghetti? Yes, preheating for 3 minutes at 350°F gives you more even cooking and a better cheese crust. Without preheating, the cheese starts to melt before the convection fully kicks in, which can lead to a pale, soggy top. If your air fryer model says it doesn’t need preheating, add 2 minutes to the total cook time instead.
How do I keep the spaghetti bake from sticking to the pan? Grease the pan generously with cooking spray, butter, or olive oil before layering. For really easy cleanup, line the bottom with a circle of parchment paper cut to fit. You can also use a silicone baking pan, which releases food without any grease.
Can I make this ahead of time? Yes, assemble the bake up to 24 hours ahead and refrigerate, covered. When you’re ready to cook, take it out of the fridge 20 minutes before air-frying to take the chill off, then add 3–4 extra minutes to the cook time. Don’t assemble more than 24 hours ahead; the pasta absorbs sauce and the bottom layer turns mushy.
Can I freeze air fryer baked spaghetti? Yes, assembled and unbaked, it freezes beautifully for up to 3 months. Wrap the pan tightly in two layers of plastic wrap and one of foil. To cook from frozen, unwrap, place in a cold air fryer, set to 350°F, and add 8–10 minutes to the cook time (about 20 minutes total). If the top browns too fast, tent with foil.
Can I use cottage cheese instead of ricotta? Yes, small-curd, full-fat cottage cheese is a great ricotta substitute. Drain it in a fine-mesh sieve for 10 minutes first to remove excess liquid, then whisk until mostly smooth. It’s actually higher in protein than ricotta and slightly tangier in flavor, which some people prefer.
Why is my baked spaghetti dry? Three usual culprits: the pasta was cooked past al dente before baking, there wasn’t enough sauce, or it cooked too long. Aim for under-cooked pasta going in, use the full 24 oz of marinara called for, and pull the bake the moment the cheese is golden — not after.
More easy air fryer pasta recipes you’ll love
If you loved this baked spaghetti, here are the other forktospoon.com recipes my readers reach for next:
- Air Fryer Baked Ziti — same cheesy, layered comfort with tube pasta and that crispy edge the air fryer does best
- Million Dollar Baked Spaghetti — the over-the-top version with a cream cheese layer that earns its name
- Fazoli’s Baked Spaghetti (Copycat) — restaurant-style and even better than the original
- Air Fryer Pasta alla Norma — a lighter, eggplant-and-marinara Italian classic for nights you want pasta without the heavy cheese
- Air Fryer Italian Meatloaf — another saucy, cheesy Italian-American dinner from the same family
- Instant Pot Spaghetti — the easy weeknight base recipe; great as leftovers for this baked spaghetti
- Homemade Spaghetti Sauce — skip the jar and make the marinara from scratch
Don’t Forget To Pin!
Share Your Creations! Are you active on Facebook? Join our Air Fryer Recipes Group, where hundreds of thousands of Air Fryer enthusiasts gather and share your photos! I’m always thrilled to see what you’ve made. For those on Instagram, don’t forget to tag me @forktospoon – I can’t wait to admire your culinary adventures!

Air Fryer Baked Spaghetti
Description
Ingredients
- 8 oz spaghetti
- 1 tablespoon olive oil
- ½ lb ground beef, or Italian sausage, optional
- ½ cup onion, chopped
- 2 cloves garlic, minced
- 24 oz marinara sauce
- 1½ cups whole-milk ricotta cheese
- 1 large egg
- 1½ cups low-moisture mozzarella, shredded
- ½ cup Parmesan cheese, grated
- ½ teaspoon dried oregano
- ½ teaspoon dried basil
- ¼ teaspoon red pepper flakes, optional
- Salt and black pepper to taste
- Fresh parsley for garnish
Instructions
- Boil spaghetti 2 minutes less than package directions for al dente. Drain and toss with olive oil.
- Brown beef or sausage in a skillet; drain fat. Add onion, cook 3 minutes; add garlic, cook 30 seconds. Add marinara and seasonings; simmer 5 minutes.
- Whisk ricotta with egg and a pinch of salt until smooth.
- Toss spaghetti with two-thirds of the sauce, reserving the rest.
- Grease a 7-inch round cake pan. Layer: half the spaghetti, all the ricotta mixture, ½ cup mozzarella, ¼ cup Parmesan, remaining spaghetti, reserved sauce, remaining mozzarella, remaining Parmesan.
- Preheat air fryer to 350°F for 3 minutes. Air fry for 12 minutes until cheese is deeply golden and edges bubble.
- Rest 5 minutes. Garnish with parsley and serve.
Equipment
- Baking Pan
- Cooking Spray
Notes
- For leftover spaghetti: skip step 1, bring pasta to room temperature, add 2–3 tablespoons extra sauce, cook 8 minutes first then add top mozzarella and cook 4 more minutes.
- Pan size: 6–8 inch round cake pan or 7-inch square; must fit in your air fryer basket with ½ inch clearance.
- Storage: refrigerate up to 4 days; freeze unbaked up to 3 months.
Nutrition
Share this recipe
We can’t wait to see what you’ve made! Mention @forktospoon or tag #forktospoon!
