Add tropical warmth to your desserts with this coconut pastry cream which features coconut milk, coconut oil and toasted coconut. But the best part is you can easily adapt this recipe depending on the ingredients you already have and how much coconut flavor you’re after!

Ingredients
You’ll need the usual ingredients for making pastry cream. But we’ll replace the milk with coconut milk and add a few more ingredients for even more flavor. I’ll also share some alternatives in case you can’t find some of the ingredients.
- Coconut milk: Generally easy to find and adds a subtle coconut flavor. Make sure to use full fat coconut milk that comes in a can (not in the fridge with the milk). Don’t use light coconut milk which is too watery and has a very mild flavor. If you really can’t find coconut milk, just use regular milk (full fat) if you will be adding coconut oil and/or desiccated coconut.
- Heavy cream: Relying solely on coconut milk as the liquid yields a one-dimensional pastry cream that lacks a little bit of complexity. The heavy cream rounds off the flavor very nicely whilst adding richness. Alternatively, you can use whole milk if that’s all you have but I personally find that the pastry cream isn’t as flavorful.
- Eggs: To thicken the pastry cream. While I generally prefer to use just egg yolks in pastry cream, I found that replacing some of the yolks with a whole egg works really well in this recipe. You’ll get a lighter pastry cream (including the color) and less eggs to separate! But if you decide to replace the heavy cream with milk, I’d recommend using egg yolks only (as explained in the recipe card).
- Sugar: To sweeten the pastry cream. Feel free to tweak the amount a little depending on your preference. I would say this pastry cream is moderately sweetened, leaning to the sweeter side.
- Cornstarch: To thicken the pastry cream along with eggs.
- Unsweetened desiccated coconut: For even more coconut flavor and texture. I love toasting it first to get even more flavor out of it and then folding it into the warm pastry cream. For even more crunch, you could whisk the cold pastry cream and then fold in the toasted coconut just before serving. If you don’t like texture in your pastry cream however, you could simply omit it (resulting in a milder coconut flavor).
- Coconut oil: A nice butter substitute when making coconut pastry cream. Make sure to use unrefined (virgin), cold-pressed coconut oil for the best coconut flavor. If you don’t have any, you can replace it with butter. Just note that the coconut flavor won’t be as pronounced.
- Optional flavorings: A little bit of vanilla extract that pairs well with the coconut flavor and some rum for a nice kick. Just be careful not to overdo it as the coconut flavor is very delicate and can easily be overpowered by other flavors.

Step-by-Step Instructions
- We’ll start by toasting desiccated coconut in a saucepan. It’s ready when it’s lightly golden and your kitchen smells wonderfully coconutty. Transfer to a ramekin or heatproof container.


- Pour the coconut milk and heavy cream into the saucepan and heat until steaming.


- In the meantime, you can start whisking the eggs and sugar in a bowl.


- Then mix in the cornstarch until combined.
- Using a ladle, gradually pour the hot liquids into the egg mixture. Whisk constantly so you don’t end up with scrambled eggs.


- Return everything to the saucepan and cook until thickened.
- Then off the heat, add the coconut oil (or butter).


- Give it a taste and add vanilla extract and rum if you’d like.
- You can then add the toasted coconut and use as desired.


You can pour the warm coconut pastry cream into a baked and cooled pie crust to make a delicious coconut cream pie. Alternatively, you can chill the pastry cream then use it to fill cream puffs and eclairs. Enjoy!
More Pastry Cream Flavors
LOVE THIS RECIPE? I’d be so grateful if you could leave a ⭐⭐⭐⭐⭐ rating in the recipe card below!
