Boston cream pie is one of those classic desserts that looks fancy but is really just simple cake, creamy filling, and chocolate on top.

Today I want to show you how to make a dairy free version that tastes just as good as the original.
The cake is soft, the pastry cream is smooth and rich, and the chocolate ganache pulls everything together nicely.

What makes this one special is that it skips the dairy completely. I use oat milk and coconut cream instead, and honestly you won’t miss a thing.
If you or someone in your family avoids dairy, this is a great dessert to have on hand for birthdays or weekend treats.
Why This Recipe Is a Keeper
Vanilla-Chocolate Balance – Tender vanilla cake, rich custard, and bittersweet ganache create a classic dessert with layers of balanced flavor.
Dairy-Free Creaminess – Extra-creamy oat milk and plant butter make the pastry cream smooth, rich, and completely dairy-free.

Moist, Tender Cake – Neutral oil and oat milk keep the vanilla layers soft and pleasantly moist from the first bite.
Silky Custard Center – The chilled pastry cream sets firmly enough to slice while staying luxuriously smooth and creamy.
Here’s What You’ll Need
For the Vanilla Cake
- 1 3/4 cups All-Purpose Flour
- 1 1/4 cups Granulated Sugar
- 2 tsp Baking Powder
- 1/2 tsp Fine Salt
- 2 Large Eggs
- 3/4 cup Oat Milk
- 1/2 cup Neutral Oil
- 2 tsp Pure Vanilla Extract
For the Pastry Cream
- 2 cups Extra-Creamy Oat Milk
- 4 Large Egg Yolks
- 1/2 cup Granulated Sugar
- 1/4 cup Cornstarch
- 2 tbsp Dairy-Free Plant Butter
- 2 tsp Pure Vanilla Extract
- 1/8 tsp Fine Salt
For the Chocolate Ganache
- 6 oz Dairy-Free Semisweet Chocolate, Chopped
- 1/2 cup Full-Fat Coconut Cream
- 1 tsp Light Corn Syrup
How to Make It
Step 1
Whisk the egg yolks, sugar, cornstarch, and salt in a bowl. Heat the oat milk in a saucepan until steaming, then slowly whisk half of it into the yolk mixture.
Step 2
Return the pastry cream mixture to the saucepan and cook over medium heat, whisking constantly, until thick and bubbling. Cook for 1 additional minute, remove from the heat, and stir in the plant butter and vanilla.
Step 3
Transfer the pastry cream to a shallow container and cover its surface directly. Refrigerate for at least 3 hours, until completely cold and firm.
Step 4
Preheat the oven to 350 F. Grease and line two 8-inch round cake pans with parchment paper.
Step 5
Whisk the flour, sugar, baking powder, and salt together. Add the eggs, oat milk, oil, and vanilla, then whisk just until the batter is smooth.
Step 6
Divide the batter between the pans and bake for 20 to 24 minutes, until the cakes spring back when lightly pressed. Cool in the pans for 10 minutes, then transfer them to a rack to cool completely.
Step 7
Place one cake layer on a serving plate and spread the cold pastry cream evenly over it. Add the second cake layer and refrigerate for 20 minutes to stabilize the filling.
Step 8
Heat the coconut cream and corn syrup until steaming, then pour them over the dairy-free chocolate. Stir until glossy, cool for 10 minutes, and spread the ganache over the top of the cake, allowing it to flow naturally toward the edges.

Recipe Tips
Temper the Egg Yolks Slowly
Pour the steaming oat milk into the yolk mixture in a thin, steady stream while whisking the entire time. Adding it too quickly can make the yolks form small lumps.
I recommend placing the bowl on a damp kitchen towel so it stays still while you pour and whisk. This makes the tempering step much easier to control.
Cook the Pastry Cream Fully
The pastry cream is ready for its final minute of cooking when it is thick and bubbles appear across the surface. Whisk along the bottom and around the corners of the saucepan so it cooks evenly.

Keep cooking and whisking for the full extra minute. Cornstarch needs this time to thicken properly, or the filling may become loose after the cake is assembled.
Cover the Cream Directly
Press the cover directly against the entire surface of the warm pastry cream before refrigerating it. Any exposed areas can develop a firm film that leaves lumps in the filling.
A shallow container helps the cream cool faster and more evenly. Give it at least three hours in the refrigerator, since slightly warm pastry cream will not hold the cake layers in place.
What to Make Next
- Dairy Free Espresso Tiramisu
- Dairy Free Frozen Peanut Butter Cream Pie
- Dairy Free Lemon Cream Pie
- Dairy Free S’mores Icebox Pie
- Dairy Free Strawberry Tres Leches Cake
Popular Questions
How do I keep the pastry cream smooth and lump free?
Whisk the egg yolk mixture constantly while slowly adding the hot oat milk. Once everything returns to the saucepan, keep whisking over medium heat until the mixture thickens and bubbles, then continue cooking for one more minute.
If the pastry cream still has small lumps, press it through a fine mesh strainer before chilling it.
Dairy Free Boston Cream Pie
Equipment
- two 8-inch round cake pans
- parchment paper
- wire rack
Ingredients
- 1 3/4 cups All-Purpose Flour
- 1 1/4 cups Granulated Sugar
- 2 tsp Baking Powder
- 1/2 tsp Fine Salt
- 2 Large Eggs
- 3/4 cup Oat Milk
- 1/2 cup Neutral Oil
- 2 tsp Pure Vanilla Extract
- 2 cups Extra-Creamy Oat Milk
- 4 Large Egg Yolks
- 1/2 cup Granulated Sugar
- 1/4 cup Cornstarch
- 2 tbsp Dairy-Free Plant Butter
- 2 tsp Pure Vanilla Extract
- 1/8 tsp Fine Salt
- 6 oz Dairy-Free Semisweet Chocolate, Chopped
- 1/2 cup Full-Fat Coconut Cream
- 1 tsp Light Corn Syrup
Instructions
- Whisk the egg yolks, sugar, cornstarch, and salt in a bowl. Heat the oat milk in a saucepan until steaming, then slowly whisk half of it into the yolk mixture.
- Return the pastry cream mixture to the saucepan and cook over medium heat, whisking constantly, until thick and bubbling. Cook for 1 additional minute, remove from the heat, and stir in the plant butter and vanilla.
- Transfer the pastry cream to a shallow container and cover its surface directly. Refrigerate for at least 3 hours, until completely cold and firm.
- Preheat the oven to 350 F. Grease and line two 8-inch round cake pans with parchment paper.
- Whisk the flour, sugar, baking powder, and salt together. Add the eggs, oat milk, oil, and vanilla, then whisk just until the batter is smooth.
- Divide the batter between the pans and bake for 20 to 24 minutes, until the cakes spring back when lightly pressed. Cool in the pans for 10 minutes, then transfer them to a rack to cool completely.
- Place one cake layer on a serving plate and spread the cold pastry cream evenly over it. Add the second cake layer and refrigerate for 20 minutes to stabilize the filling.
- Heat the coconut cream and corn syrup until steaming, then pour them over the dairy-free chocolate. Stir until glossy, cool for 10 minutes, and spread the ganache over the top of the cake, allowing it to flow naturally toward the edges.