Pie in a Cake Recipe: Layered Vanilla Magic Without the Mess

Desserts

Pie in a Cake Recipe: Layered Vanilla Magic Without the Mess

This pie in a cake recipe combines the best of both worlds—moist vanilla cake layers and creamy custard filling—all baked together for a showstopping dessert that’s easier to assemble than traditional pie. ✨ The secret lies in a simple layering technique that ensures every bite delivers that perfect balance of cake and custard, with a crispy crumb topping that adds texture and elegance. No fuss, no mess, just pure dessert magic that looks and tastes like it came from a bakery.

The magic happens in the layers: tender vanilla cake baked directly in the pan, topped with a rich custard filling that stays creamy and smooth, and finished with a buttery crumb topping that turns golden and irresistible.

This recipe is designed to be foolproof, with clear steps for assembling each layer so you can achieve that restaurant-quality finish without the stress. The result? A dessert that’s as impressive to look at as it is to eat.

What makes this recipe stand out is its versatility—serve it warm with vanilla ice cream for a decadent treat, or let it cool slightly for cleaner slices. The custard filling stays luscious, the cake remains moist, and the crumb topping adds a satisfying crunch.

It’s the kind of dessert that will have everyone asking for seconds, and the best part? It’s easier to make than you think.

Perfect for special occasions, holiday gatherings, or just treating yourself to something extraordinary. The layers are simple to assemble, and the baking process is hands-off, so you can focus on enjoying the process. Let’s get started on creating this layered vanilla masterpiece!

👨‍🍳
Difficulty
Medium
🔥
Calories
Med Cal

Ingredients for pie in a cake

These 15 ingredients create the ultimate dessert fusion—moist cake, creamy custard, and buttery crumb topping.

Ingredient Amount Notes
All-Purpose Flour 🌾 2 ½ cups Sifted for fluffy texture
Granulated Sugar 🍚 1 ½ cups White or light brown
Unsalted Butter 🧈 1 cup Cold, cubed for cake layers
Large Eggs 🥚 4 whole Room temperature
Milk 🥛 1 cup Whole milk preferred
Vanilla Extract 🌸 2 tsp Pure, high-quality extract
Baking Powder 🍞 2 tsp Diamond Crystal preferred
Salt 🧂 ½ tsp Fine sea salt
Heavy Cream 🥛 2 cups Cold for custard
Granulated Sugar 🍚 ¾ cup For custard sweetness
Cornstarch 🌾 2 tbsp For thickening custard
Vanilla Bean Paste 🌸 1 tbsp Or 1 tsp extract
Old-Fashioned Oats 🌾 1 cup Blended into crumbs
Light Brown Sugar 🍚 ½ cup Packed for crumb topping
Unsalted Butter 🧈 ½ cup Cold, cubed for crumbs

The cake layers are where the magic starts. King Arthur flour or Bob's Red Mill makes all the difference here—it bakes up lighter than store brands. For the butter, Plugrá or Land O'Lakes unsalted work perfectly, but don't use salted. The vanilla extract? Nielsen-Massey is my go-to, but any pure extract will do. Pro tip: measure your flour by weight if you can—280 grams for this recipe—it's more accurate than scooping. And the milk? Whole milk keeps the cake moist, but 2% works in a pinch. Just don't use skim—it'll make the texture dry.

No vanilla bean paste? Double the extract—it's a game-changer for that bakery-quality flavor. The custard needs thick cream, but heavy whipping cream works if you're in a bind. For the crumb topping, Trader Joe's old-fashioned oats are my secret weapon—they're cheaper and blend smoother than the name brands. Brown sugar? Light or dark both work, but light gives a subtler flavor. And if you're worried about the custard curdling, whisk that cornstarch into the cold cream first—slowly, or you'll get lumps. Trust me on this one.

This dessert is a make-ahead dream. Assemble everything the night before—it actually tastes better after chilling. The cake layers stay moist for 3 days in the fridge, and the crumb topping keeps for 1 week if stored separately. For serving, let it sit at room temp for 20 minutes—the custard softens beautifully. And if you're prepping for a crowd, double the crumb topping. It disappears faster than you'd think!

❤️

