Go Back
Pineapple Layer Cake Recipe with Cream Cheese Frosting

Pineapple Layer Cake Recipe

A moist from-scratch pineapple cake made with crushed pineapple, filled with cooked pineapple and covered in creamy cream-cheese frosting. This two-layer dessert serves 8–10 people.
Prep Time 30 minutes
Cook Time 25 minutes
Total Time 1 minute
Servings: 8 servings

Ingredients
  

Cake
  • 2 cups (250 g) All-purpose flour
  • 2 cups (400 g) Granulated sugar
  • 2 teaspoons Baking soda
  • 1 teaspoon Fine salt
  • 2 large Large eggs, lightly beaten
  • 1 teaspoon Vanilla extract
  • 1 20-ounce can (566 g) Crushed pineapple in juice, undrained
Pineapple Filling
  • 1 20-ounce can (566 g) Crushed pineapple in juice, drained
  • 1/2 cup Reserved pineapple juice
  • 1/2 cup (100 g) Granulated sugar
  • 3 tablespoons Cornstarch
  • 1 tablespoon Lemon juice, optional
  • 1 tablespoon Unsalted butter
Cream-Cheese Frosting
  • 8 ounces (226 g) Full-fat cream cheese, softened
  • 1/2 cup (113 g) Unsalted butter, softened
  • 1 teaspoon Vanilla extract
  • 4 cups (about 480 g) Confectioners' sugar
  • 1–2 tablespoons Milk or heavy cream, only if needed

Method
 

Step-by-Step
  1. Heat the oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment.
  2. Whisk the flour, granulated sugar, baking soda, and salt together in a large bowl.
  3. Add the lightly beaten eggs, vanilla, and undrained crushed pineapple. Stir only until the batter is evenly combined.
  4. Divide the batter between the prepared pans and smooth the tops. Bake for 25–32 minutes, until the centers spring back lightly and a tester comes out with only a few moist crumbs.
  5. Cool the cakes in their pans for 10 minutes, then turn them out onto wire racks. Cool completely before filling or frosting.
  6. For the filling, whisk the reserved pineapple juice, sugar, and cornstarch in a saucepan. Add the drained pineapple and cook over medium heat, stirring constantly, for about 3–5 minutes, until thick and glossy.
  7. Stir the optional lemon juice and butter into the hot filling. Transfer it to a bowl and cool completely.
  8. Beat the cream cheese and butter until smooth. Beat in the vanilla, then gradually add the confectioners' sugar; mix in a small amount of milk or cream only if the frosting is too stiff.
  9. Place one cake layer on a serving plate and spread it with the cooled pineapple filling, leaving a small border. Add the second layer, then frost the top and sides.

Notes

Use crushed pineapple packed in juice rather than heavy syrup. Do not squeeze the pineapple completely dry for the cake batter. Cool the pineapple filling fully before assembly so it does not soften the cream-cheese frosting.