There is a reason the Boston Cream Pie has remained a beloved classic for over a century: it is the perfect trifecta of airy sponge cake, rich vanilla custard, and decadent chocolate ganache. This from-scratch recipe yields a show-stopping dessert that tastes even better than it looks, featuring a fail-proof filling that holds its shape perfectly for that iconic, beautiful slice.

Jump to:
- 🍫 The Ingredients
- 📝 Ingredient Notes & Substitutions
- 📌 Tips and Tricks for the Perfect Boston Cream Pie
- 👩🏼🍳 How to Make the Perfect Vanilla Pastry Custard
- 👨🍳 How to Make a Hot Milk Sponge Cake
- 🧑🏾🍳 How to Assemble a Classic Boston Cream Pie
- 🙋🏽♂️ Frequently Asked Questions
- 🍰 Other Classic Cake Recipes
- Classic Boston Cream Pie Recipe (From Scratch)
🍫 The Ingredients
This timeless dessert transforms simple, high-quality pantry staples and fresh dairy into a sophisticated three-layered masterpiece that tastes far more complex than its humble components suggest. Find ingredient notes (including substitutions and variations) below.

📝 Ingredient Notes & Substitutions
- Whole Milk: This is essential for a rich, sturdy pastry cream; while 2% milk can work in a pinch, avoid skim milk as the custard will lack the necessary body and flavor.
- Cornstarch: This serves as the thickening agent for the filling; if you need a substitute, you can use arrowroot powder or double the amount of all-purpose flour (though flour will result in a slightly cloudier appearance).
- All-Purpose Flour: This provides the perfect structure for the hot milk sponge, but for an even finer, more delicate crumb, you can swap it for an equal amount of cake flour.
- Semi-Sweet Chocolate (56%): For the smoothest ganache, use a high-quality baking bar rather than chocolate chips; if you prefer a deeper, less sweet flavor, bittersweet chocolate (60% or higher) is an excellent alternative.
- Light Corn Syrup: This is the secret to achieving a professional, high-gloss finish on your ganache; if you prefer not to use it, you can substitute it with honey or simply omit it, though the glaze will be more matte.
- Unsalted Butter: Using unsalted butter allows you to control the salt content precisely; if you only have salted butter on hand, simply omit the additional pinch of salt from the recipe.
Refer to the recipe card (with video) below for a full list of ingredients and measurements.
📌 Tips and Tricks for the Perfect Boston Cream Pie
- Temperature Matters for Volume: Ensure your eggs are truly at room temperature before beating them with the sugar; this allows the eggs to trap more air, resulting in a taller, fluffier sponge cake.
- The “Skin” Secret: To prevent a rubbery skin from forming on your pastry cream, press plastic wrap directly onto the surface of the custard while it is still warm and keep it there until you are ready to assemble the cake.
- Strain for Smoothness: For a professional, melt-in-your-mouth texture, always pass your cooked pastry cream through a fine-mesh sieve; this catches any tiny bits of cooked egg and ensures a perfectly silky filling.
- Master the “Slow Drip”: Timing is everything with ganache. Let it sit for about 10–15 minutes until it is slightly thickened but still pourable; if it’s too hot, it will run right off the cake, but if it’s the right temperature, it will create those beautiful, thick drips.
- The Clean Slice Technique: To get those stunning, Pinterest-worthy slices Wesley is looking for, dip a sharp knife in hot water and wipe it completely dry between every single cut to prevent the chocolate and cream from smearing.
- Don’t Rush the Chill: While it’s tempting to serve it immediately, letting the assembled cake rest in the fridge for at least 30 minutes “sets” the layers, ensuring the pastry cream stays put instead of squishing out the sides when you cut it.
👩🏼🍳 How to Make the Perfect Vanilla Pastry Custard

- Step 1: Whisk the milk and sugar in a saucepan and bring to a slight simmer over medium heat.

- Step 2: Use a stand mixer or hand mixer to whisk the egg yolks with the sugar, cornstarch, and salt until pale, about 3 minutes.

- Step 3: Pour about half of the warm milk/sugar liquid into the egg/sugar mixture, whisking constantly. This is tempering the eggs.

- Step 4: Pour the tempered eggs from the bowl into the saucepan with the simmering milk. Whisk constantly to prevent the eggs from scrambling.

- Step 5: Whisk and stir until thickened to the consistency of custard. Remove from the heat and stir in the softened butter and vanilla.