Why You'll Love This Recipe

  • Here’s what sold me: this works for brunch or bedtime. Top it with a sprinkle of cinnamon sugar for a morning treat, or add a dollop of whipped cream for an after-dinner indulgence. Same batter, two vibes.
  • No Mixer Needed: I swear by this recipe because it’s all about the creaming method—just butter and sugar beaten until fluffy, then eggs and milk folded in. No electric mixer, no fuss, and the result is that perfect tender crumb.
  • Buttery Vanilla Hug: That first bite? Pure comfort. The butter and sugar combo gives it a rich, almost custard-like depth, while the eggs add structure—like a pie filling with cake’s lightness. Honestly, it’s the kind of dessert that makes me pause mid-bite.
  • Breakfast or Dessert: Here’s what sold me: this works for brunch or bedtime. Top it with a sprinkle of cinnamon sugar for a morning treat, or add a dollop of whipped cream for an after-dinner indulgence. Same batter, two vibes.

Step-by-step instructions for layered vanilla magic without the mess

Here's how to create that perfect pie-in-a-cake texture—fluffy layers with a custardy surprise!

1

👨‍🍳 Step 1: Make the Vanilla Cake Layers

Preheat your oven to 350°F and grease two 9-inch round cake pans. In a large bowl, whisk together the 2.5 cups all-purpose flour, 1.5 cups granulated sugar, 2 tsp baking powder, and 0.5 tsp salt. Cut in the 1 cup cold cubed unsalted butter using a pastry cutter or your fingers until the mixture resembles coarse crumbs.

Add the 4 room-temperature eggs one at a time, mixing just until each is incorporated. Stir in the 1 cup milk and 2 tsp vanilla extract until smooth. Divide the batter evenly between the prepared pans. Bake for 25-30 minutes or until a toothpick inserted in the center comes out clean. Let the layers cool in the pans for 10 minutes, then transfer to a wire rack to cool completely.

2

🥘 Step 2: Prepare the Vanilla Custard Filling

In a medium saucepan, combine the 2 cups cold heavy cream, 0.75 cup granulated sugar, and 2 tbsp cornstarch. Whisk vigorously to dissolve the cornstarch completely. Cook over medium heat, stirring constantly, until the mixture thickens enough to coat the back of a spoon (5-7 minutes). Remove from heat and stir in the 1 tbsp vanilla bean paste.

Here's the thing—this custard needs to be smooth and glossy. If it looks grainy, strain it through a fine-mesh sieve. Let it cool to room temperature, then chill in the refrigerator for at least 1 hour to set properly. The custard should be thick but still spreadable—like a perfect pie filling.

3

🍳 Step 3: Assemble the Crumb Topping

While the custard chills, make the crumb topping. In a food processor, pulse the 1 cup old-fashioned oats until they resemble fine crumbs. Add the 0.5 cup light brown sugar and 0.5 cup cold cubed unsalted butter, then pulse until the mixture resembles coarse sand. Spread this evenly over one of the cooled cake layers.

Spread the chilled vanilla custard over the crumb topping, leaving a ½-inch border around the edges. This border prevents the custard from oozing out during baking. Top with the second cake layer, pressing gently to seal the edges. The layers should feel snug but not forced—this ensures clean slices later.

4

🔥 Step 4: Bake to Golden Perfection

Return the assembled pie-in-a-cake to the oven and bake at 350°F for 30-35 minutes until the top is golden brown and the custard is set. You'll know it's done when the center barely jiggles—like a perfect pie. Let it cool completely on a wire rack before slicing.

This is where the magic happens: the custard stays creamy while the cake layers stay tender. For the best results, let it rest for at least 1 hour before serving. The flavors meld beautifully, giving you that classic pie experience without the fuss of a crust!

👨‍🍳

Pro Tips For Making Pie In A Cake

  • Use Cold Butter Blocks: I learned this the hard way—cutting butter into flour at room temperature just makes a greasy mess. Grab the butter straight from the fridge, slice it into ½-inch cubes, and toss them into the flour mix. The cold butter creates flaky layers that actually mimic pie crust, not a dense cake.
  • Mix Just Until Combined: Overmixing turns this into a tough, dry sponge. Once the flour and butter are combined, add the milk and eggs one at a time, mixing barely enough to moisten the dough. Stop when you see a few dry spots—your future self will thank you for not turning this into a gluten workout.
  • Bake in Two Stages: Skip the guesswork: bake at 350°F for 20 minutes, then crank it to 375°F for the last 10-15. The lower temp sets the structure, while the higher finish ensures the top browns properly. (Yes, even if you’re impatient like me.)
  • Whisk Eggs Before Adding: Room-temperature eggs blend smoother, but if yours are straight from the fridge, give them a quick whisk in warm water for 30 seconds. This prevents lumps that turn into dense pockets in the final bake—because nobody wants a cake that tastes like it’s hiding rocks.

