I love a squash casserole that’s buttery, golden, and just a little nostalgic, and my Ritz-topped version does exactly that: tender sautéed yellow squash and sweet onion folded into a creamy, cheesy custard, then crowned with crushed crackers mixed with melted butter for a crisp finish.
I’ll tell you how to keep the filling from getting soggy, how to get that perfect brown crust, and a few easy swaps that make this dish even more adaptable—but first, a quick tip that changes everything.
Why This Squash Casserole Works Every Time

This squash casserole is a comforting, flaky-topped side dish that balances tender cooked yellow squash with a creamy, savory base and a crunchy Ritz cracker topping, and it works every time because the squash is drained well, the binder of eggs and cheese stabilizes the mixture, and the cracker topping toasted with butter adds consistent golden crunch.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed Ritz crackers (about 1 sleeve)
- 1 cup shredded cheddar cheese
- 1/2 cup sour cream
- 2 large eggs, lightly beaten
- 1/4 cup milk
- 3 tablespoons butter, melted
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 2 tablespoons olive oil (for sautéing)
Preheat oven to 350°F (175°C); sauté squash and onion in olive oil until just tender, drain well and press out excess moisture; in a large bowl combine drained squash and onion with eggs, sour cream, milk, cheese, salt, pepper and garlic powder, transfer to a greased 9×13-inch baking dish, mix crushed Ritz with melted butter and sprinkle evenly over the top, bake 30–35 minutes until bubbly and golden, then let rest 5 minutes before serving.
Tip: For consistent results, be sure to salt the squash and let it sit briefly before cooking to draw out water, press or drain thoroughly, and use room-temperature eggs and cheese so the filling binds smoothly.
Sautéing the squash briefly before assembling helps concentrate flavor and prevents excess moisture, which is why quick sautéing is recommended.
Ingredients You’ll Need and Helpful Substitutions

This squash casserole is simple to assemble and forgiving — it relies on well-drained yellow squash, a creamy egg-and-cheese binder, and a buttery crushed-Ritz topping; below are the ingredients and an easy cooking method with suggested substitutions to suit what you have on hand.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed Ritz crackers (about 1 sleeve)
- 1 cup shredded cheddar cheese
- 1/2 cup sour cream
- 2 large eggs, lightly beaten
- 1/4 cup milk
- 3 tablespoons butter, melted
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 2 tablespoons olive oil (for sautéing)
Preheat oven to 350°F (175°C); sauté squash and onion in olive oil until just tender, then transfer to a colander, sprinkle with a pinch of salt, let sit 10 minutes and press out excess moisture before returning to a bowl and stirring in eggs, sour cream, milk, cheese, salt, pepper and garlic powder.
Pour into a greased 9×13-inch baking dish, mix crushed Ritz with melted butter and sprinkle evenly over the top, bake 30–35 minutes until bubbly and golden, then let rest 5 minutes before serving.
Tip: If you need lower fat, substitute plain Greek yogurt for sour cream and use reduced-fat cheese; for extra flavor fold in 1/4 cup grated Parmesan or 1/4 teaspoon smoked paprika.
Yellow squash is a member of the summer squash family and is popular for its mild flavor and quick cooking time, making it ideal for casseroles like this one that showcase yellow squash.
Step-by-Step Preparation: From Squash to Casserole Dish

This step-by-step recipe walks you through turning fresh yellow squash into a creamy, comforting casserole topped with buttery crushed Ritz crackers; it covers sautéing, draining, mixing the custard-like binder, assembling in the dish, and baking to golden perfection so you’ll have a reliable method to follow from start to finish.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed Ritz crackers (about 1 sleeve)
- 1 cup shredded cheddar cheese
- 1/2 cup sour cream
- 2 large eggs, lightly beaten
- 1/4 cup milk
- 3 tablespoons butter, melted
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 2 tablespoons olive oil (for sautéing)
Heat oven to 350°F (175°C).
In a large skillet, warm olive oil over medium heat, add sliced squash and chopped onion, sauté until just tender (about 5–7 minutes), then transfer to a colander set over a bowl, sprinkle with a pinch of salt and let sit 10 minutes before pressing or gently squeezing out excess moisture; return the squash and onion to a mixing bowl, whisk together eggs, sour cream, milk, cheese, salt, pepper and garlic powder, fold into the squash, transfer to a greased 9×13-inch baking dish, stir crushed Ritz with melted butter then sprinkle evenly over the top and bake 30–35 minutes until bubbly and golden, let rest 5 minutes before serving.
Drain the squash thoroughly and press out as much liquid as possible to avoid a soggy casserole and if you prefer extra flavor stir in 1/4 cup grated Parmesan or a pinch of smoked paprika with the cheese. A similar comforting side dish is Broccoli Casserole which often uses a Ritz cracker topping and creamy binder.
How to Achieve a Perfectly Golden Ritz Topping

To get a beautifully golden, crisp Ritz cracker topping on your squash casserole, focus on even crushing, proper butter distribution, and timing so the crumbs brown without burning while the casserole finishes bubbling; this method uses a mix of melted butter and a quick broil at the end to deliver a glossy, toasty crust that contrasts the creamy squash filling beneath.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed Ritz crackers (about 1 sleeve)
- 1 cup shredded cheddar cheese
- 1/2 cup sour cream
- 2 large eggs, lightly beaten
- 1/4 cup milk
- 3 tablespoons butter, melted
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 2 tablespoons olive oil (for sautéing)
- 2 tablespoons grated Parmesan (optional for extra browning)
- 1/4 teaspoon smoked paprika (optional)
Heat oven to 350°F (175°C); sauté squash and onion in olive oil until just tender, drain and press out excess moisture, whisk eggs, sour cream, milk, cheese and seasonings then fold into vegetables and transfer to a greased 9×13-inch dish; combine crushed Ritz with melted butter (stir in Parmesan or paprika if using) and press evenly over the casserole, bake 30–35 minutes until bubbly and lightly golden then switch oven to broil for 1–2 minutes watching closely to deepen the topping color without burning.
For best results crush crackers to mostly fine crumbs with a few small flakes, mix thoroughly with melted butter so all crumbs are glossy, add any extra cheese sparingly, and broil only at the very end while standing by to prevent scorching. A comforting casserole like this follows the Ritz Chicken Casserole tradition of family-friendly, buttery toppings that brown beautifully in the oven.
Make-Ahead and Freezing Tips for Busy Cooks

Make ahead and freezing tips make this squash casserole a perfect weeknight or batch-cook meal: you can assemble the casserole up to 48 hours in advance in a covered dish kept in the fridge, or freeze the unbaked assembled casserole for up to 3 months (wrap tightly with plastic and foil), and thaw overnight in the refrigerator before baking; for busy cooks, par-cook and drain the squash well and prepare the Ritz topping separately in a resealable bag so final crisping is quick.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed Ritz crackers (about 1 sleeve)
- 1 cup shredded cheddar cheese
- 1/2 cup sour cream
- 2 large eggs, lightly beaten
- 1/4 cup milk
- 3 tablespoons butter, melted
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 2 tablespoons olive oil (for sautéing)
- 2 tablespoons grated Parmesan (optional)
- 1/4 teaspoon smoked paprika (optional)
Heat oven to 350°F (175°C), sauté squash and onion in olive oil until just tender, drain and press out excess moisture, whisk eggs, sour cream, milk, cheese and seasonings then fold into vegetables and transfer to a greased 9×13-inch dish; for make-ahead: cover and refrigerate up to 48 hours before baking or freeze tightly wrapped for up to 3 months and bake from thawed; mix crushed Ritz with melted butter (and Parmesan/paprika if using) and keep topping in a separate airtight container or bag until ready to bake, then spread over casserole and bake 30–35 minutes until bubbly and golden, broil 1–2 minutes if needed to deepen color while watching closely.
When freezing, flash-chill the assembled casserole on a tray until firm before wrapping to prevent sogginess, label with date and bake from thawed at 350°F adding 10–15 minutes to baking time or bake from frozen covered for 45–55 minutes then uncover and brown the topping. A buttery, golden Ritz crackers topping brings a classic crunch that complements the creamy squash filling.
Lighter and Dairy-Free Variations

