The best Boston cream pie recipe is here! And we’re making it from scratch. It has two layers of buttery vanilla sponge cake sandwiched together with a creamy pastry cream filling, and topped with chocolate ganache. Every bite will melt in your mouth!
Boston cream pie is a simple delicious cake, usually a sponge cake or butter cake, filled with a thick layer of vanilla pastry cream and glazed with a shiny chocolate ganache. It’s called Boston cream pie rather than Boston cream cake because when it was invented way back, the common pans that were used to make cakes were pie pans.
How to make Boston cream pie
Boston cream pie consists of 3 components:
- Sponge cake. This is my favorite sponge cake recipe (but you can use any sponge cake or butter cake that you like). It’s enriched with butter and milk, therefore super flavorful, and is different than other sponge cakes that are only based on eggs and sugar. The cake is made by whisking eggs and sugar first, which gives the cake its airy texture, then gently mixing in warm milk and melted butter, and lastly mixing in flour, salt, and baking powder for an extra rise. This is a delicate and moist cake, the kind that melts in your mouth, yet the texture is stronger than most sponge cakes so it stands up well to almost any filling or frosting.
- Boston cream pie filling – Pastry cream or creme patissiere is a thick creamy custard with a mild vanilla flavor. Read my pastry cream post to learn more about how to make it. The recipe I’m using for this cake is a bit different than my other recipe mainly because I’m using cream instead of just milk for a richer flavor. Some recipes use only flour or only cornstarch as a thickener. I like to use both because in my opinion it gives the best texture, without having a starchy aftertaste from the cornstarch, and it thickens wonderfully. This pastry cream is thick and quite firm, especially after refrigeration, but still very creamy and tender, so it’s great as cake filling.
- Chocolate ganache. Ganache is the final touch to this cake, and adds beauty, shine, and awesome flavor, because chocolate makes everything better. always. Read my chocolate ganache post for more info.
Make ahead tips
You can make the pastry cream a day or two ahead and keep it in the fridge. Whisk it before using to remove any lumps. It won’t keep well in the freezer. The cakes can be made ahead of time and kept, covered in plastic wrap, in the freezer for up to 2 months, and thawed overnight in the fridge. I recommend making the chocolate ganache just before assembling the cake. It’s quick and easy to make, and it’ll have the best texture if making it right before. After making the ganache, let it sit at room temperature for a few minutes until it thickens slightly, then pour over the cake. The cake is best the day it’s made or the day after so you can assemble it a day ahead if you have room for it in the fridge. Leftovers can be kept for another 2-3 days in the fridge. Allow it to come to room temperature before serving.
More Classic Layer Cakes:
- Incredibly Moist Carrot Cake
- Black Forest Cake
- Ultimate Chocolate Layer Cake
- Strawberry Cream Cake
- My Favorite Red Velvet Cake
When making the pastry cream, instead of using 1 cup heavy cream and 1 cup milk, you can use 2 cups of half and half. I don't recommend freezing this cake because the pastry cream can break. To make the ganache shiny for longer, you can add 1-2 tablespoons of light corn syrup if you have it, heating it along with the cream.
- 1 and 1/3 cups (185 g) all-purpose flour
- 2 teaspoons baking powder
- 1/4 teaspoon salt
- 1/2 cup (120 ml) whole milk
- 1/2 cup (1 stick/115 g) unsalted butter
- 1 and 1/2 teaspoons pure vanilla extract
- 3 large eggs , at room temperature
- 1 and 1/2 cups (300 g) granulated sugar
- 5 large egg yolks
- 1/2 cup (100 g) granulated sugar
- 2 tablespoons (18 g) cornstarch
- 2 tablespoons (18 g) flour
- 1 cup (240 ml) heavy cream
- 1 cup (240 ml) whole milk
- 1 and 1/2 teaspoons pure vanilla extract
- 1/4 cup (55 g) unsalted butter , softened to room temperature
- 115 g/4 oz. semisweet or bittersweet chocolate , finely chopped
- 1/2 cup (120 ml) heavy cream
Cake: Preheat oven to 325°F/160°C. Butter two 9-inch pans (8-inch pans work, too) and line the bottoms with parchment paper. Don't skip this step or the cakes will stick to the bottom.
In a medium bowl, sift together flour, baking powder, and salt. Set aside.
In a small saucepan or in the microwave, heat butter and milk just until butter is melted. Do not let it boil. Set aside.
In a mixer bowl fitted with the whisk attachment, whisk eggs and sugar on high speed for 5 minutes. Beat in vanilla extract. Reduce speed to medium-low and add warm milk-butter mixture into the egg mixture in a slow, steady stream. Add flour mixture in 3 additions and fold by hand using a rubber spatula just until combined.
Pour batter into prepared cake pans and smooth the top. Bake for 20-25 minutes, until the cake springs back when slightly touched and a skewer inserted into the center comes out clean. Allow cakes to cool on a wire rack for 20 minutes, then run a knife around the edges and invert the pan onto the rack. Let cool completely. Refrigerate cakes for at least 1 hour before assembly to ensure the interiors are completely cooled and not too soft.
Pastry cream: In a medium bowl, whisk together egg yolks and sugar until combined, then whisk in cornstarch and flour. Set aside.
In a medium saucepan, heat heavy cream and milk on medium heat just to a boil. Remove from heat and gradually pour the hot milk into the egg mixture while simultaneously whisking constantly until smooth (this will prevent the eggs from being cooked by the heat). Transfer mixture back into saucepan. Cook over medium-low heat, whisking constantly and vigorously so that the eggs won’t curdle, until mixture thickens and bubbles burst on the surface. Remove from heat and whisk in vanilla and butter. Strain through a fine-mesh strainer set over a bowl. Press a piece of plastic wrap directly onto the surface of the cream to prevent it from creating a skin. Let cool to room temperature, then refrigerate until chilled.
Chocolate ganache: Place chocolate in a medium heat-proof bowl. Set aside. In a small saucepan over medium heat, bring cream just to a boil. Immediately pour cream over chocolate and let sit without stirring for 2 minutes. Then, whisk mixture gently until completely melted and smooth.
Assembly: Place one cake layer on a plate or cake stand. Spread pastry cream evenly on top. Place second cake layer on top and gently press down to adhere to the pastry cream. Pour glaze into the center of cake, then gently spread it to the edges, allowing it to drip down the sides.
Keep cake in the fridge, covered, for up to 4-5 days. Allow it to come to room temperature before serving. I don't recommend freezing the cake because the pastry cream can break if frozen.
JunaidaJuly 13, 2018 at 7:01 am
It’s difficult to get heavy cream here in malaysia. Can I replace it with whipping cream and get the same texture for the pastry cream?
ShiranJuly 16, 2018 at 12:58 pm
I Junaida, usually heavy cream and whipping cream are the same thing, so I guess it’s ok. It should have a high fat content, the kind that you can make whipped cream with.
Diana D.August 12, 2018 at 3:09 pm
I so badly want to make this cake, and failed at my first attempt. My cakes sunk when baking!?What do you think I may have done wrong? I live in Colorado and was wondering maybe the altitude? Or just folding too much? Please help!
ShiranAugust 16, 2018 at 7:57 am
Hi Diana. Several things can cause that. From my experience it’s either that the cake wasn’t cooked enough (even if it looked like it did), or that too much air was incorporated into the batter during the mixing process, causing the cake to rise quickly, and then collapse in the center. You can read this guide.
KristinaApril 7, 2019 at 6:33 am
Hi! I only have one 9 inch round pan, is it okay to put all of the cake batter at once and then cut in half when its baked? Will the baking time change?
ShiranApril 11, 2019 at 4:22 am
Yes, just be careful not to overfill the pan with batter. The baking time will be longer.
CassandraApril 22, 2019 at 12:49 pm
Hi! Can I serve the cake immediately or do I need to wait 4-5 days
ShiranMay 17, 2019 at 10:00 am
You can use it immediately, or up to 5 days.
KarishmaJuly 19, 2020 at 12:05 pm
Hello.when we whip the pastry cream on the stove, do u use a manual whip or the electric one?
ShiranJuly 20, 2020 at 11:47 am
FatmaDecember 20, 2020 at 1:28 pm
Great recipe! Thank you 🙂 Love from Turkey ❤️
BK - GerryJanuary 12, 2021 at 12:30 pm
Lovely recipe Shrian. The cake is devine. I made the cake and pastry cream yesterday. Today, I assembled the cake and made the ganache. Thanks so much for sharing this delicious recipe. The cake melts in your mouth, the cream is rich, thick and flavorful. I used dairy milk chocolate for the ganache it was the only chocolate left in the house. Happy to say that my husband is over the moon. This is his favorite cake. It was easy to make with lots of steps, but definitely worth the extra effort. BK
Vicky ClarkJuly 11, 2021 at 11:21 am
Hi Shiran. I love all your recipes and really looking forward to tasting the one I made this afternoon, but I found the cakes much slower to rise/ cook through than I expected. I reduced the temperature because I have a fan oven so I’m wondering if I shouldn’t have, and the temperature you gave was already fan adjusted. Many thanks.
Talia @ Pretty. Simple. Sweet.July 16, 2021 at 3:42 am
Hi Vicky, thanks for the feedback! While I can’t tell you exactly what happened, it can be challenging with baking times and temperatures because everyone has a different oven. Next time, I recommend not reducing the oven temperature and seeing if it makes a difference 🙂
SherrieOctober 18, 2021 at 2:41 pm
Cake ingredients call for 3 large eggs , directions say whip the egg whites. Does this cake only use egg whites?
Talia @ Pretty. Simple. Sweet.October 19, 2021 at 4:11 am
Hi Sherrie, the recipe says to whip the whole eggs for the cake in step 4, not just the whites 🙂
“In a mixer bowl fitted with the whisk attachment, whisk eggs and sugar on high speed for 5 minutes.”