Time: 1 hr 15 min · Serves: 12 · The key step: Sprinkle the coconut and pecans over the batter, then dollop the cream cheese mixture on top — it sinks and swirls as it bakes. This is a rich, fudgy sheet cake with a crackly, caramelized top, chewy coconut, and toasted pecans. It’s a casual dessert for potlucks, birthdays, or any day you want a big pan of chocolate cake with almost no fuss.
Ingredients
- 1 box (15.25 oz / 432 g) chocolate cake mix (plus eggs, oil, and water called for on the box)
- 1 cup (120 g) sweetened shredded coconut
- 1 cup (120 g) chopped pecans or walnuts
- 8 oz (226 g) cream cheese, softened
- 1/2 cup (113 g) unsalted butter, softened
- 3 3/4 cups (450 g) powdered sugar
- 1 tsp vanilla extract
Instructions
- Heat the oven to 350°F (175°C). Grease a 9×13-inch (23×33 cm) baking pan.
- Prepare the cake mix according to the package directions (usually 3 eggs, 1/3 cup oil, and 1 cup water). Pour the batter into the prepared pan and spread evenly.
- Sprinkle the shredded coconut evenly over the batter, then sprinkle the chopped nuts on top.
- In a medium bowl, beat the cream cheese and butter until smooth. Add the powdered sugar and vanilla, and beat until creamy and thick.
- Drop the cream cheese mixture by spoonfuls over the coconut and nuts. Don’t spread it — leave it in clumps so it sinks unevenly as it bakes.
- Bake for 50–60 minutes, until the top is deep golden brown and the center is set (a toothpick inserted into the cake part should come out with a few moist crumbs, but the cream cheese swirl will be soft). The edges will be dark and caramelized.
- Cool in the pan on a wire rack for at least 30 minutes before serving. The cake is delicious warm, but it cuts cleaner once cooled.
Why It’s Called Earthquake Cake
The name comes from the way the cream cheese mixture sinks into the cake as it bakes, creating a cracked, swirled top that looks like the ground shifted. The coconut and pecans stay on top and toast to a golden, chewy layer. It’s a dump-and-bake style dessert — no mixer needed for the cake itself, just a spoon for the batter.
Swaps and Add-Ins
No Chocolate Cake Mix?
Use a yellow or vanilla cake mix for a lighter flavor, or a German chocolate mix for extra caramel notes. The bake time stays the same. If you want a from-scratch chocolate cake, use your favorite 9×13-inch recipe — about 2 cups of batter — and keep the topping amounts the same.
Nut-Free Version
Omit the pecans or replace with an equal amount of toasted sunflower seeds or extra coconut. The cake will be slightly less crunchy but still full of coconut flavor.
Add a Chocolate Layer
For a more intense chocolate hit, sprinkle 1/2 cup (90 g) semisweet chocolate chips over the coconut before adding the cream cheese. They’ll melt into the batter as it bakes.
Doneness Cues and Serving
The cake is done when the top is a deep golden brown and the center springs back when lightly pressed. A toothpick inserted into the cake portion (not the cream cheese swirl) should come out with a few moist crumbs, not wet batter. The cream cheese swirl will look soft and slightly jiggly — that’s normal and it sets as it cools.
Serve warm with vanilla ice cream or whipped cream. The contrast of hot fudgy cake and cold ice cream is the classic pairing. The cake is also good at room temperature for a picnic or lunchbox treat.
Storing and Reheating
Cover the pan tightly and refrigerate within 2 hours of baking. The cake keeps 3–4 days in the fridge. Because of the cream cheese topping, it must be refrigerated — don’t leave it out overnight. To serve cold, cut straight from the fridge; to serve warm, microwave individual slices for 15–20 seconds. The cake also freezes well: wrap the whole pan or individual slices in plastic wrap and foil, and freeze for up to 3 months. Thaw overnight in the fridge before serving.
Earthquake Cake for Large Batches and Kids
To make a bigger batch for a crowd, double all ingredients and bake in a 12×18-inch (30×45 cm) half-sheet pan. Increase bake time to 60–70 minutes, checking for the same doneness cues. For kids, you can skip the nuts entirely and add a handful of mini chocolate chips instead. Let the cake cool completely before letting little hands help cut it — the cream cheese swirl is sticky.
If you’re serving this to a group that includes pregnant people, young children, older adults, or anyone with a weakened immune system, note that the cake is fully baked — no raw eggs or flour — so it’s safe for everyone. The cream cheese is baked through as well.
Related
- Biscoff Cookie Spread: How to Use It in Recipes
- Cookie Varieties with Chocolate: 5 Easy Recipes
- Nutella Cookie Recipes for Soft, Chewy Bites
Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.
Spotted an error? Tell us and we will correct it (corrections policy).
