You think you know dessert. Then you take one bite of a Boston cream cupcake and realize you had no idea.
A soft vanilla cupcake. Pastry cream hiding inside. Chocolate ganache glossed over the top. It sounds simple because it is, and that’s exactly what makes it so dangerous.
These are the cupcakes people ask for at every birthday, every potluck, every “what should I bring?” situation. And once you make them yourself, you’ll understand why. They’re not hard. They’re just really good.
Recipe at a Glance
| Detail | Info |
|---|---|
| Prep Time | 30 minutes |
| Cook Time | 20 minutes |
| Chill Time | 1 hour |
| Total Time | ~1 hour 50 minutes |
| Yield | 12 cupcakes |
| Difficulty | Beginner-friendly |
What You’ll Need
For the Vanilla Cupcakes
- 1 ½ cups all-purpose flour
- 1 ½ tsp baking powder
- ¼ tsp salt
- ½ cup (1 stick) unsalted butter, softened to room temperature
- ¾ cup granulated white sugar
- 2 large eggs, room temperature
- 2 tsp pure vanilla extract
- ½ cup whole milk, room temperature
For the Pastry Cream Filling
- 4 large egg yolks
- ¼ cup granulated white sugar
- 3 tbsp cornstarch
- 1 ½ cups whole milk
- 1 tbsp unsalted butter
- 1 tsp pure vanilla extract
For the Chocolate Ganache
- ½ cup heavy cream
- 4 oz semi-sweet chocolate chips (or finely chopped semi-sweet chocolate bar)
Tools You’ll Need
- Standard 12-cup muffin tin
- Cupcake liners (paper or foil)
- Stand mixer or hand mixer
- Two medium mixing bowls
- Small saucepan
- Whisk
- Rubber spatula
- Measuring cups and spoons
- Apple corer or small paring knife (for hollowing out the cupcakes)
- Piping bag or zip-lock bag with corner snipped (for filling)
- Cooling rack

