Quick Recipe Overview: This pineapple coconut sheet cake is a single-layer butter cake packed with 1 cup of well-drained crushed pineapple and 1/3 cup unsweetened shredded coconut. It bakes in an 8-inch pan at 350°F for 35–45 minutes and cuts into 9 tender, tropical squares.
Best method: Drain the pineapple in a sieve and press it lightly before measuring; excess juice is the main cause of a gummy center.
| Prep | 20 minutes | Bake | 35–45 minutes at 350°F |
|---|---|---|---|
| Cool | 30 minutes | Total | About 1 1/2 hours |
| Yield | 9 squares | Pan | 8-inch square (single layer) |
Pineapple coconut sheet cake brings the flavor of a piña colada to a simple, single-layer snack cake. A full cup of crushed pineapple gives sweet, juicy bites all the way through, and 1/3 cup of unsweetened coconut adds a gentle chew and toasty flavor on top of the classic butter-and-vanilla base.
This smaller version is sized for an 8-inch pan, so it’s perfect for a family or a small gathering rather than a crowd. It’s a friendly bake for beginners: canned pineapple is available all year, there’s no frosting to make, and the method is a straightforward creamed butter cake.
Equipment
- 8-inch square cake pan, lined with parchment with an overhang for lifting.
- Fine-mesh sieve and a bowl for draining the pineapple.
- Hand or stand mixer for creaming the butter and sugar.
- Kitchen scale, rubber spatula, skewer and cooling rack.
- Small skillet (optional) to toast extra coconut for the top.
Ingredients, substitutions and allergens
| Ingredient | Amount | Notes and swaps |
|---|---|---|
| All-purpose flour | 180 g (about 1 1/2 cups) | Structure. Spoon and level if not weighing. |
| Baking powder | 1 1/2 teaspoons | Lift. |
| Fine salt | 1/4 teaspoon | Balances the sweet fruit. |
| Unsalted butter, softened | 115 g (1/2 cup) | Flavor and tender crumb. |
| Granulated sugar | 150 g (3/4 cup) | Sweetness. Crushed pineapple packed in juice (not syrup) keeps the cake from being too sweet. |
| Large eggs | 2 | Room temperature helps them blend smoothly. |
| Milk | 90 ml (6 tablespoons) | Moisture. Canned coconut milk (well stirred) can replace it for more coconut flavor. |
| Vanilla extract | 1 teaspoon | Rounds out the fruit. |
| Crushed pineapple, well drained | 1 cup, measured after draining | The star. Fresh pineapple, finely chopped and drained, also works. |
| Unsweetened shredded coconut | 1/3 cup | Texture and coconut flavor. Sweetened coconut works but makes the cake sweeter. |
| Neutral oil | 1 teaspoon | For the pan. |
| Powdered sugar | 2 tablespoons | For dusting after cooling. |
Allergens: contains wheat, milk and eggs. It also contains coconut; if you are cooking for someone who avoids coconut, leave it out or ask them first. No peanuts or other nuts as written.
Why it works: drain, measure, fold
Pineapple is mostly juice. Crushed pineapple straight from the can carries a lot of liquid. Added undrained, that liquid would make the batter too wet to set in the center, giving a heavy, gummy middle. Draining in a sieve and pressing lightly with a spoon leaves the fruit moist but not dripping, and measuring after draining keeps the fruit-to-batter ratio right.
Coconut soaks up a little moisture. Shredded coconut absorbs some of the remaining pineapple juice in the oven, which helps the crumb set and gives a pleasant chew.
A creamed butter base holds the fruit. Beating butter and sugar until light builds a stable, airy batter that can carry a full cup of fruit without collapsing.
Tip: Save the drained pineapple juice. Whisk 2–3 teaspoons of it into 1/2 cup powdered sugar for a quick glaze instead of dusting.
Step-by-step method
- Drain the pineapple (10 minutes). Tip the crushed pineapple into a sieve over a bowl and let it drain, pressing gently with a spoon. Measure 1 cup. Cue: the fruit holds together and no longer drips.
- Prep (5 minutes). Heat the oven to 350°F (175°C). Grease and line the pan. Whisk the flour, baking powder and salt.
- Cream butter and sugar (3–4 minutes). Beat until pale and fluffy. Beat in the eggs one at a time. Cue: smooth and light, no visible butter streaks.
- Add milk and vanilla (1 minute). Mix on low until combined.
- Fold in the flour (1 minute). Cue: stop as soon as no dry flour is visible.
- Fold in pineapple and coconut (1 minute). Fold gently, then spread evenly in the pan.
- Bake (35–45 minutes). Avoid opening the oven during the first 20 minutes. Cue: golden top, center springs back, skewer shows no raw batter (moist crumbs from the fruit are fine). Tent with foil if it browns early.
- Cool (30 minutes). Cool 15 minutes in the pan, lift out and cool on a rack at least 15 minutes more. Dust with powdered sugar or glaze once cool.
Make-ahead timeline: drain the pineapple and refrigerate it the night before; bring the butter and eggs to room temperature while the oven heats. The cake keeps well for a couple of days, so it’s a good bake-ahead dessert.
Food safety: don’t eat raw batter; it contains raw eggs and raw flour. See the FDA’s Handling Flour Safely: What You Need to Know. Refrigerate any opened, unused pineapple in a covered container. Because this cake is moist with fruit, refrigerate leftovers within 2 hours and eat within 3–4 days, as the USDA recommends for leftovers.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| Gummy, wet center | Pineapple not drained well | Drain and press the fruit; measure after draining. Bake until the skewer test passes. |
| Fruit clumped at the bottom | Wet fruit or overmixed batter | Drain well and fold gently; spread the batter evenly. |
| Too sweet | Pineapple in heavy syrup, sweetened coconut | Use pineapple in juice and unsweetened coconut. |
| Coconut on top burned | Coconut toasts quickly | Fold coconut into the batter, or tent with foil after 20–25 minutes. |
| Cake sank | Oven opened early or underbaked | Keep the door closed for the first 20 minutes and test the center. |
| Dry edges | Overbaked or dark pan | Start checking at 35 minutes; use a light metal pan. |
What to serve with it
Serve squares plain, with whipped cream or vanilla ice cream, or with a spoonful of Greek yogurt and lime zest for breakfast.
- Love the flavor combination? Try the pineapple coconut breakfast oat bake for mornings.
- For a spoonable dessert with a crunchy top, make the pineapple coconut crumble.
- Planning a cookout? Serve it after ground chicken pineapple rice with ginger.
Make-ahead, storage and reheating
Refrigerator: store covered for up to 3–4 days. The fruit keeps it moist; let squares sit out 15 minutes before eating.
Freezer: freeze undusted, unglazed squares wrapped tightly for up to 3 months. Thaw in the fridge.
Reheating: it’s best at room temperature, but a few seconds in the microwave warms a square nicely.
Frequently asked questions
Can I use fresh pineapple?
Yes. Chop it very finely (or pulse briefly in a food processor), then drain it the same way and measure 1 cup.
Can I use pineapple tidbits or chunks?
Chop them small first. Big pieces are heavy and wet and tend to sink.
Why is it called a sheet cake if it’s in an 8-inch pan?
It’s a single, flat layer served straight from the pan, sheet-cake style. To make a larger 9×13-inch version, double the recipe and rely on the skewer test for timing.
Can I make it dairy-free?
Use canned coconut milk instead of milk and a plant-based baking butter in place of butter. The texture may be slightly different.
Should I toast the coconut?
Not for the batter. For a garnish, toast 2 tablespoons of coconut in a dry skillet over medium-low heat, stirring constantly, until lightly golden.
How do I know it’s done?
The center springs back when pressed and a skewer comes out with no wet batter. A few moist crumbs from pineapple are normal.
Can I add a frosting?
Yes. A thin cream cheese frosting or the pineapple juice glaze from the tip above both work. Refrigerate a cream cheese–frosted cake.
Can I add nuts?
Fold in 1/3 cup chopped toasted macadamias or pecans if no one has a nut allergy.
Recommended tools
- Fine-mesh strainer for draining fruit
- 8×8-inch metal baking pan
- Hand mixer for creaming
As an Amazon Associate I earn from qualifying purchases.
The bottom line
Drain the pineapple well, fold gently and give the center time to set. You’ll get a soft, tropical pineapple coconut sheet cake that’s sized right for a family and keeps for days.

Pineapple Coconut Sheet Cake
Ingredients
Equipment
Method
- Drain the pineapple in a sieve, pressing lightly; measure 1 cup.
- Heat the oven to 350°F (175°C). Grease and line an 8-inch pan. Whisk the flour, baking powder and salt.
- Beat the butter and sugar until pale. Beat in the eggs one at a time, then the milk and vanilla.
- Fold in the dry mix just until no dry pockets remain. Fold in the pineapple and coconut; spread in the pan.
- Bake 35–45 minutes, until the center springs back and a skewer shows no raw batter. Tent with foil if needed.
- Cool 15 minutes in the pan, then on a rack at least 15 minutes. Dust with powdered sugar.




