Jump to RecipeJump to VideoLeave a ReviewPin Recipe

This Earthquake Cake layers German chocolate cake mix over toasted coconut and pecans, then swirls a rich cream cheese mixture throughout. It tastes like a cross between a German chocolate cake and a chocolate chip cheesecake, and it’s one of my most-requested potluck desserts!

More Easy Chocolate Cakes with a Box Mix

Close up side shot of a slice of earthquake cake.

Before You Get Started

A few tips will make all the difference with this one. The cake is forgiving, but these three things are worth knowing before you begin.

  • Use a deep 9×13-inch pan. This cake puffs up significantly during baking. Your pan should be at least 2 inches deep. If you’re not sure, set the dish on a rimmed baking sheet to catch any overflow.
  • Use full-fat block-style cream cheese only. Spreadable cream cheese from a tub has too much moisture and won’t give you the right texture for the swirl. Make sure it’s fully softened before you start so it blends smoothly.
  • Don’t rely on the toothpick test. This cake is meant to stay gooey inside, so the toothpick might not come out clean. See the baking step below for exactly how to tell when it’s ready.
Ingredients for an earthquake cake recipe.

How to Make Earthquake Cake

This dessert is ready for the oven in about 15 minutes. The layers go together quickly, the oven does the rest, and the result is a cracked, gooey cake that looks as good as it tastes!

Step 1: Prep the Pan

Preheat your oven to 350°F and grease a deep 9×13-inch baking dish. Spread the shredded coconut and chopped pecans in an even layer across the bottom of the pan. 

This layer gets toasty and fragrant underneath the cake, so don’t skip it.

Chopped pecans and shredded coconut in the bottom of a pan.

Step 2: Mix and Pour the Batter

Prepare the cake mix according to the package instructions.

Process shot showing how to mix the German chocolate cake batter for an earthquake cake recipe.

Pour the batter directly over the coconut and pecan layer and spread it evenly to the edges.

German chocolate cake batter in a pan.

Step 3: Make the Cream Cheese Swirl

Using an electric mixer, beat the softened butter, cream cheese, and vanilla extract until smooth. Add the confectioner’s sugar gradually and mix until fully incorporated and creamy.

Cream cheese mixture in a bowl.

Dollop the mixture over the top of the batter in spoonfuls, spacing them out across the pan.

Dolloping cream cheese mixture on top of the cake batter.

Then use a knife to gently swirl it in.

A few slow passes is enough. If you over-swirl, you’ll lose the distinct ribbons that give this cake its signature look.

Swirling cream cheese mixture into earthquake cake batter.

Step 4: Add Toppings and Bake

Scatter the chocolate chips over the top. Bake for 40 to 45 minutes.

Chocolate chips on top of earthquake cake.

How to know when it’s done: Skip the toothpick. Instead, gently press the center of the cake with your fingers. When the chocolate cake portion springs back and feels set, it’s ready, even if there’s still a slight jiggle in the middle. The inside should be gooey, not raw, and the cake will continue to firm up as it cools.

⇢ Pull it on the early side. Over-baking dries out the cake and you lose that molten, fudgy interior that makes earthquake cake so good.

Baked earthquake cake.

Step 5: Cool and Slice

Let the cake cool in the pan before cutting. If you slice into it while it’s still warm, the pieces will be gooey and harder to plate cleanly, which is completely fine if that’s what you’re going for. 

For neat squares, wait until it’s cooled completely

Piece of chocolate earthquake cake on a plate with vanilla ice cream.

⇢ Serving: Serve the cake warm if you love that molten, gooey texture straight from the oven. For cleaner slices, let it cool completely. Either way, a scoop of vanilla ice cream on top is the move. Add a drizzle of chocolate syrup or caramel sauce if you really want to go for it.

This cake is amazing. I even made fresh caramel to put on top from simmering sweetened condensed milk in the can. A little whipped cream to top it off. Heaven! Glad I froze half the cake to enjoy later. Husband agrees it should stay in my “to make again” file.

– Mary Ann

Earthquake Cake Variations

