I first baked this yellow cake with pineapple frosting for a friend’s birthday when I wanted to create something bright and cheerful that tasted like a little slice of sunshine because I knew she loved fruity desserts. I remember mixing the buttery yellow cake batter and sneaking a taste of the sweet, tropical pineapple frosting then feeling so excited as the whole kitchen filled with that warm, sweet aroma.

When we finally cut into the cake, every layer was soft and tender, and the creamy pineapple frosting added such a fun, unexpected twist because it felt like summer in every bite. Ever since then, this yellow cake with pineapple frosting has become my favorite for birthdays, brunches, and anytime I want to make someone’s day extra special.
Ingredients
- Here’s what I use for this recipe. You can always make substitutions if you prefer!
- All-purpose flour – The base that gives the cake structure and softness.
- Sugar – Adds sweetness and helps create a tender crumb.
- Eggs – Provide structure and richness to the cake.
- Unsalted butter – Makes the cake moist and adds buttery flavor.
- Baking powder – Helps the cake rise and stay fluffy.
- Salt – Enhances all the other flavors.
- Whole milk – Adds moisture and richness.
- Vanilla extract – Brings warmth and aromatic depth.
- Crushed pineapple – The star ingredient in the frosting for a tropical kick.
- Cream cheese – Makes the frosting creamy and smooth.
- Powdered sugar – Sweetens the frosting and gives it structure.
- Heavy cream – Helps make the frosting light and fluffy.
Tools You’ll Need
- Mixing bowls – For the cake batter and frosting.
- Electric mixer – To cream the butter and whip the frosting.
- Spatula – For folding and spreading evenly.
- Cake pans – To bake even, beautiful layers.
- Cooling racks – For cooling the cakes before frosting.
- Serrated knife – To level layers if needed.

Instructions
Step 1: Prepare the cake pans
I preheat the oven to 350°F (175°C) then I grease and line the cake pans to prevent sticking.
Step 2: Cream butter and sugar
I beat the butter and sugar together until light and fluffy because this helps make the cake airy and soft.
Step 3: Add eggs and vanilla
I add eggs one at a time, mixing well after each, then I stir in the vanilla extract.
Step 4: Mix dry ingredients
I whisk together the flour, baking powder, and salt in a separate bowl.
Step 5: Combine
I add the dry ingredients to the wet mixture, alternating with the milk, and mix until just combined.
Step 6: Bake
I divide the batter between the prepared pans and bake for 25-30 minutes or until a toothpick comes out clean.
Step 7: Cool
I let the cakes cool in the pans for 10 minutes before transferring to racks to cool completely.
Step 8: Make the frosting
I beat the cream cheese until smooth, then add crushed pineapple, powdered sugar, and a splash of heavy cream, mixing until light and fluffy.
Step 9: Assemble
I layer the cakes with pineapple frosting between each layer and spread more on top, finishing with piped swirls and pineapple pieces.
📌 Love Home Recipes? Follow Me on Pinterest!
Join thousands of others for daily Sweet home Recipes and creative ideas.
Follow Me on PinterestTips
For extra pineapple flavor, I sometimes brush each cake layer with a bit of pineapple juice before frosting. You can also add shredded coconut to the frosting for a fun twist. Make sure the cake is completely cool before frosting to avoid melting.
Ways to Serve
I love serving this yellow cake with pineapple frosting at birthday parties, spring brunches, or summer gatherings. It’s also amazing as a special dessert with a cup of tea or coffee. You can top it with extra fresh pineapple or even some toasted coconut for added texture.
Frequently Asked Questions
Can I make yellow cake with pineapple frosting ahead of time?
Yes! You can bake the cakes and prepare the frosting a day ahead, then assemble before serving.
Can I use canned pineapple in yellow cake with pineapple frosting?
Absolutely! Just be sure to drain it well so the frosting doesn’t become too runny.
How do I store yellow cake with pineapple frosting?
Store it in the fridge, covered, for up to 4 days.
See You in the Kitchen
I hope you give this yellow cake with pineapple frosting a try! It’s a bright, cheerful cake that’s sure to make any celebration feel extra special. Let me know if you bake it and share how it turned out with me!
Happy Cooking!
Print
Yellow Cake with Pineapple Frosting
- Total Time: 1 hour
- Yield: 12 slices
- Diet: Vegetarian
Description
Looking for the best easy cake ideas? This quick and simple yellow cake with pineapple frosting is moist, fluffy, and so cheerful! Perfect for birthdays, brunches, or celebrations, this cake is the best way to bring tropical sweetness to your table. Save this easy yellow cake with pineapple frosting recipe for your next special event!
Ingredients
- 2 1/2 cups all-purpose flour
- 2 cups sugar
- 4 large eggs
- 1 cup unsalted butter, softened
- 1 tablespoon baking powder
- 1/2 teaspoon salt
- 1 cup whole milk
- 2 teaspoons vanilla extract
- 1 can (8 oz) crushed pineapple, drained
- 8 oz cream cheese, softened
- 3 cups powdered sugar
- 1/4 cup heavy cream
Instructions
- Preheat oven to 350°F (175°C). Grease and line cake pans.
- Cream butter and sugar until fluffy.
- Add eggs one at a time, mixing well. Stir in vanilla.
- Whisk flour, baking powder, and salt in a separate bowl.
- Add dry ingredients alternately with milk to the wet mixture.
- Divide batter into pans, bake 25-30 minutes until a toothpick is clean.
- Cool cakes completely on racks.
- For frosting, beat cream cheese until smooth, add pineapple, powdered sugar, and heavy cream. Mix until fluffy.
- Layer and frost cakes, decorate as desired.
Notes
- Brush layers with pineapple juice for extra flavor.
- Add coconut to frosting for a tropical twist.
- Ensure cakes are cool before frosting to avoid melting.
- Prep Time: 30 minutes
- Cook Time: 30 minutes
- Category: Dessert
- Method: Baking
- Cuisine: American
Nutrition
- Serving Size: 1 slice
- Calories: 480
- Sugar: 46g
- Sodium: 260mg
- Fat: 22g
- Saturated Fat: 13g
- Unsaturated Fat: 7g
- Trans Fat: 0g
- Carbohydrates: 67g
- Fiber: 1g
- Protein: 5g
- Cholesterol: 105mg