XO Mac and Cheese Recipe: Umami-Bomb Baked Pasta

Updated November 22, 2026

Total time
1 hr 5 min
prep 25 min · cook 40 min
Serves
6
portions as written

Jump to recipe

XO macaroni and cheese takes the classic American comfort food and gives it a savory, deeply umami upgrade with XO sauce—a luxurious Hong Kong condiment made from dried seafood, cured ham, and chili. The sauce’s briny, spicy, and slightly sweet notes cut through the rich, creamy cheese sauce, creating a baked pasta that’s both familiar and excitingly new. This recipe builds a silky cheddar sauce, folds in a generous spoonful of XO sauce, and tops it all with a golden, crunchy panko crust for texture.

Ingredients

  • 1 lb (450 g) elbow macaroni (or cavatappi, shells, or penne)
  • 4 tbsp (56 g) unsalted butter, divided
  • 3 tbsp (24 g) all-purpose flour
  • 3 cups (710 ml) whole milk, warmed
  • 2 cups (226 g) sharp cheddar cheese, shredded
  • 1 cup (113 g) Gruyère cheese, shredded
  • ½ cup (50 g) grated Parmesan cheese, divided
  • 3 tbsp (45 g) XO sauce (store-bought or homemade), plus more for serving
  • 1 tsp (5 g) Dijon mustard
  • ½ tsp (2 g) garlic powder
  • ¼ tsp (1 g) smoked paprika
  • ½ tsp (2 g) salt, plus more for pasta water
  • ¼ tsp (1 g) black pepper
  • 1 cup (80 g) panko breadcrumbs
  • 1 tbsp (15 ml) olive oil or melted butter
  • 2 tbsp (30 g) chopped fresh chives or parsley (optional, for garnish)

Instructions

  1. Preheat your oven to 375°F (190°C). Bring a large pot of salted water to a boil.
  2. Cook the macaroni according to package directions until just al dente (about 1–2 minutes less than the recommended time, since it will bake further). Drain and set aside.
  3. While the pasta cooks, melt 3 tablespoons (42 g) of the butter in a large saucepan over medium heat. Add the flour and whisk constantly for 1–2 minutes until the mixture is golden and bubbling—this is your roux.
  4. Gradually pour in the warm milk, whisking continuously to prevent lumps. Bring to a gentle simmer and cook for 3–4 minutes, until the sauce thickens enough to coat the back of a spoon.
  5. Reduce the heat to low. Add the cheddar, Gruyère, and half of the Parmesan (¼ cup / 25 g), stirring until the cheese is fully melted and smooth. Do not let it boil, as this can cause the sauce to separate.
  6. Stir in the XO sauce, Dijon mustard, garlic powder, smoked paprika, salt, and black pepper. Taste and adjust seasoning—XO sauce is salty, so add salt gradually.
  7. Add the cooked macaroni to the cheese sauce and stir until every piece is coated. Transfer the mixture to a 9×13-inch (23×33 cm) baking dish.
  8. In a small bowl, combine the panko breadcrumbs with the remaining 1 tablespoon (14 g) butter (melted) and the olive oil. Stir in the remaining ¼ cup (25 g) Parmesan. Sprinkle evenly over the macaroni.
  9. Bake for 20–25 minutes, until the top is golden brown and the edges are bubbling. Let it rest for 10 minutes before serving—this helps the sauce set slightly and prevents burning your mouth.

Tips

  • Use freshly shredded cheese: Pre-shredded bagged cheese contains anti-caking agents that prevent smooth melting. Shred your own for a creamier sauce.
  • Don’t overcook the pasta: Undercook by 1–2 minutes because the pasta will continue to cook in the oven. Overcooked pasta becomes mushy.
  • Warm the milk: Adding cold milk to a hot roux can cause lumps. Heat the milk in the microwave or a small saucepan before adding.
  • Adjust XO sauce to taste: XO sauce varies in salt and spice. Start with 3 tablespoons, taste, and add more if you like a stronger kick. If you’re sensitive to spice, use 2 tablespoons.

Serving Suggestions

Serve this XO mac and cheese as a main dish with a crisp green salad dressed in a simple vinaigrette, or as a decadent side to roasted chicken, grilled steak, or pan-seared fish. A dollop of extra XO sauce on top intensifies the umami—add it just before eating. For a fun twist, spoon the mac into individual ramekins and broil for 2–3 minutes to get extra crispy tops.

Variations

  • Add protein: Fold in 1 cup (150 g) of cooked, diced shrimp, shredded rotisserie chicken, or chopped leftover ham before baking.
  • Make it spicy: Add 1–2 teaspoons of sriracha or gochujang along with the XO sauce for extra heat.
  • Swap the cheese: Replace Gruyère with Monterey Jack, fontina, or smoked gouda for a different flavor profile.
  • Add vegetables: Stir in 1 cup (150 g) of sautéed mushrooms, spinach, or peas to add color and texture.
  • Gluten-free: Use gluten-free pasta and a 1:1 gluten-free flour blend for the roux, and ensure your breadcrumbs are gluten-free.

Storage and Reheating

Store leftovers in an airtight container in the refrigerator for up to 4 days. To reheat, place a portion in a microwave-safe dish and heat in 30-second intervals, stirring between, until hot (165°F / 74°C). For a crispier texture, reheat in a 350°F (175°C) oven for 10–15 minutes, covering with foil if the top starts to brown too quickly. You can also freeze the baked mac and cheese for up to 3 months—wrap tightly in plastic wrap and foil. Thaw overnight in the fridge before reheating. Note that the sauce may separate slightly after freezing, but stirring in a splash of milk while reheating will help bring it back together.

Frequently Asked Questions

What is XO sauce?
XO sauce is a spicy, savory condiment from Hong Kong, typically made with dried shrimp, scallops, ham, chili peppers, and garlic. It’s often described as the “champagne of sauces” for its complex, luxurious flavor. You can find it in Asian grocery stores or online; if you can’t find it, a substitute like a combination of fish sauce, chili flakes, and minced dried shrimp will approximate the flavor, though not exactly.

Can I use pre-shredded cheese?
Yes, but the sauce may be slightly grainy due to the anti-caking agents. For the smoothest result, shred your own cheese from a block. If you’re in a pinch, pre-shredded will still work—just be aware of the texture difference.

How do I prevent the cheese sauce from becoming grainy?
Grainy cheese sauce usually happens when the cheese is added too quickly or the heat is too high. Always add cheese off the heat or on low, and stir gently until just melted. Also, avoid using high-heat cheeses like extra-sharp cheddar alone—mixing with a good melting cheese like Gruyère helps.

Can I make this ahead of time?
Absolutely. Assemble the mac and cheese (without the breadcrumb topping) up to 2 days ahead, cover, and refrigerate. When ready to bake, add the topping and increase the baking time by 10–15 minutes, since you’re starting from cold. You can also freeze it unbaked for up to 3 months; thaw overnight in the fridge before baking.

Is XO sauce very spicy?
It varies by brand. Some XO sauces are quite mild, while others have a noticeable kick. Check the label or taste a small amount first. If you’re sensitive to heat, start with 2 tablespoons and add more to taste.

Can I make this without the panko topping?
Yes, the topping is optional. If you skip it, the mac and cheese will be creamy and stovetop-style. Just reduce the baking time to 15 minutes, or simply serve it straight from the pot after mixing—no oven needed.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).