
This is mashed potatoes taken one big step further. Creamy, buttery mashed potatoes get folded with slow-cooked caramelized onions, tangy sour cream and plenty of shredded white cheddar. Then the whole thing is topped with more cheese and baked until it’s bubbling and golden.
Each spoonful is fluffy and rich, with ribbons of jammy, sweet onion running through it. The top bakes into a lacy, browned cheese crust with crisp edges, and the inside stays soft and stretchy. While it bakes, your kitchen will smell like browned butter and toasted cheese.
Home cooks will love that nearly all of the work can be done ahead. You can caramelize the onions days in advance, assemble the casserole the night before and bake it right before dinner. That frees up your stovetop and your attention when it matters most.
It’s a natural fit for holiday tables and potlucks because one dish easily feeds ten. It also makes a cozy weekend side for roast chicken or steak. It’s vegetarian if you swap in vegetable broth, and it’s naturally gluten-free.
Why This Recipe Works
The caramelized onions carry the flavor here. Cooking them slowly over medium-low heat for 40 to 45 minutes turns their natural sugars deep amber, and that builds sweet, savory complexity that raw or quickly sautéed onions can’t match. Because they go in as soft strands, they marble through the potatoes and add flavor to every bite without making them watery.
Sour cream and a small splash of broth keep the casserole creamy through the oven. Mashed potatoes dry out as they bake. The sour cream adds tang and moisture, and the broth loosens the mash just enough to stay spoonable while adding savory depth. Together they stop the mash from turning stiff or gluey.
Splitting the cheese into two portions does two jobs. The cheese stirred into the potatoes melts into those long, stretchy strands you see when serving. The cheese scattered on top browns into a crisp, golden crust. Yukon Gold potatoes are naturally buttery and creamy, so they hold their texture well through the second round of cooking.
Tips for Success
- Give the onions time. Turning up the heat to speed them along burns them before they get sweet. Low and slow is the only way to get there.
- Dry the potatoes after draining. Return the drained potatoes to the hot pot for 1 to 2 minutes so the steam escapes, which keeps the mash from turning watery.
- Use full-fat dairy. Low-fat sour cream and skim milk can separate in the oven and leave a grainy texture.
- Make it ahead. Assemble the casserole up to 24 hours ahead, then add 10 to 15 minutes to the baking time if it goes into the oven cold.
- Caramelize the onions in advance. They keep in the fridge for up to 5 days, which cuts the day-of work in half.
- Deglaze the skillet. If brown bits stick to the skillet, add 1 to 2 tablespoons of water and scrape them up. That’s concentrated flavor.
- Use a different dish if needed. Two 8×8-inch dishes work as well as one 9×13. Start checking them about 5 minutes earlier.
Variations
Smoky bacon version: Fold in 8 slices of crisp, crumbled cooked bacon along with the onions. You can also caramelize the onions in 2 tablespoons of bacon fat instead of the butter and oil for an extra-savory, smoky flavor.
Gruyère swap: Replace half of the cheddar with shredded Gruyère. It melts beautifully and adds a nutty, slightly sweet flavor that pairs naturally with caramelized onions.
Garlic and herb: Add 4 cloves of roasted garlic to the potatoes while mashing, and stir 2 tablespoons of chopped chives into the casserole. Garnish with chives along with the thyme.
Lighter version: Use Greek yogurt in place of the sour cream, reduce the butter in the mash to 4 tablespoons, and use 2½ cups (250 g) of cheese in total. It’s still creamy, just a little tangier and less rich.
FAQ
Can I use leftover mashed potatoes?
Yes, and it’s a great way to use them up. You’ll need about 8 cups. Cold leftover mash is stiffer, so warm it briefly or add an extra 2 to 3 tablespoons of broth to loosen it before stirring in the other ingredients.
Can I caramelize the onions faster?
You can bring the time down to about 30 minutes by starting over medium heat and stirring in a pinch of baking soda (about ⅛ teaspoon), but the flavor won’t be as deep. Slow-cooking the onions, or making them a day ahead, gives the best results. Don’t use high heat, which scorches the onions before they turn sweet.
Why did my casserole turn out gluey?
Gluey potatoes almost always come from overworking them. Mixing them in a food processor or stirring them too hard releases too much starch. Mash by hand, fold the mix-ins gently, and stop as soon as everything is combined.
What cheese works best?
A good melting cheese with some sharpness works best, which is why white cheddar is the default here. Mild yellow cheddar, Monterey Jack or a cheddar-Gruyère blend also melt well. Avoid hard cheeses like Parmesan as the main cheese, because they don’t stretch.
Can I make this in a slow cooker?
You can keep the finished casserole warm in a slow cooker set to low for up to 2 hours, which is handy for potlucks. You won’t get the browned cheese crust, though, so bake it in the oven first if you can.
Storage and Reheating
Let leftovers cool, then cover the dish tightly or move portions into airtight containers. They’ll keep in the refrigerator for up to 4 days.
To reheat individual portions, microwave them for 1½ to 2 minutes, stirring halfway through, and add a teaspoon of milk if they look dry. For a larger amount, cover the dish with foil and bake at 350°F (175°C) for 20 to 25 minutes. Then remove the foil for the last 5 minutes to crisp the top again.
The casserole freezes well for up to 3 months. Freeze it before baking, wrapped in plastic wrap and then foil. Thaw it overnight in the refrigerator, then bake as directed, adding 10 to 15 minutes. Thawed potatoes can look slightly softer, but a good stir before baking fixes that.
Serving Suggestions
This casserole is a natural partner for roast chicken or turkey, because the sweet onions complement crisp, savory skin. It’s just as good next to seared steak or pork chops, where the creamy potatoes balance the richer meat.
To round out the plate, add a bright green vegetable like roasted green beans or garlicky broccoli, since their freshness cuts through the cheese. A simple green salad with a sharp vinaigrette also works well and keeps the meal from feeling too heavy.

