This stunning patriotic dessert combines tropical flavors with celebratory presentation. Moist layers infused with crushed pineapple and sweetened coconut create a tender crumb, while the rich cream cheese frosting adds tangy sweetness. Fresh strawberries and blueberries arranged in festive patterns make this centerpiece ideal for Independence Day, Memorial Day, or any summer gathering.
The assembly process is straightforward: bake two golden layers, whip up the velvety frosting, then decorate with vibrant berries. Advanced preparation is possible—bake layers ahead and refrigerate, or freeze unfrosted layers for up to three months.
The Fourth of July potluck was in three hours and I had volunteered to bring dessert without considering July heat or my tiny apartment kitchen. I'd been craving something tropical but festive, and this pineapple coconut cake with cream cheese frosting and berries just clicked. My roommate wandered in midway through frosting, took one look at the counter covered in coconut and red berries, and asked if I was starting a bakery. We ended up eating the trimmings standing up while the cake cooled faster than I planned.
My grandmother used to make coconut cake for every family gathering, always apologizing that it was too dry or too sweet. I started experimenting with pineapple after tasting a Hawaiian version at a beachside cafe, realizing the fruit's natural moisture solves everything. Now this cake shows up at birthdays, holidays, and random Tuesdays when someone needs cheering up. Last summer my niece helped arrange the berries in the flag pattern and declared herself the official cake decorator.
Ingredients
- All-purpose flour: Provides the structure for this moist cake, and weighing it ensures consistency
- Baking powder and baking soda: Work together to give the cake lift and a tender crumb
- Salt: Balances the sweetness and brings out all the flavors
- Granulated and brown sugar: The combination gives the cake sweetness and subtle depth from the molasses in brown sugar
- Unsalted butter: Adds richness at room temperature for easier creaming
- Vegetable oil: Keeps the cake incredibly moist for days
- Large eggs: Bind everything together and add structure
- Vanilla extract: Pure vanilla makes all the difference here
- Crushed pineapple: The secret ingredient that keeps the cake moist and adds tropical sweetness
- Sweetened shredded coconut: Distributes throughout the cake for texture and flavor in every bite
- Whole milk: Adds moisture and helps create a tender crumb
- Cream cheese: Must be completely softened for smooth frosting
- Unsalted butter for frosting: Creates a stable, creamy base for the frosting
- Powdered sugar: Sifting prevents lumps in your silky frosting
- Fresh strawberries and blueberries: The patriotic crown that makes this cake celebration ready
- Toasted coconut: Optional but adds gorgeous flavor and crunch on top
Instructions
- Preheat your oven:
- Set it to 350°F and grease two 9 inch round cake pans, lining the bottoms with parchment paper for easy removal later
- Whisk the dry ingredients:
- Combine flour, baking powder, baking soda, and salt in a medium bowl and set it aside
- Cream the sugars and fats:
- Beat granulated sugar, brown sugar, butter, and oil until light and fluffy, which takes about 2 to 3 minutes of patience
- Add the eggs:
- Add them one at a time, beating well after each, then mix in the vanilla extract
- Fold in the fruit and coconut:
- Gently stir in the well drained pineapple and shredded coconut until evenly distributed
- Combine wet and dry ingredients:
- Add the flour mixture in three additions, alternating with milk, starting and ending with the dry ingredients and mixing only until just combined
- Bake the layers:
- Divide batter evenly between the pans and bake for 30 to 35 minutes until a toothpick comes out clean
- Cool completely:
- Let the cakes rest in pans for 10 minutes before turning them onto a wire rack to cool entirely
- Make the frosting:
- Beat softened cream cheese and butter until creamy, then gradually add sifted powdered sugar, vanilla, and salt until fluffy
- Assemble and decorate:
- Spread frosting between layers and over the cake, then arrange strawberries and blueberries in a festive pattern
This cake has become my go to for bringing people together, whether it is a holiday potluck or just because Tuesday needed celebrating. Something about the combination of tropical flavors and festive decoration makes people linger around the dessert table longer. I've learned to always make the full recipe even for small gatherings because there are never leftovers.
Make It Ahead
The cake layers can be wrapped well and frozen for up to a month, which has saved me more than once when party day sneaks up. Thaw them overnight in the refrigerator before frosting. The frosting can be made a day ahead and stored in the fridge, but bring it to room temperature and give it a quick whip before spreading.
Frosting Like a Pro
I spent years struggling with crumb filled frosting until I learned to apply a thin crumb coat first and chill the cake for 15 minutes. This locks in loose crumbs and creates a smooth base for your final layer. An offset spatula makes everything easier, dipping it in hot water helps glide the frosting smoothly.
Serving and Storage
This cake needs to be refrigerated because of the cream cheese frosting, but bring it to room temperature about 30 minutes before serving for the best texture and flavor. The berries release some moisture over time, so it is best decorated the day of serving. Leftovers keep well covered in the fridge for up to 3 days, though I have never seen it last that long.
- Use cake strips around the pans for perfectly flat layers
- Reserve some pineapple juice to brush over the layers for extra moisture
- Toast coconut in a dry pan over medium heat, watching constantly so it does not burn
There is something joyful about cutting into this cake and revealing those patriotic colors against the cream cheese frosting. Hope it brings celebration to your table too.
Recipe Questions & Answers
- → Can I make the cake layers in advance?
-
Yes, bake and cool the layers completely, then wrap tightly in plastic and refrigerate for up to 2 days or freeze for up to 3 months. Thaw frozen layers overnight before frosting and decorating.
- → What's the best way to arrange the berries?
-
Create a flag pattern by arranging strawberries in stripes and blueberries in a corner square, or swirl them in a decorative spiral. Work quickly once layers are frosted, as fresh berries can release moisture.
- → Can I use fresh pineapple instead of canned?
-
Fresh pineapple works well—grate and drain thoroughly, pressing out excess liquid. You may need slightly more fresh pineapple to equal the canned amount since it's less concentrated.
- → How should I store the decorated cake?
-
Refrigerate covered for up to 3 days. The cream cheese frosting requires cool temperatures. Bring to room temperature 30 minutes before serving for optimal texture and flavor.
- → Can I make this in different pan sizes?
-
Yes, use three 8-inch rounds for thinner layers, one 9x13-inch pan for a sheet cake, or a bundt pan (adjust baking time to 45-55 minutes). Monitor closely for doneness.
- → What can I substitute for the cream cheese frosting?
-
Whipped cream stabilized with gelatin, vanilla buttercream, or coconut whipped cream all work beautifully. Each offers a slightly different flavor profile and sweetness level.