Quick Recipe Version (TL;DR)
Quick Ingredients
- 1 pound elbow macaroni, 4 quarts water, and 1 tablespoon fine sea salt for the pasta
- 9 tablespoons plus 1 teaspoon unsalted butter, divided
- 8 ounces peeled shallots, thinly sliced, plus 1 tablespoon water
- 1/4 cup all-purpose flour and 4 cups whole milk
- 8 ounces sharp cheddar, 6 ounces Gruyère, and 2 ounces Parmesan, freshly grated
- 2 teaspoons Dijon mustard, 3/4 teaspoon fine sea salt, and 1/4 teaspoon ground black pepper
- 1 cup panko breadcrumbs and 2 teaspoons fresh thyme leaves, divided
Do This
- 1. Heat the oven to 375°F (190°C) and grease a 9-by-13-inch baking dish with 1 teaspoon butter.
- 2. Cook the shallots in 2 tablespoons butter with 1/4 teaspoon salt over medium-low heat for 25 to 30 minutes. Stir in 1 tablespoon water to loosen the browned bits.
- 3. While the shallots cook, boil the macaroni in salted water for about 6 minutes, or 2 minutes less than the package directs for al dente. Drain without rinsing.
- 4. Whisk 4 tablespoons butter with the flour for 1 minute, then whisk in the milk and simmer until thickened. Off the heat, stir in the mustard, remaining 1/2 teaspoon salt, pepper, cheddar, Gruyère, and half the Parmesan.
- 5. Toss the panko with 3 tablespoons melted butter, the remaining Parmesan, and 1 teaspoon thyme.
- 6. Fold the macaroni into the sauce. Layer half the pasta, all the shallots, and the remaining pasta in the dish. Sprinkle the panko mixture over the top.
- 7. Bake uncovered for 20 to 25 minutes, until golden and bubbling at the edges. Rest for 10 minutes, then scatter the remaining 1 teaspoon thyme over the top.
Why You’ll Love This Recipe
- Sharp cheddar brings tang, Gruyère melts smoothly and adds a nutty note, and Parmesan gives the crust a savory edge.
- A layer of deeply caramelized shallots adds pockets of sweetness without getting lost in the cheese sauce.
- Buttered panko stays light and crisp over the creamy elbows.
- It fills a 9-by-13-inch dish, so there’s enough for a family dinner and the option to assemble it a day ahead.
Grocery List
- Produce: Shallots and fresh thyme
- Dairy: Unsalted butter, whole milk, sharp cheddar, Gruyère, and Parmesan
- Pantry: Elbow macaroni, all-purpose flour, Dijon mustard, panko breadcrumbs, fine sea salt, and ground black pepper
Full Ingredients
Macaroni and Baking Dish
- 1 pound (454 g) dry elbow macaroni
- 4 quarts (3.8 L) water
- 1 tablespoon fine sea salt, for the pasta water
- 1 teaspoon unsalted butter, for greasing the dish
Caramelized Shallots
- 2 tablespoons unsalted butter
- 8 ounces (227 g) shallots, weighed after peeling and sliced into 1/8-inch half-moons
- 1/4 teaspoon fine sea salt
- 1 tablespoon water
Three-Cheese Sauce
- 4 tablespoons unsalted butter
- 1/4 cup (30 g) all-purpose flour
- 4 cups (950 mL) whole milk
- 2 teaspoons Dijon mustard
- 1/2 teaspoon fine sea salt
- 1/4 teaspoon ground black pepper
- 8 ounces (227 g) sharp cheddar, preferably golden, freshly shredded
- 6 ounces (170 g) Gruyère, freshly shredded
- 1 ounce (28 g) Parmesan, finely grated
Crispy Topping and Finish
- 3 tablespoons unsalted butter, melted
- 1 cup (60 g) plain panko breadcrumbs
- 1 ounce (28 g) Parmesan, finely grated
- 2 teaspoons fresh thyme leaves, divided between the topping and garnish

