Snacks
This baked ham and cheese sandwich recipe delivers the perfect balance of crispy golden crust and melty, pull-apart goodness. The secret lies in layering thick-cut ham with sharp cheddar and a touch of mustard, then baking until the bread transforms into a crispy, caramelized shell.
I developed this recipe after years of testing variations—this one never fails to impress, whether for a quick lunch or a comforting snack.
The magic happens at 375°F, where the bread toasts to a golden brown while the cheese melts into a gooey, stretchy center. Using a sturdy loaf like sourdough or a buttery croissant ensures the perfect texture—crispy outside, tender inside.
The ham should be sliced thick enough to hold together during baking, and sharp cheddar adds the right amount of tang to cut through the richness.
What you’ll end up with is a sandwich that’s crispy on the edges, gooey in the middle, and impossible to resist. The aroma of toasted bread and melting cheese fills the kitchen, making it impossible to wait for the oven timer to ding.
This recipe is foolproof, customizable, and guaranteed to become a favorite for any occasion.
For extra flavor, add a smear of Dijon mustard or a sprinkle of garlic powder before baking. Serve with a side of pickles or a simple salad to round out the meal. Let’s get started!
Ingredients for baked ham and cheese sandwich
Nine simple ingredients transform into a crispy, melty masterpiece—perfect for lunch or snacking.
| Ingredient | Amount | Notes |
|---|---|---|
| Thick-Cut Ham 🥓 | 8 oz | Thick slices, not pre-sliced deli ham |
| Sharp White Cheddar Cheese 🧀 | 1 ½ cups | Block cheese, freshly shredded |
| Dijon Mustard 🍯 | 1 tbsp | For flavor base layer |
| Sourdough Bread Loaf 🍞 | 1 whole | Sturdy crust for crispiness |
| Unsalted Butter 🧈 | 2 tbsp | Softened for bread brushing |
| Garlic Powder 🧄 | ½ tsp | Optional for extra depth |
| Mayonnaise 🥫 | 1 tbsp | For spreading between layers |
| Salt 🧂 | ¼ tsp | Kosher or sea salt |
| Black Pepper 🌶️ | ¼ tsp | Freshly ground preferred |
| Pickle Slices 🥒 | 4 whole | For serving (optional) |
The ham makes all the difference here. Thick-cut is non-negotiable—those flimsy deli slices won't hold up to baking. Look for black forest ham or honey-glazed at the grocery store's meat counter, or grab a pre-sliced pack from Costco if you're doing a big batch. The cheese should be sharp cheddar—avoid pre-shredded (it melts poorly). I always buy a wedge and shred it myself for the best texture. For the bread, sourdough is ideal, but a sturdy baguette or even a buttery croissant works too—just make sure it's fresh.
No Dijon mustard? Yellow mustard at half the amount works in a pinch. The mayo layer is optional but adds serious moisture—Hellmann's or Duke's are reliable brands. Want extra flavor? Add a pinch of smoked paprika to the cheese. For the garlic powder, Garlic-Inspired brand from the spice aisle has the most punch. If you're short on time, skip the pickles—the sandwich stands alone. The butter needs to be softened but not melted when brushing, so take it out of the fridge 15 minutes before baking.
This sandwich reheats beautifully—just pop it back in the oven for 5-7 minutes at 350°F until crispy again. Store leftovers wrapped in foil for up to 3 days in the fridge. For make-ahead prep, assemble the sandwiches (without baking) and refrigerate for up to 24 hours. When ready to bake, brush with butter and pop in the oven. The aroma alone will have everyone gathering in the kitchen—trust me on this.
Why You'll Love This Recipe
- Here’s what sold me: the buttery sourdough gets that golden, almost crackly crust in the oven, while the inside stays soft and melty. The thick-cut ham? It stays juicy, not dry, and every bite has that perfect balance of salty, sharp, and rich.
- Let’s be real: most sandwiches turn soggy by day two. Not this one. The cheese holds up, the ham stays flavorful, and I’ve reheated slices in a toaster or pan for days. Plus, it’s budget-friendly—one loaf of sourdough and a ham bone stretch across multiple meals without breaking the bank.
Step-by-step instructions for baked ham and cheese sandwich
Here's how to achieve that perfect golden crust and melty interior every time.
Prepare the Sourdough Bread
Preheat your oven to 375°F. Take the whole sourdough bread loaf and slice it horizontally into two equal halves. I like to use a sharp serrated knife for clean cuts that won't crush the bread. Place the bottom half on a baking sheet lined with parchment paper.
Spread 1 tablespoon mayonnaise evenly over the cut surface of the bottom bread half. This creates a flavorful base that prevents the cheese from sticking too aggressively to the bread. For extra flavor, sprinkle 0.5 teaspoon garlic powder and 0.25 teaspoon salt over the mayonnaise layer. This step ensures your sandwich has depth of flavor in every bite.
Layer the Ham and Cheese
Place the 8 oz thick-cut ham slices evenly over the mayonnaise layer. I recommend using about 2 slices per sandwich half, slightly overlapping if needed to cover the entire surface. The thick-cut ham gives you that satisfying texture and prevents the sandwich from falling apart during baking.
Next, sprinkle 1.5 cups sharp white cheddar cheese evenly over the ham. Use freshly shredded cheese for the best melt and texture. The sharp white cheddar will create that perfect balance of tangy and creamy flavors when melted. Don't be tempted to pack the cheese too tightly—just distribute it evenly so it melts beautifully during baking.
Assemble and Butter the Top
Place the top half of the sourdough bread on the cheese-covered ham. Press down gently but firmly to create a good seal. This ensures the sandwich holds together during baking and gives you that pull-apart texture when served. Spread 1 tablespoon Dijon mustard on the outside of the top bread half for added flavor and moisture.
Brush the outer surfaces of the entire sandwich with 2 tablespoons softened unsalted butter. This is crucial for achieving that crispy golden crust. The butter should be softened but not melted—it should leave a slight indentation when pressed. Brush it evenly all over the top and sides of the sandwich, including the cut edges. This butter layer creates that perfect crispy texture while keeping the inside tender.
Bake to Golden Perfection
Bake the assembled sandwich in the preheated oven for 15-18 minutes until the edges are deep golden brown and the cheese is fully melted. You'll know it's ready when the bread has a crispy crust and the cheese has turned into a smooth, gooey blanket between the layers. I recommend checking at the 15-minute mark—your oven might run hot, so watch for that perfect golden color.
During the last 2 minutes of baking, you can broil the sandwich for 1-2 minutes to achieve an extra crispy crust. Keep a close eye on it during this time to prevent burning. Once the crust reaches your desired level of crispiness, remove it from the oven and let it rest for 2-3 minutes before serving. This resting time helps the layers set and makes slicing easier.
Serve with Pickles and Enjoy
Use a sharp serrated knife to slice the sandwich diagonally into 4 equal portions. The pull-apart texture should be evident—each slice should hold together but still be easy to separate. Serve immediately with the 4 whole pickle slices on the side for that classic tangy contrast.
For best results, serve while the sandwich is still warm. The crispy crust will soften slightly as it cools, but the melty cheese and flavorful layers will remain perfect. This sandwich makes a fantastic lunch or light dinner, especially with a side of crisp green salad or pickled vegetables. The combination of crispy bread, melty cheese, and savory ham creates a truly satisfying bite every time.
Pro Tips For Making Baked Ham And Cheese Sandwich
- Preheat Pan Properly: Slap that skillet on high heat for 3-4 minutes before adding butter—you want it smoking just a little. I learned this the hard way when my first batch of butter burned before the bread even toasted. The sourdough needs that initial shock to crisp up fast.
- Slice Ham Thinly: Use a sharp knife and cut the ham against the grain into ¼-inch slices—no thicker or you’ll end up with a soggy sandwich. I used to eyeball it, but now I measure with a ruler. Trust me, your sandwich will thank you.
- Butter the Bread Last: Skip buttered bread until the very end—right after pulling it from the oven. The heat will melt the butter instantly, creating that golden crust while keeping the inside soft. I used to butter first, and the bread always turned greasy.
- Press Down Firmly: When stacking the sandwich, press it down with a heavy pan or even a cast-iron skillet for 10 seconds—this melts the cheese evenly and prevents leaks. I was skeptical until I tried it, and now it’s non-negotiable.
Common mistakes when making perfect results
Skipping the Mayonnaise
I’ve seen people skip the mayo layer to avoid extra calories, but this is a big mistake—it’s not just about flavor. The mayo acts as a glue between the bread and ham, preventing the cheese from sticking too aggressively to one layer.
Without it, your sandwich might end up with cheese clinging to the bread instead of melting evenly. If you’re cutting calories, use Greek yogurt mixed with a pinch of Dijon instead—it still adds moisture and creaminess. 🥫
Using Pre-Shredded Cheese
Pre-shredded cheese is convenient, but it’s packed with anti-caking agents that prevent proper melting. These additives create a grainy texture that ruins the smooth, gooey pull-apart quality you’re aiming for. Always use block cheese and shred it yourself with a box grater or food processor.
Sharp cheddar is ideal, but if you’re using a milder cheese like Colby, add a pinch of smoked paprika to boost flavor. 🧀
Overloading the Bread
Piling too much cheese or ham on a single slice of bread can cause the sandwich to fall apart during baking. The bread needs room to crisp up properly, and overloading it leads to soggy centers.
Stick to 2 slices of ham per sandwich half and distribute the cheese evenly—about 1.5 cups total for the whole sandwich. If you’re making a larger sandwich, use a brioche bun or ciabatta instead of sourdough for extra stability. 🍞
Not Brushing Butter Evenly
The butter is what gives your sandwich that perfect crispy crust, but many people only brush the top. For even crispiness, spread the softened butter on all sides of the sandwich, including the cut edges. Use a pastry brush to get it into every nook.
If your butter melts too quickly, chill the assembled sandwich in the fridge for 10 minutes before baking. This helps the butter set up better for a crispier finish. 🧈
Baking at the Wrong Temperature
Some ovens run hot, and baking at 400°F instead of 375°F can burn the outside before the cheese melts properly. 375°F is the sweet spot—it toasts the bread without scorching it while allowing the cheese to melt evenly.
If your oven runs hot, reduce the temperature to 350°F and add 2-3 extra minutes to the baking time. Always use an oven thermometer to check accuracy. 🌡️
Cutting Too Soon After Baking
Slicing the sandwich immediately after baking can cause the layers to separate. The cheese needs time to set slightly, and the bread needs to firm up. Let the sandwich rest for 2-3 minutes before cutting—this ensures clean slices with that perfect pull-apart texture.
If you’re in a hurry, tent it loosely with foil while it rests to keep it warm. ⏳
Nutrition facts
Frequently asked questions
Can I use a different type of bread besides sourdough?
While sourdough gives the best crust, you can use brioche for extra richness, ciabatta for a chewy texture, or even buttery croissants for a flaky finish. Just avoid overly soft bread like white sandwich loaves—they won't crisp up properly.
What's the best way to reheat leftover baked ham and cheese?
For crispy results, reheat in a 350°F oven for 5-7 minutes on a baking sheet. If you're short on time, use the air fryer at 350°F for 3-4 minutes to restore that golden crust. Microwaving works in a pinch, but it'll make the bread soggy.
Can I make this sandwich ahead of time?
Yes! Assemble the sandwich (without baking) and refrigerate for up to 24 hours. When ready to bake, brush with butter and pop in the oven. For make-ahead baking, assemble and bake as directed, then store wrapped in foil for 3 days in the fridge. The flavors actually improve overnight!
What cheese works best if I don't have sharp cheddar?
Try Gruyère for nutty depth, Swiss for holes and mild sweetness, or provolone for extra melt. Avoid pre-shredded cheeses—they contain anti-caking agents that prevent proper melting. If using a milder cheese, add smoked paprika or garlic powder for extra flavor.
How do I keep the sandwich from falling apart when slicing?
Let the sandwich rest for 2-3 minutes after baking before cutting. This allows the cheese to set slightly and the bread to firm up. For extra stability, chill the assembled (unbaked) sandwich in the fridge for 10 minutes before baking. Use a sharp serrated knife and cut diagonally for clean slices.
