Pineapple Cake
This post may contain affiliate links. Please read my disclosure policy for more details.
This simple pineapple cake is truly a must-make for all your spring and summer gatherings. It’s ultra-moist, perfectly sweet, and packed with all the goodness and brightness of pineapples!
You’ll love this one!

With the upcoming summer months just around the corner, I’m sharing a new cake recipe that is flavorful and totally delicious. It makes the most of seasonal, fresh pineapples, but works perfectly fine with canned pineapple as well.
Join my newsletter for free weekly recipes!
It’s the perfect summer cake—simple and bursting with pineapple flavour at every bite. It’s great for gatherings, BBQs, and picnics. I’ve baked it three times in a row, and we also enjoyed it at breakfast. We just loved it.
It’s a recipe for a pineapple cake using simple ingredients: sugar, eggs, vegetable oil, the classic dry ingredients, and, of course, pineapple. This time, I tested the recipe using sour cream instead of yoghurt. I was after a super tender and dense crumb, and I LOVED how it turned out. But yoghurt makes a great substitution, too.
Once you combine the batter, add the diced and sliced pineapple and bake. The pineapple’s juicy, fresh, and beautiful sweetness makes this cake special.
And if you have extra pineapple on hand, be sure to also try my refreshing 3-ingredient pineapple sorbet or pineapple banana smoothie.
Now, let’s make pineapple cake and celebrate the upcoming summer!
List of the ingredients
- Pineapple
- Eggs
- Sugar
- Vegetable oil
- Sour cream or yoghurt
- All-purpose flour
- Vanilla extract
- Lime or lemon
- Baking powder + salt

How to make pineapple cake
(Note: this is a quick description; the full recipe is at the bottom of the page.)
- The recipe uses half a pineapple. Peel, core, and cut it into halves.
- Dice one half (for the cake batter) and slice the other half (for the topping).
- Next, whisk eggs and sugar in one bowl until pale and fluffy.

- Add vegetable oil, sour cream, vanilla extract, and whisk again.
- Stir in the dry ingredients until well combined. AVOID OVERMIXING, as this can result in a rubbery texture and large holes in the cake.

- Pour half of the cake batter into the prepared baking pan.
- Scatter diced pineapple evenly. No worries, the pineapple does not sink to the bottom, as the batter is quite thick.
- Using a spatula, scrape and level the remaining batter.
- Arrange the pineapple slices neatly on top. Now you’ll have pineapple bites everywhere and evenly distributed!

- Bake for 40-45 minutes, and no need to flip the cake upside down! : )
- Serve dusted with powdered sugar or brush with apricot jam as I do in this Apple Yoghurt Cake. It’s simple and delicious just as it is. Enjoy!

Recipe notes
Pineapple cake ingredients
Pineapple: For the best results, I recommend using half a fresh pineapple (approximately 400-450 grams, weighed after peeling). You can also use canned pineapple in juice, not in heavy syrup. Use a 432-gram can if you’re in the UK, or a 20-oz can of pineapple slices if you’re in the USA, although you might end up with more pineapple slices than you need. Eat the leftovers! : )
Sour cream: It provides exceptional moisture and tender crumbs. You can use Greek yoghurt or regular full-fat yoghurt if you don’t have sour cream. The fat percentage is lower, resulting in a lighter and less dense texture. The recipe works with low-fat yoghurt, too, but the flavour and texture are not quite the same. I’ve never tested this pineapple cake with buttermilk.
Sugar + eggs: You can use caster or fine sugar, but regular or light brown sugar also works well.
Vegetable oil: It’s easy to use and excellent for keeping the crumbs moist—any neutral-flavoured oil, such as canola or vegetable oil, works. I don’t recommend using butter in this case.
Flour + baking powder: The combination of all-purpose flour and baking powder yields excellent results, resulting in a thick batter that holds the pineapple chunks. Cake flour works too.
Extract: Vanilla extract is a must in my cake recipes; it adds flavour.
Lime: It brings tropical flavors to every bite, but you can also use lemon juice and zest instead, or 2-3 tablespoons of pineapple juice (if using canned pineapple).

Baking tips
- Measure the ingredients properly! A kitchen scale is the best. If you use cups, use a spoon to transfer the flour into the measuring cup instead, and use the back of a knife to level off the top. But don’t scoop the flour out of the bag with your cup; you’ll end up with too much flour.
- Use the ingredients at room temperature.
- Do not overmix the batter, as this can create a rubbery texture and holes.
- Preheat the oven, and do not open the oven door for the first 25 minutes.
- Test the doneness a few minutes before it’s due to be done
- Do not overbake; a few extra minutes in the oven make your cake dry.
Storage tips
This pineapple cake stays moist and fresh for up to 4 days at room temperature when stored in an airtight container, or it can be frozen for up to 1 month. To serve it, thaw it in the refrigerator overnight and let it come to room temperature.

MORE FRUITY DESSERTS YOU’LL LOVE!
- Apple fritters
- Orange cake
- Strawberry bread
- Fruit cake
- Coconut bread
- Strawberry ricotta cake
- Apple ice cream
- Blueberry ricotta cake
Get all of my sweet recipes here!
Let me know if you make this delicious Pineapple cake! Leave a comment, rate it, or tag a photo #theclevermeal on Instagram. I would love to hear from you!
For more recipe updates, follow me on Instagram, Pinterest, and Facebook.
Pineapple Cake
Ingredients
- 15 oz (425 grams) Fresh pineapple, peeled and cored (it's half a pineapple, or sub with 20-oz canned pineapple in juice).
- 2 large eggs, at room temperature
- 1 ¼ cup (125 grams) sugar
- ½ cup (120 ml) vegetable oil
- 1 cup (240 grams) sour cream (or Greek yogurt), at room temperature
- 1 teaspoon vanilla extract
- 1 lime, juice and zest (or lemon)
- 2 ¼ cup (260 grams) all-purpose flour
- 2 teaspoon baking powder
- ⅛ teaspoon fine salt
Instructions
- Prep the pineapple: Core and peel half a pineapple, then cut it in half again. Dice one half and slice the other half. Alternatively, drain a 20-oz can of pineapple in juice (keep in mind you might have pineapple leftovers if using a 20-oz can). Set aside.
- Preheat your oven to 355°F/180°C and place a rack in the middle position. Next, line the bottom of a spring-form cake pan (diameter 23 cm/9 inches) with parchment paper. You can also generously grease the sides and bottom of the pan with butter and flour, shaking out excess flour. Set aside.
- Make the batter: Using a stand mixer or an electric beater, beat the eggs and sugar for 3-4 minutes until pale and fluffy. Reduce the speed, and gradually add the vegetable oil, ricotta, vanilla extract, and lime juice and zest (if using lemon, use 2 tablespoons of juice only). The batter should be smooth. Next, add the flour, baking powder, salt, using a spatula to scrape the flour from the side of the bowl. Mix to combine, but do not overmix.
- Transfer half of the batter to the prepared cake pan, level the surface with a spatula or the back of a spoon, and top with the diced pineapple. Next, add and level the remaining batter, and arrange nicely the sliced pineapple using a gentle pressure.
- Bake for 40 minutes, then check the doneness by inserting a toothpick or cake tester into the batter in the center of the cake. If it comes out clean, the cake is ready. If not, keep baking for 5 minutes and check again. It takes 45 minutes in my oven, but each oven is different.
- When the cake is ready, transfer it immediately to a cooling rack and let it cool for 10 minutes. Next, remove it gently from the pan, transfer it to a serving plate. Dust with powdered sugar or brush it with warm honey or apricot jam for a nice, glossy finish. Enjoy!