In the mood for the ultimate comfort food but want something more elevated than standard mac and cheese? This creamy ham and cheese pasta bake is a golden, bubbly masterpiece that brings Parisian bistro vibes right to your kitchen. You can have a perfectly sliced, cheesy gratin on the table that looks just as impressive as it tastes.
This recipe is a total lifesaver for those Spring nights when you need a hearty, soul-warming meal that the whole family will devour. Your family will love the contrast between the crispy, broiled cheese topping and the velvet-smooth béchamel sauce tucked inside every tube of pasta. It is the ultimate way to turn simple pantry staples into a sophisticated centerpiece.
Why You’ll Make This Creamy Ham & Cheese Pasta Bake Again
This dish is a perfect fit for Spring because it is pure comfort food that still feels bright and elegant when garnished with fresh herbs. It is the ultimate choice for a quick weeknight dinner that doubles as a stunning dish for casual hosting. You will love how the savory ham cubes provide little bursts of saltiness that cut through the rich, creamy cheese sauce. This recipe is a guaranteed family favorite that delivers that “wow factor” the moment you pull it out of the oven.
Because it holds its shape so beautifully, it is ideal for meal prep and tastes even more incredible as leftovers the next day. It is a great choice for using up leftover holiday ham, giving it a second life in a luxurious new format. You get consistently decadent results every single time thanks to the classic French-inspired base. Once you try this perfectly layered gratin, you will never go back to boxed pasta again.
How This Comes Together
You start by making a silky 3-ingredient roux that serves as the foundation for your rich, cheesy Mornay sauce. The pasta and ham are tossed in this liquid gold before being pressed into a baking dish to create that iconic, sliceable structure. A final, generous layer of shredded cheese is the secret shortcut that creates that irresistible golden-brown crust under the broiler. Beginners will love how foolproof and satisfying it is to achieve such a professional-looking finish.
What You’ll Need
You only need a few simple pantry staples to create this rich, high-end flavor profile. These items work together to build a creamy, gooey interior and a perfectly toasted topping.
- 1 lb Ziti or Rigatoni pasta (cooked al dente)
- 2 cups cooked ham (cubed)
- 3 cups shredded Gruyère or Sharp Cheddar
- 3 cups whole milk
- 4 tbsp butter
- 1/4 cup all-purpose flour
- 1/2 tsp nutmeg (the secret for authentic flavor)
- Fresh thyme or parsley (for garnish)
- Salt and white pepper (to taste)
Step-by-Step Directions
- Preheat your oven to 375°F (190°C) and grease a square baking dish thoroughly.
- Make the roux by melting butter in a saucepan and whisking in the flour for 1 minute until lightly golden.
- Slowly whisk in the milk, simmering until the sauce is thick enough to coat the back of a spoon.
- Stir in 2 cups of cheese, nutmeg, salt, and pepper until you have a glossy Mornay sauce.
- Combine the cooked pasta, ham cubes, and cheese sauce in a large bowl, tossing until every tube is filled.
- Transfer to the baking dish, pressing down slightly, and top with the remaining cup of cheese.
- Bake for 20 minutes, then broil for 2-3 minutes until the top is bubbly and deeply browned.
- Let it rest for 10 minutes before slicing to ensure perfect, clean layers.
How to Serve It
Serve this creamy ham and cheese pasta bake as a thick, standing square garnished with a sprig of fresh thyme. It looks incredible when the golden-brown cheese crust sits atop the perfectly organized layers of pasta and ham. Pair it with a crisp green salad or roasted asparagus to balance the richness for a complete Spring lunch. For a quick weeknight dinner, it is a filling and comforting one-dish meal that feels like a luxury. Your family will love how the nutmeg-infused cream sauce elevates the ham and cheese into something truly special.
Leftovers & Storage
This gratin is a meal prep dream because it holds its structure beautifully and stays moist when reheated. Store leftovers in an airtight container in the fridge for up to 3 days. You can reheat slices in the oven at 350°F to bring back that signature crispy top. It is the perfect decadent lunch to look forward to the next day. If the sauce thickens too much, a splash of milk before reheating will bring it back to life.
Make It Even Better (Pro Tips)
- Don’t overcook the pasta: Boil it for 2 minutes less than the box directions so it finishes perfectly in the oven.
- Use a block of cheese: Grating your own cheese ensures a smoother, silkier melt without the grainy additives.
- Mistake to avoid: Avoid skipping the resting time; 10 minutes is essential for the sauce to set so you can slice it.
- Time-saving tip: Use pre-diced ham from the grocery store to cut your prep time down to under 15 minutes.
- Occasion tip: For casual hosting, bake it in individual ramekins for a sophisticated, personal touch.
- Upgrade tip: Add a handful of panko breadcrumbs to the cheese topping for an extra-crunchy texture.
- Substitution: Use smoked turkey instead of ham for a lighter, but still savory, flavor profile.
Easy Ways to Change It Up
- Spicy Jalapeño: Add diced jalapeños to the cheese sauce for a modern, spicy kick.
- Veggie Gratin: Stir in steamed broccoli florets or peas for a boost of Spring color and nutrition.
- Truffle Luxury: Add a drizzle of truffle oil to the sauce for a high-end, aromatic experience.
- Smoky Gouda: Swap half the cheese for Smoked Gouda to add a deep, wood-fired flavor.
Quick Questions
Can I use different pasta?
Yes, but tubular shapes like rigatoni or penne work best because they “trap” the sauce and ham inside for the best texture.
Why is there nutmeg in it?
Nutmeg is the secret ingredient in classic béchamel; it doesn’t make it taste like dessert, but it deepens the savory flavor of the cheese.
I hope this ham and cheese gratin makes your kitchen feel like a cozy French bistro tonight. There is nothing better than a meal that turns simple pasta into something so elegant!
— Sophie

Creamy Ham & Cheese Pasta Bake (Gratin)
Ingredients
Method
- Preheat your oven to 375°F (190°C) and grease a square baking dish thoroughly to prevent sticking.
- Make the roux by melting butter in a saucepan and whisking in the flour for 1 minute until lightly golden and fragrant.
- Slowly whisk in the milk, simmering over medium heat until the sauce is thick enough to coat the back of a spoon.
- Stir in 2 cups of cheese, nutmeg, salt, and pepper until the cheese is melted and you have a glossy Mornay sauce.
- Combine the cooked pasta, ham cubes, and cheese sauce in a large bowl, tossing until every tube is filled and coated.
- Transfer to the baking dish, pressing down slightly to ensure a dense structure, and top with the remaining cup of cheese.
- Bake for 20 minutes, then broil for 2-3 minutes until the top is bubbly and deeply browned.
- Let it rest for at least 10 minutes before slicing to ensure perfect, clean layers and that signature gratin shape.






