This tender gluten-free pineapple coconut cake is full of tropical flavor in every bite. The sweet pineapple keeps the crumb moist, while the shredded coconut adds just the right texture and flavor. It’s an easy, crowd-pleasing cake you can bake in a loaf pan, round cake pan, or even as cupcakes. Top it with a creamy vanilla icing and shredded coconut.
This post may contain affiliate links. Please read our Disclosure Policy.

❤️ Sandi’s Summary
1. This gluten-free tropical cake has the perfect blend of juicy, sweet pineapple and coconut flavors.
2. You can bake this easy recipe in a loaf pan, a round cake pan, or even as cupcakes.
3. Bring this cake to all of your summer events: picnics, cookouts, and barbecues. Nobody will know it is gluten-free!
4. This homemade cake freezes beautifully, so you can have a slice any time!
[👉 Jump to Recipe]
This recipe came together after a recent pantry dive. Once a year, I empty out my kitchen pantry and pull out the expired foods. I found a can of crushed pineapple that only had a month left, so I came up with a cake to put this can to use. If you have a can of crushed pineapple in your pantry, you will want to make this gluten-free coconut cake with canned pineapple.
If you love baking cake, I have over 100 incredible gluten-free cake recipes for you to try. Drop a comment and let me know which one you try next!
Allergen Information:
This easy gluten-free tropical loaf cake is:
- gluten-free
- soy-free
- nut-free
- oat-free
- Make it dairy-free using plant-based butter.
- Make it gum-free using my DIY Gluten-Free All Purpose Flour Blend.
Ingredient Notes and Swaps:
For the full list of ingredients and amounts, please go to the recipe card below.
- Gluten-Free Flour Blend – I tested this gluten-free cake recipe with King Arthur Measure for Measure and Bob’s Red Mill 1:1 Blend. Both worked great. Other blends will work, but you may need to tweak the batter. My rule of thumb is if your batter or dough is too runny, add more flour; if it is too thick, add more liquids.
- Binder – If your flour blend doesn’t contain a binder, add 3/4 teaspoon of xanthan gum to the dry ingredients.
- Cane Sugar – Cane sugar adds sweetness and helps create a tender crumb by locking in moisture. You can swap coconut sugar, but know it will turn your cake brown.
- Baking Soda – Baking soda is needed when there are acidic ingredients to help the cake rise.
- Coconut – Use unsweetened shredded coconut for the best texture and to avoid making the cake overly sweet.
- Pineapple – I used canned crushed pineapple, but fresh pineapple can be used. Be sure to chop it finely if using fresh.
- Eggs – Use large eggs. Eggs help with binding to hold the cake together and help keep the cake moist.
- Butter – Butter adds richness and helps keep the cake moist. Use unsalted butter so you can control the salt level. Use plant-based butter if you are dairy-free.
- Milk or Non-Dairy Milk – Use any unflavored milk or non-dairy milk. I used Oatly Simple, but almond, soy, or regular milk all work.
Tips for Making Gluten-Free Pineapple Coconut Cake
1. Do not overmix the cake batter; the cake will turn out denser.
2. Partially melt the butter, but don’t make it too hot, or it can cook the eggs when mixing the wet ingredients.
3. I prefer to line the loaf pan with parchment paper so the cake is easy to lift out of the pan.
Step-By-Step Photos and Directions:
Note From The Kitchen: Every gluten-free flour blend absorbs liquid a little differently. If your batter looks thicker or thinner than mine, add 1–2 tablespoons of milk or flour to adjust. This is totally normal in gluten-free baking and will help you get consistent results.
Email This Recipe To Me!
Step 1: Preheat the oven to 350º F on the bake setting. Combine the flour, shredded coconut, sugar, baking soda, and salt in a large mixing bowl. Use a whisk to thoroughly mix.
Step 2: Partially melt the butter. Add the eggs, pineapple, and milk. Whisk to blend.
Step 3: Pour the wet ingredients into the dry ingredients and gently mix to make the batter.
Step 4: Line a loaf pan with parchment paper. Pour the batter into the pan and use a rubber spatula to smooth the batter evenly in the pan.
Step 5: Bake the gluten-free pineapple coconut cake for 40-42 minutes. The actual baking time will vary depending on the size and type of pan you use.
The cake is finished baking when the top is golden. Insert a toothpick into the top of the cake. If it comes out clean, the cake is finished baking. If you see batter or crumbs, it needs to bake longer.
Step 6: Move the cake to a cooling rack. Let it sit in the pan for five minutes, then use the parchment paper to gently lift the cake out of the pan onto the cooling rack.
Do not slice the cake until it is cooled. If you slice it when it is hot, the cake will crumble because it hasn’t set. When the cake is cooled, mix the icing ingredients and drizzle the icing over the cake.
This easy gluten-free pineapple cake with coconut is a winner recipe that everyone will love. Add in blueberries, chocolate chips, or any other mix-ins you like!
Frequently Asked Questions:
This recipe will make 12 cupcakes.
I haven’t tested this recipe with an egg replacer. If you bake this cake with an egg replacer, please drop a comment.
Yes! Just chop it finely and drain any excess juice. The texture may be slightly different, but it will still taste great.
Gluten-Free Related Reading
Gluten-free baking is like a science experiment. There are so many things you need to understand the different components of baking without gluten. My Gluten-Free Resources Section is here to help teach you the tools you need to know to become a confident gluten free baker.
My Best Gluten-Free Baking Tips For Better Baking!
Why Binders Are Important In Gluten-Free Baking
The Best Gluten Free Flour Blends – And how to use them!
More Gluten Free Loaf Cake Recipes:
- Fluffy Gluten-Free Banana Pineapple Bread
- Gluten-Free Pineapple Upside Down Cake
- Gluten-Free Hummingbird Cake (A Fan Favorite!)
- Quick and Easy Gluten-Free Coconut Cupcakes
Love This Recipe?
💬 Did you make this recipe? Drop a comment below, and let me know how it turned out! ⭐⭐⭐⭐⭐ Please include which flour blend you used. This will help others know this recipe is delicious. Thank you!
Easy Gluten-Free Pineapple Coconut Cake
Ingredients
- 2 ¼ cups gluten free flour blend * see notes
- 1 ½ cups unsweetened shredded coconut
- ¾ cup sugar
- 1 teaspoon baking soda
- ¼ teaspoon salt
- 3 large eggs
- ½ cup melted unsalted butter
- 1 cup crushed pineapple
- ¼ cup pineapple juice
- ½ cup milk or non-dairy milk
Optional Icing
- 2 cups powdered sugar
- 2-3 tablespoons milk
Email This Recipe To Me!
Instructions
- Preheat the oven to 350º F on the bake, not convection, setting.
- Combine the 2 1/4 cups gluten free flour blend, 1 1/2 cups unsweetened shredded coconut, 3/4 cup sugar, 1 teaspoon baking soda, and 1/4 teaspoon salt in a large mixing bowl. Use a whisk to thoroughly mix.
- Combine the 1/2 cup melted unsalted butter 3 large eggs, 1 cup crushed pineapple, 1/4 cup pineapple juice, and 1/2 cup milk or non-dairy milk. Whisk to blend.
- Pour the wet ingredients into the dry ingredients and gently mix to make the batter. Do not over mix or you can end up with a denser cake.
- Line a loaf pan with parchment paper. Pour the batter into the pan and use a rubber spatula to smooth the batter evenly in the pan.
- Bake the gluten-free pineapple coconut cake for 40-45 minutes. The actual baking time will vary depending on the size and type of pan you use.
- The cake is finished baking when the top is golden. Insert a toothpick into the top of the cake. If it comes out clean, the cake is finished baking. If you see batter or crumbs, it needs to bake longer.
- Transfer the cake to a cooling rack. Let it sit in the pan for five minutes, then gently lift it out of the pan onto the rack using the parchment paper.
- Do not slice the cake until it is cooled. If you slice it when it is hot, the cake will crumble because it hasn't set. When the cake is cooled, mix the icing ingredients and drizzle the icing over the cake.
Notes
- I tested two flour blends in this recipe, King Arthur Measure for Measure and Bob’s Red Mill 1:1. Other blends will work, but you may need to tweak the ingredients. My rule of thumb is if your batter or dough is too runny, add more flour, and if it is too thick, add more liquids.
- If your blend doesn’t contain a binder, add 3/4 teaspoon of xanthan gum.
- Swap plant-based butter to make this recipe dairy-free.
- I drain a tiny bit of the juice from the crushed pineapple, but not much. I supplemented the pineapple juice from a can of pineapple juice.
- You can use fresh pineapple, but the texture may vary slightly.
- Store leftovers in an airtight container. It should stay fresh for up to 4 days. (3 days in the summer if your house is hot.) I recommend freezing the cake in freezer-safe zipper bags.
SPECIAL NOTE
Please know that every gluten free flour blend has a different starch to grain ratio. If you use a blend I didn’t test, my rule of thumb is to add more flour if your dough or batter is wet and add more liquid if the dough or batter is too dry!
Nutrition
Nutrition Disclaimer
Nutritional information is an estimate provided to you as a courtesy. You should calculate the actual nutritional information with the products and brands you are using with your preferred nutritional calculator.