The basic formula (cake mix, cream cheese swirl, mix-ins on top) works with almost any flavor combination. Here are a few favorites:

  • Substitute almonds, walnuts, or hazelnuts for the pecans, or skip nuts altogether if you prefer.
  • Red Velvet Earthquake Cake: Swap in a box of red velvet cake mix instead. The cream cheese swirl is a natural fit with that flavor. → Similar Recipe: Southern Red Velvet Cake
  • Lemon or Strawberry Earthquake Cake: Use a lemon cake mix or a strawberry cake base and swap in white chocolate chips. → Similar Recipes: Lemon Bundt Cake or Strawberry Cake 
  • Oreo Earthquake Cake: Skip the coconut and pecans and line the bottom with a layer of Oreo cookies instead. Use a regular chocolate cake mix, swirl in the same cream cheese mixture, and finish with a layer of crushed Oreos before baking. (Love Oreos? Try this Oreo Poke Cake, too.)
  • Reese’s Earthquake Cake: Beat some peanut butter into the cream cheese mixture, then top the cake with chopped Reese’s peanut butter cups.

Storage & Make-Ahead

Refrigerator: Store the cake covered in the refrigerator for up to 4 days. The texture actually holds up nicely, and the cake is just as good cold as it is warm. Let it come to room temperature before serving, or warm individual slices in the microwave for about 20 seconds.

Freezer: Earthquake Cake freezes well. Wrap individual slices tightly in plastic wrap, then place in a freezer-safe bag or container. Freeze for up to 2 months. Thaw overnight in the refrigerator before serving.

Make Ahead: This is a great dessert to bake the day before. Just cover tightly and refrigerate overnight. Some people think it’s even better the next day once the layers have had time to set.

Frequently Asked Questions

Can I use a different cake mix?

Yes. German chocolate cake mix is the classic choice because it pairs naturally with coconut and pecans, but regular chocolate, Devil’s Food, or chocolate fudge cake mix all work well. The recipe stays the same regardless of which variety you use.

Why is my earthquake cake still jiggly when I take it out of the oven?

That’s exactly what you want. Unlike a standard cake, earthquake cake is meant to stay a little gooey in the center. The toothpick test won’t tell you anything useful here, because the inside might not come out clean. Instead, press gently on the center. When the chocolate cake portion springs back and feels set, it’s done. The jiggle is the gooey cream cheese doing its thing.

Can I make earthquake cake ahead of time?

Yes, this cake is a great make-ahead option. Bake it the day before, cover tightly, and refrigerate overnight. The texture holds up well, and some people think it’s even better after it’s had time to set. Bring it to room temperature before serving, or warm individual slices in the microwave for about 20 seconds.

Bite of earthquake cake on a fork.

Did you make this recipe?

If you enjoyed this recipe, please leave a comment with a 5-star review at the bottom of the post. Thank you!

Square side shot of a slice of earthquake cake with a scoop of vanilla ice cream and a drizzle of chocolate syrup.

Earthquake Cake

5 from 2 votes
Prep: 15 minutes
Cook: 40 minutes
Total: 55 minutes
Servings 12 people
Calories 485 kcal
This Earthquake Cake layers German chocolate cake mix over toasted coconut and pecans, then swirls a rich cream cheese mixture through the top before baking. One pan, no frosting, and completely irresistible warm or at room temperature.

Equipment

  • 9 x 13-Inch Baking Dish

Ingredients
  

  • 1 cup sweetened shredded coconut
  • 1 cup chopped pecans
  • 1 (15.25 ounce) box German chocolate cake mix, plus additional ingredients called for on the package
  • ½ cup salted butter, softened at room temperature
  • 8 ounce block cream cheese, softened at room temperature
  • 1 teaspoon vanilla extract
  • 1 cup confectioner's sugar
  • ¾ cup chocolate chips
  • Optional, for serving: vanilla ice cream, whipped cream, chocolate syrup, or caramel sauce

Instructions

  • Preheat oven to 350°F. Grease a deep 9×13-inch baking dish (at least 2 inches deep). If you’re not sure your pan is deep enough, set it on a rimmed baking sheet to catch any overflow.
  • Spread the coconut and pecans in an even layer across the bottom of the prepared dish.
    Chopped pecans and shredded coconut in the bottom of a pan.
  • Prepare the cake mix according to package instructions.
    Process shot showing how to mix the German chocolate cake batter for an earthquake cake recipe.
  • Pour the batter evenly over the coconut and pecan layer.
    German chocolate cake batter in a pan.
  • In a separate bowl, use an electric mixer to beat together the softened butter, cream cheese, and vanilla extract until smooth. Gradually add the confectioner’s sugar and mix until fully incorporated.
    Cream cheese mixture in a bowl.
  • Dollop the cream cheese mixture over the top of the batter in spoonfuls.
    Dolloping cream cheese mixture on top of the cake batter.
  • Use a knife to gently swirl it in with a few slow passes. Don't over-swirl or you'll lose the ribbon effect.
    Swirling cream cheese mixture into earthquake cake batter.
  • Scatter the chocolate chips evenly over the top.
    Chocolate chips on top of earthquake cake.
  • Bake for 40 to 45 minutes. Do not use a toothpick to test for doneness. Instead, gently press the center of the cake with your fingers. When the chocolate cake portion springs back and feels set, the cake is ready, even if there’s still a slight jiggle. The inside will be gooey by design.
    Baked earthquake cake.
  • Cool in the pan before slicing. For neat squares, let it cool completely. For a warm, gooey serving, slice after about 20 minutes and serve with a scoop of vanilla ice cream.
    Horizontal side shot of slices of earthquake cake on plates.