Pro Tips
These are the things I wish someone had told me the first time around:
- Room temperature really does matter. Cold butter won’t cream properly, and cold eggs can cause the batter to curdle. Pull everything out of the fridge at least 30 minutes before you start baking.
- Don’t skip the chilling step for the pastry cream. It needs time to set up fully in the fridge. If you try to fill the cupcakes with warm cream, it runs everywhere and makes a mess. One hour minimum, two is better.
- Use an apple corer for perfectly clean holes. A sharp apple corer is honestly the best tool for this job. Insert it about ¾ of the way down, twist, pull out. Clean, fast, consistent.
- Let the ganache cool slightly before topping. Pouring hot ganache directly onto a cold, filled cupcake makes it drip everywhere. Give it 5-10 minutes to thicken up just a little, then spoon it on.
- Make the pastry cream the day before. If you’re planning to bring these somewhere, the filling actually tastes even better after sitting overnight. One less thing to stress about the day of.
Substitutions and Variations
Flour: All-purpose works best here, but you can use a 1:1 gluten-free flour blend if needed.
Milk: Whole milk gives the richest result in both the cupcakes and the pastry cream. 2% works in a pinch. Non-dairy milks (oat, almond) will change the texture slightly but still work.
Butter: Can substitute with vegan butter for a dairy-free version, though the flavor will be slightly different.
Chocolate: Prefer a deeper flavor? Use dark chocolate (60-70% cacao) for the ganache instead of semi-sweet. Prefer sweeter? Milk chocolate works too.
Filling shortcut: If you want to skip homemade pastry cream entirely, instant vanilla pudding (made with milk, slightly thickened) works as a quicker substitute. Not the same, but genuinely good.
Boozy version: A small splash of rum or bourbon stirred into the ganache takes these to a very different, very excellent place.
Make-Ahead Tips
These are actually better when made in stages, so this is a recipe that rewards a little planning.
- Pastry cream: Make it up to 2 days in advance. Store covered in the fridge with plastic wrap pressed directly onto the surface (this prevents a skin from forming).
- Cupcakes: Bake a day ahead and store in an airtight container at room temperature.
- Ganache: Best made fresh, but it can be rewarmed gently in the microwave in 15-second intervals if needed.
- Fully assembled: These keep well in the fridge for up to 3 days. The cupcakes stay surprisingly moist.
How to Make Boston Cream Cupcakes
Step 1: Make the Pastry Cream First
This needs to chill completely before you can use it, so it goes first every time.
In a medium bowl, whisk together the egg yolks, sugar, and cornstarch until pale and smooth. Set aside.
Pour the milk into a small saucepan over medium heat. Warm it until it just starts to steam (don’t let it boil). Slowly pour about half the hot milk into the egg mixture, whisking the entire time. This is called tempering, and it keeps your eggs from scrambling.
Pour the egg-milk mixture back into the saucepan with the remaining milk. Cook over medium heat, stirring constantly with a whisk, until the mixture thickens and starts to bubble. This takes about 3-5 minutes. Once it bubbles, cook for one more minute.
Remove from heat. Stir in the butter and vanilla extract. Transfer to a bowl, press plastic wrap directly onto the surface, and refrigerate for at least 1 hour.
Step 2: Bake the Cupcakes
Preheat your oven to 350°F (175°C). Line a 12-cup muffin tin with paper liners.
In a small bowl, whisk together the flour, baking powder, and salt. Set aside.
In a large bowl (or the bowl of a stand mixer), beat the softened butter and sugar on medium-high speed for about 3 minutes until pale, light, and fluffy. Don’t rush this step. It’s what makes the cupcakes tender.
Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract.
Reduce the mixer speed to low. Add the flour mixture in three additions, alternating with the milk in two additions (flour, milk, flour, milk, flour). Mix until just combined. Overmixing = dense cupcakes.
Divide the batter evenly between the 12 liners, filling each about ⅔ full.
Bake for 18-20 minutes until a toothpick inserted in the center comes out clean. Let them cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
Do not fill warm cupcakes. Completely cool means completely cool.
Step 3: Make the Chocolate Ganache
Once your cupcakes are cool and you’re ready to assemble, make the ganache.
Heat the heavy cream in a small saucepan over medium heat until it just begins to simmer. Pour it over the chocolate chips in a small bowl. Let it sit for 2 minutes without stirring, then whisk until silky and smooth.
Let it sit at room temperature for about 10 minutes to thicken slightly before using.
Step 4: Fill and Top the Cupcakes
Using an apple corer (or a small paring knife), create a hole in the center of each cupcake, going about ¾ of the way down. Don’t go all the way through the bottom.
Transfer the chilled pastry cream to a piping bag or a zip-lock bag with a corner snipped off. Fill each hole generously until the cream reaches just below the surface.
Spoon a generous amount of ganache over the top of each cupcake, letting it spread naturally to the edges.
That’s it. Let the ganache set for about 15 minutes, then serve.
Nutritional Information (Per Cupcake, Approximate)
| Nutrient | Amount |
|---|---|
| Calories | ~320 kcal |
| Carbohydrates | 38g |
| Fat | 17g |
| Protein | 5g |
| Sugar | 24g |
| Sodium | 120mg |
These are estimates based on standard ingredients and will vary.
Meal Pairing Suggestions
These pair beautifully with:
- A strong cup of black coffee or espresso (the bitterness cuts through the richness perfectly)
- Earl Grey or vanilla tea for an afternoon situation
- A glass of cold whole milk, the classic choice
- Served alongside fresh berries if you want something that feels a little lighter
Leftovers and Storage
Fridge: Store assembled cupcakes in an airtight container in the refrigerator for up to 3 days. The pastry cream filling means they need to stay cold.
Before serving: Pull them out 15-20 minutes before eating. Cold ganache is stiff; room temperature ganache is glossy and perfect.
Freezer: You can freeze the unfilled, un-topped cupcakes for up to 2 months. Wrap individually in plastic wrap, then place in a freezer bag. Thaw at room temperature and fill/top fresh. The pastry cream doesn’t freeze well, so always make that fresh.
Don’t leave out overnight: Because of the dairy filling, these shouldn’t sit at room temperature for more than 2 hours.
FAQ
Can I use a box cake mix for the cupcakes?
Absolutely. A good vanilla box mix works as a shortcut and nobody will know. The pastry cream and ganache still make them feel completely homemade.
My pastry cream came out lumpy. What happened?
This usually means the heat was too high or you stopped stirring. If it’s lumpy, strain it through a fine mesh sieve while it’s still warm. Problem solved.
Can I double this recipe?
Yes, easily. Everything scales 1:1.
The ganache is too thick to pour. What do I do?
Reheat it gently in the microwave in 10-15 second bursts, stirring between each, until it loosens up.
Can I make these into a cake instead?
Yes! This exact recipe translates into a Boston Cream Pie. Use two 8-inch round cake layers, spread the pastry cream between them, and pour the ganache over the top. A classic.
How do I know the cupcakes are done?
Toothpick test: insert into the center, it should come out clean or with just a couple of dry crumbs. The tops should also spring back lightly when touched.
My filling leaked out of the cupcakes. Help.
Either the holes were too wide, you overfilled them, or the pastry cream wasn’t thick enough. Make sure the cream is fully chilled and pipe it in gradually rather than all at once.

Wrapping Up
Boston cream cupcakes are one of those things that sound impressive but are actually totally doable on a regular Tuesday afternoon.
The pastry cream takes a little patience. The ganache takes about five minutes. And the result is something that looks like it came from a bakery but cost a fraction of the price and came from your own kitchen.
Make these for someone’s birthday. Make them for a dinner party. Make them because it’s the weekend and you deserve something with chocolate on top. 🍫
When you do make them, I’d love to hear how they turned out! Leave a comment below with any questions or just to tell me how quickly they disappeared. (Because they will disappear fast.)