Roasted Sweet Potato, Spinach, Caramelized Onion, Feta & Walnut Bake
There are some recipes that feel like comfort food the moment you smell them baking.
This Roasted Sweet Potato, Spinach, Caramelized Onion, Feta & Walnut Bake is one of those dishes. It has everything I love in a cozy homemade meal: tender roasted sweet potatoes, soft spinach, deeply caramelized onions, salty crumbled feta, and crunchy walnuts tucked into every bite.
The combination of flavors is what makes this bake so special. The sweet potatoes become golden and naturally sweet in the oven, while the onions slowly caramelize until they’re soft and rich. Then you get the fresh spinach, creamy-salty feta, and those little bites of toasted walnut for crunch.
It’s the kind of recipe that feels perfect for a relaxed weekend lunch or a family dinner when you want something nourishing but still comforting.
And I especially love how beautiful it looks coming out of the oven. The golden sweet potatoes, wilted greens, creamy feta, and toasted walnuts make a simple vegetable bake feel like something you’d happily put in the center of the table for everyone to share.
❤️ Why You’ll Love This Recipe
Naturally vegetarian
Packed with colorful vegetables
Sweet and savory flavor combination
Creamy, salty feta
Crunchy toasted walnuts
Great meatless main dish
Wonderful side dish for roasted meats
Perfect for fall and winter dinners
Excellent for meal prep
Easy to make ahead
Beautiful enough for a holiday table
📋 Recipe Information
Prep Time: 20 minutes
Cook Time: 50 minutes
Total Time: 1 hour 10 minutes
Servings: 6
Course: Side Dish, Vegetarian Main Dish
Cuisine: Mediterranean-Inspired, American
🛒 Ingredients
Sweet Potato & Vegetable Bake
2 pounds sweet potatoes, peeled and cut into 1-inch cubes
1 large yellow onion, thinly sliced
5 ounces fresh baby spinach
1 cup crumbled feta cheese
¾ cup chopped walnuts
3 tablespoons olive oil
1 tablespoon butter
2 cloves garlic, minced
½ teaspoon salt
½ teaspoon black pepper
½ teaspoon dried thyme
½ teaspoon dried rosemary
Optional Finishing Touches
1 tablespoon fresh parsley
1 teaspoon fresh thyme
A drizzle of balsamic glaze
A squeeze of fresh lemon juice
Extra crumbled feta
Extra toasted walnuts
🍳 Equipment Needed
Large baking sheet
Large skillet
9×13-inch baking dish
Large mixing bowl
Wooden spoon or spatula
Knife
Cutting board
Measuring cups and spoons
👩🍳 How to Make Roasted Sweet Potato, Spinach, Caramelized Onion, Feta & Walnut Bake
Step 1: Preheat the Oven
Preheat your oven to 425°F (220°C).
Lightly grease a 9×13-inch baking dish with olive oil or butter.
Set it aside.
Step 2: Roast the Sweet Potatoes
Place the cubed sweet potatoes on a large baking sheet.
Drizzle with 2 tablespoons of olive oil.
Sprinkle with:
Salt
Black pepper
Thyme
Rosemary
Toss until all the sweet potato pieces are evenly coated.
Spread them into a single layer.
Roast for approximately 25–30 minutes, turning once halfway through.
The sweet potatoes should be tender inside with golden, caramelized edges.
Those browned edges are where so much of the flavor comes from, so don’t pull them out too early.
🧅 Step 3: Caramelize the Onion
While the sweet potatoes are roasting, heat the butter and remaining tablespoon of olive oil in a large skillet over medium-low heat.
Add the sliced onion.
Cook slowly for approximately 15–20 minutes, stirring every few minutes.
The onions will gradually soften, turn golden, and become beautifully sweet.
If they begin browning too quickly, reduce the heat.
Add the minced garlic during the final 1–2 minutes of cooking.
Stir well and remove from the heat.
🌿 Step 4: Wilt the Spinach
Add the fresh spinach to the skillet with the caramelized onions.
Cook for 1–2 minutes, stirring gently, until the spinach wilts.
Don’t overcook it.
You want the spinach softened but still fresh and vibrant.
🌰 Step 5: Toast the Walnuts
While the vegetables are cooking, place the chopped walnuts in a dry skillet over medium-low heat.
Toast for approximately 3–5 minutes, stirring frequently.
They should smell fragrant and lightly toasted.
Watch them carefully because walnuts can burn quickly.
Remove them from the heat immediately once toasted.
🥘 Step 6: Assemble the Bake
Once the sweet potatoes are roasted, transfer them to the prepared baking dish.
Add the spinach and caramelized onion mixture.
Gently toss everything together.
Sprinkle about half of the feta and half of the toasted walnuts throughout the mixture.
Finish by scattering the remaining feta and walnuts over the top.
Try not to stir too aggressively. You want to keep some of those beautiful roasted sweet potato pieces intact.
🔥 Step 7: Bake
Return the baking dish to the oven.
Bake at 375°F (190°C) for approximately 15–20 minutes, until the feta is warmed through and the edges are lightly golden.
If you want a little extra browning, place the dish under the broiler for 1–2 minutes at the end.
Watch it closely.
🍋 Step 8: Finish and Serve
Remove the bake from the oven.
Let it rest for about 5 minutes.
Sprinkle with fresh parsley or thyme if desired.
For a little brightness, add a small squeeze of lemon juice or a light drizzle of balsamic glaze.
Serve warm.
💡 Tips for the Best Vegetable Bake
Cut the Sweet Potatoes Evenly
Try to cut the sweet potatoes into similarly sized pieces.
This helps them cook evenly so you don’t end up with tiny pieces that are overcooked while larger pieces are still firm.
Don’t Crowd the Sweet Potatoes
Give the sweet potatoes plenty of space on the baking sheet.
Crowding creates steam and makes it harder to get those delicious caramelized edges.
Be Patient With the Onions
The caramelized onions are worth the extra time.
Cook them slowly rather than turning the heat up and rushing the process.
Toast the Walnuts
Toasting takes only a few minutes but makes the walnuts much more flavorful and aromatic.
Add Feta at the End
Feta doesn’t melt like mozzarella or cheddar.
Adding it toward the end lets it stay creamy and crumbly while warming beautifully.
🌟 Delicious Variations
Add Chickpeas
For a heartier vegetarian main dish, add 1½ cups drained and rinsed chickpeas before baking.
They add protein and make the casserole even more filling.
Add Cranberries
For a festive fall or holiday version, stir in ½ cup dried cranberries.
The sweet-tart berries are delicious with the sweet potatoes, feta, and walnuts.
Add Goat Cheese
Replace half or all of the feta with crumbled goat cheese for a softer, creamier flavor.
Make It Spicy
Add a pinch of red pepper flakes or a little smoked paprika to the sweet potatoes before roasting.
The subtle heat works beautifully with the sweetness.
Add Apples
For an autumn-inspired version, add one diced apple along with the sweet potatoes.
Choose a firm apple that holds its shape during baking.
Add Bacon
If you’re not keeping the recipe vegetarian, add 6 slices of cooked, crumbled bacon before the final bake.
The salty bacon is delicious with the sweet potatoes and feta.
🍽️ What to Serve With It
This bake is hearty enough to serve as a vegetarian main dish, but it also makes a wonderful side.
Serve it alongside:
Roast chicken
Turkey
Pork tenderloin
Grilled steak
Baked salmon
Roast beef
Grilled sausages
For a vegetarian dinner, serve it with:
A simple green salad
Crusty bread
Lentil soup
Tomato soup
A creamy yogurt sauce
A little lemony Greek yogurt spooned over the top is especially delicious.
🥡 Storage Instructions
Refrigerator
Allow leftovers to cool and transfer them to an airtight container.
Refrigerate for up to 4 days.
Freezer
The bake can be frozen, although the spinach and feta may change texture slightly after thawing.
For best quality, freeze individual portions in airtight freezer-safe containers for up to 2 months.
Thaw overnight in the refrigerator.
Reheating
Reheat in a 350°F (175°C) oven until warmed through.
Individual portions can also be reheated in the microwave.
If the walnuts have softened, add a few freshly toasted walnuts before serving to bring back the crunch.
📊 Approximate Nutrition Information
Per serving, based on 6 servings:
Calories: 380
Protein: 9g
Fat: 23g
Total Carbohydrates: 40g
Fiber: 7g
Net Carbohydrates: 33g
Nutrition is approximate and will vary depending on the size of the sweet potatoes, amount of feta and walnuts, and specific ingredients used.
❓ Frequently Asked Questions
Can I make this bake ahead of time?
Yes! You can roast the sweet potatoes and caramelize the onions a day ahead.
Store them separately in the refrigerator, then assemble the bake when you’re ready.
Add a few extra minutes to the final baking time if the ingredients are cold.
Can I use frozen spinach?
Yes. Thaw it completely and squeeze out as much excess moisture as possible before adding it.
Fresh spinach generally gives the best texture.
Do I have to peel the sweet potatoes?
No. If you like the skins, simply scrub the sweet potatoes thoroughly and leave them unpeeled.
Can I use another cheese?
Absolutely.
Goat cheese, Parmesan, ricotta salata, or a mild blue cheese can all work nicely.
Feta gives the dish its signature salty flavor, though.
Can I make this dairy-free?
Yes. Simply omit the feta or replace it with a dairy-free feta-style cheese.
Are walnuts necessary?
No, but they add a wonderful contrast to the soft sweet potatoes and spinach.
Pecans, almonds, or pumpkin seeds are good alternatives.
Can I make this recipe lower in calories?
Use a little less olive oil and butter, reduce the walnuts slightly, and choose a reduced-fat feta.
The dish will still have plenty of flavor from the roasted vegetables and caramelized onions.
Why are my sweet potatoes mushy?
Usually this happens because the sweet potatoes were overcrowded on the baking sheet or cut too small.
Spread them out well and roast them in a single layer.
Can I serve this cold?
You can, although it’s best warm.
Leftovers can also be served at room temperature as part of a lunch spread or picnic-style meal.
💚 Final Thoughts
This Roasted Sweet Potato, Spinach, Caramelized Onion, Feta & Walnut Bake is one of those recipes that reminds me why simple ingredients can make such beautiful food.
The sweet potatoes bring warmth and natural sweetness. The caramelized onions add deep savory richness. The spinach keeps everything fresh and colorful, while feta brings that salty, creamy bite and toasted walnuts add just the right amount of crunch.
It’s comforting without feeling heavy, colorful without being complicated, and special enough for a holiday table while still being easy enough for a regular family dinner.
Serve it warm, gather everyone around the table, and don’t be surprised if the serving spoon keeps making its way back to the baking dish.