Dinners

Cake With Filling in the Middle: How to Make It

Updated · By Stir & Share

Total timeincludes chilling, rising or resting
1 hr 15 min
Prep
30 min
hands-on
Cook
30 min
oven or stovetop
Serves
12
as written

Jump to recipe Save

Time: 1 hr 15 min · Serves: 12 · The key step: Chill the filled cake before slicing so the layers hold cleanly. This is a classic layer cake with a sweet filling—like fruit, cream, or chocolate—sandwiched between tender cake layers. It’s great for birthdays, potlucks, or any time you want a dessert that looks special but is simple to assemble.

Ingredients

  • 2 ½ cups (300 g) all-purpose flour
  • 2 ½ tsp baking powder
  • ½ tsp salt
  • 1 cup (226 g) unsalted butter, softened
  • 1 ¾ cups (350 g) granulated sugar
  • 4 large eggs, room temperature
  • 1 tbsp vanilla extract
  • 1 cup (240 ml) whole milk, room temperature
  • Filling of your choice: 1 ½ cups (about 420 g) jam, curd, or prepared pie filling, or 1 ½ cups (360 ml) stabilized whipped cream
  • Frosting for the outside (optional): 2 cups (480 ml) buttercream or your favorite frosting

Instructions

  1. Preheat the oven to 350°F (175°C). Grease and flour two 9-inch (23 cm) round cake pans, or line the bottoms with parchment paper.
  2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  3. In a large bowl, beat the butter and sugar together with an electric mixer on medium speed until light and fluffy, about 3–4 minutes. Scrape down the sides as needed.
  4. Add the eggs one at a time, beating well after each addition. Beat in the vanilla.
  5. With the mixer on low, add the flour mixture in three additions, alternating with the milk in two additions, starting and ending with the flour. Mix just until combined—do not overmix.
  6. Divide the batter evenly between the prepared pans. Smooth the tops with a spatula.
  7. Bake for 25–30 minutes, until the tops are golden and a toothpick inserted into the center comes out clean. The cakes should pull away slightly from the sides of the pans.
  8. Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely. This is important—warm cake will melt the filling.
  9. Once the cakes are completely cool, place one layer on a serving plate or cake stand. Spread the filling evenly over the top, leaving a ½-inch (1 cm) border around the edge so it doesn’t squeeze out when you add the top layer.
  10. Place the second layer on top, cut side down if you leveled the tops. If you’re frosting the outside, apply a thin crumb coat first, then refrigerate for 15 minutes before adding the final layer of frosting.
  11. Refrigerate the assembled cake for at least 30 minutes before slicing. This firms up the filling and makes clean slices easier.

Doneness Cues

The cake is done when a toothpick inserted into the center comes out clean, and the top springs back when lightly pressed. For a more precise check, the internal temperature should read 200–205°F (93–96°C) on an instant-read thermometer. The total baking time is 25–30 minutes at 350°F (175°C).

Common Mistakes and Fixes

Overmixing the batter develops too much gluten, making the cake dense and tough. Mix just until the flour disappears.

Skipping the cooling step before assembly causes the filling to melt and soak into the cake, making it soggy. Wait until the layers are completely cool to the touch.

Using too much filling makes the cake slide apart when you slice it. Stick to about 1 ½ cups (360 ml) for a 9-inch (23 cm) cake—enough to be noticeable but not so much that it overflows.

Filling Variations

You can use almost any spreadable filling. Jam, lemon curd, chocolate ganache, or prepared pie filling all work well. For a lighter option, use stabilized whipped cream: whip 1 ½ cups (360 ml) heavy cream with 2 tbsp powdered sugar and 1 tsp vanilla until stiff peaks form, then fold in 1 tbsp instant pudding mix to help it hold its shape. If you use a fruit filling with large chunks, chop them smaller so the cake layers sit flat.

Storage and Shelf Life

Store the cake in an airtight container in the refrigerator for up to 4 days. Let it sit at room temperature for 30 minutes before serving if you want it softer. You can freeze the unfrosted cake layers, wrapped tightly in plastic wrap and foil, for up to 3 months. Thaw in the refrigerator overnight before assembling. Assembled cakes with fruit or cream fillings are best eaten within 2 days—the filling can make the cake soggy over time.

How to Slice Cleanly

Use a long, thin-bladed knife and wipe it clean between cuts. Dip the knife in hot water, dry it, then slice—the warm blade glides through the filling without dragging it. For the neatest slices, cut the cake while it’s still slightly chilled.

Frequently Asked Questions

Can I use a boxed cake mix? Yes, but reduce the water to ½ cup (120 ml) and add one extra egg to make the layers sturdier for filling. Bake according to the box directions, then cool completely before assembling.

What if my filling is too runny? Thick jams or curds work best. If your filling is thin, refrigerate it for 30 minutes before spreading, or mix in a little cornstarch (1 tsp per cup) and heat until thickened, then cool.

Can I make this ahead? Yes, assemble the cake up to 1 day ahead and keep it refrigerated. Add the frosting just before serving if you want it to look freshest.

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).