No-Bake 4th of July Dirt Cake Casserole

This No-Bake 4th of July Dirt Cake is the ultimate patriotic dessert. Layers of creamy cheesecake-style pudding, crushed chocolate cookies, and festive red, white, and blue candies come together in one dish – with no oven required.
The “dirt” is made from chocolate sandwich cookies (like Oreos), crushed into a crumbly, soil-like texture. The “worms” are optional but fun. The red, white, and blue M&Ms or sprinkles turn this into a showstopping July 4th centerpiece.
Best of all, you can make it the day before your party. The longer it chills, the better it tastes.
Tips for Success
- Use full-fat cream cheese. Low-fat or non-fat cream cheese will make the filling runny and less flavorful.
- Let cream cheese soften completely. Take it out of the refrigerator 1 hour before starting. Cold cream cheese will leave lumps.
- Do not over-mix the filling. Over-mixing can make the pudding mixture thin instead of thick and creamy.
- Chill for at least 4 hours. If you try to serve it too soon, the layers will slide apart. Overnight is even better.
- Make it the day before. This recipe is perfect for make-ahead holiday prep. The flavors meld together beautifully after 12–24 hours.
Storage Instructions
- Refrigerator: Store covered in the refrigerator for up to 5 days. The cookie crumbs will soften slightly over time, which some people prefer.
- Freezer: You can freeze dirt cake for up to 3 months. Thaw overnight in the refrigerator before serving. The texture will be slightly softer but still delicious.
Substitutions
| Instead of… | Use this… |
|---|---|
| Chocolate sandwich cookies | Any chocolate cream-filled cookie (store brand works great) |
| Instant vanilla pudding | Instant white chocolate or cheesecake pudding |
| Cool Whip | 2 cups homemade whipped cream (1 cup heavy cream + 2 tbsp powdered sugar, whipped to stiff peaks) |
| M&Ms | Red, white, and blue candy-coated chocolate or mini marshmallows |
| Gummy worms | Gummy bears or sour candy strips |
Gluten-Free Version
Use gluten-free chocolate sandwich cookies. All other ingredients are naturally gluten-free – just verify your pudding mix and candy brands.
Frequently Asked Questions
Can I make this in a different size pan?
Yes. Use a 10-inch springform pan for a taller cake, or two 8×8 square pans for smaller batches. Baking time (chill time) remains the same.
Why is it called “dirt cake”?
Because the crushed chocolate cookies look exactly like garden soil. When you add gummy worms, it resembles a patch of dirt with worms crawling through it. Kids love the novelty.
Can I use homemade whipped cream instead of Cool Whip?
Yes. Whip 1 cup of heavy cream with 2 tablespoons of powdered sugar until stiff peaks form. Fold it into the filling as you would Cool Whip. The texture will be slightly lighter.
My filling was runny. What went wrong?
Two possibilities: you over-mixed the pudding (it should be whisked for exactly 2 minutes, no more), or you used regular pudding instead of instant. Only instant pudding works for this recipe.
Can I add fresh fruit to the layers?
Yes. Fresh blueberries and sliced strawberries work beautifully. Add a thin layer of fruit over the first cookie crust before adding the filling, or layer them in the middle.
How far in advance can I make this?
Up to 2 days ahead. Keep it covered and refrigerated. Add the M&Ms and sprinkles right before serving so the colors don’t bleed.

No-Bake 4th of July Dirt Cake Casserole
Ingredients
Equipment
Method
- Crush chocolate sandwich cookies into fine crumbs using a food processor or rolling pin.
- In a bowl, combine cookie crumbs with melted butter. Stir until mixture resembles wet sand.
- Press half of crumb mixture firmly into bottom of a 9×13-inch baking dish. Set remaining crumbs aside.
- In a large bowl, beat softened cream cheese and 1/2 cup butter until smooth, about 2 minutes.
- Add powdered sugar and beat until light and fluffy.
- In a separate bowl, whisk instant vanilla pudding with cold milk for 2 minutes until thickened.
- Stir vanilla extract into pudding.
- Add pudding mixture to cream cheese mixture and beat on low until just combined.
- Fold in thawed whipped topping gently until no white streaks remain.
- Spread half of filling over cookie crust layer.
- Sprinkle half of remaining cookie crumbs over filling.
- Spread remaining filling over crumbs.
- Top with remaining cookie crumbs.
- Decorate with M&Ms, sprinkles, and optional gummy worms or fresh fruit.
- Cover and refrigerate for at least 4 hours or overnight.
- Cut into 15 squares and serve cold.
