This Boston cream pie recipe is a soft sponge cake filled with thick, decadent pastry cream and glazed with chocolate ganache. I’ll show you how to make this bakery-style dessert from scratch!

Classic Boston Cream Pie With Chocolate Ganache
There’s something so satisfying about baking this Boston cream pie from scratch. I love the creaminess of the filling and softness of the cake layers, covered with rich chocolate ganache. There’s truly no other dessert like it.
I make my Boston cream pie filling the traditional way, by beating the eggs and sugar before pouring in hot milk and butter to make a rich, creamy custard. I’ve seen recipes that use instant pudding as a shortcut for this step, but if you ask me, it doesn’t compare to the taste of homemade.
Then there’s the cake layer! It’s an airy, soft sponge similar to my vanilla cake roll. The cake can be a little thin in classic Boston cream pie, so I made my cake layers a bit thicker to better balance the pastry cream. I think it turned out pretty delicious, and I hope you’ll think so, too!

Ingredient Notes
Scroll to the printable recipe card for the full recipe with amounts. For now, here’s a look at the key ingredients.
- Egg Yolks – It’s easier to separate the yolks from the egg whites while the eggs are cold from the fridge. I’ll sometimes save the whites to make a batch of Swiss meringue buttercream or a white cake.
- Cornstarch – Thickens the filling without affecting the flavor.
- Whole Milk – Lower-fat options will yield a less creamy filling, so stick with whole milk.
- Vanilla – Pure vanilla extract is essential for a subtle, authentic flavor. Avoid imitation.
- Butter – I recommend unsalted butter for the pastry cream and cake.
- Flour – See how to measure flour correctly using a digital kitchen scale or the spoon-and-level method.
- Oil – I make this Boston cream pie with oil for an ultra-moist texture. I use canola oil, but vegetable oil can also be used.
- Chocolate Ganache – I make homemade chocolate ganache from heavy cream and semi-sweet chocolate, and add light corn syrup to give it a high-gloss finish.

Preparing the Pastry Cream for Boston Cream Pie
I always begin with the homemade custard. The filling in this Boston cream pie is similar to my original pastry cream. I increased the sugar and added an extra egg yolk while using less milk to make the filling a bit sturdier. Tempering the eggs is important here, so they don’t scramble in the heat.
- Beat the egg yolks. Start by beating the egg yolks, sugar, and cornstarch until they’re pale and thick. In the meantime, heat the milk on the stovetop just until it starts to simmer (not boil).
- Temper the eggs. Now, add about half of the hot milk to the egg yolks, whisking to temper them, and then whisk the eggs into the saucepan with the rest of the milk. Keep whisking until the mixture thickens and starts to bubble.
- Take the pastry cream off the heat and strain it. Straining prevents any lumps and bits of cooked egg from finding their way into the finished filling. Next, stir in vanilla extract and cubed butter until the butter has melted. Store the pastry cream in a shallow container. I press a sheet of plastic wrap directly against the pastry cream so a skin doesn’t form while it cools. Afterward, move it to the fridge to chill completely before assembling the pie.


How to Make Boston Cream Pie From Scratch
The steps to prepare the filling and bake the cake layers take time, but this isn’t a difficult dessert. If you’re new to assembling layer cakes, you can bake the cake layers in round pans as directed, and assemble your Boston cream pie in a springform pan afterward. This way, everything stacks evenly, and you can simply release the sides after it chills. Easy!
Make the Cake Layers
I usually bake the cake layers while the pastry cream chills in the fridge.
- Make the cake batter. Whisk the dry ingredients in a bowl. In a separate bowl, beat the eggs and sugar for 5-7 minutes, until they’re pale and bubbly. Then, fold the dry ingredients into the beaten egg mixture, followed by the oil and vanilla.
- Heat the milk and butter. Meanwhile, melt butter with milk in a microwave-safe bowl. The milk should hit around 190-195°F on an instant-read thermometer. Stream the hot milk into your cake batter, stirring until it’s fully added. Stir gently so you don’t deflate the air bubbles you worked into the batter in the previous step!


Expert Tip: Thoroughly Beat the Eggs and Sugar
One of the most important steps in this recipe is beating the eggs thoroughly with the sugar. When the mixture drips off a spoon, the ribbons should collect on top of the batter, rather than disappearing right away. It can take 5-7 minutes of beating for the eggs to reach this ribbon stage. This is key to a light, fluffy cake.
- Bake the cakes. Divide the batter between two greased and floured cake pans. I usually weigh the batter with a kitchen scale, so I know my cakes are even. The cakes go into a 350ºF oven for 22-25 minutes. Test them for doneness using a toothpick. Rest the cakes in the pans, and remove them after 10 minutes to let them cool completely.


Assemble
Lastly, with your cake and pastry cream prepared and cooled, it’s time to layer the Boston cream pie. Ensure that your custard is completely cool before you assemble the pie, or the filling may run out the sides.
- Make the chocolate ganache. When you’re ready to assemble, melt chocolate with heavy cream and corn syrup in the microwave in minute intervals, stirring until smooth. Set the ganache aside.


- Stack the layers. Starting with the first cooled cake layer, spoon chilled pastry cream on top. Spread that evenly, then place the second cake on top of the cream.
- Finish and refrigerate. Pour and spread the ganache over the cake. This Boston cream pie should go into the fridge for at least 1 hour before you slice it, so the chocolate can set.