This lighter, dairy-free twist on classic squash casserole keeps the creamy texture and crunchy Ritz-style topping while guaranteeing plant-based ingredients and lower-fat options; it’s perfect for those avoiding dairy or wanting a fresher, lighter side that still delivers on comfort.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed dairy-free buttery crackers (or gluten-free crackers for GF)
- 1 cup unsweetened plain dairy-free yogurt or cashew cream
- 2 large eggs (or 1/4 cup flax egg for vegan: 1 tbsp ground flax + 3 tbsp water per egg)
- 2 tablespoons unsweetened plant milk (almond/oat)
- 2 tablespoons olive oil (plus 1 tbsp for topping)
- 2 tablespoons nutritional yeast
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 1/4 teaspoon smoked paprika (optional)
Sauté squash and onion in 2 tablespoons olive oil over medium heat until just tender, drain and press out excess moisture.
Whisk eggs (or flax eggs), dairy-free yogurt or cashew cream, plant milk, nutritional yeast and seasonings then fold into vegetables and transfer to a greased 9×13-inch dish; mix crushed dairy-free crackers with 1 tablespoon olive oil (and paprika if using) and scatter over casserole.
Bake at 350°F (175°C) for 30–35 minutes until set and edges are golden, broil 1–2 minutes if needed to crisp topping while watching closely; if using flax eggs, add 5–10 minutes to ensure set.
Tip: For best texture, drain and press the cooked squash well to avoid a watery bake and reserve a small handful of cracker crumbs to sprinkle on just before serving for extra crunch.
This casserole adapts well from other creamy vegetable bakes and pairs nicely with broccoli cheese rice casserole for a comforting holiday spread.
Vegetarian, Gluten-Free, and Keto Adaptations

This adapted squash casserole brings together vegetarian protein and textures while offering both gluten-free and keto-friendly options: use almond or coconut flour and crushed pork rinds for a low-carb topping, or certified gluten-free buttery crackers for GF; swap regular eggs for additional egg whites or cream cheese for a richer vegetarian (not vegan) keto version, and keep the squash well-drained so the bake sets properly.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed GF buttery crackers or 1/2 cup almond flour + 1/2 cup crushed pork rinds for keto
- 1 cup ricotta or cream cheese (for vegetarian) or 1 cup full-fat Greek yogurt (GF) for higher protein
- 3 large eggs (or 4 egg whites for lower fat; for keto prefer whole eggs and extra cream cheese)
- 2 tablespoons unsweetened almond milk (omit for strict keto)
- 2 tablespoons olive oil (plus 1 tbsp for topping)
- 2 tablespoons grated Parmesan (optional for vegetarian, omit for strict keto or use nutritional yeast)
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 1/4 teaspoon smoked paprika (optional)
Sauté the squash and onion in 2 tablespoons olive oil over medium heat until just tender, then drain and press out excess moisture.
Whisk eggs (or chosen egg substitute), ricotta/cream cheese or yogurt, almond milk if using, Parmesan or nutritional yeast, and seasonings, fold into the drained vegetables and transfer to a greased 9×13-inch dish.
Mix your chosen topping (GF crackers or almond flour+pork rinds) with 1 tablespoon olive oil and sprinkle evenly, bake at 350°F (175°C) for 30–40 minutes until set and golden on top, broil 1–2 minutes if needed while watching closely.
Tip: Drain and press the cooked squash thoroughly to prevent a watery casserole and if using pork rinds or almond flour for keto, pulse them with a bit of grated cheese or nutritional yeast to mimic the buttery cracker texture.
This recipe pairs especially well with simple roasted chicken or a crisp green salad for balance and added protein, which highlights the casserole’s vegetarian protein options.
Serving Suggestions and Pairings

This squash casserole adapts easily to vegetarian, gluten-free, and keto diets while pairing well with grilled proteins, crisp salads, or a simple tomato relish; serve it hot from the oven with a squeeze of lemon or a sprinkle of fresh herbs and a side of roasted chicken, pan-seared salmon, or a peppery arugula salad to balance the rich, creamy texture.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed GF buttery crackers or 1/2 cup almond flour + 1/2 cup crushed pork rinds for keto
- 1 cup ricotta or cream cheese or 1 cup full-fat Greek yogurt
- 3 large eggs (or 4 egg whites or extra cream cheese for keto)
- 2 tablespoons unsweetened almond milk (optional)
- 2 tablespoons olive oil (plus 1 tbsp for topping)
- 2 tablespoons grated Parmesan or 2 tablespoons nutritional yeast
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 1/4 teaspoon smoked paprika (optional)
Sauté the squash and onion in 2 tablespoons olive oil over medium heat until just tender, then drain and press out excess moisture.
Whisk eggs (or chosen substitute) with ricotta/cream cheese or yogurt, almond milk if using, Parmesan or nutritional yeast and seasonings, fold into the drained vegetables and transfer to a greased 9×13-inch dish.
Mix chosen topping with 1 tablespoon olive oil and sprinkle evenly, bake at 350°F (175°C) for 30–40 minutes until set and golden on top, broil 1–2 minutes if needed while watching closely.
Tip: Drain and press the cooked squash thoroughly to prevent a watery casserole, pulse pork rinds or almond flour with a bit of grated cheese or nutritional yeast to mimic buttery cracker texture, and let the casserole rest 10 minutes before serving to set. Inspired by a cozy chicken casserole, you can easily add shredded cooked chicken for added protein and flavor shredded cooked chicken.
Troubleshooting Common Casserole Problems

