This classic cake combines three simple components to make one fabulous dessert; moist delicate vanilla cake filled with silky vanilla pastry cream and topped by a decadent chocolate ganache. If you’re confused as to why this “pie” looks like a cake, you’re not alone, cakes used to be baked in pie tins!
What You’ll Need for This Recipe
Vanilla: You can use a vanilla extract or if you want to see the little specks in your pastry cream use vanilla bean paste or a vanilla bean.
Cream: You can make the ganache with JUST chocolate and whipping cream but adding a tablespoon or two of light corn syrup will make it super-shiny and smooth.
Eggs: Large eggs are preferable and always make sure they are room temperature.
How to Make Boston Cream Pie
1. Start off by making the pastry cream. Scald the milk in a medium-sized heavy-bottomed pot then set aside. In a large bowl whisk the egg yolks and sugar until light in color and thicker in consistency. Sift in the corn starch and whisk until smooth and fully incorporated and drizzle in about 1/4 cup of the hot milk while whisking vigorously then pour in the remaining milk and whisk to combine.
2. Strain the mixture back into the pot and place over medium high heat whisking continuously until thickened. Once thickened cook an additional minute while whisking then remove rom heat and stir in the butter. Transfer the custard to a bowl and allow to cool for a few minutes then press plastic onto the surface and chill. We want the custard to cool and thicken up before spreading it onto the cake so make it first and test the consistency before spreading onto the cake.
3. Now it’s time for the cake. Preheat your oven to 350F and prep an eight inch cake pan. Butter the side and bottom then press a round piece of parchment paper into the bottom. Add a few teaspoons of flour and kick them around to coat the side. I always use cake strips when baking, if you use them place one in some water to soak. Stir the flour, salt, and baking powder together in a bowl and set aside.
Add the milk and butter to a microwave safe cup or bowl and heat in 30 second bursts stirring in between until the butter is melted and the milk is steaming, about 160F, then set aside. Beat the eggs and sugar on medium speed for about 4 minutes. You’ll see the mixture thicken up and the whisk will leave trails in it’s wake.
4. Add the flour and mix on low until just combined then slowly pour in the milk and mix until combined. Scrape the bowl down and mix a few seconds more to make sure you have a homogenous mixture. Pour the batter into your prepared cake pan, add baking strip if using and bake at 350F for about 33 minutes or until the center is springy to the touch and a skewer inserted in the middle comes out clean. Allow to cool in pan for a few minutes then invert onto a wire rack, remove paper and allow to cool fully.
5. Once the cake has cooled use a sharp serrated knife and cut in half. Add the cooled and thickened pastry cream to the first layer then smooth out toward the edge leaving about an inch at the edge uncovered. Add the second layer on top then cover with plastic and place in refrigerator to chill for 2 hours to overnight. If you made the pastry cream a day ahead you may need to give it a quick whip to loosen it up.
6. Make the ganache. Once your cake has set add the heavy cream to a microwave safe bowl and heat for about a minute or until steamy. You can definitely mix in a tablespoon of corn syrup with the cream before heating, this will give you a very glossy ganache. Add the chopped chocolate into the steamy cream and let it sit for five minutes then gently stir until smooth. Pour ganache onto the cake and smooth to the edge.
Pro Tips for this Recipe
- Measure your flour correctly! Adding too much flour to the recipe is the most common mistake. The best, and easiest way to measure flour is by using a scale. If you don’t have one then fluff your flour with a spoon, sprinkle it into your measuring cup, and use a knife to level it off.
- Use a serrated knife to cut the cake in half. If you’re worried about cutting it evenly, place toothpicks a few inches apart around the equator. Use them as a guide for your knife. It’s also okay if it’s not perfect! It will taste great either way.
- Use room temperature eggs for the pastry cream and sponge cake. This will help the cream cook faster and the cake to whip up better for a fluffier texture.
- Try using Hersey’s Special Dark chocolate bars for the ganache because it gives a deep dark chocolate color and shiny texture. If you’ve got bittersweet chocolate chips or baking bars in your cabinet, those will work great too! Add a tablespoon of corn syrup to the ganache for a shiny finish.
- Slice finished cake with a warm, non-serrated knife for clean cuts.
- Cook the pastry cream for a minute or two while whisking to help thicken it.
- Unlike more traditional sponge cakes that call for folding in whipped egg whites, this version uses what is referred to as a hot-milk method. It’s more fool-proof when baking and results in a very flavorful cake.
Frequently Asked Questions
Why is it called Boston cream pie?
If you’re confused as to why this cake is called a pie, you’re not alone. The recipe originated back in the mid 1800s when cakes were often baked in pie tins because they were very common kitchen items. It is indeed a cake filled with a tempting vanilla bean-speckled pastry cream.
What is Boston cream filling made of?
This delicious cake is filled with pastry cream or creme patissiere in French. It’s a silky custard made from egg yolks and sugar most often flavored with vanilla.
Should you refrigerate it?
You should DEFINITELY refrigerate Boston Cream Pie. The pastry cream is highly perishable and will go bad if left out at room temperature for more than an hour or two and it will soften and not be able to support the heavy ganache on top especially after you’ve started cutting into it.
If you’ve tried this Boston Cream Pie recipe then don’t forget to leave a rating and let me know how you got on in the comments below, I love hearing from you!

Boston Cream Pie
Video
Equipment
- 8" cake pan
- Whisk
- Medium pot
- Bowls
Ingredients
- 2 large eggs room temperature
- 1 cup cane sugar 200g
- ½ cup whole milk 120mL
- 5 tablespoons unsalted butter 70g
- 1 cup all-purpose flour plus 2 tablespoons, 140g
- 1¼ teaspoons baking powder
- ¼ teaspoon kosher salt
- 2 teaspoons vanilla extract
- ¼ cup heavy whipping cream 60mL
- 4 ounces bittersweet chocolate chopped
Pastry Cream
- 6 egg yolks room temp
- 2/3 cup sugar
- 1/4 cup corn starch
- 1 tbsp vanilla extract
- 2 cups whole milk 480mL
- 1 tbsp butter 15g
Instructions
For the Pastry Cream
- Pour the milk into a medium saucepan, heat then place over medium heat and bring to a boil. Immediately turn off the heat and set.
- In a large bowl, whisk the egg yolks and sugar until light and thickened. Sift in the cornstarch and whisk vigorously until no lumps remain. Whisk in 1/4 cup of the hot milk mixture until incorporated. Whisk in the remaining hot milk mixture, reserving the pot for later.
- Pour the mixture through a strainer back into the pot. Cook over medium-high heat, whisking constantly, until thickened and slowly boiling. Cook while whisking for an additional minute or two after thickened and boiling.Remove from the heat and stir in the butter. Let cool slightly then cover with plastic wrap, lightly pressing the plastic against the surface to prevent a skin from forming. Chill in the refrigerator.
For the Cake
- Preheat oven to 350F. Spray a 8-inch round cake pan with baking spray or butter and flour it. Line bottom with parchment paper and spray again.
- Combine flour, baking powder and salt in a bowl, then whisk together and set aside.
- In a stand mixer fitted with a whisk attachment or large mixing bowl if using a hand mixer, add eggs and sugar. Beat on medium speed until pale, thick, and fluffy, about 4 minutes. (Beater should leave a trail in eggs when lifted.)
- Meanwhile, in a glass measuring cup, combine milk and butter. Microwave on high in 30 second intervals until butter is melted and milk is steaming.
- With mixer on low speed, gradually add flour mixture to egg mixture, beating just until combined. Stir vanilla into hot milk mixture. Slowly pour hot milk mixture into egg mixture beating until fully combined. (Batter will look like thick pancake batter and have bubbles on top.) Scrape the sides of the bowl and fold batter a few times to insure it’s fulling combined. Pour batter into the prepared cake pan.
- Bake until a toothpick inserted in center comes out clean and cake begins pulling away from sides of pan, about 33 minutes. Let cool in pan for a few minutes then invert onto a wire rack to cool completely.
For the Assembly
- Cut cake in half horizontally. Place bottom half, cut side up on a serving plate. Spread the chilled, thickened pastry cream over cake, leaving a 1 inch border. Top with remaining cake half and gently press down to spread filling to edge. Place in fridge and chill for at least 2 hours or overnight; cover with plastic or a cloche if chilling for more than two hours.
For the Ganache
- When ready to serve, place cream in a microwave-safe bowl; microwave cream and optional corn syrup until steaming, about 1 minute. Add chopped chocolate and let stand for 5 minutes. Stir chocolate and cream mixture until smooth. Pour over top of cake, spreading to edges.
Notes
- Use a serrated knife to cut the cake in half. If you’re worried about cutting it evenly, place toothpicks a few inches apart around the equator. Use them as a guide for your knife. It’s also okay if it’s not perfect! It will taste great either way.
- Use room temperature eggs for the pastry cream and sponge cake. This will help the cream cook faster and the cake to whip up better for a fluffier texture.
- We used Hersey’s Special Dark chocolate bars for the ganache because it gives a deep dark chocolate color and shiny texture. If you’ve got bittersweet chocolate chips or baking bars in your cabinet, those will work great too!
- Add a tablespoon of corn syrup to the ganache for a shiny finish.
- Slice finished cake with a warm, non-serrated knife for clean cuts.
Sunny Sanchez says
John,
Thank you for all of your fab recipes.
Q: can I make the patisserie cream the day before I’m making the cake?
Thanks!
-Sunny
John Kanell says
You can but give it a little whip to break it up before using.
Rohais Braille says
Dear Professor,
Hello!
Thank you for sharing this recipe.
I started working on the pastry cream.
In Step 3 of the directions: “Remove from the heat and stir in the butter.”
However, in the ingredients portion, I could not find the amount of butter called for.
Please help!
Thank you for sharing this recipe.
John Kanell says
just fixed. 1 tbsp sorry!
Dino says
Great recipe. How much butter to add to the pastry cream? Or did I miss it in the list of ingredients?
Dara Silverman says
What a lovely recipe! The piecake came out gloriously, and was delicious. One of my dearest friends absolutely loathes any kind of cream-filled anything (doughnuts, cakes, ANYTHING), and he not only polished off his own slice, but scooped up all of the cream that fell victim to slicing!
I added some whipped cream rosettes and maraschino cherries, just to be extra, but your recipe really didn’t need it!
Only thought: in your pastry cream recipe, in Step 3, you say to “add the butter.” Only tricky bit is, you didn’t mention how much! I used three tablespoons, and that worked fine. How much would you have used?
Thanks for a gorgeous, easy to follow, delicious dessert!
John Kanell says
Thanks Dara! It was 1 tbsp, just fixed.
Scott W says
I think there is something missing from the recipe. In ingredient list it says 5tbs of butter. Then in the cream step 3 it says to add butter. In step 4 of the cake it also says to add butter. However it doesn’t specify how much butter goes into each step. Can you clarify that if possible? thank you. Love your recipes!
John Kanell says
Hi Scott, thanks for pointing out the missing tbsp of butter, just fixed.
Lily says
Delicious pie! This is such a great recipe!
Lily says
Delicious pie! This is such a good recipe!
Rita says
This Boston Cream Pie is one of my favorite cakes…such a delicious balance of cake, pastry cream and chocolate which makes every forkful so delectable!
Diya says
I made it and it was delicious, just like every other recipe of yours. Thanks so much for sharing this!!! The pastry cream is heavenly by the way.
Estela vargas says
delictoso!!!
E Goodspeed says
Fabulous! My family is originally from New England. This is a classic recipe that we all loved growing up. I have to make this gluten free due to food allergies, but I can tell you, it came out perfect ( just added a little more milk since the gluten free flour requires more moisture in recipes to get the same texture.) A couple of editing notes: Pastry Cream has butter in the directions, but not listed in the ingredient list so add 1 TBL unsalted butter-cold to your mise en place- that is IF you do that sort of thing- I don’t. The optional corn syrup amount is 1 TBL for the ganache which is listed in the notes, but not in the ingredient list (then again- it is an optional ingredient….).
I did add powdered sugar to the ganache just to help thicken and allowed it to cool a bit just it so that it would not run off the cake and puddle on the plate. Make sure your cake is very cold before pouring the ganache so it cools even more as you SLOWLY pour it on. FYI this took me all day to make. Between cooling the cream, cooling the cake, layering the cake, and then frosting the cake it took multiple hours. So my suggestion would be start early and work on it, little by little, all day so it is ready for dinner’s dessert . And since I gave myself plenty of time to make this, I was not stressed out about it.