- Step 6: Strain the custard through a fine-mesh sieve into a bowl. Press plastic wrap onto the surface of the custard and chill while you make the sponge cake.
Expert Tip: The “Full Boil” Rule for Stability
The most common mistake when making pastry cream is removing it from the heat the moment it starts to thicken; however, to ensure your custard is stable enough to support the weight of the top cake layer, you must wait until you see large “blub-blub” bubbles popping on the surface. Once those bubbles appear, continue whisking vigorously over the heat for a full 60 seconds to fully activate the cornstarch and neutralize the alpha-amylase enzyme in the egg yolks, which—if not properly cooked out—can actually break down the starch and turn your beautiful filling into a runny liquid after it sits in the fridge.
👨🍳 How to Make a Hot Milk Sponge Cake

- Step 1: In a medium bowl, whisk together the flour, baking powder, and salt.

- Step 2: Heat the whole milk and cubed butter in a small saucepan over medium heat until melted and barely simmering.

- Step 3: Meanwhile, beat the eggs with the sugar on high until they become pale and slightly thickened, about 4 to 5 minutes.

- Step 4: Turn the mixer to low, and alternatively add the flour mixture and the hot milk mixture, starting and ending with the flour mixture.

- Step 5: Grease and flour two 9-inch cake pans and then split the batter between them both.

- Step 6: Bake for 15 to 18 minutes, until an inserted toothpick comes out clean. Remove from the oven, let rest for 10 minutes, invert the cakes onto a baking rack, remove the parchment paper, and let rest until completely cooled.
🧑🏾🍳 How to Assemble a Classic Boston Cream Pie

- Step 1: Heat the cream and then pour it over the chopped chocolate with the light corn syrup. Let rest.

- Step 2: Place one of the sponge cakes on a circular cake stand and top with cooled pastry cream. Spread to about ½-inch from the edge of the cake.

- Step 3: Stir the chocolate with the warm cream until smooth and fully incorporated.

- Step 4: Top with the other sponge cake and smooth the pastry cream along the edges of the cake.

- Step 5: Pour the ganache over the top of the cake and spread to the edges, allowing some to slightly spill over the sides.

- Step 6: Chill for 30 minutes, or until the ganache sets. Slice and serve!
🙋🏽♂️ Frequently Asked Questions
Because of the dairy-based custard filling, this dessert must be kept in the refrigerator. Place it in an airtight container or loosely cover it with plastic wrap to keep it fresh for up to three days.
Yes, you can prepare the components separately a day ahead. Store the pastry cream in the fridge and the sponge cake at room temperature, then assemble and glaze the dessert a few hours before serving for the best texture.
This name is a historical holdover from the 19th century when cakes and pies were often baked in the same types of shallow tins. Despite the “pie” label, it consists of two layers of sponge cake with a custard center.
Make sure both the cake and the custard are completely cold before assembly. Additionally, spreading a very thin layer of melted chocolate or apricot jam on the cut sides of the sponge can act as a moisture barrier to keep the cake crumb firm.
Freezing is not recommended because the cornstarch-based custard tends to weep and become grainy upon thawing. It is much better enjoyed fresh or within a few days of being made for the best quality.

🍰 Other Classic Cake Recipes
Ready to make the best cake this side of…well…Boston? Go for it!
And when you do, be sure to take a photo of it, post it on Instagram, and tag @HowToFeedaLoon and hashtag #HowToFeedaLoon!

