Baked ham gratin is the ultimate comfort food—a rich, creamy casserole that turns leftover ham into a golden, cheesy masterpiece. It works because the starchy pasta or potatoes soak up a luscious cheese sauce, while the ham adds a savory, smoky depth that makes every bite satisfying. This is a flexible, forgiving dish that comes together in about an hour, making it perfect for a weeknight dinner or a special holiday side.
Ingredients
- 12 oz (340 g) dried pasta (penne, fusilli, or elbow macaroni) OR 4 large potatoes, thinly sliced (about 1.5 lbs / 680 g)
- 2 tbsp (30 g) unsalted butter
- 2 tbsp (16 g) all-purpose flour
- 2 cups (480 ml) whole milk, warmed
- 1 cup (240 ml) heavy cream (or use all milk for a lighter sauce)
- 2 cups (200 g) shredded Gruyère or Swiss cheese
- 1 cup (100 g) shredded sharp cheddar cheese
- 2 cups (300 g) cooked ham, diced into ½-inch cubes
- 1 tsp Dijon mustard
- ½ tsp garlic powder
- ¼ tsp freshly grated nutmeg (optional)
- Salt and freshly ground black pepper, to taste
- ¼ cup (25 g) grated Parmesan cheese (for topping)
- 2 tbsp (10 g) fresh breadcrumbs (optional, for crunch)
Instructions
- Preheat and prep: Preheat your oven to 375°F (190°C). Butter a 9×13-inch (23×33 cm) baking dish. If using pasta, bring a large pot of salted water to a boil. If using potatoes, slice them thinly (about ⅛-inch thick) and set aside.
- Cook the pasta or potatoes: For pasta, cook it 2 minutes less than the package directions (it will finish cooking in the oven). Drain well and set aside. For potatoes, parboil the slices in salted boiling water for 5 minutes, then drain and pat dry—this ensures they cook through in the sauce.
- Make the cheese sauce: In a large saucepan, melt the butter over medium heat. Whisk in the flour and cook for 1-2 minutes until it smells nutty (this removes the raw flour taste). Slowly whisk in the warm milk and cream, stirring constantly. Bring to a gentle simmer; the sauce should thicken enough to coat the back of a spoon, about 3-4 minutes.
- Add cheese and seasonings: Remove the pan from heat. Stir in the Gruyère and cheddar until completely melted. Add the Dijon mustard, garlic powder, nutmeg (if using), and season generously with salt and pepper. Taste the sauce—it should be well-seasoned because the pasta will absorb some salt.
- Combine: In a large bowl, gently fold the cooked pasta (or parboiled potato slices), the diced ham, and the cheese sauce until everything is evenly coated.
- Assemble: Pour the mixture into the prepared baking dish and spread it evenly. Sprinkle the top with the Parmesan cheese and breadcrumbs (if using).
- Bake: Bake uncovered for 25-30 minutes, until the top is golden brown and the sauce is bubbling around the edges. If the top browns too quickly, loosely cover with foil for the last 10 minutes.
- Rest and serve: Let the gratin rest for 5-10 minutes before serving. This allows the sauce to set slightly, making it easier to serve neatly.
Tips
- Don’t skip the mustard: Dijon mustard is a secret weapon here—its acidity cuts through the richness of the cheese and ham, brightening the whole dish. If you don’t have Dijon, use 1 teaspoon of yellow mustard or a splash of lemon juice.
- Use good melting cheese: Gruyère and cheddar are ideal because they melt smoothly. Avoid pre-shredded bags that contain anti-caking agents, which can make the sauce grainy. Grate your own cheese for a silkier result.
- Don’t overcook the pasta: Undercook it by 2 minutes, as it will absorb liquid and continue cooking in the oven. Overcooked pasta will turn mushy.
- Make it ahead: Assemble the gratin completely, but do not bake it. Cover and refrigerate for up to 24 hours. Add 10-15 minutes to the baking time when cooking from cold.
Serving Suggestions
This baked ham gratin is hearty enough to be a main course, but it also shines as a side dish. Serve it alongside a crisp green salad with a simple vinaigrette to cut through the richness, or with steamed green beans or roasted asparagus. It pairs beautifully with a glass of dry white wine, like a Chardonnay or Sauvignon Blanc. For a full holiday-style meal, serve it next to roasted turkey or chicken.
Variations
- Add vegetables: Fold in 1 cup of thawed frozen peas, sautéed mushrooms, or chopped broccoli florets with the ham for extra color and nutrition.
- Swap the protein: Use diced cooked chicken, turkey, or crispy bacon instead of ham. Smoked sausage also works well.
- Make it spicy: Add ½ teaspoon of smoked paprika, a pinch of cayenne pepper, or a few dashes of hot sauce to the cheese sauce.
- Use potatoes only: For a classic potato gratin, layer the parboiled potato slices with the ham and cheese sauce in the dish, rather than mixing everything together. Bake for 40-45 minutes or until the potatoes are tender.
- Gluten-free option: Use gluten-free pasta or potatoes, and swap the all-purpose flour for cornstarch (use 1 tbsp cornstarch mixed with 2 tbsp cold water) to thicken the sauce.
Storage and Reheating
Store any leftover gratin in an airtight container in the refrigerator for up to 4 days. To reheat, place a portion in the microwave on medium power for 2-3 minutes, or better yet, reheat in a 350°F (175°C) oven for 15-20 minutes, covered with foil to prevent drying out. If the gratin looks dry when reheating, add a splash of milk or cream before warming. You can also freeze the unbaked gratin for up to 3 months—thaw overnight in the fridge, then bake as directed, adding 10-15 minutes to the cooking time.
Frequently Asked Questions
Can I use leftover ham from a bone-in ham? Absolutely. Diced leftover ham is ideal. Just make sure to trim away any excess fat or gristle, and cut it into uniform ½-inch cubes so it heats through evenly.
Why is my cheese sauce grainy or clumpy? This usually happens if the heat is too high or if you add the cheese too quickly. Always remove the pan from the heat before stirring in the cheese, and add it in handfuls, stirring until each addition melts. Also, use freshly grated cheese, not pre-shredded.
Can I make this without heavy cream? Yes, simply use 3 cups (720 ml) of whole milk instead of the milk and cream combination. The sauce will be slightly less rich but still creamy. For an even lighter version, use 2% milk, though the sauce will be thinner.
How do I know when the gratin is fully cooked? The top should be golden brown and the sauce should be bubbling around the edges. If you inserted a knife into the center, it should come out hot. For pasta versions, the pasta should be tender but not mushy. For potato versions, the potatoes should be easily pierced with a fork.
Can I prepare this gratin in advance and freeze it? Yes. Assemble the gratin in a freezer-safe dish, cover tightly with plastic wrap and foil, and freeze before baking. Thaw overnight in the refrigerator before baking. The texture may be slightly softer than fresh, but it will still be delicious.
What if I don’t have Gruyère? Use any good melting cheese like fontina, Monterey Jack, or even extra sharp cheddar. Avoid cheeses like feta or mozzarella (fresh), which don’t melt into a smooth sauce.