Step-by-Step Instructions
Step 1: Set Up the Oven and Baking Dish
Set a rack in the center of the oven and preheat to 375°F (190°C). Rub the bottom and sides of a 9-by-13-inch baking dish with 1 teaspoon butter. Grate the cheeses before turning on the stove, and divide the Parmesan into two 1-ounce portions so one is ready for the sauce and the other for the topping.
Step 2: Caramelize the Shallots
Melt 2 tablespoons butter in a 10-inch skillet over medium-low heat. Add the sliced shallots and 1/4 teaspoon salt. Cook for 25 to 30 minutes, stirring every 3 to 4 minutes at first and more often toward the end. The shallots should soften into glossy, deep amber ribbons. If the edges darken before the shallots soften, turn the heat down. Stir in 1 tablespoon water, scrape up the browned bits, and cook for about 30 seconds, until the skillet is no longer watery. Remove from the heat.
Step 3: Boil the Macaroni
While the shallots cook, bring 4 quarts water to a rolling boil in a large pot. Add 1 tablespoon fine sea salt and the macaroni. Cook for about 6 minutes, or 2 minutes less than the package directs for al dente. The elbows should bend easily but still feel firm in the center; they’ll finish cooking in the oven. Drain well without rinsing.
Step 4: Make the Three-Cheese Sauce
While the pasta water heats, melt 4 tablespoons butter in a large saucepan over medium heat. Whisk in the flour and cook for 1 minute, whisking constantly. Slowly pour in the milk, whisking out any lumps before adding more. Bring to a gentle simmer over medium heat, whisking often, about 6 to 8 minutes. Simmer for another 3 to 4 minutes, whisking, until the sauce lightly coats the back of a spoon.
Take the pan off the heat. Whisk in the Dijon, 1/2 teaspoon salt, and pepper. Stir in the cheddar and Gruyère a handful at a time, letting each addition melt before adding the next. Stir in 1 ounce Parmesan. The sauce should look smooth and loose enough to pour.
Step 5: Butter the Breadcrumbs
In a small bowl, toss the panko with 3 tablespoons melted butter until evenly moistened. Stir in the remaining 1 ounce Parmesan and 1 teaspoon thyme leaves. Break up any large clumps with a fork so the topping scatters evenly.
Step 6: Layer the Macaroni and Shallots
Fold the drained macaroni into the cheese sauce until the elbows are evenly coated. Spread half the macaroni in the prepared dish. Tease apart the shallots with a fork and scatter them over the pasta in a thin, even layer. Spoon the remaining macaroni over the shallots and gently level the top without packing it down. Sprinkle the breadcrumb mixture all the way to the edges.
Step 7: Bake Until Golden and Rest
Bake uncovered for 20 to 25 minutes at 375°F (190°C), until the crumbs are golden and the cheese sauce bubbles around the edges. Let the dish rest for 10 minutes so the sauce settles enough to scoop while staying creamy. Scatter the remaining 1 teaspoon fresh thyme over the top just before serving.
Pro Tips
- Grate the cheese yourself. Bagged shreds are often coated with anti-caking ingredients, which can keep the sauce from melting as smoothly.
- Let the shallots tell you when they’re ready. Look for soft, jammy strands and an even amber color. Raising the heat to speed things up can leave the thin edges bitter.
- Melt the cheese off the heat. The hot milk sauce will do the work. Boiling after the cheese goes in can make the sauce grainy.
- Pull the dish when the edges bubble. There’s no need to wait for the center to bubble vigorously; the extra oven time can dry out the pasta.
Variations
- Smoky: Replace 2 ounces of the sharp cheddar with 2 ounces of smoked cheddar. Keep the remaining cheeses as written.
- Mushroom and shallot: Brown 8 ounces sliced cremini mushrooms in 1 tablespoon olive oil over medium-high heat for 8 to 10 minutes, until their moisture evaporates. Scatter them over the shallot layer.
- Extra-crunchy: Replace the panko with 1 cup coarse plain pretzel crumbs and reduce the salt in the cheese sauce to 1/4 teaspoon.
Storage & Make-Ahead
Make ahead: Assemble the macaroni and shallot layers without the topping. Cover and refrigerate within 2 hours of assembly for up to 24 hours. When ready to bake, cover with foil and bake at 375°F (190°C) for 20 minutes. Uncover, add the freshly mixed topping, and bake for 15 to 20 minutes more, until golden and the center reaches 165°F (74°C). Rest for 10 minutes and finish with the fresh thyme.
Store and reheat: Refrigerate leftovers in an airtight container within 2 hours of baking and use within 4 days. For a single serving, drizzle 1 tablespoon milk around the edges and reheat in a covered oven-safe dish at 350°F (175°C) for 15 to 20 minutes, or until the center reaches 165°F (74°C). Uncover for the last 5 minutes to crisp the crumbs.
Nutrition (per serving)
Estimated for one-eighth of the recipe. Sodium varies with the cheese, breadcrumbs, and amount of salt absorbed by the pasta.
Calories: 696 kcal | Carbs: 63g | Protein: 29g | Fat: 37g | Saturated Fat: 21g | Fiber: 3g | Sugar: 10g | Sodium: 830mg | Cholesterol: 105mg
