Coconut Cupcakes
Posted Mar 01, 2026
This post may contain affiliate links. Please read our disclosure policy.
These coconut cupcakes are irresistibly moist with a beautiful crumb and rich coconut flavor. Slathered with homemade coconut frosting, they’re truly the best cupcakes ever.

Just like my famous coconut cake, these coconut cupcakes are truly some of the very best cupcakes I’ve ever made or eaten.
They’re some of those stick-to-your-fork moist cupcakes that keep you coming back for more. They’re moist and fluffy at the same time with tons of coconut, without it being overpowering.
The irresistible homemade coconut frosting piped or slathered on top is the chef’s kiss that makes them out of this world delicious.

Coconut Cupcakes: Ingredients & Substitutions

- All-purpose flour. you can use gluten-free flour to make this gluten-free.
- Granulated sugar. white sugar or organic cane sugar are the best choices.
- Salted butter. unsalted butter works well.
- Full-fat coconut milk. I use canned coconut milk. You can use a lite version but I recommend full fat.
- Canola oil. coconut oil is a great substitute for canola oil.
- Sour cream. full-fat greek yogurt is a good substitute.
- Shredded Coconut. I suggest unsweetened shredded coconut for the best results.
- Coconut Frosting. Use this recipe for the best coconut frosting. Or you can make vanilla butter cream, vanilla frosting, etc. if you prefer.

How to Make
Let’s walk through how to make coconut cupcakes, and don’t forget to watch the video.
Begin by preheating the oven to 350 degrees Fahrenheit (177 degrees Celsius). Then, line two, standard cupcake pans with cupcake liners and lightly grease them.

Next, combine the flour, salt, baking soda and baking powder together in a medium bowl and set the dry ingredients aside.


Then, melt the butter in a large bowl. Once it’s melted, whisk in the coconut milk, sugar, canola oil, sour cream, eggs and vanilla until smooth.


Then, whisk in the flour mixture until the batter is smooth.


Stir int he shredded coconut. I like to add it after the flour mixture to ensure the flour is completely incorporated and there are no lumps.



Measure a heaping ¼ cup of batter into the well of each muffin tin.

Then, bake the coconut cupcakes in the preheated oven for 17 to 20 minutes, or until the tops are set and very lightly browned, and a cake tester inserted in the center comes out clean.


After baking, let the coconut cupcakes cool in the pan on a wire cooling rack for at least 10 minutes. Then, use a spoon to lift them out of the muffin pan and transfer them to a wire cooling rack to cool completely.
Optional. You can transfer the coconut cupcakes to a baking sheet and put them in the freezer to cool/harden before frosting. I prefer frosting frozen cakes/cupcakes.

While the cupcakes are cooling, make the coconut frosting by following this recipe.

Then pipe or slather the frosting on top of each cupcake. If desired, sprinkle the top with more coconut or sprinkles. Then, chill the cupcakes in the refrigerator overnight. These coconut cupcakes taste even better the second day.

Serve
Serve the cupcakes at room temperature for the best flavor and texture.

Store/Freeze
Store leftover coconut cupcakes in an airtight container in the refrigerator for up to 1 week, or in the freezer for up to 1 month. Thaw slowly at room temperature – do not microwave the cupcakes.

Coconut Cupcakes Recipe FAQS
This recipe has the perfect coconut flavor from coconut milk and shredded coconut. If you want an even stronger flavor, you can add coconut extract to the batter along with the vanilla.
This recipe calls for unsweetened coconut, you can use sweetened it will just make the cupcakes sweeter.
Yes absolutely. They are the best when stored in the fridge overnight.
This is the best coconut frosting and works the best on these cupcakes. Or you can make vanilla butter cream, vanilla frosting, cream cheese frosting, etc. if you prefer.
You do not have to, but if you like the toasty flavor you can toast the coconut on the stovetop or in the oven.
Yes. Use a 1:1 gluten-free all-purpose flour blend designed for baking.

If you make and love my recipes, it would mean so much to me if you would leave a comment and rating! And don’t forget to follow along on Instagram, Pinterest, Facebook, TikTok and Youtube – be sure to tag @joyfoodsunshine and use the hashtag #joyfoodsunshine so I can see your creations!

Coconut Cupcakes
Video
Ingredients
- 1 ¾ cups all-purpose flour 244 g
- ½ tsp baking soda
- ½ tsp baking powder
- ½ tsp fine sea salt
- ½ cup butter (melted)
- 1 ½ cups full-fat coconut milk
- 1 ½ cups granulated sugar
- ¼ cup canola oil
- ¼ cup sour cream
- 2 eggs
- 2 tsp pure vanilla extract
- 1 cup shredded coconut
Coconut Frosting
- 1 cup salted butter
- 1 TBS pure vanilla extract
- ⅛ tsp fine sea salt
- 5 cups powdered sugar
- ¼ cup coconut milk (or heavy cream, or whole milk)
- 1 cup shredded coconut
Instructions
- Preheat oven to 350 degrees Fahrenheit (177 degrees Celsius)
- Line 2 standard muffin pans with liners and lightly grease. Set aside.
Make the Cupcakes
- In a small bowl combine flour, baking soda, baking powder and sea salt, set aside.
- In a large bowl, melt butter. Whisk in coconut milk, sugar, canola oil, sour cream, eggs and vanilla until smooth.
- Then, whisk in dry ingredients until smooth and there are no lumps.
- Add coconut and stir until evenly distributed throughout the batter.
- Measure a heaping ¼ cup of batter into the well of each muffin tin.
- Bake in the preheated oven for 17 to 20 minutes, or until the tops are set and very lightly browned, and a cake tester inserted in the center comes out clean.
- Let the coconut cupcakes cool in the pan on a wire cooling rack for at least 10 minutes. Then, use a spoon to lift them out of the muffin pan and transfer them to a wire cooling rack to cool completely.
- Optional. Transfer them to a baking sheet and put them in the freezer to cool/harden before frosting.
Make the Frosting
- In the bowl of a standing mixer, or in a large bowl with a handheld mixer, beat butter until smooth.
- Then add vanilla, sea salt and 2 cups powdered sugar and beat until smooth.
- Next, add coconut milk and the rest of the powdered sugar (3 cups) and beat until combined.
- Beat in coconut.
Frost, Chill & Serve
- Pipe or spread the frosting on top of each cupcake.
- Chill the cupcakes in the refrigerator overnight.
- Remove from the refrigerator at least 1 hour before serving. They are best served room temperature.
Notes
- All-purpose flour. you can use gluten-free flour to make this gluten-free.
- Granulated sugar. white sugar or organic cane sugar are the best choices.
- Salted butter. unsalted butter works well.
- Full-fat coconut milk. I use canned coconut milk. You can use a lite version but I recommend full fat.
- Canola oil. coconut oil is a great substitute for canola oil.
- Sour cream. full-fat greek yogurt is a good substitute.
- Shredded Coconut. I suggest unsweetened shredded coconut for the best results.
- Coconut Frosting. Use this recipe for the best coconut frosting. Or you can make vanilla butter cream, vanilla frosting, etc. if you prefer.
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.










