
The squash comes out of the oven with a soft, fragrant center, but it still needs one more trip through the oven before it turns into casserole. Roasting the halves first gives you tender flesh to mash, while the second bake sets the sweet filling under a crunchy pecan topping. That two-part method is what makes this butternut squash casserole feel like a real casserole instead of a bowl of mashed squash.
I like the contrast here: the squash filling is smooth and gently spiced with cinnamon, and the topping bakes into buttery clusters with chopped pecans. The topping should cover the surface without being pressed down into the filling. Once the pecans turn golden and the center is set, let the dish rest before serving so each scoop holds its shape.

Kitchen Note
Give the casserole the full 10-minute rest before serving. The center firms as it sits, so the first scoop stays together instead of slumping around the pecan topping.
Save this butternut squash casserole with pecan topping for a cozy side dish with a smooth, cinnamon-scented center and a crisp, buttery top.
Why the Squash Roasts at 400°F Before the Casserole Bakes at 350°F
The two oven temperatures do different jobs. The hotter first roast cooks the squash in its own skin, leaving you with soft flesh that’s easy to scoop and mash. The lower temperature is for the assembled casserole: it gives the egg-based filling time to set while the pecan topping browns.
Keeping those stages separate matters more than it might seem. If you used the roasting temperature for the whole bake, the topping could darken before the center had time to set. Dropping the oven to 350°F before the filling goes in gives the top and center a chance to finish together. Look for a golden topping and a set center, not just color on the surface.
That’s also why this dish starts with squash halves rather than prepared mash. You control how tender the squash gets, then mash the flesh yourself. Leaving it mostly smooth gives the filling a soft texture without turning the topping into an afterthought.
The Ingredient Choices Behind a Smooth Squash Base and Crunchy Pecan Top

- Butternut squash — Choose a firm squash with intact skin. Roasting it in halves makes the flesh easy to scoop, and there’s no need to peel it before it goes in the oven. A smaller squash may cook sooner, so use the knife-tenderness cue rather than relying on the clock alone.
- Eggs and whole milk — The eggs give the mashed squash enough structure to set into slices, while milk keeps the filling from becoming dense. Whole milk gives the richest texture; 2% milk works too, with a slightly lighter result. Keep the eggs in the mixture because they do the setting work.
- Unsalted butter — Butter carries through both the filling and the pecan topping, so its flavor comes through clearly. Unsalted butter lets the fine salt stay in balance. If you only have salted butter, leave out the added fine salt so the casserole doesn’t tip too salty.
- Brown sugar, flour, and pecans — These make a topping that bakes into sweet, crisp clusters rather than a loose layer of nuts. Chopped pecans give you a little crunch in each bite; walnuts can stand in for them, though their flavor is more earthy. Use fresh nuts if you can, since stale pecans taste flat against the sweet topping.
- Vanilla and cinnamon — Vanilla rounds out the squash’s sweetness, while cinnamon gives the filling its warm note. Ground cinnamon is the right fit here because it blends evenly into the mash; no extra prep is needed.
From Roasted Squash to a Set, Golden Casserole
Roast the halves until tender
Heat the oven to 400°F and set the squash halves cut side down on a rimmed baking sheet. Roast for 45–60 minutes, until a knife slides easily into the flesh. Let the squash cool until it’s no longer steaming, about 15 minutes, then scoop out the flesh and discard the skins. Mash it in a large bowl until mostly smooth.
Whisk a smooth filling
Reduce the oven temperature to 350°F and brush a 2-quart baking dish with 1 tablespoon of the melted butter. Stir the sugar and 3 tablespoons of melted butter into the mashed squash first. Whisk in the lightly beaten eggs, milk, vanilla, cinnamon, and salt just until combined; stop once the mixture looks even.
Mix the pecan topping into clumps
Stir the flour, brown sugar, and chopped pecans together in a medium bowl. Mix in the remaining melted butter until the dry ingredients gather into clumps. If there are a few different-sized clusters, that’s fine; the uneven pieces make a more interesting top than a uniform layer of crumbs.
Bake until the center sets
Spread the squash filling evenly in the prepared dish, then scatter the pecan mixture over it. Bake at 350°F for 35–45 minutes, until the topping is golden and the center is set and reaches 160°F. Rest the casserole for 10 minutes before serving.
Easy Swaps for the Pecan-Topped Squash Casserole
Make the topping gluten-free
Use a cup-for-cup gluten-free baking flour blend in place of the all-purpose flour in the topping. The pecans and brown sugar still form a crisp, sweet layer, though the clumps may be a little more delicate depending on the blend.
Use dairy-free butter and milk
Replace the butter with the same amount of plant-based butter, keeping the filling and topping portions divided as written, and use an equal amount of unsweetened plain oat milk instead of whole milk. The filling will taste a little less rich, but the squash will still bake into a set casserole. This swap is dairy-free, not egg-free.
Trade pecans for walnuts
Swap in the same amount of chopped walnuts for a topping with a deeper, earthier taste. Keep the flour, brown sugar, and butter in the topping unchanged so it still forms crisp clusters over the squash.
Storage and Reheating
- Refrigerator: Cover leftovers and refrigerate them for 3 to 4 days. The pecan topping softens as it sits.
- Freezer: Freeze cooled portions in an airtight container for up to 2 months. Thaw them overnight in the refrigerator; expect a softer topping after thawing.
- Reheating: Warm individual portions in the microwave in short intervals, or cover the baking dish loosely with foil and reheat in the oven until the center reaches 165°F. Long microwave blasts can make the squash filling rubbery.
Questions That Come Up Before the Casserole Goes in the Oven

Butternut Squash Casserole with Pecan Topping
Ingredients
Equipment
Method
- Heat the oven to 400°F and place the squash halves cut side down on a rimmed baking sheet.
- Roast for 45–60 minutes, until a knife easily pierces the squash.
- Cool until no longer steaming, about 15 minutes.
- Scoop the flesh into a large bowl and mash until mostly smooth, discarding the skins.
- Reduce the oven temperature to 350°F and brush a 2-quart baking dish with 1 tablespoon of the melted butter.
- Stir the sugar and 3 tablespoons of melted butter into the mashed squash.
- Whisk in the eggs, milk, vanilla, cinnamon, and salt until combined.
- In a medium bowl, stir together the flour, brown sugar, and pecans.
- Mix in the remaining 1/4 cup melted butter until clumps form.
- Spread the squash mixture in the prepared baking dish.
- Scatter the pecan topping evenly over it.
- Bake at 350°F for 35–45 minutes, until the topping is golden and the center is set and reaches 160°F.
- Rest for 10 minutes before serving.