Final Notes
This cheesy caramelized onion mashed potato casserole takes a familiar side dish and makes it the star of the table. The ingredients are simple: good potatoes, patiently cooked onions, sour cream and plenty of cheese. You can prep almost all of it ahead, and it feeds a crowd. Make it once for a holiday or a Sunday dinner, and it may become one of your regular sides. Enjoy every cheesy, golden scoop.
Print
Cheesy Caramelized Onion Mashed Potato Casserole Recipe
- Total Time: 1 hour 50 minutes
- Yield: 10 1x
Description
Creamy mashed potatoes swirled with jammy caramelized onions and sour cream, then baked under a golden cheddar crust. A make-ahead side that feeds a crowd.
Ingredients
- 4 lb (1.8 kg) Yukon Gold potatoes, peeled and cut into 2-inch chunks
- 6 tbsp (85 g) unsalted butter, softened
- ¾ cup (180 ml) whole milk, warmed
- 2 tsp kosher salt, plus 1 tbsp for the cooking water
- ½ tsp freshly ground black pepper
- 3 large yellow onions (about 2 lb / 900 g), halved and thinly sliced
- 3 tbsp (42 g) unsalted butter
- 1 tbsp olive oil
- ½ tsp kosher salt
- 1 cup (240 g) full-fat sour cream
- 3½ cups (350 g) shredded white cheddar, divided (2 cups/200 g to mix in, 1½ cups/150 g for the top)
- ⅓ cup (80 ml) low-sodium beef broth
- 1 tbsp fresh thyme leaves, for garnish
Instructions
- Transfer the mashed potatoes to the dish. Heat the oven to 375°F (190°C). Scrape your warm, freshly made mashed potatoes from the pot into the 9×13-inch baking dish and spread them loosely. They should look creamy and soft, with visible flecks of black pepper, and they should fall from the pot in thick, fluffy mounds. Taste them now and add more salt if needed, because it’s much harder to adjust seasoning after the cheese goes in. A common mistake is letting the potatoes cool completely first. Warm potatoes blend with the other ingredients far more easily.
- Add the onions, sour cream, cheese and broth. Spread the caramelized onions over the potatoes, dollop the sour cream across the top, and pile on 2 cups (200 g) of the shredded cheddar. Slowly pour the ⅓ cup (80 ml) of broth over everything. The onions should be glossy, deep brown and smell sweet and nutty. If they look pale or smell sharp, they needed more time in the skillet. Don’t add extra broth “just in case.” Too much liquid makes the casserole soupy instead of creamy.
- Stir everything together. Use a wooden spoon to fold and swirl the mix-ins through the potatoes until the sour cream disappears and the cheese starts melting from the warmth. You want visible streaks of onion marbled throughout, not a uniform beige purée. Once you’re done, smooth the surface into an even layer so it bakes evenly. Stop as soon as everything is combined. Over-stirring warm potatoes develops their starch and gives the casserole a gummy, sticky texture.
- Top with the remaining cheese. Scatter the remaining 1½ cups (150 g) of shredded cheddar evenly over the surface, all the way to the edges and corners. The potatoes should be completely covered in a loose, even layer of cheese shreds. Don’t pack the cheese down. Loose shreds brown into a lacy crust, while pressed cheese melts into a flat, greasy sheet. If you’re making the casserole ahead, cover and refrigerate it at this point.
- Bake until golden and bubbling. Bake uncovered for 30 to 35 minutes, until the cheese is bubbling at the edges and the top is turning golden. For deeper browning, switch to broil for the last 2 to 3 minutes and watch closely. It’s done when the surface is blistered orange-gold, the exposed onion tips are dark and crisp, and the edges sizzle. Don’t walk away during broiling, because cheese can go from golden to burnt in under a minute.
- Garnish and serve. Let the casserole rest for 5 to 10 minutes, then scatter the fresh thyme leaves over the top. The short rest lets it set slightly so scoops hold their shape. Dig in with a large serving spoon, and you should see long strands of melted cheese stretching from each scoop. Don’t skip the rest. Serving straight from the oven gives you runny scoops and a scorched tongue.
Notes
- Give the onions time. Turning up the heat to speed them along burns them before they get sweet. Low and slow is the only way to get there.
- Dry the potatoes after draining. Return the drained potatoes to the hot pot for 1 to 2 minutes so the steam escapes, which keeps the mash from turning watery.
- Use full-fat dairy. Low-fat sour cream and skim milk can separate in the oven and leave a grainy texture.
- Make it ahead. Assemble the casserole up to 24 hours ahead, then add 10 to 15 minutes to the baking time if it goes into the oven cold.
- Caramelize the onions in advance. They keep in the fridge for up to 5 days, which cuts the day-of work in half.
- Deglaze the skillet. If brown bits stick to the skillet, add 1 to 2 tablespoons of water and scrape them up. That’s concentrated flavor.
- Use a different dish if needed. Two 8×8-inch dishes work as well as one 9×13. Start checking them about 5 minutes earlier.
- Prep Time: 30 minutes
- Cook Time: 1 hour 20 minutes (onions and potatoes cook at the same time, plus baking)
- Category: Side Dishes