Troubleshooting this squash casserole focuses on preventing excess moisture, ensuring a golden crunchy topping, and achieving a set, not runny, center; follow the ingredient and method adjustments below to rescue a watery bake, fix a soggy topping, or adapt the recipe for dietary needs while keeping flavor and texture balanced.
- 4 cups sliced yellow squash (about 4 medium)
- 1 small onion, finely chopped
- 1 cup crushed GF buttery crackers or 1/2 cup almond flour + 1/2 cup crushed pork rinds for keto
- 1 cup ricotta or cream cheese or 1 cup full-fat Greek yogurt
- 3 large eggs (or 4 egg whites or extra cream cheese for keto)
- 2 tablespoons unsweetened almond milk (optional)
- 2 tablespoons olive oil (plus 1 tbsp for topping)
- 2 tablespoons grated Parmesan or 2 tablespoons nutritional yeast
- 1 teaspoon salt
- 1/2 teaspoon black pepper
- 1/2 teaspoon garlic powder
- 1/4 teaspoon smoked paprika (optional)
Sauté squash and onion in 2 tablespoons olive oil over medium heat until just tender, then drain in a colander, press firmly with paper towels or a clean kitchen towel and let sit 5–10 minutes to remove moisture before mixing with eggs and cheese; whisk eggs (or substitute) with ricotta/cream cheese or yogurt, almond milk if using, Parmesan or nutritional yeast and seasonings, fold into drained vegetables, transfer to a greased 9×13-inch dish, top with crushed crackers or almond/pork rind mix tossed with 1 tablespoon olive oil, bake at 350°F (175°C) for 30–40 minutes until set and golden, and if center is still soft, bake an additional 5–10 minutes covered with foil then uncover and broil 1–2 minutes while watching closely.
Tip: If casserole is watery after baking, let it rest 15 minutes to set, then spoon off excess liquid, reheat briefly to evaporate moisture, or mix in a tablespoon of instant potato flakes or extra crumbs to firm it up before serving.
You can also adapt techniques from a creamy broccoli casserole to enhance creaminess and help bind ingredients for a firmer texture after baking, especially when using ricotta or Greek yogurt creamy broccoli casserole.
Reader-Requested Twists and Flavor Add-Ins

This reader-requested twist on squash casserole keeps the comforting base but adds bold flavors and mix-ins — think crumbled bacon, sharp cheddar, chopped roasted red peppers, fresh herbs, and a crunchy Ritz-inspired topping — while keeping the moisture-control steps from troubleshooting to guarantee a golden, set bake.
- 4 cups sliced yellow squash (about 4 medium), sautéed and well-drained
- 1 small onion, finely chopped and sautéed with squash
- 4 oz cooked crumbled bacon or 1 cup cooked diced mushrooms for vegetarian
- 1 cup shredded sharp cheddar cheese
- 1 cup ricotta or cream cheese or full-fat Greek yogurt
- 3 large eggs
- 1/2 cup roasted red pepper, diced
- 2 tablespoons chopped fresh parsley and 1 tablespoon chopped chives
- 1 cup crushed Ritz crackers (or GF buttery crackers)
- 2 tablespoons unsalted butter, melted (or olive oil)
- 1 teaspoon salt, 1/2 teaspoon black pepper, 1/2 teaspoon garlic powder, pinch of cayenne (optional)
Whisk eggs with ricotta (or chosen dairy) and seasonings, fold in drained sautéed squash and onion, cheddar, bacon (or mushrooms), roasted red pepper and herbs, transfer to a greased 9×13-inch dish, toss crushed crackers with melted butter and sprinkle evenly over the top, bake at 350°F (175°C) for 30–40 minutes until set and golden, rest 10–15 minutes before serving; if center wobbles, tent with foil and bake an additional 5–10 minutes, then broil 1–2 minutes for extra crunch while watching closely.
Tip: For best texture, press and/or squeeze excess moisture from the cooked squash and let the assembled casserole sit 10–15 minutes after baking to fully set before cutting to avoid a runny center. A light final broil can enhance the crust and create a pleasing golden-brown finish to the topping.