Notes

  • Use a deep pan. Your 9×13-inch baking dish should be at least 2 inches deep. The batter puffs up significantly during baking. When in doubt, place the dish on a rimmed baking sheet to catch overflow.
  • Block cream cheese only. Do not substitute with spreadable cream cheese from a tub. It has too much moisture and will affect the texture of the swirl. Make sure it’s fully softened before mixing.
  • Cake mix substitutions. German chocolate cake mix is the classic choice, but regular chocolate, Devil’s Food, or chocolate fudge cake mix all work well.
  • Don’t over-bake. This cake is meant to be gooey inside. Pull it when the chocolate cake portion feels set to the touch, even if there’s a slight jiggle. It will firm up as it cools.
  • Serve warm for a molten, gooey texture. For clean slices, let it cool completely first. Top with vanilla ice cream and a drizzle of chocolate syrup or caramel sauce.
  • Make ahead. Bake the day before, cover tightly, and refrigerate overnight. Bring to room temperature before serving or warm individual slices in the microwave for about 20 seconds.
  • Refrigerate covered for up to 4 days. Freeze tightly wrapped for up to 2 months. Thaw in the refrigerator overnight.

Nutrition

Serving: 1sliceCalories: 485kcalCarbohydrates: 50gProtein: 5gFat: 32gSaturated Fat: 14gPolyunsaturated Fat: 4gMonounsaturated Fat: 10gTrans Fat: 0.3gCholesterol: 41mgSodium: 445mgPotassium: 209mgFiber: 2gSugar: 35gVitamin A: 522IUVitamin C: 0.2mgCalcium: 95mgIron: 2mg
Keyword: chocolate earthquake cake, classic earthquake cake, earthquake cake, earthquake cake recipe, earthquake cake with a cream cheese layer
Course: Dessert
Cuisine: American

Originally published in April, 2021, this post was updated in April, 2026.

Square shot of Blair Lonergan from the food blog The Seasoned Mom serving a pie at a table outside.

Hey, I’m Blair!

Welcome to my farmhouse kitchen in the foothills of Virginia’s Blue Ridge Mountains. Inspired by local traditions and seasonal fare, you’ll find plenty of easy, comforting recipes that bring your family together around the table. It’s down-home, country-style cooking!

Read More

Leave a Comment

Your email address will not be published. Required fields are marked *

Recipe Rating




This site uses Akismet to reduce spam. Learn how your comment data is processed.

Comments

  1. Stephanie Rarick says:

    5 stars
    Thank you, Blair, for this great dessert idea! As soon as I saw this, I was ready to go, but I only had a yellow cake mix in the pantry and really did
    not want to drive to the store. So I followed your recipe with all the steps,
    except I substituted Heath toffee bits instead of the chocolate chips. I’m
    usually not one to change a recipe, but the cake came out great! Planning on serving it with ice cream and a drizzle of caramel topping.

    1. Blair says:

      That sounds amazing, Stephanie! Thanks for sharing your variation, since I know others will appreciate the tips as well. Have a great week!

  2. Mary Ann Suhi says:

    5 stars
    This cake is amazing. I even made fresh caramel to put on top from simmering sweetened condensed milk in the can. A little whipped cream to top it off. Heaven! Glad I froze half the cake to enjoy later. Husband agrees it should stay in my “to make again” file.

    1. The Seasoned Mom says:

      Thank you, Mary Ann! We’re so glad you enjoyed it!

  3. Melissa Walker says:

    I’ve been researching this topic and your article provided great insights.

  4. Linda Martinez says:

    Very well explained, bookmarked for future reference.

  5. Nancy Garcia says:

    Just discovered your blog, love the content quality.

  6. Richard Miller says:

    Excellent write-up. It’s clear a lot of thought went into this. Subscribing now.

    1. The Seasoned Mom says:

      Thank you, Richard! We appreciate it and hope you continue to enjoy our recipes.

  7. Margaret Lee says:

    Hey all, A pleasure to read. Not often you find this level of depth online. Mind if I ask what sparked this post?