The Feast

Home cooking recipes for everyday dinners and easy entertaining

Ham and Cheese Tarta with Onions & Custard – Oven Recipe

· 6 min read · Dinners

This ham and cheese tarta combines a crisp short‑crust base with sweetly caramelised onions, smoky diced ham, and a silky custard that sets into a golden, slightly puffed topping. The contrast of textures and the gentle custard glaze make it a comforting yet elegant dish that works beautifully for brunch, a light dinner, or a make‑ahead lunch.

Ingredients

  • 250 g (2 cups) plain flour, plus extra for dusting
  • 125 g (½ cup) cold unsalted butter, diced
  • ½ tsp fine sea salt
  • 3–4 Tbsp ice‑cold water
  • 1 large onion (about 150 g), thinly sliced
  • 1 Tbsp unsalted butter for sautéing the onion
  • 200 g (7 oz) smoked ham, diced into 1‑cm cubes
  • 150 g (1 ½ cups) grated Gruyère or mature cheddar
  • 3 large eggs
  • 200 ml (¾ cup) heavy cream
  • 100 ml (⅓ cup) whole milk
  • ½ tsp kosher salt (plus a pinch for the custard)
  • ¼ tsp freshly ground black pepper
  • Pinch of freshly grated nutmeg
  • Optional: 1 Tbsp chopped fresh chives for garnish

Instructions

  1. Prepare the short‑crust pastry. In a large bowl combine the flour and ½ tsp salt. Add the cold butter pieces and, using your fingertips or a pastry cutter, rub the butter into the flour until the mixture resembles coarse breadcrumbs with some pea‑size butter lumps. Drizzle 3 Tbsp ice water over the mixture and stir gently with a fork until the dough just comes together. Form the dough into a disc, wrap it in cling film, and chill in the refrigerator for at least 30 minutes. Chilling relaxes the gluten and keeps the butter solid, which prevents shrinkage during baking.
  2. Pre‑heat the oven and blind‑bake the crust. Set the oven to 190 °C (375 °F). On a lightly floured surface roll the chilled dough to a 3‑mm thickness, enough to line a 23‑cm (9‑inch) tart pan with removable bottom. Gently press the dough into the pan, trimming any excess. Prick the base all over with a fork, line with parchment paper, and fill with a couple of dozen pie weights or dried beans. Bake for 12‑15 minutes, then carefully remove the weights and parchment and bake for another 5‑7 minutes until the crust is pale gold and just set. This step creates a barrier that prevents the custard from soaking into the pastry.
  3. Caramelise the onions. While the crust is baking, melt 1 Tbsp butter in a medium skillet over medium‑low heat. Add the sliced onion, a pinch of salt, and a splash (about 1 Tbsp) of water to help steam initially. Cook, stirring occasionally, for 12‑15 minutes until the onions turn deep amber and develop a sweet aroma. If the pan begins to dry out, add a teaspoon of water to keep the onions from burning. Remove from heat and set aside.
  4. Combine the filling ingredients. In a large mixing bowl whisk together the 3 eggs, heavy cream, whole milk, ½ tsp salt, ¼ tsp black pepper, and a pinch of nutmeg until the mixture is smooth and slightly frothy. Stir in the diced ham, grated cheese, and the caramelised onions. The cheese will melt into the custard, creating a rich, cohesive filling.
  5. Assemble the tarta. Pour the filling into the pre‑baked crust, spreading it evenly with a spatula. The custard should rise just a little above the edge of the crust; it will puff slightly as it bakes and then settle.
  6. Bake to set. Place the tart on the middle rack and bake for 25‑30 minutes, or until the custard is set around the edges and a light golden colour appears on top. The centre should still have a gentle wobble when the pan is shaken – this indicates a creamy interior. Insert an instant‑read thermometer into the centre; it must reach at least 71 °C (160 °F) to ensure the eggs are safely cooked.
  7. Cool and finish. Remove the tarta from the oven and let it rest in the pan for 10 minutes. Then, using the removable bottom, transfer it to a wire rack to cool completely (about 20‑30 minutes). This cooling period allows the custard to firm up, making slicing easier. If desired, sprinkle chopped chives over the top for a fresh colour contrast.
  8. Serve. Cut the tarta into wedges with a sharp, thin‑bladed knife. Serve warm or at room temperature, accompanied by a simple green salad dressed with a vinaigrette, or a light tomato relish.

Tips

  • Substitutions: If you prefer a lighter custard, replace half of the heavy cream with low‑fat milk. For a gluten‑free version, use a 1‑to‑1 gluten‑free flour blend and add a tablespoon of xanthan gum.
  • Prevent soggy crust: Blind‑baking is essential; if you skip it, the custard will soak into the pastry, leaving a soggy bottom.
  • Egg safety: Use pasteurised eggs if you are serving the tarta to pregnant people, young children, or anyone with a compromised immune system.
  • Even caramelisation: Slice the onion uniformly (about 2‑mm thick) and keep the heat moderate. High heat will brown the edges too quickly and leave raw bits.

Serving Suggestions

Pair the tarta with a crisp green salad tossed in a lemon‑mustard dressing; the acidity cuts through the richness of the custard. A glass of lightly chilled white wine such as a Sauvignon Blanc or a sparkling water with a slice of citrus also works well. For a heartier brunch, serve alongside poached eggs and roasted asparagus.

Variations

Feel free to experiment with the cheese: feta and spinach give a Mediterranean twist, while blue cheese and walnuts add a bold, nutty profile. Swap the ham for cooked bacon bits, shredded chicken, or even sautéed mushrooms for a vegetarian version. Adding a teaspoon of Dijon mustard to the custard mixture introduces a subtle tang that brightens the overall flavour.

Storage and Reheating

Allow the tarta to cool completely, then cover it loosely with aluminium foil or store in an airtight container. It keeps in the refrigerator for up to 3 days. To reheat, place a slice on a baking sheet and warm in a 160 °C (325 °F) oven for 10‑12 minutes, or until the centre reaches 71 °C (160 °F). The tarta also freezes well; wrap it tightly in plastic wrap followed by foil and freeze for up to 2 months. Thaw overnight in the refrigerator before reheating.

Frequently Asked Questions

Can I use ready‑made pastry?

Yes, a store‑bought short‑crust pastry works fine. Just follow the blind‑bake step to keep the base from becoming soggy.

Do I need to use both cream and milk?

The combination gives a custard that is rich enough to set firmly but still light enough to rise slightly. Using only cream will make the filling very dense, while using only milk may result in a runny centre.

How do I know when the custard is done?

Besides the visual cue of a lightly golden top, the safest method is to check the internal temperature with a thermometer – it must read at least 71 °C (160 °F). The centre should still have a slight jiggle; it will continue to set as it cools.

Can I make this tart ahead of time for a party?

Absolutely. Bake the tarta fully, let it cool, then refrigerate. Reheat just before serving as described above. The flavours actually improve after a few hours as the ham and cheese meld with the custard.

Is it possible to make a smaller, individual‑size version?

Yes. Use a 12‑cm (5‑inch) tart pan or muffin tins. Reduce the filling by about one‑third and bake for 15‑20 minutes, checking that the centre reaches 71 °C (160 °F).

What if the custard cracks on top?

A cracked surface usually means the oven temperature was too high or the tart baked too long. Lower the oven to 180 °C (350 °F) next time, and consider covering the top loosely with foil for the last 5‑10 minutes to prevent over‑browning.

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions