I can never resist this Boston creme pie with its silky vanilla custard center, tender cake layers, and glossy chocolate glaze. It is the showstopping dessert I save for celebrations, and somehow it always disappears first.

I’m obsessed with this Boston cream pie because it hits every craving I have: soft cake, silky vanilla custard, and that glossy chocolate top I keep sneaking bites from the fridge. I love how the pure vanilla extract makes the filling taste bold, not flat, and the semisweet chocolate gives the glaze that rich, slightly bitter edge I want against all the creaminess.
And yes, I absolutely cut myself a bigger slice than planned. But I regret nothing.
This is the cake I want for birthdays, random Saturdays, and any night that needs dessert with serious main-character energy. Honestly.
Always.
Ingredients

- Butter makes the cake rich, soft, and honestly kind of bakery-level.
- Sugar brings sweetness and helps the layers get that tender crumb.
- Eggs give structure, so the cake doesn’t fall apart on you.
- Vanilla adds that cozy, classic flavor you expect in Boston cream pie.
- Flour keeps the cake sturdy enough to hold all that creamy filling.
- Milk keeps the layers moist without making them heavy.
- Pastry cream is the real star, thick, smooth, and totally spoon-worthy.
- Egg yolks make the filling richer and give it that golden color.
- Cornstarch helps the cream set up, so slices don’t get messy fast.
- Whipped cream lightens the filling, so it’s creamy but not too dense.
- Chocolate gives the top that glossy, classic finish everyone waits for.
- Plus, corn syrup makes the glaze shiny, if you’re feeling fancy.
- Basically, it’s cake, custard, and chocolate doing exactly what they should.
Ingredient Quantities
- Cake (two 9-inch layers):
- 1 cup (2 sticks) unsalted butter, softened
- 1 1/4 cups granulated sugar
- 3 large eggs, room temperature
- 2 teaspoons pure vanilla extract
- 2 1/4 cups all purpose flour
- 2 1/2 teaspoons baking powder
- 1/2 teaspoon fine salt
- 3/4 cup whole milk, room temperature
- Vanilla pastry cream:
- 2 1/2 cups whole milk
- 1/2 cup granulated sugar
- 1/4 cup cornstarch
- 4 large egg yolks
- 2 tablespoons unsalted butter
- 2 teaspoons pure vanilla extract
- Pinch of salt
- Light whipped cream to fold into pastry cream:
- 1 cup heavy cream, cold
- 2 tablespoons powdered sugar
- 1 teaspoon vanilla extract
- Chocolate glaze:
- 4 ounces semisweet chocolate, chopped
- 1/2 cup heavy cream
- 1 tablespoon light corn syrup (optional, for shine)
How to Make this
1. Preheat oven to 350F. Grease and flour two 9 inch round cake pans and line bottoms with parchment. In a bowl cream 1 cup softened butter with 1 1/4 cups sugar until light, then beat in 3 room temperature eggs one at a time and 2 teaspoons vanilla.
2. In a separate bowl whisk together 2 1/4 cups all purpose flour, 2 1/2 teaspoons baking powder, and 1/2 teaspoon salt. Add dry ingredients to butter mixture alternately with 3/4 cup room temperature whole milk, beginning and ending with flour, mixing until just combined.
3. Divide batter between prepared pans and smooth tops. Bake 25 to 30 minutes or until a toothpick comes out clean. Cool in pans 10 minutes, then turn out onto a rack to cool completely.
4. For the pastry cream, whisk 1/2 cup sugar with 1/4 cup cornstarch and a pinch of salt in a bowl. In a saucepan heat 2 1/2 cups whole milk until steaming but not boiling. Whisk 4 large egg yolks in a bowl, then slowly temper with about 1/2 cup of the hot milk while whisking. Pour tempered yolks back into remaining hot milk, return to saucepan and cook over medium heat, whisking constantly, until mixture thickens and just comes to a boil.
5. Remove pastry cream from heat and stir in 2 tablespoons butter and 2 teaspoons vanilla. Pour into a shallow bowl, cover surface with plastic to prevent skin, and chill until cold.
6. Meanwhile whip 1 cup cold heavy cream with 2 tablespoons powdered sugar and 1 teaspoon vanilla to soft peaks. Fold the whipped cream gently into the chilled pastry cream until smooth and evenly combined.
7. For the chocolate glaze, place 4 ounces chopped semisweet chocolate in a heatproof bowl. Heat 1/2 cup heavy cream until hot but not boiling, pour over chocolate and let sit 1 minute, then stir until glossy and smooth. Stir in 1 tablespoon light corn syrup if using for extra shine. Let the glaze cool slightly so it thickens but is still pourable.
8. Level the cooled cake layers if needed. Place one layer on a serving plate, spread the pastry cream evenly over it to the edges, then top with the second cake layer.
9. Chill the assembled cake about 30 minutes to firm the filling, then pour the chocolate glaze over the top, spreading to the edges so it drips slightly down the sides. Refrigerate at least 1 hour to set before slicing and serving.
Equipment Needed
1. Oven
2. Two 9 inch round cake pans (lined with parchment)
3. Mixing bowls (large and medium)
4. Electric mixer or hand whisk
5. Measuring cups and spoons
6. Rubber spatula and metal or silicone spoon
7. Saucepan and heatproof bowl (for pastry cream and chocolate glaze)
8. Whisk (for tempering eggs and pastry cream)
9. Cooling rack
10. Offset spatula or serrated knife for leveling and spreading
FAQ
The Best Boston Cream Pie Recipe! Substitutions and Variations
- Unsalted butter (cake and pastry cream):
- Salted butter: omit or reduce added salt in recipe accordingly.
- Vegetable shortening: yields a slightly firmer, less flavorful crumb; use 1:1.
- Coconut oil (solid): use 1:1 for a hint of coconut flavor and tender texture.
- Whole milk (cake and pastry cream):
- 2% or skim milk: thinner texture in pastry cream, may need slightly less thinning time.
- Buttermilk: adds tang and tenderizes cake; reduce baking powder by 1/2 teaspoon and add 1/2 teaspoon baking soda if replacing part of the milk.
- Half and half: richer pastry cream with little recipe change.
- Cornstarch (pastry cream):
- All purpose flour: use about double the amount by volume; cook slightly longer to remove raw flour taste.
- Instant vanilla pudding mix: can thicken and flavor, use sparingly and adjust sugar to taste.
- Arrowroot powder: substitute 1:1 for cornstarch for a glossy, slightly clearer cream.
- Semisweet chocolate (glaze):
- Bittersweet or dark chocolate: slightly less sweet, use 1:1.
- Milk chocolate: sweeter and creamier, consider reducing added sugar elsewhere.
- Chocolate chips or baking bars: melt the same way; if using chips, stir gently to avoid graininess.
Pro Tips
1. Bring the butter and eggs fully to room temperature before you start. The butter should be soft enough to leave a gentle indentation when pressed. That gives you a lighter, more even crumb and helps the batter emulsify properly.
2. When folding whipped cream into the chilled pastry cream, do it in gentle thirds with wide strokes. Overworking will deflate the cream and make the filling loose rather than silky and stable.
3. Temper the yolks very slowly. Add the hot milk to the yolks a tablespoon or two at a time at first, whisking constantly, until the yolks warm up. That prevents curdling so you get a luxuriously smooth pastry cream.
4. Let the assembled cake chill until the filling is firm before glazing. Also check the glaze temperature: it should still be pourable but noticeably cool so it sets quickly on the sides instead of running off.
5. For neat slices, chill the finished cake thoroughly and use a hot, dry knife for each cut. Wipe the blade between slices for clean edges. If you want an extra-satin finish on the glaze, warm the knife slightly and dry it well before cutting.

The Best Boston Cream Pie Recipe!
I can never resist this Boston creme pie with its silky vanilla custard center, tender cake layers, and glossy chocolate glaze. It is the showstopping dessert I save for celebrations, and somehow it always disappears first.
12
servings
588
kcal
Equipment: 1. Oven
2. Two 9 inch round cake pans (lined with parchment)
3. Mixing bowls (large and medium)
4. Electric mixer or hand whisk
5. Measuring cups and spoons
6. Rubber spatula and metal or silicone spoon
7. Saucepan and heatproof bowl (for pastry cream and chocolate glaze)
8. Whisk (for tempering eggs and pastry cream)
9. Cooling rack
10. Offset spatula or serrated knife for leveling and spreading
Ingredients
-
Cake (two 9-inch layers):
-
1 cup (2 sticks) unsalted butter, softened
-
1 1/4 cups granulated sugar
-
3 large eggs, room temperature
-
2 teaspoons pure vanilla extract
-
2 1/4 cups all purpose flour
-
2 1/2 teaspoons baking powder
-
1/2 teaspoon fine salt
-
3/4 cup whole milk, room temperature
-
Vanilla pastry cream:
-
2 1/2 cups whole milk
-
1/2 cup granulated sugar
-
1/4 cup cornstarch
-
4 large egg yolks
-
2 tablespoons unsalted butter
-
2 teaspoons pure vanilla extract
-
Pinch of salt
-
Light whipped cream to fold into pastry cream:
-
1 cup heavy cream, cold
-
2 tablespoons powdered sugar
-
1 teaspoon vanilla extract
-
Chocolate glaze:
-
4 ounces semisweet chocolate, chopped
-
1/2 cup heavy cream
-
1 tablespoon light corn syrup (optional, for shine)
Directions
- Preheat oven to 350F. Grease and flour two 9 inch round cake pans and line bottoms with parchment. In a bowl cream 1 cup softened butter with 1 1/4 cups sugar until light, then beat in 3 room temperature eggs one at a time and 2 teaspoons vanilla.
- In a separate bowl whisk together 2 1/4 cups all purpose flour, 2 1/2 teaspoons baking powder, and 1/2 teaspoon salt. Add dry ingredients to butter mixture alternately with 3/4 cup room temperature whole milk, beginning and ending with flour, mixing until just combined.
- Divide batter between prepared pans and smooth tops. Bake 25 to 30 minutes or until a toothpick comes out clean. Cool in pans 10 minutes, then turn out onto a rack to cool completely.
- For the pastry cream, whisk 1/2 cup sugar with 1/4 cup cornstarch and a pinch of salt in a bowl. In a saucepan heat 2 1/2 cups whole milk until steaming but not boiling. Whisk 4 large egg yolks in a bowl, then slowly temper with about 1/2 cup of the hot milk while whisking. Pour tempered yolks back into remaining hot milk, return to saucepan and cook over medium heat, whisking constantly, until mixture thickens and just comes to a boil.
- Remove pastry cream from heat and stir in 2 tablespoons butter and 2 teaspoons vanilla. Pour into a shallow bowl, cover surface with plastic to prevent skin, and chill until cold.
- Meanwhile whip 1 cup cold heavy cream with 2 tablespoons powdered sugar and 1 teaspoon vanilla to soft peaks. Fold the whipped cream gently into the chilled pastry cream until smooth and evenly combined.
- For the chocolate glaze, place 4 ounces chopped semisweet chocolate in a heatproof bowl. Heat 1/2 cup heavy cream until hot but not boiling, pour over chocolate and let sit 1 minute, then stir until glossy and smooth. Stir in 1 tablespoon light corn syrup if using for extra shine. Let the glaze cool slightly so it thickens but is still pourable.
- Level the cooled cake layers if needed. Place one layer on a serving plate, spread the pastry cream evenly over it to the edges, then top with the second cake layer.
- Chill the assembled cake about 30 minutes to firm the filling, then pour the chocolate glaze over the top, spreading to the edges so it drips slightly down the sides. Refrigerate at least 1 hour to set before slicing and serving.
Notes
- Below you’ll find my best estimate of this recipe’s nutrition facts. Treat the numbers as a guide rather than a rule—great food should nourish both body and spirit. Figures are approximate, and the website owner assumes no liability for any inaccuracies in this recipe.
Nutrition Facts
- Serving Size: 202g
- Total number of serves: 12
- Calories: 588kcal
- Fat: 34.6g
- Saturated Fat: 18.1g
- Trans Fat: 0.3g
- Polyunsaturated: 1.7g
- Monounsaturated: 6.7g
- Cholesterol: 161mg
- Sodium: 208mg
- Potassium: 167mg
- Carbohydrates: 59.4g
- Fiber: 1.3g
- Sugar: 37.6g
- Protein: 7g
- Vitamin A: 770IU
- Vitamin C: 0mg
- Calcium: 114mg
- Iron: 0.6mg

















