Baked Onion Pasta Recipe With Caramelized Onions
In this article
Baked onion pasta depends on one thing: onions cooked long and slow until their sugars turn deep brown and sweet. That caramelization is what gives the dish its flavor, so the onions need 35-45 minutes in the pan before anything else happens. Get that right and the pasta bakes into something rich, savory and comforting, suited to a weeknight when you have a little time or a potluck where you want a warm dish that travels well.
The method below uses 3 large onions (about 1.5 lb / 680 g) for 12 oz (340 g) of pasta, which is a generous onion-to-pasta ratio. The onions cook down to roughly 1.5 cups (about 360 ml) of jammy, sweet strands that fold through the pasta and bake under a layer of cheese.
Ingredients for baked onion pasta
- 3 large yellow onions (about 1.5 lb / 680 g), thinly sliced
- 3 tbsp (45 ml) olive oil, plus more for the dish
- 2 tbsp (28 g) unsalted butter
- 1 tsp (6 g) salt, plus more for the pasta water
- 1/2 tsp (1 g) black pepper
- 3 cloves garlic, minced
- 1 tsp (2 g) dried thyme, or 1 tbsp fresh thyme leaves
- 12 oz (340 g) short pasta, such as penne, rigatoni or fusilli
- 1 cup (240 ml) heavy cream
- 1 cup (100 g) grated Parmesan, divided
- 1 1/2 cups (170 g) shredded low-moisture mozzarella
- 1/4 tsp (0.5 g) red pepper flakes, optional
Serves 6 · Prep 15 min · Cook 1 hr 5 min · Total 1 hr 20 min
Instructions
- Heat the olive oil and butter in a large skillet or Dutch oven over medium-low heat. Add the sliced onions and 1 tsp (6 g) salt. Cook, stirring every few minutes, for 35-45 minutes, until the onions are deep golden brown, soft and reduced to about 1.5 cups. Lower the heat if the edges start to scorch.
- Add the garlic, thyme and red pepper flakes, if using, and cook for 1 minute, until fragrant. Remove the pan from the heat.
- Heat the oven to 375°F (190°C). Bring a large pot of well-salted water to a boil and cook the pasta for 2 minutes less than the package directions say, so it stays firm. Reserve 1 cup (240 ml) of pasta water, then drain.
- Stir the cream and 1/2 cup (50 g) of the Parmesan into the onions. Add the drained pasta and toss to coat, adding splashes of pasta water until the sauce coats the pasta loosely, about 1/2 cup (120 ml) in most batches.
- Transfer the mixture to a lightly oiled 9x13-inch (23x33 cm) baking dish. Scatter the mozzarella and remaining 1/2 cup (50 g) Parmesan over the top.
- Bake for 20-25 minutes, until the cheese is melted and bubbling at the edges and the center reads 160°F (71°C) on a food thermometer, the safe minimum for a dish with dairy and eggs if you add them. Let stand 5 minutes before serving.
Why baked onion pasta comes out dry, runny or dense
Too dry after baking
The usual cause is undercooking the sauce or skipping the pasta water. The pasta keeps absorbing liquid in the oven, so the mix needs to look slightly loose before it goes in. Reserve a full cup (240 ml) of starchy pasta water and add it until the sauce slides rather than clumps. If the baked dish still looks tight at the 15-minute mark, pour in 1/4 cup (60 ml) of warm milk or water at the edges and return it to the oven.
Too runny or soupy
Onions release a lot of water, and cream thins as it heats. If the onions were not cooked down far enough, the extra moisture shows up in the dish. Cook the onions until the pan looks almost dry and the strands are sticky. Also drain the pasta well and do not add all the reserved water at once. A runny bake firms up after 5-10 minutes of resting, so let it sit before deciding to fix it.
Dense or gluey
Overcooked pasta turns soft and pasty once baked. Stop the boil 2 minutes before the package time and rely on the oven to finish it. Tossing the pasta with the onion mixture while it is still hot also helps the sauce cling instead of pooling at the bottom.
Swaps for the onions, cream and cheese
- Sweet or red onions: use the same weight. Sweet onions brown faster and taste milder; red onions turn the sauce pink and a little sharper.
- Heavy cream: replace with 1 cup (240 ml) whole milk plus 1 tbsp (8 g) cornstarch whisked in. The bake will be lighter and slightly less rich.
- Parmesan: swap in Pecorino Romano at the same weight for a saltier, sharper result, or use 1 cup (100 g) grated Gruyère for a nuttier top.
- Mozzarella: use the same weight of provolone or a low-moisture Italian blend. Fresh mozzarella releases water and can make the top soupy.
- No dairy: use 1 cup (240 ml) unsweetened oat cream and skip the cheese, adding 2 tbsp (15 g) nutritional yeast for savoriness. The top will not brown the same way.
Storing and reheating baked onion pasta
Cool the dish within 2 hours of baking, then cover and refrigerate. It keeps 3-4 days in the refrigerator, and the onion flavor deepens by the second day. Reheat covered at 350°F (175°C) for 15-20 minutes, or in the microwave in single portions, until the center reaches 165°F (74°C) on a food thermometer. Add a splash of milk or water before reheating to loosen the sauce.
To freeze, portion into airtight containers and freeze up to 2 months. Thaw overnight in the refrigerator before reheating, since baking from frozen can dry out the pasta edges. Do not leave the baked dish at room temperature for more than 2 hours, or 1 hour if the room is above 90°F (32°C).
What to serve with baked onion pasta
A crisp green salad with a sharp vinaigrette cuts the richness, and a piece of crusty bread handles the sauce left in the dish. For a fuller plate, add sliced sausage or roasted mushrooms to the onion mixture before baking, cooking sausage to 160°F (71°C) first. The dish holds well on a buffet for up to 2 hours, so it fits a potluck table alongside roasted vegetables or grilled chicken.