Gluten-Free, Dairy-Free Dirt Cake will make you feel like a kid again! No dairy nor gluten needed to make this irresistible summer treat.

If you grew up in the Midwest, chances are you dug into a cup of Dirt Cake every summer from the time you could hold a spoon to, well — none of us have ever stopped, right?!
Especially now that I’ve adapted the classic summertime treat to be gluten and dairy free. Honestly Gluten Free Dairy Free Dirt Cake might be even better than the original!
Watch How to Make It!
Food Allergy-Friendly Dirt Cake
I know this recipe is very specific, so if you don’t have a gluten or dairy-free dessert-loving person in your life, I still highly recommend the original Dirt Cake recipe for a summer get together, birthday treat, or even as a fun, Halloween-themed dessert.
That said, if you or someone you know has Celiac Disease and/or a dairy/gluten intolerance/allergy, than you know it’s hard to find safe desserts that don’t taste like they’ve been modified to be allergy-friendly.
This recipe, however, is even better than the original. It’s all about the homemade 5 minute pudding recipe!
Also, just throwing this out there, this is definitely not a healthy version of Dirt Cake. Simply a creamy, velvety, and chocolatey version that will blow the socks off the gluten/dairy-free person in your life.
You have to let me know if you give it a try.
Step 1: Make the vanilla pudding.
Start by making an easy, 5 minute, almond milk-based vanilla pudding for the cream layer. I have not tested this recipe with cow’s, soy, or coconut milk so I can’t say for certain if the ratios would be the same.
In a medium-sized saucepan, stir together 1/3 cup sugar, 2 Tablespoons gluten-free corn starch, and 1/4 teaspoon salt.
Drizzle in 1/4 cup unsweetened almond milk then whisk vigorously until smooth. Add 3 egg yolks then whisk until smooth, then add another 1 cup almond milk and whisk until smooth.
Place the saucepan over a burner then turn the heat to medium. Whisk until the pudding starts to bubble and thicken then turn the heat down to low and stir with a spatula until the pudding has thickened, 4-5 minutes. You will know your pudding is done when you drag your spatula across the bottom of the pan and the pudding stays separated for a split second.
Remove the pudding from the heat then stir in 3 Tablespoons vegan butter and 2 teaspoons vanilla until smooth.
Pour the pudding through a fine mesh sieve to catch any lumps of cornstarch that didn’t get smoothed out, or cooked egg, then place a piece of plastic wrap directly over the pudding to prevent a skin from forming and refrigerate until completely chilled and set, about 2 hours.
- Tip: you can make the pudding up to 3 days ahead of time.
Step 2: Crush the chocolate sandwich cookies.
Meanwhile, add an 8oz package gluten-free, dairy-free chocolate sandwich cookies to a food processor then process until fine crumbs.
I like this K-Toos brand, though gluten free Oreos are also fantastic.
My Mom has been making the original Dirt Cake recipe since us kids were young, so I had to ask her what she did back before she owned a food processor: Ziplock bag + rolling pin, of course!
So, just know that’s an option if you don’t have a food processor.
Step 3: Make the cream layer.
Once the vanilla pudding has completely chilled, finish the cream layer. First whisk 4oz vegan cream cheese that’s been softened to room temperature in a large bowl until completely smooth.
I’m recommending you do this by hand or with an electric hand mixer, vs in a stand mixer, because vegan cream cheese needs a little elbow grease to get super, super smooth.
Next add a 9oz tub coconut cool whip to the bowl then whisk again until very smooth.
Add 1/2 cup powdered sugar, 3 Tablespoons vegan butter softened to room temperature, and 1 teaspoon vanilla then whisk until smooth. Finally add the pudding recipe (about 2 cups in case you’re using a different recipe,) then whisk until smooth.
Step 4: Layer.
In a 1-1/2 – 2 quart glass bowl add the following layers:
- 1/4 cup cookie crumbs
- 2 cups cream filling
- 3/4 cup cookie crumbs
- Remaining pudding filling
- Remaining cookie crumbs
Cover then refrigerate overnight, and then top with gummy worms and/or fake flowers for that real “Dirt Cake” effect before serving.
I hope you love every single drop — enjoy!

