BakeryDiary is a recipe curation and editorial platform. We research and curate recipes from public sources, considering ratings, reviews, comments, and feedback. We then refine and present them clearly for home cooks. We are committed to an ad-free, focused experience that makes discovering and preparing recipes easier.

A beautifully soft, tender cake layered with sweet pineapple compote and fluffy whipped cream makes this Eggless Pineapple Cake a delightful treat for any occasion.
Made without eggs, this cake combines simple baking ingredients to create a light, moist crumb that pairs wonderfully with the bright, fruity flavor of pineapple.
Every slice offers a lovely balance of sweetness, creamy richness, and refreshing tropical fruit.
The cake batter comes together using all-purpose flour, milk powder, yogurt, vegetable oil, milk, and a touch of lemon juice.
Castor sugar adds sweetness, while vanilla extract brings a delicate aroma.
Baking soda helps the cake develop its soft texture, and the combination of yogurt and milk keeps the crumb pleasantly moist.
The result is a tender eggless cake that works beautifully as a layered dessert.
The homemade pineapple compote is the heart of this recipe.
Chopped pineapple is gently cooked with sugar and water until it becomes thick and jam-like, creating a fruity filling that adds natural tanginess and a juicy texture between the cake layers.
Whipped cream surrounds the compote and adds a smooth, airy contrast to the soft cake and concentrated pineapple flavor.
Once assembled, the cake features two delicate layers, a creamy filling, and a beautifully finished top that can be decorated to suit your occasion.
Whether served at a birthday party, family gathering, or afternoon celebration, this Eggless Pineapple Cake offers a refreshing, creamy, and fruity dessert that is both inviting and satisfying.

Soft Eggless Pineapple Cake
Ingredients
Equipment
Method
- Prepare the Cake Pans: Preheat the oven to 180°C (356°F). Lightly grease two 6-inch cake pans with oil, then line their bottoms with parchment paper.
- Whisk the Oil and Sugar: Add the vegetable oil and castor sugar to a mixing bowl. Using an electric mixer, whisk at high speed for 2 minutes until the mixture is well combined.
- Add the Vanilla and Yogurt: Add the vanilla extract and yogurt to the oil-sugar mixture. Continue whisking for another 2 minutes until the ingredients are thoroughly incorporated.
- Mix in the Milk and Lemon Juice: Pour the milk into the bowl and add the lemon juice. Give the wet ingredients one final mix until evenly combined.
- Sift the Dry Ingredients: Place a fine-mesh sieve over the mixing bowl. Sift the all-purpose flour, milk powder, and baking soda directly into the wet mixture.
- Combine the Cake Batter: Using a silicone spatula, gently fold the dry ingredients into the wet mixture. Continue mixing until the ingredients come together into a smooth, evenly combined batter. Avoid unnecessary mixing.
- Fill the Cake Pans: Divide the prepared batter evenly between the two lined 6-inch cake pans. Smooth the batter gently so it is distributed evenly in each pan.
- Bake the Cake Layers: Transfer the pans to the preheated oven and bake at 180°C (356°F) for 25–30 minutes, or until the cakes are golden brown. Once baked, remove them from the oven and allow them to cool completely before assembling.
- Cook the Pineapple Compote: While the cakes bake, combine the chopped pineapple, sugar, and water in a saucepan.Place the pan over low-medium heat and cook, stirring occasionally, until the pineapple softens and the mixture reduces to a thick, jam-like consistency.
- Cool and Demould the Cakes: Once the cake layers have cooled completely, carefully remove them from their pans. Set the layers aside, ready for assembly.
- Prepare the First Cake Layer: Place one cake layer on a serving plate or cake stand. Using a pastry brush, lightly coat the surface with pineapple syrup or sugar syrup.
- Pipe the Cream Border: Transfer the whipped cream into a piping bag. Pipe a border around the outer edge of the cake layer, forming a shallow well in the centre to hold the pineapple compote.
- Add the Pineapple Filling: Spread the cooled pineapple compote evenly inside the cream border in a single layer.
- Add the Second Cake Layer: Spread a little more whipped cream over the pineapple filling, then carefully place the second cake layer on top.
- Finish the Cake: Add dollops of whipped cream over the top surface of the cake. Spread the cream evenly to cover the top.
- Garnish and Serve: Decorate the finished cake as desired. Slice and enjoy once the cake is assembled.
Notes
- Cake Pan Size: Use two 6-inch round cake pans as specified in the recipe to create evenly sized layers.
- Eggless Texture: Yogurt, milk, and vegetable oil contribute to the cake’s soft, moist texture without using eggs.
- Ingredient Preparation: Measure all ingredients accurately before beginning to ensure the batter comes together properly.
- Mixing the Batter: Fold the sifted dry ingredients into the wet mixture using a spatula until just combined. Avoid excessive mixing.
- Baking Time: Bake the cake layers at 180°C (356°F) for 25–30 minutes, or until golden brown.
- Cooling: Allow both cake layers to cool completely before removing them from the pans and assembling the cake.
- Pineapple Compote: Cook the pineapple mixture until it reaches a thick, jam-like consistency. This helps prevent the filling from spreading beyond the cream border.
- Whipped Cream: Pipe a shallow border around the first cake layer to keep the pineapple filling in place.
- Syrup Application: Brush the cake layer lightly with pineapple syrup or sugar syrup before adding the filling.
- Decoration: Finish the cake with whipped cream and your preferred garnish for an attractive presentation.
Chef’s Secret
The most important detail in this Eggless Pineapple Cake is getting the pineapple compote to the right consistency before assembling the layers.
Since the filling sits between soft cake and whipped cream, excess moisture can make the layers slippery and cause the filling to spread.
Cook the chopped pineapple, sugar, and water over low-medium heat, stirring occasionally, until the mixture becomes thick and jam-like.
Allow the compote to cool before spreading it over the cake.
A cooled, concentrated filling is easier to manage and helps preserve the distinct layers when slicing.
Also, pipe a shallow whipped cream border around the first cake layer before adding the pineapple.
This simple step creates a neat boundary that keeps the fruity filling centered.
Serving Suggestions
Serve this Eggless Pineapple Cake as a refreshing dessert after lunch or dinner, or enjoy it alongside a cup of tea or coffee for an afternoon treat.
The sweet pineapple filling and light whipped cream pair beautifully with fresh pineapple chunks, thin pineapple slices, or a few small pieces of fruit scattered over the top.
For a more decorative finish, add piped whipped cream swirls around the cake and place small pineapple pieces between them.
A light drizzle of pineapple syrup can enhance the fruity flavor, while a few delicate cream rosettes give the cake a classic celebration-cake appearance.
Cut the cake into neat slices using a sharp knife and serve on individual dessert plates.
Its creamy, fruity layers make it a lovely choice for birthdays, family gatherings, or festive occasions.
Conclusion
This Eggless Pineapple Cake brings together soft, moist cake layers, homemade pineapple compote, and airy whipped cream in a delightful combination of fruity sweetness and creamy texture.
The simple ingredients and straightforward preparation make it an inviting dessert for both everyday enjoyment and special celebrations.
With its refreshing pineapple filling and elegant layered appearance, this homemade cake is sure to become a memorable addition to your dessert table.
