Side Dishes
This sweet potato and spinach bake delivers a restaurant-worthy side dish with crispy golden edges and tender, caramelized sweet potatoes—all in one pan.
The secret lies in roasting the sweet potatoes until perfectly tender while layering in wilted spinach and a rich, savory cheese topping that creates that coveted crispy crust. I developed this recipe after years of testing one-pan techniques, and it never fails to impress, even with picky eaters.
The beauty of this bake is its simplicity: just five core ingredients come together to create a dish that's vegetarian-friendly, budget-conscious, and foolproof. Sweet potatoes roast until fork-tender while absorbing the flavors of garlic, onions, and a blend of cheeses that melts into a creamy, bubbly topping.
The spinach wilted right into the mix ensures every bite is packed with nutrients without sacrificing flavor.
What you'll end up with is a crispy-topped casserole that's golden-brown on top, creamy in the middle, and perfectly tender at the bottom—all while maintaining that natural sweetness of the sweet potatoes.
The aroma alone will have everyone heading to the table, and the texture contrast between the crispy top and creamy filling makes it impossible to resist seconds.
This dish works equally well as a side for roasted meats, grilled chicken, or even as a light vegetarian main when served with a fresh salad.
The best part? It bakes while you prepare the rest of your meal, ensuring dinner comes together with minimal effort and maximum flavor. Let's get started!
Ingredients for sweet potato and spinach bake
Five core ingredients transform into a crispy, cheesy, spinach-packed bake that's vegetarian-friendly and foolproof.
| Ingredient | Amount | Notes |
|---|---|---|
| Sweet Potatoes 🍠 | 2 lbs | Medium-sized, peeled and cubed |
| Fresh Spinach 🌿 | 5 oz | Baby spinach preferred, roughly chopped |
| Yellow Onion 🧅 | 1 whole | Medium, diced finely |
| Garlic Cloves 🧄 | 3 cloves | Fresh, minced |
| Shredded Cheddar Cheese 🧀 | 1 ½ cups | Medium sharp, freshly grated |
| Extra-Virgin Olive Oil 🫒 | ¼ cup | For roasting and drizzling |
| Vegetable Broth 💧 | ½ cup | Low-sodium preferred |
| Salt 🧂 | 1 ½ tsp | Diamond Crystal kosher salt |
| Ground Black Pepper 🌶️ | ½ tsp | Freshly cracked |
| Dried Thyme 🌿 | 1 tsp | Or 1 tbsp fresh thyme leaves |
| All-Purpose Flour 🌾 | 2 tbsp | For crispy topping |
Sweet potatoes are the star here—orange-fleshed varieties like Beauregard work best. Grab the pre-washed, pre-peeled ones at Trader Joe's to save time, or peel and cube yourself for even cooking. The spinach? Baby spinach wilts faster and keeps its vibrant color better than regular leaves. If you're using frozen spinach, thaw and drain it thoroughly—no one wants soggy bottoms. The garlic and onion are your flavor anchors, so don't skip mincing them finely—they'll caramelize beautifully as the potatoes roast.
No fresh thyme? Dried at one-third the amount works just fine. Out of cheddar? Monterey Jack or pepper jack add nice variations—just keep the same quantity. The flour topping is key for that crispy crust, but if you're gluten-free, swap it for almond flour or crushed cornflakes. For extra richness, stir 1 tbsp nutritional yeast into the cheese topping—it adds a cheesy depth without dairy. And if you're prepping ahead, roast the sweet potatoes first—they keep well in the fridge for 3 days before baking.
This bake reheats beautifully—just cover with foil and warm at 350°F for 10 minutes. The cheesy topping gets extra crispy when reheated, so it's perfect for meal prep. Store leftovers in an airtight container for 4-5 days, or freeze portions for up to 3 months. I like to portion mine into individual containers so I can grab a serving straight from the freezer. The crispy top is best when served fresh, but the creamy filling stays delicious even after reheating.
Why You'll Love This Recipe
- One-Pan Magic: I swear by this recipe when I’m too tired to scrub pots—just toss everything on a sheet pan, roast, and boom. The sweet potatoes caramelize while the spinach wilts into crispy little edges, all under that melted cheddar blanket. My lazy nights have never been this satisfying.
- Creamy-Garlicky Bliss: That first bite of tender sweet potato with the garlicky, cheesy pull? It’s the kind of flavor combo that makes you pause mid-fork. The onions add just enough sweetness to balance the earthy spinach, and the cheddar ties it all together like a warm hug.
- Meal Prep MVP: I make double batches on Sundays because this holds up for days—reheats like a dream and still tastes fresh. Pack it for lunches, serve it at potlucks, or freeze half for when you’re too wiped to cook. Honestly, it’s my secret weapon for busy weeks.
- Budget-Friendly Feast: Sweet potatoes and spinach are my go-to affordable staples, and this recipe stretches them into a hearty dish that feeds four for under $10. Add a side of crusty bread, and suddenly you’ve got a full, filling meal without breaking the bank. (Yes, even on a Tuesday night.)
Step-by-step instructions for sweet potato and spinach bake
Here's how to create a comforting one-pan dish with tender sweet potatoes, wilted spinach, and a golden, crispy cheese topping.
Prep and Season the Sweet Potatoes
Preheat your oven to 400°F and line a large baking sheet with parchment paper. Peel and cut the 2 lbs sweet potatoes into 1-inch cubes—this size ensures even cooking and caramelization. Toss them in a large bowl with 2 tablespoons extra-virgin olive oil, 1 teaspoon dried thyme, 1 teaspoon salt, and ½ teaspoon ground black pepper.
Spread the seasoned sweet potatoes evenly on the prepared baking sheet, leaving space between each piece. This prevents steaming and allows them to roast until tender and slightly caramelized. Roast for 20 minutes, stirring once halfway through, until the edges start to soften and the cubes look slightly translucent.
Sauté Onion, Garlic, and Spinach
While the sweet potatoes roast, heat 2 tablespoons extra-virgin olive oil in a large skillet over medium heat. Add the finely diced yellow onion and cook for 5 minutes until softened and translucent. Stir in the minced garlic cloves and cook for 30 seconds until fragrant—don't let it brown or it'll turn bitter.
Add the 5 oz fresh spinach and cook for 2-3 minutes until just wilted. The spinach should look vibrant but still bright green—overcooking turns it mushy. Season with ½ teaspoon salt and ¼ teaspoon black pepper. Remove from heat and set aside.
Build the Bake Layer
Return the roasted sweet potatoes to the baking sheet and spread them into an even layer. Pour the ½ cup vegetable broth over the sweet potatoes, then sprinkle evenly with the sautéed onion and spinach mixture. This adds moisture and depth of flavor to the dish.
In a small bowl, combine the 2 tablespoons all-purpose flour with ½ teaspoon salt and ½ teaspoon black pepper. Sprinkle this mixture evenly over the sweet potatoes—this creates the crispy topping we're after. Top with the 1½ cups shredded cheddar cheese, distributing it evenly across the surface.
Bake to Golden Perfection
Transfer the baking sheet to the oven and bake for 20-25 minutes until the cheese is fully melted and the top is deep golden brown with crispy spots. The edges should pull away slightly from the pan, and the cheese should bubble gently. If the top isn't crispy enough after 20 minutes, broil for 1-2 minutes on high, watching closely to avoid burning.
Let the bake rest for 5 minutes before serving—this allows the cheese to set slightly and makes it easier to slice. The result should be tender sweet potatoes with a creamy, slightly crispy cheese layer on top, and wilted spinach infused with savory onion and garlic throughout.
Pro Tips For Making Sweet Potato And Spinach Bake
- PREHEAT THE DISH FIRST: I learned this the hard way—skipping this step means your sweet potatoes steam instead of roasting. Slide the baking dish into a 425°F (220°C) oven for 10 minutes before adding anything. The extra heat jump-starts the browning and caramelization from the get-go.
- SALT THE SPINACH WATER: Fresh spinach wilts fast, but it also soaks up water like a sponge. When blanching, add 1 teaspoon salt to the boiling water—it crisps the leaves just enough to hold their shape after draining. No soggy mess when you fold them into the bake later.
- DON’T OVERMIX THE CHEESE: Shredded cheddar clumps like a snowdrift if you stir it in too aggressively. Sprinkle it in layers instead—first over the potatoes, then over the spinach—and let it melt into its own pockets. The result? Gooey, pull-apart strands instead of a sad, gloppy blanket.
- ROAST THE ONIONS FIRST: I was skeptical until I tried it: Slice the onion thin, toss with a pinch of salt, and roast for 15 minutes before adding anything else. The sweetness deepens, and the texture softens without turning to mush. Just pull them out when they’re translucent and slightly caramelized—no need to cook them all the way through.
Dietary considerations for this sweet potato and spinach bake
Vegetarian Powerhouse
This bake is a nutrient-packed vegetarian dish that delivers fiber, vitamins A and C, and plant-based protein without any meat. The sweet potatoes provide complex carbs and beta-carotene, while the spinach adds iron, calcium, and vitamin K—all essential for energy and bone health.
I love serving this as a vegetarian main because it's satisfying enough to stand alone or pair perfectly with grilled chicken for meat-eaters. 💪
Gluten-Free Adaptations
Skip the all-purpose flour topping and replace it with 2 tbsp almond flour or 2 tbsp crushed cornflakes for a crispy, gluten-free crust. The flavor stays just as rich, and the texture remains satisfying.
For extra crunch, I sometimes sprinkle gluten-free breadcrumbs mixed with a pinch of salt. Always check your cheese labels to ensure they're certified gluten-free, especially if using pre-shredded varieties.
Dairy-Free Options
Replace the cheddar cheese with 1½ cups dairy-free shreds like Violife or Daiya—they melt beautifully and create that same creamy, bubbly topping. For a nutty depth, try cashew cheese blended with nutritional yeast and a splash of unsweetened almond milk.
The flavor profile changes slightly but still delivers that comforting, cheesy element. 🌱
Low-Carb Variations
Reduce the sweet potatoes to 1 lb (about 2 cups cubed) to cut carbs while keeping the dish hearty. Boost the spinach to 8 oz for extra volume and add ½ cup diced mushrooms for umami depth.
Use Parmesan-style nutritional yeast on top instead of flour for a crispy, low-carb crust. This version keeps the dish filling while aligning with keto-friendly goals.
Allergen-Friendly Swaps
For nut allergies, avoid almond flour and use gluten-free oats or crushed pork rinds for the crispy topping. If you're avoiding onions, substitute with 2 tbsp finely chopped celery or extra garlic for flavor.
Always double-check labels on broths and cheeses for hidden allergens—low-sodium vegetable broth from Imagine or Pacific Foods is a safe bet for soy-free and gluten-free needs.
Nutrition facts
Frequently asked questions
Can I use regular potatoes instead of sweet potatoes?
Regular potatoes won't work as well because they lack the natural sweetness and moist texture that makes this bake special. Sweet potatoes hold up better during roasting and caramelize beautifully, creating that perfect tender-yet-firm bite. If you absolutely must substitute, try red potatoes (peeled and cubed), but expect a less rich flavor.
How do I prevent the spinach from getting soggy?
Wilt the spinach completely before mixing it with the sweet potatoes—it should be dry enough to crumble between your fingers. Also, avoid overcrowding the baking sheet during the initial roast. Spread the sweet potatoes in a single layer with space between them so steam can escape, keeping everything crisp.
Can I make this ahead of time?
Yes! Assemble the dish up to 24 hours ahead and refrigerate uncovered. When ready to bake, add 5-10 minutes to the baking time (cover with foil if needed) to account for the cold start. For best texture, bake fresh whenever possible—the crispy topping suffers slightly when reheated.
What if my cheese topping isn't crispy enough?
Broil for 1-2 minutes at the end on high heat, watching closely to avoid burning. For extra crunch, sprinkle 1 tbsp crushed cornflakes or gluten-free breadcrumbs on top before the final bake. Another trick: Swap the flour topping for 2 tbsp crushed pork rinds (for meat-eaters) or almond flour (for vegetarians).
Can I use frozen spinach instead of fresh?
Thaw and drain frozen spinach completely, then squeeze out excess moisture with a clean towel. Use 8 oz frozen spinach (about 2 cups packed) to match the fresh spinach quantity. The texture will be slightly different but still delicious—just avoid overcooking to prevent mushiness.