Equipment
Ingredients
For the Vanilla Pudding (makes 2 cups):
- 1/3 cup sugar
- 2 Tablespoons gluten free cornstarch, Argo recommended
- 1/4 teaspoon salt
- 1-1/4 cups almond milk
- 3 egg yolks
- 3 Tablespoons vegan butter
- 2 teaspoons vanilla extract
For the Dirt Cake:
- 4 oz vegan cream cheese, softened to room temperature
- 9 oz coconut cool whip, So Delicious CocoWhip recommended
- 1/2 cup powdered sugar
- 3 Tablespoons vegan butter, softened to room temperature
- 1 teaspoon vanilla extract
- 8 oz package GF/DF chocolate sandwich cookies
- Gummy worms, for decoration
Directions
For the vanilla pudding:
- Place a fine mesh strainer over a large glass bowl then set aside. Add sugar, cornstarch, and salt to a medium-sized saucepan then whisk to combine. Add 1/4 cup almond milk then whisk vigorously until smooth. Add egg yolks then whisk until smooth. Add remaining 1 cup milk then whisk until smooth.
- Place saucepan over medium heat then cook, whisking often, until pudding begins to thicken and bubble (this will happen all of the sudden.) Turn heat down to low then switch to a spatula and cook until pudding has thickened, 4-5 minutes. Remove pan from heat then stir in vegan butter and vanilla, and then pour pudding through fine mesh sieve to strain.
- Place a piece of saran wrap directly over the pudding to prevent a skin from forming on top then refrigerate until set, 2 hours.
For the Dirt Cake:
- Whisk vegan cream cheese in a large bowl to ensure it's entirely smooth. Add coconut cool whip then whisk until smooth. Add powdered sugar, vegan butter, and vanilla then whisk until smooth. Add homemade pudding then whisk until smooth.
- Add chocolate sandwich cookies to a food processor then process until smooth. Alternatively you could add them to a large Ziplock bag then roll with a rolling pin until smooth.
- Layer ingredients in a 1-1/2 - 2 quart sized glass bowl: 1/4 cup cookie crumbs, 2 cups pudding filling, 3/4 cup cookie crumbs, remaining pudding filling, and remaining cookie crumbs. Refrigerate overnight then top with gummy worms and serve.
Notes
- Make sure and save the worms for just before serving - if you chill them they will be too hard to eat.
Nutrition
Nutritional values are estimates only. Please read our full nutrition information disclaimer.



























Good
I’ve made this twice for my son, who is dairy, gluten, and CORN free. I subbed arrowroot powder for the cornstarch – 2 teaspoons per tablespoon – and it worked well. I also made a regular dirt cake and my kids who tried both said this is just as good! Victory! The pudding is the most nerve-wracking part but just be patient, it will thicken up just fine. If you have a corn-free child the brand K-Toos makes a GF oreo with no corn, we got them from Brookshires in TX and I used 2.5 packages since they are smaller. We used gummy bears from Yum Earth. Its an expensive dessert but all he wanted for his birthday (he’s 21!!!!!!!) so it was very worth it!
I LOVE to hear this success story, Rachel!! Thrilled that your son got the dessert he wanted for his birthday. Thank you so much for your feedback and recipe rating!
We absolutely LOVE this recipe! We make it regularly in our home but usually double or quadruple the recipe cuz it’s THAT good! Being dairy, gluten, and corn free this is PERFECT and once again get to eat a childhood fav! Thank you!
Oh I LOVE hearing this, Bridget!! So glad this recipe could give you a taste of your childhood!
Where have you found gluten free & dairy free sandwich cookies?
Gluten free Oreos are vegan too. :)
I’m so excited to try this! I don’t have a fine mesh sieve. Does the pudding get a lot of clumps / could I skip the straining?
Hey Malina! You could be surprised by how many cooked egg bits get caught in the strainer, but you could put the chilled pudding into a food processor blender to make sure it’s super smooth before incorporating into the recipe. :)
I will try that! Thank you for your reply!
Awesome recipe! My daughter and I make regular dirt cake every April Fool’s Day but I’m currently unable to eat dairy or soy. This was a fantastic alternative. Thank you so much!
Hehehe, I love that! And I love that you were able to still participate in the tradition!
Dirtwas
Hitdessert
I’m so glad to hear it, Cher! Thank you so much for your feedback and recipe rating!
Would this work with oat milk? Recipe sounds great , gonna try for a Easter dessert
Hi Linda! It should work with oat milk!
Hello! if i was just to use instant pudding? abt how much would I need?
You would use 1 box. Here is a recipe that uses boxes vs homemade pudding! https://iowagirleats.com/yo-mamas-dirt-cake/
About how many does this recipe feed?? Looks amazing!
Hi Madison! It will serve 6-8! :)