Pineapple Marble Cake with Chocolate Swirl
In this article
This pineapple marble cake is a tropical twist on the classic chocolate-vanilla marble, with juicy pineapple chunks folded into the batter and a rich chocolate swirl running through every slice. The pineapple keeps the crumb moist and tender, while the chocolate adds depth—a combination that works surprisingly well for an everyday loaf or a weekend dessert. It’s a straightforward one-bowl cake that bakes in about an hour, and the marbling technique is forgiving enough for beginners.
Ingredients
- 2 cups (250 g) all-purpose flour
- 2 teaspoons baking powder
- 1/2 teaspoon salt
- 1/2 cup (113 g) unsalted butter, softened
- 1 cup (200 g) granulated sugar
- 2 large eggs, at room temperature
- 1 teaspoon vanilla extract
- 1/2 cup (120 ml) whole milk, at room temperature
- 1 cup (170 g) crushed pineapple, well drained (reserve 2 tablespoons of juice)
- 3 tablespoons unsweetened cocoa powder
- 2 tablespoons hot water
- 1/2 cup (85 g) semi-sweet chocolate chips (optional, for extra richness)
Instructions
- Preheat your oven to 350°F (175°C). Grease a 9x5-inch loaf pan and line it with parchment paper, leaving an overhang on two sides for easy lifting.
- In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
- In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed until light and fluffy, about 2–3 minutes. Scrape down the sides.
- Add the eggs one at a time, beating well after each addition. Mix in the vanilla extract.
- With the mixer on low, add the flour mixture in three additions, alternating with the milk, starting and ending with flour. Mix just until combined—do not overmix.
- Fold in the drained crushed pineapple and the reserved 2 tablespoons of pineapple juice. The batter will be thick but soft.
- In a small bowl, whisk the cocoa powder with the hot water until smooth and no lumps remain. Let it cool for a minute.
- Transfer about 1 cup of the plain batter into the bowl with the cocoa mixture. Stir until the chocolate batter is uniform. If using chocolate chips, fold them into the chocolate batter now.
- Spoon the plain batter and the chocolate batter alternately into the prepared loaf pan, creating a checkerboard pattern. Use a butter knife or skewer to gently swirl through the batter in a figure-eight motion—don’t overdo it, or the marbling will disappear.
- Bake for 50–60 minutes, or until a toothpick inserted into the center comes out clean (a few moist crumbs are okay, but no wet batter). If the top browns too quickly, tent loosely with foil after 30 minutes.
- Let the cake cool in the pan for 15 minutes, then lift it out using the parchment overhang and transfer to a wire rack to cool completely before slicing.
Tips
- Drain the pineapple well: Too much liquid will make the cake dense and soggy. Press the crushed pineapple against a sieve to remove excess juice, but reserve a couple of tablespoons for the batter—that adds moisture without overdoing it.
- Room-temperature ingredients: Cold eggs and milk can make the batter curdle, so let them sit on the counter for 30 minutes before starting.
- Don’t overmix: Once the flour is added, mix only until no streaks remain. Overmixing develops gluten and makes the cake tough.
- Check for doneness: Ovens vary, so start checking at 50 minutes. The cake is ready when a toothpick comes out clean or with just a few crumbs attached.
Serving Suggestions
Serve slices slightly warm with a scoop of vanilla ice cream or a dollop of whipped cream. For a brunch spread, pair it with fresh fruit and coffee. The cake is also delicious plain, with its own pineapple-chocolate flavor shining through.
Variations
- Use fresh pineapple: Finely chop 1 cup of fresh pineapple and pat it dry with paper towels. Omit the reserved juice if the fruit is very juicy.
- Add nuts: Fold 1/2 cup of chopped macadamia nuts or walnuts into the plain batter for extra crunch.
- Swap the chocolate: Use white chocolate swirl instead of dark cocoa—just melt 1/2 cup white chocolate chips with 2 tablespoons of milk and swirl it in.
- Make it a bundt: Bake in a greased 10-cup bundt pan for 45–55 minutes, adjusting time as needed.
Storage and Reheating
Store the cake in an airtight container at room temperature for up to 3 days. For longer storage, wrap it tightly in plastic wrap and refrigerate for up to 5 days—cold cake is firmer but still moist. You can also freeze the whole cake or slices for up to 3 months; wrap in plastic and then foil. To reheat, microwave a slice for 10–15 seconds, or warm in a 300°F (150°C) oven for 5–8 minutes.
Frequently Asked Questions
Can I use canned pineapple chunks instead of crushed?
Yes, but chop them finely before measuring. Make sure to drain them well, and still reserve a couple of tablespoons of juice for the batter.
Why did my cake sink in the middle?
A sunken center usually means the cake was underbaked or the oven door was opened too early. Check your oven temperature with an oven thermometer, and avoid opening the door during the first 30 minutes of baking.
Can I make this cake gluten-free?
You can substitute a 1:1 gluten-free flour blend, but the texture may be slightly crumblier. Add 1/4 teaspoon of xanthan gum if your blend doesn’t include it.
How do I get a clean marble pattern?
Don’t over-swirl. Two or three figure-eight motions with a knife are enough. Overmixing the batters will create a muddy brown cake instead of distinct swirls.
Can I reduce the sugar?
You can cut the sugar to 3/4 cup, but the cake will be less tender and slightly less sweet. The pineapple adds natural sweetness, so it will still be enjoyable.
Is it safe to eat the batter?
No—raw flour and raw eggs can contain harmful bacteria. Always bake the cake fully before eating.