Spaghetti Lyonnaise au Gratin is a hearty baked pasta dish where spaghetti is tossed with caramelized onions, a rich béchamel-style sauce, and plenty of cheese, then baked until golden and bubbly. It’s a comforting, crowd-pleasing meal that comes together with simple pantry ingredients and delivers deep savory flavor from the slow-cooked onions. The gratin topping adds a satisfying crunch, making it a perfect weeknight dinner or potluck contribution.
Ingredients
- 12 oz (340 g) spaghetti
- 3 tablespoons (45 g) unsalted butter, divided
- 3 large yellow onions (about 1.5 lb / 680 g), thinly sliced
- 2 tablespoons (30 ml) olive oil
- 1 teaspoon salt, plus more for pasta water
- 1/2 teaspoon black pepper
- 1/4 teaspoon dried thyme (optional)
- 3 tablespoons (24 g) all-purpose flour
- 2 cups (480 ml) whole milk, warmed
- 1/2 cup (120 ml) chicken or vegetable broth
- 1 cup (100 g) grated Gruyère cheese (or Swiss cheese)
- 1/2 cup (50 g) grated Parmesan cheese
- 1/4 cup (25 g) breadcrumbs (optional, for topping)
Instructions
- Preheat the oven to 375°F (190°C). Butter a 9×13-inch baking dish (or a similar 3-quart casserole).
- Cook the spaghetti: Bring a large pot of salted water to a boil. Add the spaghetti and cook until just al dente, about 1 minute less than the package directs (usually 8–9 minutes). Drain well and set aside.
- Caramelize the onions: In a large skillet or Dutch oven, heat the olive oil and 1 tablespoon of the butter over medium heat. Add the sliced onions, salt, and pepper. Cook, stirring occasionally, for 20–25 minutes, until the onions are deep golden brown and soft. If they start to stick, add a splash of water or broth. Stir in the thyme if using, then remove from heat.
- Make the sauce: In the same skillet, melt the remaining 2 tablespoons of butter over medium heat. Sprinkle in the flour and whisk constantly for 1–2 minutes to make a roux (it should smell slightly nutty). Slowly pour in the warm milk while whisking to avoid lumps. Add the broth and continue whisking until the sauce thickens, about 3–4 minutes. Season with a pinch of salt and pepper.
- Combine: Add the caramelized onions and the cooked spaghetti to the sauce. Toss well to coat everything evenly. Stir in the Gruyère and half of the Parmesan cheese.
- Assemble the gratin: Transfer the mixture to the prepared baking dish. Sprinkle the remaining Parmesan and the breadcrumbs (if using) over the top.
- Bake: Bake for 20–25 minutes, until the top is golden and the edges are bubbly. If you want a deeper crust, switch to broil for the last 1–2 minutes, watching closely to prevent burning.
- Rest and serve: Let the gratin rest for 5 minutes before serving. This helps it set and makes serving easier.
Tips
- Don’t rush the onions: True caramelization takes 20–30 minutes. If you cook them too quickly over high heat, they’ll burn rather than turn sweet and golden. Lower the heat if needed.
- Warm the milk: Adding cold milk to a hot roux can cause lumps. Heat the milk in the microwave or a small saucepan before whisking it in.
- Use a good melting cheese: Gruyère is classic, but Swiss, fontina, or even mozzarella work well. Avoid aged cheeses that don’t melt smoothly.
- Make ahead: You can assemble the gratin up to 24 hours ahead, cover, and refrigerate. Add 10–15 minutes to the baking time if baking straight from the fridge.
Serving Suggestions
This gratin is rich and filling, so serve it as a main course with a crisp green salad dressed in a simple vinaigrette. It also pairs well with roasted vegetables, garlic bread, or a light tomato salad. For a heartier meal, serve alongside grilled chicken or a pork chop.
Variations
- Add protein: Stir in cooked, diced bacon or ham with the onions for a smoky twist.
- Vegetable boost: Sauté sliced mushrooms or spinach with the onions for extra vegetables.
- Different pasta: Use fettuccine, linguine, or even penne instead of spaghetti.
- Spicy kick: Add a pinch of red pepper flakes or a dash of hot sauce to the sauce.
Storage and Reheating
Store leftovers in an airtight container in the refrigerator for up to 4 days. To reheat, place a portion in the microwave and heat in 30-second bursts until hot, or reheat in a 350°F (175°C) oven for 10–15 minutes. If the gratin seems dry, add a splash of milk or broth before reheating. You can also freeze the baked gratin for up to 2 months; thaw overnight in the fridge and reheat in the oven.
Frequently Asked Questions
Can I use pre-shredded cheese? Yes, but freshly grated cheese melts more smoothly and has better flavor. Pre-shredded cheese often contains anti-caking agents that can make the sauce grainy.
Why did my sauce turn out lumpy? Lumps usually happen when the milk is added too quickly or is too cold. Whisk constantly and add the milk in a slow, steady stream. If lumps form, you can strain the sauce through a fine-mesh sieve or blend it with an immersion blender.
Can I make this without onions? The onions are the star of this dish, but if you must omit them, consider adding sautéed leeks or shallots for a similar flavor base. The dish will be less sweet and less rich.
What can I use instead of Gruyère? Swiss cheese, Emmental, or even sharp cheddar are good substitutes. For a milder flavor, try mozzarella or Monterey Jack.
Is it okay to use gluten-free pasta? Yes, gluten-free spaghetti works, but be careful not to overcook it. Check the package for recommended cooking time and aim for al dente since it will bake further.
Can I prepare this ahead and freeze it? Yes, assemble the gratin in a freezer-safe dish, cover tightly, and freeze for up to 2 months. Thaw overnight in the refrigerator before baking. You may need to add a few extra minutes to the bake time.