Bake the Ultimate Pineapple Cake with This Soft and Flavorful Recipe

Pineapple cake is a tropical treat that brings the sunshine of the islands straight to your kitchen. Originating in part from Taiwan and made popular worldwide with American and European adaptations, this moist and fruity cake is loved for its sweet-tart flavor and tender crumb. Whether it’s served plain, with cream cheese frosting, or even layered, the pineapple cake is a celebration of balance—sweetness from the fruit, richness from the butter, and a zingy finish that keeps you coming back for more.

Its juicy texture and vibrant taste make it a favorite at summer parties, holiday feasts, and even weddings in some cultures. Plus, the canned or fresh pineapple makes it accessible all year round.

Ingredients

For the Cake:

  • 2 cups all-purpose flour

  • 1 ½ cups granulated sugar

  • 1 tsp baking soda

  • ½ tsp salt

  • 2 large eggs

  • 1 tsp vanilla extract

  • 1 can (20 oz) crushed pineapple in juice (do not drain)

  • ½ cup unsalted butter, melted

  • ½ cup chopped walnuts or pecans (optional)

Optional Cream Cheese Frosting:

  • 8 oz cream cheese, softened

  • ½ cup unsalted butter, softened

  • 2 cups powdered sugar

  • 1 tsp vanilla extract

Substitutions:

  • Gluten-Free: Use a 1:1 gluten-free baking flour.

  • Vegan: Swap eggs with ½ cup applesauce or 2 flax eggs; use vegan butter.

  • Nut-Free: Omit nuts or substitute with sunflower seeds or shredded coconut.

Step-by-Step Cooking Instructions

1. Preheat and Prep

  • Preheat your oven to 350°F (175°C).

  • Grease a 9×13-inch baking pan or line it with parchment paper.

2. Mix Dry Ingredients

  • In a large bowl, whisk together flour, sugar, baking soda, and salt.

3. Add Wet Ingredients

  • Stir in eggs, vanilla extract, crushed pineapple (with juice), and melted butter. Mix until well combined.

  • Fold in nuts, if using.

4. Bake the Cake

  • Pour the batter into the prepared pan and smooth the top.

  • Bake for 35–40 minutes, or until a toothpick inserted in the center comes out clean.

5. Cool and Frost (Optional)

  • Let the cake cool completely in the pan.

  • For the frosting: Beat cream cheese and butter until fluffy, then add powdered sugar and vanilla. Spread evenly over the cooled cake.

Common Mistakes to Avoid:

  • Draining the Pineapple: Keep the juice for moisture and flavor!

  • Overmixing the Batter: Mix just until combined to avoid a dense texture.

  • Not Letting It Cool: Frosting a warm cake can melt the frosting and ruin the texture.

Pro Tips and Cooking Techniques

  • Toast the nuts before folding them in for added crunch and flavor.

  • Use a hand mixer for smoother batter and frosting.

  • Chill the frosting slightly for easier spreading and a neater finish.

  • Add spices like cinnamon or nutmeg for a warm twist.

Variations and Customizations

  • Gluten-Free Pineapple Cake: Use almond flour or a gluten-free flour blend.

  • Tropical Fusion: Add shredded coconut or chopped mango for an island-inspired variation.

  • Low-Carb Version: Use almond flour and a sugar substitute like erythritol.

  • Layer Cake: Divide the batter into round cake pans and layer with frosting or pineapple curd.

  • Vegan Pineapple Upside-Down Cake: Replace eggs and butter with plant-based options and layer pineapple slices on the bottom.

Serving Suggestions

  • Garnish with pineapple rings, a dusting of powdered sugar, or a sprig of mint.

  • Pair with a scoop of vanilla ice cream or a dollop of whipped cream.

  • Drinks: Serve with iced tea, coconut water, or a tropical cocktail like a piña colada.

Nutritional Information (Per Slice – Approximate)

  • Calories: 320

  • Protein: 4g

  • Carbohydrates: 42g

  • Fat: 15g

  • Sugar: 28g

  • Fiber: 1.5g

Note: Nutritional values may vary based on substitutions and portion size.

Frequently Asked Questions (FAQs)

Can I use fresh pineapple instead of canned?
Yes, just make sure it’s finely crushed and juicy—aim for the same volume as a 20 oz can with juice.

How long does pineapple cake last?
Store in an airtight container at room temperature for 2 days or in the fridge for up to 5 days.

Can I freeze pineapple cake?
Absolutely. Wrap tightly and freeze for up to 3 months. Thaw in the fridge overnight.

What if my cake is too moist?
This could happen if your pineapple has excess liquid. Next time, lightly drain if needed—but not completely!

How do I reheat leftovers?
Microwave individual slices for 15–20 seconds or enjoy chilled.

Closing Thoughts

Pineapple cake is one of those rare desserts that hits every note—sweet, tart, moist, and satisfying. Whether you’re a baking beginner or a seasoned home chef, this recipe offers enough flexibility to make it your own.