Golden Gruyere on top, silky caramelized onions underneath, and pillowy gnocchi tucked into a rich onion broth is the kind of dinner that disappears fast. This baked French onion gnocchi has the deep, savory comfort of classic French onion soup, but it eats like a real main dish instead of a starter. The gnocchi cooks right in the sauce, so every bite picks up onion sweetness, thyme, and that salty cheese crust.
The key is patience with the onions. Let them cook low and slow until they turn a deep mahogany color, because that’s where the flavor comes from. A splash of white wine or dry sherry lifts the browned bits off the pan, and the beef broth plus Worcestershire gives the sauce the same backbone you want in French onion soup. I also like using uncooked potato gnocchi here so it absorbs the sauce as it bakes instead of going soft and one-note in boiling water.
Below, I’ll walk through the point where most people rush the onions, the ingredient swap that matters most if you want a vegetarian version, and the exact moment to pull the dish so the cheese is browned and the gnocchi are tender.
The onions took a little longer than I expected, but once they turned deep brown the whole dish came together. The gnocchi stayed pillowy and the Gruyere formed that crusty top I was hoping for.
Save this baked French onion gnocchi for the night you want a bubbling Gruyere crust and caramelized onion sauce with almost no extra fuss.
The Part Most People Rush: Caramelizing the Onions Until They’re Deeply Brown
The onions are the backbone here, and pale, soft onions won’t give you the same dish. You want them cooked slowly until they collapse, stick a little, then release and turn brown at the bottom of the pan. That color is flavor. If you stop too soon, the sauce tastes flat and sweet instead of rich and savory.
Use medium-low heat and give them time. Stir often enough to keep them from scorching, but not so often that they never get a chance to catch and caramelize. If the pan starts looking dry before the onions are done, add a small splash of water and scrape up the browned bits. Those bits are part of the sauce, not something to scrub away.
What the Broth, Wine, and Cheese Are Each Doing Here

- Potato gnocchi — Use shelf-stable or refrigerated gnocchi here. It goes in uncooked and finishes in the sauce, which is why it stays tender instead of turning dense. If you boil it first, it can go overcooked once it hits the oven.
- Dry white wine or dry sherry — This deglazes the pan and pulls up the browned onion fond. Dry sherry gives a more classic French onion flavor, while white wine keeps things a little lighter. If you skip both, use a splash of broth plus a teaspoon of white wine vinegar for brightness.
- Beef broth — This gives the dish the deeper savory base that makes it taste like French onion soup instead of just creamy onion pasta. A good broth matters here; this is not the place for a watery one. If you need a vegetarian version, use a rich mushroom broth.
- Gruyere — This is the cheese that makes the top taste right. It melts smoothly and browns into that nutty, crackly lid. Swiss cheese can work in a pinch, but you’ll lose some of the signature depth.
- Heavy cream — Just enough cream rounds out the broth without turning it into a heavy sauce. Half-and-half can work, but the sauce will be thinner and a little less stable under the broiler.
Building the Sauce So the Gnocchi Bakes Up Tender, Not Mushy
Let the onions go far enough
Melt the butter with the olive oil first, then add the sliced onions and let them cook low and slow until they’re soft, jammy, and deeply browned. They should look almost mahogany at the edges, not just lightly golden. If the heat runs too high, the sugars scorch before the onions soften, and you’ll taste bitterness instead of sweetness.
Deglaze before the garlic goes in
Pour in the wine or sherry once the onions are browned and let it bubble for a minute or two. This loosens the fond and concentrates the sauce, but the garlic should go in after that so it doesn’t burn in the hot pan. Burned garlic turns sharp fast and will throw off the whole dish.
Build the broth, then add the gnocchi
Stir in the broth, Worcestershire, and cream and bring everything to a gentle simmer before the gnocchi goes in. The sauce should look loose enough to move around the pan, because the gnocchi will absorb liquid as it bakes. Stir just enough to coat the gnocchi and keep it from clumping at the bottom.
Finish under heat, not under guesswork
Scatter the Gruyere over the top and bake or broil until the cheese is deeply melted and the edges are bubbling. The gnocchi should be tender when pierced, and the sauce should thicken slightly around the edges. If the top browns before the gnocchi is cooked, cover it loosely with foil and keep baking until the center catches up.
How to Adapt This Baked French Onion Gnocchi Without Losing the Soul of It
Vegetarian Version with Mushroom Broth
Swap the beef broth for a good mushroom broth and use vegetarian Worcestershire if needed. You’ll lose a little of the classic beefy depth, but the mushrooms and caramelized onions keep the sauce dark, savory, and satisfying.
No Wine, No Problem
Use extra broth plus a teaspoon of white wine vinegar or sherry vinegar to replace the brightness the wine would have brought. You won’t get quite the same depth in the pan, but the final dish still tastes balanced instead of heavy.
Make It Ahead for a Dinner Party
Cook the onions and sauce earlier in the day, then add the gnocchi and cheese right before baking. This keeps the gnocchi from sitting too long in liquid, which can make it too soft before it even goes into the oven.
Storage and Reheating
- Refrigerator: Store leftovers in an airtight container for up to 3 days. The gnocchi will soften a bit more as it sits, but the flavor gets even deeper.
- Freezer: I don’t recommend freezing the finished dish. The cream sauce can separate and the gnocchi can turn grainy after thawing.
- Reheating: Reheat covered in a 350F oven until hot and bubbling, adding a small splash of broth if the sauce has thickened too much. The biggest mistake is blasting it on high heat, which dries out the top before the center warms through.
Answers to the Questions Worth Asking

Baked French Onion Gnocchi
Ingredients
Equipment
Method
- Melt the butter with the olive oil in a large oven-safe skillet, then add the thinly sliced large onions. Cook over medium-low heat for 35-40 minutes, stirring occasionally, until deeply caramelized (dark golden-brown and very soft).
- Pour in the dry white wine or dry sherry to deglaze, scraping up the browned bits from the skillet. Cook for 2 minutes until reduced slightly and fragrant.
- Add the minced garlic and fresh thyme to the skillet and cook for 1 minute. Stir until the garlic smells mellow, not sharp.
- Add the beef broth, Worcestershire sauce, and heavy cream, then stir to combine. Bring the mixture to a simmer.
- Season with salt and pepper to taste, then stir again so the seasoning disperses throughout the bubbling sauce. Keep it at a gentle simmer while you add the gnocchi.
- Add the uncooked potato gnocchi and stir until coated in the onion sauce. Spread into an even layer so they cook through uniformly.
- Scatter the shredded Gruyere cheese evenly over the top of the gnocchi. Add an extra, slight mound in the center so the crust browns nicely.
- Bake (or broil) at 425F for 15-18 minutes until the gnocchi are cooked through, the sauce is bubbling, and the cheese is golden. Look for active bubbling around the edges and a browned, blistered top.