Homemade green bean casserole doesn’t have to take over your oven on Thanksgiving. This air fryer version keeps the classic creamy mushroom sauce and crunchy onion topping, but bakes fast in a small dish with plenty of crisp edges.

Why This Air Fryer Recipe Works
The air fryer concentrates heat around a smaller casserole, so the sauce bubbles and thickens without a long bake. You also get more browned, toasty edges than you typically do in a deep oven dish.
Instead of canned soup, this recipe builds an easy scratch mushroom sauce with real sautéed mushrooms and onions. The onion topping is made from scratch too, so you control the salt and keep the crunch extra fresh.
Ingredients You’ll Need
This makes a Thanksgiving-sized side for about 6 people, depending on what else is on the table.
- Green beans: 1 lb fresh, trimmed and cut in half (or 2 (12-oz) bags frozen, thawed and patted dry)
- Cremini or white mushrooms: 8 oz, sliced
- Yellow onion: 1/2 medium, finely diced (for the sauce)
- Garlic: 2 cloves, minced
- Butter: 2 tbsp
- All-purpose flour: 2 tbsp
- Milk: 1 cup (whole or 2% works best)
- Chicken or vegetable broth: 1/2 cup
- Soy sauce or Worcestershire sauce: 1 tsp (optional but boosts savory flavor)
- Kosher salt and black pepper
For the crispy onion topping (from scratch):
- Yellow onion: 1 large, very thinly sliced
- Buttermilk (or milk + 1 tsp vinegar): 1/2 cup
- All-purpose flour: 1/2 cup
- Cornstarch: 2 tbsp (helps crisp)
- Paprika: 1/2 tsp
- Salt and pepper
- Oil spray (avocado or canola)
Equipment note: a 7-inch round cake pan or 8×8-ish air-fryer-safe dish that fits your basket works well. If your air fryer is small, plan to cook the onions in batches.
How to Make Thanksgiving Air Fryer Green Bean Casserole from Scratch in the Air Fryer
1) Blanch the green beans (recommended for best texture). Bring a pot of salted water to a boil. Cook fresh green beans 3–4 minutes until bright green, then drain and rinse under cold water. Pat dry.
2) Make the crispy onions. Toss sliced onion with buttermilk in a bowl and let sit 10 minutes. In a second bowl, mix flour, cornstarch, paprika, 1/2 tsp salt, and a few grinds of pepper.
Lift onions from the buttermilk, let excess drip off, then toss in the flour mix until well coated. Arrange in the air fryer basket in a loose layer (don’t pack). Spray generously with oil.
Air fry at 350°F, 8–12 minutes, shaking every 3–4 minutes and spraying any dry flour spots. Cook until golden brown and crisp; they’ll crisp more as they cool. Repeat as needed and set aside.

3) Cook the mushroom sauce. In a skillet over medium heat, melt butter. Add diced onion and cook 3 minutes. Add mushrooms and a pinch of salt; cook 6–8 minutes until the mushrooms release moisture and it mostly evaporates. Stir in garlic for 30 seconds.
Sprinkle flour over the mushrooms and stir 1 minute. Slowly whisk in milk, then broth. Simmer 3–5 minutes until thick enough to coat a spoon. Season with pepper and add soy sauce or Worcestershire if using. Taste and adjust salt.
4) Assemble. In a mixing bowl, combine green beans with the mushroom sauce. Spoon into your air-fryer-safe dish. If you like onion pieces inside the casserole, stir in a small handful of the crispy onions now and save the rest for topping.
5) Air fry the casserole. Air fry at 360°F until bubbling around the edges, 10–14 minutes. Top with the remaining crispy onions and air fry 2–3 minutes more, just to warm and deepen the color.
Let it sit 5 minutes before serving so the sauce sets slightly.
Air Fryer Time and Temperature
- Crispy onions: 350°F for 8–12 minutes (shake and spray, cook in batches)
- Casserole (without topping): 360°F for 10–14 minutes
- With topping: add onions and cook 2–3 minutes more
Times vary by air fryer and dish depth. If your casserole is very thick or very cold from the fridge, add 2–4 minutes.
Tips for the Best Results
- Dry the green beans well. Extra water can thin the sauce and slow browning.
- Don’t rush the mushrooms. Letting their moisture cook off makes the sauce taste richer.
- Use a shallow dish if you can. More surface area = more bubbling edges and faster cook time.
- Keep the onions crispy by adding them at the end. If they’re already perfect, you can even top after cooking and serve right away.
- If the onions brown too fast, drop to 330°F and keep shaking. Air fryers run hot.
Variations and Substitutions

- Frozen green beans: Thaw completely and pat dry. Skip blanching.
- Gluten-free: Use a 1:1 gluten-free flour blend in the sauce; for onions, use GF flour plus cornstarch.
- Dairy-free: Use olive oil instead of butter and an unsweetened, creamy non-dairy milk (like oat). The sauce won’t be quite as rich, but it still works.
- Extra savory: Add 1/4 tsp dried thyme to the sauce or a small handful of grated Parmesan (if you eat dairy).
- Shortcut topping: If you’re tight on time, you can use store-bought crispy fried onions and still keep the mushroom sauce from scratch.
What to Serve With It
This casserole fits right into a Thanksgiving spread and also works alongside weeknight mains.
- Turkey breast, smoked turkey legs, or rotisserie chicken
- Mashed potatoes or sweet potatoes
- Cranberry sauce and gravy
- Other air fryer sides like roasted carrots or Brussels sprouts (Air Fryer Recipes)
Storage and Reheating
Store leftovers in an airtight container in the fridge for up to 3–4 days. For best texture, store extra crispy onions separately at room temperature (tightly covered) for 1–2 days.
To reheat in the air fryer, place casserole in an air-fryer-safe dish and warm at 320°F for 6–10 minutes until hot. Add the onions during the last 1–2 minutes so they stay crisp. If you’re planning ahead, see Air Fryer Reheating Guide for more air fryer reheating tips.
FAQ
Can I make air fryer green bean casserole from scratch ahead of time?
Yes. Make the sauce, prep the beans, and assemble the casserole (without the onion topping) up to 24 hours ahead. Air fry when ready to serve, then add crispy onions at the end.
How do I keep the onion topping from getting soggy?
Add the onions near the end of cooking, or even after cooking if the casserole is already piping hot. Also, make sure the sauce is thickened on the stove so it doesn’t steam the topping as much.
What size dish fits in an air fryer for green bean casserole?
Most basket air fryers fit a 7-inch round pan or a small square baking dish. Measure your basket and choose a dish that leaves a little room around the sides for airflow.
Can I use canned green beans?
You can, but the texture will be much softer and the casserole can turn watery. If you use canned, drain very well and reduce the broth in the sauce by a few tablespoons.
Why is my casserole not bubbling in the air fryer?
A thick, cold casserole in a deep dish needs more time. Increase cook time by a few minutes and check that your dish isn’t blocking airflow; a slightly smaller or shallower dish helps a lot.