Classic Boston Cream Pie Recipe (From Scratch)
Video
Equipment
- Stand mixer or an electric hand mixer, or both
- 2 9-inch straight cake pans lined with parchment paper (optional, but helpful)
Ingredients
For the Vanilla Pastry Cream (Custard)
- 2 cups whole milk
- ½ cup sugar
- ¼ cup cornstarch
- ¼ teaspoon salt
- 4 large egg yolks
- 2 tablespoon unsalted butter
- 2 teaspoon vanilla extract
For the Hot Milk Sponge Cake
- 1½ cups all-purpose flour
- 1½ teaspoon baking powder
- ¼ teaspoon salt
- 3 large eggs room temperature
- 1 cup sugar
- ¾ cup whole milk
- 6 tablespoon unsalted butter cut into cubes
- 1 teaspoon vanilla extract
For the Chocolate Ganache
- 4 oz semi-sweet chocolate 56% cacao, finely chopped
- 1 tablespoon light corn syrup
- ½ cup heavy cream
Instructions
Prepare the Vanilla Pastry Cream (Custard)
- In a medium saucepan, whisk together the milk and ¼ cup of the sugar. Bring to a slight simmer.2 cups whole milk, ½ cup sugar
- Meanwhile, in a medium-sized bowl (or in the bowl of your stand mixer), whisk the remaining ¼ cup of sugar, cornstarch, and salt. Add the egg yolks and use an electric hand mixer (or your stand mixer with whisk attachment) to whisk until the mixture is pale and slightly thickened, about 3 to 4 minutes.¼ cup cornstarch, ¼ teaspoon salt, 4 large egg yolks
- Temper the egg mixture by slowly pouring about half of the hot milk into it, whisking constantly to prevent scrambling the eggs.
- Pour the egg mixture back into the saucepan with the rest of the hot milk, whisking constantly. Continue to whisk and stir until the mixture thickens and begins to bubble on the surface. Remove from the heat and stir in the butter and vanilla.2 tablespoon unsalted butter, 2 teaspoon vanilla extract
- Strain through a fine-mesh sieve into a bowl. Press plastic wrap directly onto the surface of the custard and refrigerate until completely chilled.
Prepare the Hot Milk Sponge Cakes
- Preheat your oven to 350°F. Grease and flour 2 9-inch round cake pans. Line with parchment paper and spray with cooking spray (optional, but helpful).
- In a medium-sized bowl, whisk the flour, baking powder, and salt together. Set aside.1½ cups all-purpose flour, 1½ teaspoon baking powder, ¼ teaspoon salt
- In a stand mixer (or in a bowl with an electric hand mixer), beat the eggs and sugar on HIGH speed for about 5 minutes until very pale and smooth.3 large eggs, 1 cup sugar
- While beating the eggs, heat the milk and cubed butter in a small saucepan over medium heat until the butter is melted and the milk is just starting to simmer. Stir in the vanilla.¾ cup whole milk, 6 tablespoon unsalted butter, 1 teaspoon vanilla extract
- Turn the mixer to LOW. Alternatively, add the flour mixture and the hot milk mixture, starting with one third of the flour mixture, then half of the milk mixture, another third of the flour, then the rest of the milk, and finally the rest of the flour. Mix until just combined.
- Pour into the prepared pans and bake for 15 to 20 minutes, or until an inserted toothpick comes out clean. Place the pans on a baking rack.
- Cool in the pans for 10 minutes. Run a sharp knife along the sides of the pan and then gently turn the cakes out onto the wire rack to cool completely.
Prepare the Chocolate Ganache and Assemble the Cake
- Place the chopped chocolate and corn syrup into a heatproof bowl or measuring cup.4 oz semi-sweet chocolate, 1 tablespoon light corn syrup
- Heat the heavy cream until it just starts to simmer. Pour the hot cream over the chocolate and let it rest for a few minutes. Stir or whisk until the chocolate is smooth and glossy. Let it rest for only a few minutes to slightly cool (it should still be pourable).½ cup heavy cream
- Meanwhile, place one of the cakes on your serving plate. Stir or whisk the chilled pastry cream (custard) until smooth. Use a spatula to spread the pastry cream evenly over the cake, leaving a ½-inch border at the edge.
- Place the second cake on top. Press down very gently so the cream reaches the edges but doesn't spill over. Smooth with a spatula, if desired.
- Pour the warm (but not hot) ganache over the center of the cake. Use an offset spatula to gently push it toward the eggs, letting some of it drip slightly down the sides.
- Chill for about 30 minutes to allow the ganache to set before slicing.
Notes
- Storage: Because of the custard filling, this cake should be stored in the refrigerator. It will stay fresh in an airtight container for up to 3 to 4 days. Freezing is not recommended as the pastry cream texture will break down.
- Make-Ahead Tip: You can prepare the pastry cream up to 24 hours in advance. The sponge cake can also be baked a day early; once completely cool, wrap it tightly in plastic wrap and store at room temperature until you are ready to assemble.
- Custard Consistency: To ensure your filling doesn’t squish out the sides, make sure the pastry cream reaches a full boil (large, slow bubbles) for at least one minute. This “activates” the cornstarch so it sets firmly.
- The Perfect Drip: Let your ganache cool for 10–15 minutes before pouring. It should be thick enough to coat a spoon but still fluid; if it’s too hot, it will run off the cake rather than creating those beautiful, thick drips.
- Serving: For the best flavor and texture, take the cake out of the fridge about 20 minutes before serving to let the sponge cake soften slightly, but keep it cool enough that the custard remains stable.












Colleen says
My Husbands Favorite! Absolutely Delicious!
Kris Longwell says
Yay! We love it so much, too! It’s amazing how many folks have told us that Boston Cream Pie is their favorite! Give our best to your hubby!