Pineapple Yellow Cake Recipe: Moist & Easy

Updated November 26, 2026

Total time
1 hr 5 min
prep 20 min · cook 35 min
Serves
12
portions as written

Jump to recipe

This pineapple yellow cake is a sunny, old-fashioned dessert that combines a tender, buttery yellow crumb with juicy pineapple in every bite. The crushed pineapple adds natural sweetness and moisture to the batter, while a simple pineapple glaze keeps the cake exceptionally soft for days. It is a wonderfully easy cake to bake for birthdays, potlucks, or any time you want a cheerful, fruity treat.

Ingredients

  • 2 1/2 cups (300 g) all-purpose flour
  • 2 1/2 teaspoons baking powder
  • 1/2 teaspoon salt
  • 3/4 cup (170 g) unsalted butter, softened
  • 1 1/2 cups (300 g) granulated sugar
  • 3 large eggs, at room temperature
  • 1 teaspoon vanilla extract
  • 1 cup (240 ml) buttermilk, at room temperature
  • 1 cup (225 g) crushed pineapple, well drained (reserve 1/4 cup juice for glaze)
  • For the glaze:
  • 1 cup (120 g) powdered sugar
  • 2 tablespoons reserved pineapple juice
  • 1 tablespoon unsalted butter, melted

Instructions

  1. Preheat your oven to 350°F (175°C). Grease and flour a 9×13-inch baking pan, or line it with parchment paper for easy removal.
  2. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  3. In a large bowl, beat the softened butter and sugar together with an electric mixer on medium speed until light and fluffy, about 2-3 minutes. Scrape down the sides of the bowl as needed.
  4. Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract.
  5. With the mixer on low speed, add the dry ingredients in three additions, alternating with the buttermilk in two additions. Begin and end with the dry ingredients. Mix just until combined; do not overmix.
  6. Gently fold the drained crushed pineapple into the batter with a spatula.
  7. Pour the batter into the prepared pan and spread it evenly.
  8. Bake for 30-35 minutes, or until a toothpick inserted into the center comes out clean or with just a few moist crumbs. The top should be golden brown.
  9. While the cake bakes, make the glaze: in a small bowl, whisk together the powdered sugar, reserved pineapple juice, and melted butter until smooth.
  10. Let the cake cool in the pan on a wire rack for 10 minutes. If you used parchment, lift the cake out and let it cool completely on the rack. If baking in a disposable or regular pan, you can leave it in the pan.
  11. Once the cake is completely cool, drizzle the glaze over the top. Let the glaze set for about 10 minutes before slicing.

Tips

  • Drain the pineapple well: Too much liquid in the batter can make the cake dense and gummy. Press the crushed pineapple against a fine-mesh strainer to remove excess juice, but reserve the juice for the glaze.
  • Room temperature ingredients: Butter, eggs, and buttermilk at room temperature blend together more smoothly, creating a better-emulsified batter and a finer crumb.
  • Don’t overmix: Once you add the flour, mix only until it disappears. Overmixing develops gluten, which can make the cake tough.
  • Check for doneness early: Ovens vary, so start checking the cake at 30 minutes. A toothpick inserted in the center should come out clean or with just a few moist crumbs, not wet batter.

Serving Suggestions

This pineapple yellow cake is delicious on its own, but you can take it to the next level. Serve it warm with a scoop of vanilla ice cream or a dollop of whipped cream. For a classic pairing, add a spoonful of coconut whipped cream or a sprinkle of toasted coconut flakes. It also makes a great base for a summer trifle with layers of custard and fresh berries.

Variations

  • Pineapple Upside-Down Style: Instead of a glaze, arrange pineapple rings and maraschino cherries in the bottom of the pan with melted butter and brown sugar, then pour the batter over and bake. Invert the cake onto a serving plate.
  • Coconut-Pineapple Cake: Fold 1/2 cup (40 g) of sweetened shredded coconut into the batter and add 1/2 teaspoon of coconut extract along with the vanilla.
  • Pineapple Cream Cheese Frosting: For a richer dessert, skip the glaze and frost the cooled cake with a cream cheese frosting (8 oz cream cheese, 1/4 cup butter, 2 cups powdered sugar, and 2 tablespoons pineapple juice).
  • Gluten-Free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture will be slightly more tender, but the cake will still be delicious.

Storage and Reheating

Store the pineapple yellow cake in an airtight container at room temperature for up to 3 days. The glaze will keep it moist. For longer storage, wrap the unfrosted cake (or the frosted cake, once the glaze has set) tightly in plastic wrap and then foil, and refrigerate for up to 5 days. You can also freeze the unfrosted cake for up to 3 months; thaw it overnight in the refrigerator before glazing and serving. To reheat individual slices, microwave for about 15 seconds or warm in a 300°F (150°C) oven for 5-10 minutes.

Frequently Asked Questions

Can I use fresh pineapple instead of canned? Yes, you can use fresh pineapple. You will need about 1 cup of finely chopped fresh pineapple. Be sure to drain it well, as fresh pineapple can be even juicier than canned.

Can I use a different pan size? This recipe works well in a 9×13-inch pan. You can also use two 9-inch round pans; bake for 25-30 minutes, or until a toothpick comes out clean. Cupcakes would need about 18-22 minutes.

Why did my cake sink in the middle? A sinking cake is often due to underbaking or opening the oven door too early. Make sure your oven is at the correct temperature and avoid opening it during the first 20 minutes of baking.

Can I make this cake without buttermilk? Yes, you can make a quick buttermilk substitute by adding 1 tablespoon of lemon juice or white vinegar to 1 cup of milk and letting it sit for 5 minutes.

Can I skip the glaze? Absolutely. The cake is delicious on its own. If you skip the glaze, you might want to dust the top with powdered sugar just before serving.

How do I know when the cake is done? Insert a toothpick into the center of the cake. If it comes out clean or with a few moist crumbs, it is done. The internal temperature should be around 200°F (93°C) for a fully baked cake.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).