I named this one 'Pinterest image' because the first time I made it, I pulled it out of the oven and my phone was in my hand before I even set the pan down. The top was blistered and golden, the edges were bubbling, and the whole kitchen smelled like garlic and melted cheese. It looked like something you'd scroll past and save instantly.
Advertisements1
But here's the thing – it's not fussy. You're working with ingredients you probably already have: a sturdy base, a creamy sauce, plenty of cheese, and a handful of fresh herbs. The magic is in the layering and the temperature control. Get those two right and you'll nail it every single time.
This serves 6 generously as a main with a side salad, or 8 to 10 as an appetizer cut into smaller squares. It comes together in about 15 minutes of hands-on prep, then the oven does the rest. If you're feeding a crowd or just want leftovers that reheat beautifully, this is your recipe.
Why You'll Love This Recipe
About the Ingredients
1 lb (450g) Yukon Gold potatoes, peeled and sliced 1/4-inch thick
Yukon Golds give you that creamy texture without falling apart. If you only have russets, slice them a touch thicker and add 5 minutes to the bake.
2 tbsp (28g) unsalted butter
Use real butter here, not margarine – it carries the flavor of the onions. Salted butter works too; just cut the added salt in half.
1 large yellow onion, thinly sliced (about 2 cups)
Yellow onions sweeten beautifully as they cook. Sweet Vidalia onions are a great substitute if they're in season.
3 cloves garlic, minced (about 1 tbsp)
Fresh garlic makes a real difference. If you're out, use 1 tsp garlic powder and add it with the flour.
2 tbsp (16g) all-purpose flour
This thickens the sauce so it clings to every layer. For a gluten-free version, swap in 1 tbsp cornstarch.
1 1/2 cups (360ml) whole milk
Whole milk gives you the creamiest result. Half-and-half or a plain unsweetened oat milk both work as substitutes.
1 cup (100g) shredded sharp cheddar cheese
Sharp cheddar brings the tang. Gruyere or a smoked gouda are excellent swaps if you want something fancier.
1/2 cup (50g) grated Parmesan cheese
Parmesan adds that salty, nutty crust on top. Pecorino Romano is a sharper, saltier stand-in.
1/2 tsp kosher salt
Kosher salt flakes season more evenly than table salt. If using table salt, start with 1/4 tsp and taste.
1/4 tsp black pepper
Freshly cracked pepper tastes brighter. White pepper works if you want a smoother look in the sauce.
1 tbsp fresh thyme leaves (or 1 tsp dried)
Thyme loves potatoes and cheese. Rosemary or oregano are both fine substitutions – just use a little less.
2 tbsp fresh parsley, chopped, for garnish
Parsley adds color and a fresh bite at the end. Chives or green onions work just as well.
Tips & Tricks
Don't Skip the Sauce Thickening
If your sauce is too thin, it'll seep to the bottom and leave the top dry. Cook the flour into the butter for a full minute before adding milk, and stir until it coats the back of a spoon.
Slice Potatoes Evenly
Uneven slices mean some turn to mush while others stay crunchy. A mandoline or sharp knife and a steady hand gets you 1/4-inch slices every time.
Let It Rest Before Serving
Pull it out of the oven and wait 10 minutes. This lets the sauce set so it doesn't run all over the plate when you cut into it.
Watch the Broiler
If you want a darker top, a 60-second broil does it – but stay right there. Cheese goes from golden to burnt in seconds.
Pro Tips
Step-by-Step Instructions
1. Preheat and Prep
Heat your oven to 375F (190C). Butter a 9×9-inch baking dish or a similar shallow casserole. Peel and slice your potatoes into 1/4-inch rounds and set them aside in a bowl of cold water so they don't brown.
2. Soften the Onions
Melt the butter in a large skillet over medium heat (about 350F/175C). Add the sliced onions and cook for 6 to 8 minutes, stirring occasionally, until they're soft and translucent. You're not looking for color here – just softness.
3. Build the Sauce
Add the garlic and cook for 30 seconds until fragrant. Sprinkle the flour over the onions and stir constantly for 1 minute – this cooks out the raw flour taste. Slowly pour in the milk, whisking as you go, and cook for 3 to 4 minutes until the sauce thickens enough to coat a spoon.
4. Season and Melt
Turn off the heat. Stir in the salt, pepper, thyme, cheddar, and half the Parmesan until the cheese melts into the sauce. Taste it – it should be well-seasoned and creamy.
5. Layer the Dish
Spread a thin layer of sauce on the bottom of your baking dish. Arrange half the potato slices in an even layer, then pour over half the remaining sauce. Repeat with the rest of the potatoes and sauce. Press down gently so everything settles.
6. Top and Cover
Sprinkle the remaining Parmesan over the top. Cover the dish tightly with foil and bake at 375F (190C) for 20 minutes.
7. Uncover and Brown
Remove the foil and continue baking for 15 to 18 minutes, until the top is golden brown and the edges are bubbling. A knife inserted into the center should slide through the potatoes with no resistance.
8. Rest and Garnish
Let the dish rest for 10 minutes on a wire rack. Sprinkle with fresh parsley, cut into squares, and serve warm.
Delicious Variations
Bacon and Chive Version
Cook 6 slices of bacon until crisp, crumble them, and layer half into the middle with a handful of chopped chives. Skip the thyme and use the bacon fat to cook your onions for extra flavor.
Spicy Southwest Twist
Add 1 tsp cumin and 1/2 tsp chili powder to the sauce, swap the cheddar for pepper jack, and toss in a can of drained diced green chiles. Top with crushed tortilla chips for crunch.
Mushroom and Gruyere Upgrade
Saute 8 oz of sliced cremini mushrooms with the onions and use gruyere instead of cheddar. It's earthy, nutty, and feels like a fancy bistro side dish.
How to Store Pinterest image
Refrigerator
Store leftovers in an airtight container in the fridge for up to 4 days. Let it cool completely before sealing so condensation doesn't make it soggy.
Freezer
Freeze individual portions in freezer-safe containers for up to 2 months. Thaw overnight in the fridge before reheating for the best texture.
Reheating
Reheat in a 350F (175C) oven for 10 to 12 minutes, covered with foil, until hot throughout. The microwave works in a pinch – 90 seconds on high – but the oven brings back that crispy top.
Frequently Asked Questions
Q: Can I make this Pinterest image recipe ahead of time?
Yes, you can assemble the entire dish up to 24 hours in advance and keep it covered in the fridge. Add 5 to 10 minutes to the covered baking time since it's going into the oven cold. Just don't add the final Parmesan topping until right before baking so it doesn't get soggy.
Q: Why is my casserole watery?
Your sauce was likely too thin or your potatoes released too much water during baking. Make sure your sauce coats the back of a spoon before layering, and pat your potato slices dry after soaking them. Also, don't skip the resting time – it lets the sauce reabsorb and thicken.
Q: What's the best cheese for this dish?
Sharp cheddar is the classic choice because it melts well and has enough flavor to stand up to the potatoes. For a creamier melt, try a 50/50 blend of cheddar and mozzarella. Just avoid very dry aged cheeses on their own – they won't melt smoothly.
Q: Can I use frozen potatoes instead of fresh?
You can, but the texture will be softer and the dish may be a bit wetter. If using frozen sliced potatoes, thaw and drain them well, then reduce the milk by 1/4 cup. Fresh Yukon Golds really do give the best result here.
Q: How do I know when it's fully cooked?
A knife or cake tester inserted into the center should slide through the potatoes with zero resistance. The top should be golden brown and the edges bubbling. If the top is browning too fast but the potatoes aren't tender, cover it with foil and give it another 10 minutes.
Give this one a try this week – it's the kind of dish that makes you feel like a pro without any stress. Snap a photo before it disappears, and if you make it, come back and tell me how it turned out. Small steps, big impact.
Pinterest image
Pinterest image is a golden, bubbling cheese-and-herb bake that turns simple pantry staples into a photo-worthy dinner everyone asks for again.
🧂 Ingredients
- 1 lb (450g) Yukon Gold potatoes, peeled and sliced 1/4-inch thick
- 2 tbsp (28g) unsalted butter
- 1 large yellow onion, thinly sliced (about 2 cups)
- 3 cloves garlic, minced (about 1 tbsp)
- 2 tbsp (16g) all-purpose flour
- 1 1/2 cups (360ml) whole milk
- 1 cup (100g) shredded sharp cheddar cheese
- 1/2 cup (50g) grated Parmesan cheese
- 1/2 tsp kosher salt
- 1/4 tsp black pepper
- 1 tbsp fresh thyme leaves (or 1 tsp dried)
- 2 tbsp fresh parsley, chopped, for garnish
📋 Instructions
- 1Preheat and Prep — Heat your oven to 375F (190C). Butter a 9×9-inch baking dish or a similar shallow casserole. Peel and slice your potatoes into 1/4-inch rounds and set them aside in a bowl of cold water so they don't brown.
- 2Soften the Onions — Melt the butter in a large skillet over medium heat (about 350F/175C). Add the sliced onions and cook for 6 to 8 minutes, stirring occasionally, until they're soft and translucent. You're not looking for color here – just softness.
- 3Build the Sauce — Add the garlic and cook for 30 seconds until fragrant. Sprinkle the flour over the onions and stir constantly for 1 minute – this cooks out the raw flour taste. Slowly pour in the milk, whisking as you go, and cook for 3 to 4 minutes until the sauce thickens enough to coat a spoon.
- 4Season and Melt — Turn off the heat. Stir in the salt, pepper, thyme, cheddar, and half the Parmesan until the cheese melts into the sauce. Taste it – it should be well-seasoned and creamy.
- 5Layer the Dish — Spread a thin layer of sauce on the bottom of your baking dish. Arrange half the potato slices in an even layer, then pour over half the remaining sauce. Repeat with the rest of the potatoes and sauce. Press down gently so everything settles.
- 6Top and Cover — Sprinkle the remaining Parmesan over the top. Cover the dish tightly with foil and bake at 375F (190C) for 20 minutes.
- 7Uncover and Brown — Remove the foil and continue baking for 15 to 18 minutes, until the top is golden brown and the edges are bubbling. A knife inserted into the center should slide through the potatoes with no resistance.
- 8Rest and Garnish — Let the dish rest for 10 minutes on a wire rack. Sprinkle with fresh parsley, cut into squares, and serve warm.