Frequently Asked Questions
Yes. Due to the pastry cream and ganache, Boston cream pie needs to be kept in the fridge. I don’t recommend letting the pastry cream sit out for longer than 1-2 hours at room temperature.
The filling in Boston cream pie is a thick, rich vanilla pastry cream made from egg yolks, sugar, cornstarch, milk, and butter.
If your pastry cream is a bit thin, it likely wasn’t cooked for long enough. Make sure to cook the egg mixture for at least 2 minutes once it starts to bubble and thicken.
Yes. This Boston cream pie can be assembled 1-2 days in advance. You can also bake the cakes and prepare the pastry cream filling ahead of time. Store the cakes at room temperature and the filling covered in the fridge.
The original Boston cream pie was invented in 1856 by French chef, Augustine Francois Anezin, for the Parker House Hotel in Boston. Back then, cakes and pies were often baked in the same tins.

How to Store
Keep the cake chilled because of the cream filling. It will stay fresh when covered or stored in an airtight container in the fridge for up to 3 days. If you cover the cake with plastic wrap, place some toothpicks around the top before covering it to keep the plastic wrap from touching the ganache.
More Bakery-Style Dessert Recipes
Boston Cream Pie
- Prep Time: 45 minutes
- Chill Time: 2 hours
- Cook Time: 24 minutes
- Total Time: 3 hours 9 minutes
- Yield: 10 servings
- Category: Cake, Dessert, Pie
- Method: Oven, Stovetop
- Cuisine: American
Description
This homemade Boston cream pie is a soft, airy sponge cake filled with pastry cream and glazed with rich chocolate ganache. Learn how to make this bakery-style dessert from scratch!
Ingredients
For the Pastry Cream
- 5 large yolks
- 1 cup (190 grams) granulated sugar
- 3 tablespoons (25 grams) cornstarch
- ¼ teaspoon kosher salt
- 1 ½ cups (355ml) whole milk
- 2 teaspoons vanilla extract
- 2 tablespoons butter, cut into small cubes
For the Cake
- 2 cups (240 grams) all-purpose flour
- 3 teaspoons (11.25g) baking powder
- ¾ teaspoon kosher salt
- 1½ cups (285 grams) granulated sugar
- 3 large eggs, room temperature
- 1½ tablespoons (22ml) oil
- 1 tablespoon (15ml) vanilla extract
- 1 cup (237 ml) whole milk
- 1/2 cup + 1 tablespoon (9 tablespoons total, 127g) unsalted butter, sliced
For the Chocolate Ganache
- ⅓ cup (79 ml) heavy whipping cream
- ⅔ cup (140 grams) semi-sweet chocolate chips
- 2 tablespoons light corn syrup
Instructions
For the Pastry Cream
- Beat the egg yolks, sugar, cornstarch, and salt together in a medium bowl until pale and thick.
- Pour the milk into a small saucepan over medium heat until it starts to simmer. Pour about half of the milk into the egg yolk mixture while whisking to temper the eggs. Then, pour the tempered eggs back into the saucepan while whisking constantly. Continue to whisk while the mixture cooks over medium heat until it is noticeably thickened and starts to bubble.
- Remove from heat. Strain through a mesh sieve and stir in the vanilla extract and butter until the butter has melted completely. Pour the pastry cream into a shallow, heat-proof container, and cover with plastic wrap, making sure the plastic wrap touches the top of the cream to prevent a skin from forming on top. Let it cool completely at room temperature before putting it in the refrigerator to chill.
For the Cake
- Preheat the oven to 350°F. Grease and flour the bottom of two 8-inch round cake pans; two inches deep works best. Set aside.
- Whisk together the flour, baking powder, and salt in a medium bowl.
- In a separate large bowl, beat the sugar and eggs with an electric mixer on medium speed for about 5-7 minutes or until pale, thick, and bubbly. Fold in the dry ingredients until just combined. Mix in the oil and vanilla extract.
- Combine the milk and sliced butter in a microwave-safe bowl, and heat in the microwave for 3 minutes or until the butter is melted and the milk is hot. If you have an instant-read thermometer, you want the temperature to be between 190-195°F. Slowly pour a stream of milk into the batter while stirring. After all of the milk has been added, carefully stir the batter to make sure everything is mixed well without deflating it too much.
- Pour the batter equally into the two cake pans. A digital kitchen scale will help keep the batter even. Bake both cake layers on the middle rack of the oven for 22-25 minutes or until a toothpick inserted in the middle of each cake comes out clean. Let the cakes rest in the pans for 10 minutes before transferring them to a wire rack to cool completely.
For the Chocolate Ganache
- Combine the heavy whipping cream, chocolate chips, and corn syrup in a small microwave-safe bowl, and heat in the microwave for 1 minute. Stir until smooth, and set it aside to cool slightly.
Assembly
- Place one of the cake layers on a large plate or cake stand. Spoon the chilled pastry cream on top and spread it out evenly. Place the second cake layer on top, and press it into the pastry cream so the cake is level.
- Spoon the slightly cooled ganache over the top of the cake, and carefully spread it out so it drizzles down the sides of the cake. Chill the cake for at least 1 hour to help set the ganache before serving.
Notes
- Ensure that the warm milk for the cake batter reaches 190-195°.
- Another very important step is properly beating the sugar and eggs until they are thick, pale yellow, and reach a ribbon stage. This incorporates air into the batter, which is the primary leavening agent for the cake.
- Storage: Keep the cake chilled because of the cream filling. It will stay fresh when covered or stored in an airtight container in the fridge for up to 3 days. If you cover the cake with plastic wrap, you can put some toothpicks around the top of the cake before covering it to keep the plastic wrap from touching the ganache.
Nutrition
- Serving Size: 1 Slice
- Calories: 597
- Sugar: 64.9 g
- Sodium: 184.6 mg
- Fat: 24.1 g
- Carbohydrates: 88.8 g
- Fiber: 1.8 g
- Protein: 9.1 g
- Cholesterol: 187.2 mg