Flavor customization for this dish

Spiced Cinnamon Twist

Add 1 tsp ground cinnamon and ½ tsp nutmeg to the cake batter for a warm, aromatic twist. The spices complement the custard beautifully and add depth to each bite.

For extra warmth, sprinkle ½ cup toasted pecans over the crumb topping before baking—it adds a delightful crunch and nutty flavor. 🌟

Chocolate-Dipped Layers

Swap the vanilla custard for a rich chocolate filling by melting ½ cup dark chocolate with 1 cup heavy cream and 2 tbsp cornstarch over low heat. Stir in 1 tsp vanilla extract and chill before layering.

Top with the crumb topping and bake as directed. The result? A decadent chocolate pie-in-a-cake that’s irresistible. 💛

Berry Swirl Surprise

Mix 1 cup mixed berries (strawberries, blueberries, or raspberries) into the custard filling for a fruity twist. Alternatively, layer ½ cup jam (like raspberry or apricot) between the cake layers and custard.

The berries add a burst of freshness that cuts through the richness of the custard. Serve with a dollop of whipped cream for extra flair. 🍓

Coffee-Infused Custard

For a sophisticated touch, infuse the custard with 1 tbsp instant espresso powder or ½ cup strong brewed coffee mixed into the cream before cooking. The coffee enhances the vanilla flavor and pairs perfectly with the crumb topping. This variation is a crowd-pleaser, especially for coffee lovers. ☕

Salted Caramel Crumb

Upgrade the crumb topping by adding ¼ cup caramel sauce (store-bought or homemade) and flaky sea salt to the oat mixture. Pulse until evenly distributed, then spread over the cake layer.

The caramel adds sweetness and moisture, while the salt balances the flavors beautifully. This is my go-to for a restaurant-worthy finish. 🍯

Citrus Zest Brightness

Add 1 tbsp lemon or orange zest to the cake batter for a bright, citrusy kick. The zest pairs wonderfully with the custard and adds a refreshing contrast.

For an extra pop, drizzle 2 tbsp citrus glaze (mix ½ cup powdered sugar with 1 tbsp lemon juice) over the top before serving. 🍊

Nutrition facts

Servings 8
Amount Per Serving
Calories 580kcal
% Daily Value *
Total Fat 32g41%
Saturated Fat 20g100%
Cholesterol 145mg48%
Sodium 320mg14%
Total Carbohydrate 65g23%
Dietary Fiber 2g8%
Sugars 48g
Protein 8g16%
* Percent Daily Values are based on a 2,000 calorie diet. Your daily values may be higher or lower depending on your calorie needs.

Frequently asked questions

1

Can I make this dessert in a different pan shape?

Yes! This recipe works beautifully in 8-inch or 10-inch round pans—just adjust baking times by 5-10 minutes. For square pans, use an 8x8-inch and reduce custard by ¼ cup to prevent overflow. The key is maintaining the same layer proportions: cake/crust/custard/cake. For individual servings, try 4-inch ramekins baked at 325°F for 20-25 minutes.

2

Why does my custard look grainy?

Graininess usually means the cornstarch didn't dissolve properly. Whisk it into cold cream first until completely smooth, then heat gradually. If it's already grainy, strain through a fine-mesh sieve before chilling. For extra silkiness, add 1 tbsp egg yolk to the custard mixture—it emulsifies beautifully.

3

Can I make this ahead of time?

Assemble the entire dessert (including crumb topping) and refrigerate for up to 3 days before baking. For make-ahead serving, bake it 1 day ahead—the flavors develop beautifully. Store leftovers covered at room temp for 2 days or refrigerate for 5 days. Reheat slices at 300°F for 10 minutes to restore custard creaminess.

4

What's the secret to clean slices?

The ½-inch border of custard is key—it prevents crumbling. Chill the assembled dessert for 2 hours before slicing, and use a hot knife (dipped in hot water) for perfectly clean edges. For extra stability, brush the cake layers with simple syrup (equal parts sugar and water) before assembling.

5

Can I substitute the crumb topping?

Try these alternatives: Shortbread crust (press crumbled shortbread into the pan), Graham cracker crumbs (blend graham crackers with butter), or Pecan praline topping (mix chopped pecans with melted butter and brown sugar). For a lighter option, use angel food cake crumbs mixed with whipped cream cheese. All work best when spread ¼-inch thick.

★★★★★4.6(15 reviews)
Categories Desserts