Sunshine Cake
Sunshine Cake is a dense and incredibly moist chilled cake made with mayonnaise, crushed pineapple, and mandarin oranges in a 9×13 pan. It is very refreshing when the weather is hot, making it an easy summer dessert!
If you enjoy this cake, make sure to try my Banana Cake Using a Box Cake Mix or my Strawberry Poke Cake!

Sunshine Cake Recipe
To me, there’s just nothing better than a good 9×13 cake that is simple to make, always popular, and easy to serve.
Plus, this 9×13 pineapple and mandarin sunshine cake recipe serves quite few people very easily – just perfect for any gathering or potluck meal. It provides 12 very generous servings. Because the cake is so dense and rich, you could easily make the portions smaller to serve 15-18 people.
Save this Recipe
Get the recipe emailed to you + sign up for all our latest!
This cake gets better the longer it sits in the fridge. I like to make it the day ahead of when I need it so that it’s really well chilled and has time to let all the flavors meld together.
In short, it’s a good old-fashioned cake with mayo that has only 7 ingredients that you can count on to be delicious, dense, and super moist every time.
Ingredients

- Yellow cake mix: You can substitute a white cake mix.
- Eggs
- Mayonnaise: This is the secret ingredient that makes this cake so very moist.
- Canned crushed pineapple: Drain well and don’t forget to reserve the juice.
- Whipped topping: aka Cool Whip in a tub that’s in the freezer section.
- Instant vanilla pudding mix
- Canned mandarin oranges: Drain these well so when placed on top of the cake as garnish, they don’t make little pools of excess liquid.
How to make Sunshine Cake

In a large mixing bowl, place the cake mix, eggs, mayonnaise, 1/3 cup reserve pineapple juice, and half of the can of crushed pineapple.

Use an electric hand mixer on low speed to beat the ingredients together. Increase the speed to high and beat the batter for 1 minute.

Spread the prepared cake batter into a greased 9×13 baking dish.

Bake, uncovered, on the center oven rack for 30-35 minutes, just until a toothpick inserted into the center of cake comes out clean.

Remove the cake from the oven and immediately cover with a sheet of foil. Let the covered cake cool completely on a wire cooling rack.

Meanwhile, in a medium mixing bowl, gently fold together the whipped topping, pudding mix, half of the mandarin oranges, and the remaining half of the crushed pineapple to make the frosting.
Spread the prepared frosting over the cooled cake, then decorate the top of the cake with more mandarin orange slices, as desired.
Cover the cake and chill well, at least 8-10 hours. Cake is best served very well chilled.

Cooking Tips
- Covering the hot cake with foil traps the heat and creates condensation that goes down into the cake making it super dense and moist.
- Once the cake is fully cooled, chill very well before adding the frosting. Chill again for serving it as the best eating experience. Because this cake is so dense, it takes a good 8-10 hours to be fully chilled.
- Don’t be weird-ed out by the mayonnaise as part of the cake batter! We think of mayonnaise for sandwiches and savory dishes, but technically, mayonnaise is just whipped eggs so it’s perfect for making a very moist cake.
No, disregard the cake mix directions and use the directions in the recipe card below.
It might seem weird, but it’s actually NOT! Mayonnaise is technically whipped eggs with oil so it’s PERFECT for making a cake that’s very very moist. Don’t skip the mayo!
Yes. You can make 2 8X8 inch or 9X9 inche cakes using this recipe if preferred. Just remember to adjust the baking time if needed since smaller cakes don’t take as long to bake.
I like to use a cake tester or a wooden toothpick to test my baked cakes.
When a cake tester or toothpick inserted into the center of the baked comes out clean (no batter is clinging to the cake tester or toothpick), the cake is fully baked at the center.
This is a hack that my Grandmothers and my Mom taught me! Covering a hot cake with foil traps the heat creating condensation.
The condensation goes down into the cake making it super moist. Once the cake is fully cooled, you can frost it and chill until ready to serve.
More Summertime Desserts
Summertime desserts are a favorite at my house. We love this easy Strawberry Slab Pie for a crowd and this chocolate Texas Sheet Cake.

Sunshine Cake
Ingredients
For the Cake
- 13 ounce yellow cake mix
- 3 large eggs
- 1 cup mayonnaise
- 20 ounce can crushed pineapple drained and juice reserved
- 1/3 cup reserved pineapple juice
For the Frosting
- 8 ounce container frozen whipped topping fully thawed
- 3 ounce box instant vanilla pudding mix
- 20 ounce can mandarin oranges well drained
Instructions
- Preheat the oven to 350 degrees F. Spray a 9×13 baking pan with nonstick spray; reserve.
- In a large mixing bowl, combine the cake mix, eggs, mayonnaise, reserved pineapple juice, and half of the can of crushed pineapple. (You will use the remaining half of the crushed pineapple for the frosting.)13 ounce yellow cake mix, 3 large eggs, 1 cup mayonnaise, 20 ounce can crushed pineapple, 1/3 cup reserved pineapple juice
- Using an electric hand mixer on low speed to beat the ingredients together. Increase the speed to high and beat the batter for 1 minute.
- Spread the prepared cake batter into a greased 9×13 baking dish.
- Bake, uncovered, on the center oven rack for 30-35 minutes, just until a toothpick inserted into the center of cake comes out clean.
- Remove the cake from the oven and immediately cover the pan with a sheet of foil; let the covered cake cool completely on a wire cooling rack.
- Meanwhile, in a medium mixing bowl, gently fold together the whipped topping, pudding mix, half of the mandarin oranges, and the remaining half of the crushed pineapple. Chill the frosting while the cake continues to cool.8 ounce container frozen whipped topping, 3 ounce box instant vanilla pudding mix, 20 ounce can mandarin oranges
- Spread the chilled frosting over the cooled cake, then decorate the top of the cake with remaming can of well drained mandarin orange slices, as desired.
- Cover the cake and chill well, at least 8-10 hours. Cake is best served very well chilled.
Notes
- Make sure to cover the hot cake with foil traps the heat and creates condensation that goes down into the cake making it super dense and moist.
- Once the cake is fully cooled, chill very well before adding the frosting. Chill again for serving it as the best eating experience. Because this cake is so dense, it takes a good 8-10 hours to be fully chilled.
- Don’t be weird-ed out by the mayonnaise as part of the cake batter! We think of mayonnaise for sandwiches and savory dishes, but technically, mayonnaise is just whipped eggs so it’s perfect for making a very moist cake.
how long can I make this cake ahead of time?
Hi – You could easily make this cake a day ahead, possibly even 2 days. I’d wait until just prior to serving before placing the mandarin oranges on top, though.
Let me know if you like this recipe!
Chef Alli