Dinners

Ham and Cheese Casserole Bake

Updated · By Stir & Share

Total timeprep + cook
45 min
Prep
15 min
hands-on
Cook
30 min
oven or stovetop
Serves
6
as written
USDA safe temp
160°F / 71°C
check the thickest part

Save

This ham and cheese casserole bake combines diced cooked ham, creamy sauce, and pasta into a single dish that is ready in under an hour. It tastes rich and savory with a golden, crunchy topping. This recipe suits weeknight dinners, potlucks, or using up holiday leftovers.

Ingredients for the Base

  • 8 oz (225 g) elbow macaroni or rotini pasta
  • 1 cup (240 ml) whole milk
  • 1/4 cup (30 g) all-purpose flour
  • 1/4 cup (55 g) unsalted butter
  • 1/2 tsp (1 g) garlic powder
  • 1/2 tsp (1 g) onion powder
  • 1/4 tsp (0.5 g) black pepper
  • Pinch of nutmeg (optional)
  • 1 1/2 cups (170 g) shredded sharp cheddar cheese
  • 2 cups (280 g) diced cooked ham (about 1/2-inch cubes)
  • 1/2 cup (50 g) grated Parmesan cheese

Ingredients for the Topping

  • 1 cup (90 g) plain breadcrumbs (dry or panko)
  • 2 tbsp (28 g) melted butter
  • 1 tbsp (2 g) dried parsley flakes

Pick the Pan Before You Mix the Batter

You need a baking dish that holds about 2 to 2.5 quarts (2 to 2.4 liters). A standard 9×13-inch (23×33 cm) glass or ceramic dish works perfectly. If you use a smaller pan, the casserole will be too tall and may not cook evenly. If you use a larger pan, it will spread too thin and dry out.

Cook the Pasta Until Al Dente

Bring a large pot of salted water to a boil. Add the pasta and cook it until it is just firm to the bite (al dente), usually 1 minute less than the package directions. Drain the pasta well and set it aside. Do not rinse the pasta unless you are making a cold salad; rinsing removes starch needed for the sauce to cling.

Melt Butter and Bloom the Flour

In the same pot used for the pasta (or a medium saucepan), melt the 1/4 cup (55 g) butter over medium heat. Whisk in the flour, garlic powder, onion powder, pepper, and nutmeg. Cook this mixture, whisking constantly, for 2 minutes until it smells slightly nutty and turns a pale gold color. This step cooks out the raw flour taste and creates a roux.

Thicken the Sauce Slowly

Slowly pour in the milk while whisking continuously to prevent lumps. Keep whisking until the sauce comes to a gentle simmer. Reduce the heat to low and cook for 3 to 5 minutes, stirring often, until the sauce coats the back of a spoon. The sauce should be thick enough to hold its shape but still fluid.

Combine Ingredients and Check Temperature

Remove the sauce from the heat. Stir in half of the cheddar cheese until melted. Fold in the cooked pasta and diced ham. Pour the mixture into your prepared baking dish and smooth the top. Sprinkle the remaining cheddar and Parmesan cheese evenly over the surface.

If you are adding other perishable ingredients like fresh vegetables, ensure they are cooked before adding them. The USDA safe minimum internal temperature for egg dishes and casseroles containing eggs is 160°F (71°C). While this specific recipe relies on pre-cooked ham and cheese, if you add raw eggs to bind the casserole, you must check that the center reaches 160°F (71°C) using a food thermometer.

Bake Until Bubbly and Set

Preheat your oven to 375°F (190°C). Place the casserole dish in the center rack. Bake for 15 minutes. While it bakes, mix the breadcrumbs, melted butter, and parsley in a small bowl until it resembles wet sand.

After 15 minutes, remove the dish and sprinkle the breadcrumb mixture evenly over the top. Return the dish to the oven and bake for another 10 to 15 minutes. The casserole is done when the topping is deep golden brown and the sauce is bubbling vigorously around the edges. Let the dish rest for 5 minutes before serving so the sauce can set slightly.

Swap Ingredients Without Breaking the Recipe

You can substitute the pasta with any short shape like penne, shells, or cavatappi. Use the same weight (8 oz / 225 g). For the ham, you can use diced turkey, chicken, or bacon. Bacon adds more salt and crunch; reduce the added salt in the sauce if using bacon. For the cheese, Gruyère or Swiss melts similarly to cheddar. If you need a gluten-free version, use certified gluten-free breadcrumbs and pasta. Replace the all-purpose flour with a 1:1 gluten-free flour blend for the roux.

Scale the Batch for More People

Serving Size Pasta (oz/g) Ham (cups/g) Milk (cups/ml) Dish Size
Half Batch (3) 4 oz (115 g) 1 cup (140 g) 1/2 cup (120 ml) 8×8 inch (20×20 cm)
Double Batch (12) 1 lb (450 g) 4 cups (560 g) 2 cups (480 ml) Two 9×13 inch pans OR one large roasting pan

Store Leftovers Safely

Refrigerate leftovers within 2 hours of cooking. Store the casserole in an airtight container or cover the dish tightly with foil. It keeps in the refrigerator for 3 to 4 days. To freeze, cool the casserole completely, then wrap it tightly in plastic wrap and foil. It freezes well for up to 3 months. Thaw in the refrigerator overnight before reheating.

When reheating, the USDA requires leftovers to reach an internal temperature of 165°F (74°C). You can reheat individual portions in the microwave for 2-3 minutes, stirring halfway. For the whole dish, cover with foil and bake at 350°F (175°C) for 20-25 minutes until hot throughout.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

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