
Pineapple Coconut Squares are my little solution for those days when you want something sweet and tropical, but you do not want to fuss with frosting or fancy layers. You know the feeling, you open the pantry, you see a can of pineapple, a bag of coconut, and you just want dessert to happen. These bars come out soft in the middle, chewy on top, and buttery underneath, which is basically all I ask from a simple treat. I make them for potlucks, lazy weekends, and the random Tuesday when life feels a bit too plain. If you have ever had a dry coconut bar, do not worry, we are not doing that here.
Why This Pineapple Coconut Squares Recipe Works Every Time (Soft, Chewy & Buttery)
The big reason these work is the combo of a sturdy shortbread base plus a filling that stays moist. The crust is pressed in, baked a bit, then the pineapple coconut layer goes on top and finishes in the oven. That two step bake keeps the bottom from getting soggy, which is the fastest way to ruin a good bar.
I also like that the texture is forgiving. Even if you bake them a minute or two longer than planned, they still stay pleasantly chewy because coconut holds on to moisture. And the pineapple brings that sweet tart punch that makes everything taste brighter.
If you are a coconut fan like me, you will probably end up using coconut in dinner too. I do that all the time, like this cozy coconut curry soup when I want something warm and comforting before a tropical dessert.
Key Ingredients for Pineapple Coconut Squares (Pineapple, Coconut, Shortbread Base)
Nothing weird here, just simple stuff that behaves well together. Here is what you will need, and yes, the details matter a little, especially draining the pineapple.
- Crushed pineapple: canned is perfect, just drain it well
- Sweetened shredded coconut: gives that chewy top and extra sweetness
- Butter: real butter makes the crust taste like a bakery bar
- Flour: all purpose flour for the shortbread base
- Sugar: for both crust and filling
- Eggs: hold the filling together so it slices clean
- Vanilla and a pinch of salt: small, but they make the flavor pop
Quick pineapple tip from too many batches: after draining, press it lightly in a strainer with the back of a spoon. Not bone dry, just not dripping. That one step helps your Pineapple Coconut Squares bake up soft, not wet.
Ingredient Substitutions & Dietary Options (Gluten-Free, Dairy-Free, Vegan Variations)
I am all about making recipes work with what you have, so here are some easy swaps. Just know that the crust texture changes a bit depending on what you use.
Easy swaps that usually work
Gluten-free: Use a 1 to 1 gluten-free baking flour in the crust. Press it firmly and bake the crust until it looks lightly golden at the edges.
Dairy-free: Swap butter with a dairy-free butter stick. The crust may be slightly softer, but still good.
Vegan: This one is trickier because eggs give structure. You can try a flax egg (1 tbsp ground flax + 3 tbsp water per egg), but expect a softer set. Chill longer before slicing.
Lower sugar: Cut sugar a bit, but do not slash it too much or the filling can taste flat. I would reduce by 2 to 3 tablespoons, not more.
And if you are in a coconut mood all week, I get it. I have served these bars after a simple dinner like Brazilian coconut chicken and it felt like a whole mini vacation at the table.
How to Make Pineapple Coconut Squares Step-by-Step (Beginner-Friendly Instructions)
This is the no stress method I use. Read it once, then bake along. You have got this.
1) Prep your pan: Heat oven to 350 F. Line an 8×8 pan with parchment so you can lift the bars out later. Lightly butter the parchment.
2) Make the crust: Mix softened butter, sugar, flour, and a pinch of salt. It will look a bit crumbly, but should press together when you squeeze it.
3) Prebake: Press crust into the pan in an even layer. Bake 12 to 15 minutes until the edges barely start to turn golden.
4) Mix filling: In a bowl, stir eggs, sugar, vanilla, drained crushed pineapple, and shredded coconut.
5) Bake again: Pour filling over the warm crust and spread evenly. Bake 22 to 28 minutes, until the top looks set and lightly golden and the center does not jiggle much.
6) Cool fully: This part matters. Cool at room temp, then chill 1 to 2 hours before slicing for clean squares.
If you want a tropical dinner pairing, fish is honestly so good with pineapple flavors. This baked cod in coconut lemon is bright and easy, and then you can roll right into dessert without heavy vibes.
How to Make the Perfect Buttery Shortbread Crust for Coconut Pineapple Bars
The crust is where the buttery magic happens. I keep it simple: butter, sugar, flour, salt. No baking powder. No complicated steps.
My best crust tips:
Use softened butter, not melted. Melted butter can make the base greasy and too dense.
Press evenly. I use the bottom of a measuring cup to press it flat, especially around the edges.
Do not skip the prebake. It helps the crust stay crisp edged and not soggy.
If you like a slightly thicker base, use a 9×9 pan instead of 9×13, but know the bars will be taller and may need a few extra minutes.
How to Prepare the Sweet Pineapple Coconut Filling for Maximum Flavor
The filling is basically a tropical hug. Pineapple brings the brightness, coconut brings chew, eggs bring structure.
To boost flavor without making it complicated:
Add a tiny pinch of salt to the filling. It balances sweetness.
Vanilla helps more than you think. If you have coconut extract, you can add a couple drops, but do not overdo it.
Drain pineapple well. I know I said it already, but this is the whole game.
Also, mix gently. You do not need to beat air into it, you just want it combined.
Baking Tips for Soft, Chewy, and Moist Pineapple Coconut Dessert Bars
These bars should feel soft in the center when warm, then set as they cool. If you are chasing that perfect soft and chewy bite, here is what works for me.
Do not overbake. If the edges are deep golden and the top is getting dark, you have gone too far. Look for lightly golden and set.
Cool completely before cutting. Warm Pineapple Coconut Squares will fall apart, and you will think you did something wrong. You did not.
Chill for clean slices. Even 60 minutes in the fridge makes them neat and pretty.
If your oven runs hot, check 5 minutes early. Coconut can brown fast.
Common Mistakes to Avoid When Making Pineapple Coconut Squares
I have made all these mistakes so you do not have to.
Mistake 1: Not draining pineapple. Too wet means the filling can turn gummy and the crust gets soggy.
Mistake 2: Cutting too soon. The bars need time to set. Patience tastes better here.
Mistake 3: Packing coconut too tightly in measuring cups. Lightly fill the cup so you do not end up with a dry, overly coconut heavy top.
Mistake 4: Overbaking the crust prebake. If the crust gets too brown before the filling goes on, it can taste a little overdone after the second bake.
Recipe Variations (Hawaiian Pineapple Bars, Chocolate Chip, Nutty Coconut Versions)
This recipe is flexible, which is great because everyone has opinions about coconut desserts.
Hawaiian style: Add 2 tablespoons chopped macadamia nuts and a little lime zest.
Chocolate chip: Stir mini chocolate chips into the filling. It turns into a tropical candy bar situation.
Nutty coconut: Add sliced almonds on top during the last 10 minutes of baking.
Extra tang: Add 1 to 2 tablespoons lemon juice to the filling for a brighter bite.
Just do not overload it, or the filling will not set as nicely.
Serving Ideas for Pineapple Coconut Squares (Dessert, Snacks, Parties, Potlucks)
These are one of my favorite bring along desserts because they travel well and they do not need frosting.
- Dust with a little powdered sugar right before serving
- Serve cold for extra chew, or room temp for softer bites
- Add a scoop of vanilla ice cream if you want to be a hero
- Cut into small squares for a dessert tray
- Pack two in a container for an afternoon snack
If you are building a full menu with coconut flavors, I love doing something cozy and soup based first, like crockpot Thai coconut chicken soup, then finishing with these sweet bars.
How to Store Pineapple Coconut Squares (Room Temperature, Refrigerator, Freshness Tips)
Once they are completely cooled and sliced, you have options.
Room temperature: Store in an airtight container up to 2 days. Keep them out of direct sun or heat.
Refrigerator: Store up to 5 to 6 days. I actually like them chilled because the coconut gets extra chewy.
Freshness tip: Place parchment between layers so they do not stick together.
Freezing and Make-Ahead Instructions for Pineapple Coconut Dessert Bars
These freeze surprisingly well, which is great when you want a treat on standby.
To freeze: Chill the bars first, slice, then wrap individual squares in plastic wrap and store in a freezer bag. Freeze up to 2 months.
To thaw: Thaw in the fridge overnight or on the counter for about 30 to 60 minutes.
Make-ahead: Bake the day before your event, chill overnight, then slice in the morning. Pineapple Coconut Squares are actually nicer the next day because the flavors settle in.
Nutrition Information, Calories, and Portion Control for Coconut Pineapple Squares
Nutrition will vary depending on your exact ingredients, but here is the honest vibe: these are dessert bars with butter, sugar, and coconut, so they are meant to be enjoyed, not micromanaged.
If you want a reasonable portion, I suggest cutting an 8×8 pan into 16 squares. You get a satisfying sweet bite without feeling like you need a nap after. If you are serving them with ice cream, go even smaller and cut 20 pieces.
Common Questions
Can I use pineapple chunks instead of crushed?
You can, but chop them small. Crushed pineapple spreads flavor more evenly and helps the filling set better.
Why did my crust get soggy?
Usually it is pineapple that was not drained enough, or skipping the crust prebake. Both matter for a crisp base.
Do I have to refrigerate them?
No, but I recommend it after day one. The fridge keeps them fresh longer and makes them easier to slice.
Can I double this recipe?
Yes. Use a 9×13 pan and start checking for doneness around 28 minutes after adding the filling. It may take a bit longer depending on your oven.
How do I know they are done baking?
The top should look set and lightly golden, and the center should only jiggle a tiny bit. It will firm up as it cools.
A Sweet Little Send-Off
If you want an easy tropical treat that feels special but still low effort, Pineapple Coconut Squares are it. You get a buttery shortbread base, a soft chewy coconut top, and that bright pineapple flavor that makes people reach for seconds. If you want more inspiration, I have definitely bookmarked recipes like Pineapple Coconut Bars | Barefeet In The Kitchen and Easy Coconut Pineapple Squares – An Italian in my Kitchen when I am in a baking rut. Bake a batch, let them chill, and tell me if you can stop at just one, because I rarely can.
Print
Pineapple Coconut Squares
- Total Time: 55 minutes
- Yield: 16 squares
Description
These soft, chewy, and buttery bars combine crushed pineapple and shredded coconut for a delightful tropical treat that’s easy to prepare and perfect for any occasion.
Ingredients
For the crust
- 1 cup Butter, softened (Real butter for best flavor.)
- 1 cup Sugar (For sweetness.)
- 2 cups All-purpose flour (For the shortbread base.)
- 1 pinch Salt (Enhances flavor.)
For the filling
- 2 large Eggs (Holds the filling together.)
- 1 cup Sugar (Additional sweetness for the filling.)
- 1 teaspoon Vanilla extract (Adds flavor.)
- 1 can Crushed pineapple, drained (Press lightly in a strainer after draining.)
- 1 cup Sweetened shredded coconut (For the chewy topping.)
Instructions
Preparation
- Preheat the oven to 350°F (175°C). Line an 8×8 inch pan with parchment paper and lightly butter the parchment.
- In a mixing bowl, combine softened butter, sugar, flour, and a pinch of salt. Mix until crumbly but holds together when pressed.
- Press the crust mixture into the prepared pan in an even layer and prebake for 12 to 15 minutes until edges are lightly golden.
Filling
- In another bowl, stir together the eggs, sugar, vanilla, drained crushed pineapple, and shredded coconut until well combined.
- Pour the filling over the warm crust and spread it evenly. Bake again for 22 to 28 minutes until the top is set and lightly golden.
- Allow to cool completely at room temperature, then chill for 1 to 2 hours before slicing into squares.
Notes
For best results, ensure pineapple is well-drained to prevent sogginess. To store, keep in an airtight container. They can be frozen for up to 2 months. You can add a scoop of vanilla ice cream when serving for a special treat.
- Prep Time: 15 minutes
- Cook Time: 40 minutes
- Category: Dessert, Snack
- Cuisine: American, Tropical





