
This gluten-free and dairy-free icing recipe delivers restaurant-quality smoothness without relying on wheat flour or butter substitutes that taste artificial. After years of perfecting plant-based frostings, I’ve developed a method that uses coconut milk and coconut oil to create a silky texture that spreads effortlessly—no graininess or separation here.
The secret lies in balancing powdered sugar with cornstarch for stability, while vanilla extract and lemon juice add depth without overpowering.
The beauty of this recipe is its versatility—it works for cakes, cupcakes, or even drizzled over fruit tarts. Unlike many dairy-free alternatives that dry out quickly, this icing stays moist for hours, making it ideal for layered desserts or as a glaze for cookies.
The coconut base provides a subtle sweetness that complements vanilla, chocolate, or citrus flavors without dominating them.
What you’ll achieve is a velvety frosting that pipes beautifully, spreads smoothly, and tastes like it belongs on a bakery display case. The texture is so refined that even those with dietary restrictions won’t miss traditional buttercream.
With just a few pantry staples and 10 minutes of prep, you’ll have a foolproof icing that elevates any dessert.
Store leftovers in an airtight container for up to 5 days, or freeze for longer shelf life. Adjust thickness by adding more coconut milk for drizzling or extra powdered sugar for piping. Here’s how to make it—no compromises, just perfect results.
Ingredients for gluten and dairy free icing
Just nine ingredients transform into velvety, gluten-free and dairy-free icing that rivals traditional buttercream.
| Ingredient | Amount | Notes |
|---|---|---|
| Powdered Sugar 🍚 | 2 cups | Confectioners' grade for smooth texture |
| Cornstarch 🌾 | ¼ cup | For stability and gloss |
| Full-Fat Coconut Milk 🥥 | ½ cup | Canned, refrigerated overnight |
| Refined Coconut Oil 🫒 | ¼ cup | Melted, not solid |
| Pure Vanilla Extract 🌿 | 1 tbsp | Bourbon or Madagascar preferred |
| Fresh Lemon Juice 🍋 | 1 tbsp | Balances sweetness |
| Salt 🧂 | ¼ tsp | Fine sea salt |
| Xanthan Gum 🧪 | ¼ tsp | Ensures silky consistency |
| Almond Extract 🌰 | ¼ tsp | Optional, for depth |
[recipe_ingredient_scaler]
The coconut milk and coconut oil create the luxurious texture, so prioritize full-fat canned coconut milk—the kind that separates when refrigerated. Store-bought brands like Thai Kitchen or Goya work best, but avoid the light versions. For coconut oil, refined is key—it has no coconut flavor and melts cleanly. Powdered sugar should be confectioners’ grade (not baking sugar) to avoid graininess. Trader Joe’s carries excellent options for both, or check the baking aisle at Whole Foods. Xanthan gum is non-negotiable for that bakery-style smoothness—Bob’s Red Mill makes a reliable brand.
No coconut milk? Full-fat cashew cream works as a 1:1 substitute, though texture will be slightly denser. Substituting coconut oil? Avocado oil maintains neutrality, but melted vegan butter adds richness at half the quantity. Short on vanilla? Almond extract at half the amount deepens flavor without overpowering. For lemon juice, bottled works if you’re in a pinch, but fresh yields brighter results. The xanthan gum can be omitted if you have arrowroot powder, though results may be slightly less stable. Always sift the powdered sugar and cornstarch together to eliminate clumps—a fine-mesh sieve makes this effortless.
This icing stays fresh for up to 5 days in an airtight container at room temperature, though I recommend refrigerating to preserve moisture. For longer storage, freeze in 2-tablespoon portions—thaw overnight in the fridge before use. To adjust consistency, add coconut milk for a glaze or extra powdered sugar for piping. Always bring ingredients to room temperature before mixing to ensure smooth emulsification. The almond extract, if used, can be stored indefinitely—just keep it sealed tightly.
Why You’ll Love This Recipe
- No-Fuss Gluten-Free Magic: Honestly, the sifting step is my favorite—it’s the only time I get to be dramatic with a spoon. No sieving? You’re begging for grainy icing that looks like it was made by a toddler with a whisk. The cornstarch and xanthan gum do all the heavy lifting, so you’re basically just stirring and admiring your handiwork.
- Creamy, Not Greasy: That refined coconut oil? It melts into silky smoothness, not that cloying coconut aftertaste you dread. The lemon juice and vanilla extract keep it bright and balanced—no artificial sweetness, just pure, creamy richness that doesn’t weigh you down. Trust me, it’s the kind of icing you’ll want to eat straight from the spoon.
- Decorate or Drown: This isn’t just for cupcakes. Pipe it onto cookies, drizzle it over brownies, or—yes—use it as a dip for fruit. The almond extract (if you add it) gives it a subtle depth that makes it almost like a fancy buttercream. And if you’re feeling lazy, just spread it thick and call it a day.
- Leftovers? No Problem: Five days at room temp? More like five days of forgetting it’s there. I’ve had this icing sit on my counter for three days straight, and it still held its shape perfectly. Freeze it in tiny portions, and boom—you’ve got instant frosting for last-minute cake emergencies. Budget-friendly? Yes. Stress-free? Absolutely.
Step-by-step instructions for gluten-free and dairy-free icing
Here’s the precise method for achieving a velvety, stable icing without gluten or dairy.
Whisk Dry Ingredients to Eliminate Lumps
In a medium bowl, sift together the 2 cups powdered sugar and ¼ cup cornstarch using a fine-mesh sieve. This critical step prevents graininess in your final icing. Use a whisk to thoroughly combine the dry ingredients until no white streaks remain. The cornstarch acts as both a stabilizer and thickening agent, ensuring your icing holds its shape without becoming sticky.
I like to press down on the mixture with the back of a spoon to break up any stubborn clumps that might form during sifting. This creates a smooth, uniform base that will blend seamlessly with the wet ingredients. Set this mixture aside while you prepare the liquid components.
Warm and Combine Liquid Ingredients
In a small saucepan, gently warm the ½ cup full-fat coconut milk over low heat until it reaches 110°F—just warm enough to melt the ¼ cup refined coconut oil when combined. The coconut milk should be steaming lightly but not boiling. Remove from heat immediately once the oil has fully incorporated, as overheating will cause the coconut milk to curdle.
In a separate bowl, whisk together the warm coconut milk mixture with the 1 tbsp pure vanilla extract, 1 tbsp fresh lemon juice, ¼ tsp salt, ¼ tsp xanthan gum, and ¼ tsp almond extract. The xanthan gum is essential here—it creates that signature silky texture that gluten-free icings often lack. Let this mixture sit for 2 minutes to allow the xanthan gum to fully hydrate and thicken slightly.
Gradually Incorporate Wet into Dry
With an electric mixer on low speed, slowly pour the warm liquid mixture into the bowl of dry ingredients. Begin on low to prevent splattering from the powdered sugar. Gradually increase speed to medium-high and beat for 3-4 minutes until completely smooth. You’ll notice the mixture initially looks lumpy, but as it emulsifies, it will transform into a glossy, thick paste.
Here’s where precision matters: the icing should be thick enough to hold its shape when piped but still spreadable. If it’s too thick after mixing, add 1 teaspoon of warm water at a time until you reach the desired consistency. For a glossier finish, add an additional ½ teaspoon of warm water—this helps dissolve any remaining powdered sugar particles on the surface.
Rest and Adjust for Perfect Consistency
Cover the bowl with plastic wrap and let the icing rest at room temperature for 15-20 minutes. This resting period allows all the ingredients to fully meld together, particularly the xanthan gum, which continues to thicken as it cools. After resting, give the icing one final stir to ensure uniformity.
The icing should now coat the back of a spoon smoothly without being runny. If it’s still too thick, thin with warm water in ¼ teaspoon increments until it reaches a spreadable consistency. For a slightly softer texture suitable for cakes or cupcakes, add 1-2 teaspoons of warm water. For a firmer consistency ideal for piping decorations, use less water or none at all.
Pro Tips For Making Gluten And Dairy Free Icing
- Sift Like a Pro: DESCRIPTION: Don’t just dump the powdered sugar—press it down with a spoon after sifting to crush any hidden clumps. I learned this the hard way when stubborn grit ruined an otherwise perfect batch. The cornstarch needs room to work its magic, so take the extra 30 seconds to smooth it out.
- Warm the Coconut Milk Slowly: DESCRIPTION: Hit exactly 110°F—no higher. I once rushed it to 120°F and ended up with curdled coconut milk that turned the icing grainy. Use a thermometer if your stove isn’t gentle; the oil should melt into the milk, not separate.
- Let the Xanthan Gum Work: DESCRIPTION: That 2-minute wait after mixing the wet ingredients isn’t optional. Xanthan gum thickens as it hydrates, and skipping it means your icing will either be too thin or cling like glue. Trust the process—your future piping will thank you.
- Thin with Warm Water: DESCRIPTION: Cold water shocks the icing and can make it seize up. Use warm water (just off the tap) to adjust consistency—add it slowly, ¼ teaspoon at a time, while mixing. A glossy finish is your reward for patience here.
Make-ahead tips for this recipe
Prep Ahead for Efficiency
I always prepare the dry ingredients first—the 2 cups powdered sugar and ¼ cup cornstarch—and sift them together into a bowl. Store this mixture in an airtight container for up to 3 days to save time later.
The sifting step is non-negotiable for eliminating graininess, so don’t skip it even when prepping ahead.
Chill Your Coconut Milk
Refrigerate the ½ cup full-fat coconut milk overnight to separate the cream from the water. Scoop out just the thick cream layer (about ¼ cup) and use it in place of the original coconut milk in Step 2.
This step intensifies the coconut flavor and creates a richer texture. Store the remaining cream in the fridge for up to 5 days to use in smoothies or sauces.
Make Ahead Liquid Base
Whisk together the 1 tbsp vanilla extract, 1 tbsp lemon juice, ¼ tsp salt, ¼ tsp xanthan gum, and ¼ tsp almond extract into a small jar. Keep this mixture refrigerated for up to 1 week.
When ready to use, simply warm the ¼ cup coconut oil and combine with the liquid base in the saucepan before melting the oil. This saves you from measuring everything fresh each time.
Freeze Portions for Later
Once the icing is fully mixed and rested, divide it into 2-tablespoon portions using silicone molds or ice cube trays. Freeze these for up to 3 months. When you’re ready to use them, thaw overnight in the fridge and adjust consistency with warm water as needed.
This is perfect for special occasions when you don’t want to make icing from scratch.
Adjust Consistency in Advance
If you know you’ll be using the icing for piping (like rosettes on cupcakes), make it slightly thicker than usual by omitting the ½ teaspoon warm water during the final adjustment.
Store this firmer version for up to 5 days in the fridge—it’ll hold its shape beautifully when thawed. For drizzling, thin it slightly with warm water before freezing.
Prevent Stickiness with Tricks
If your icing seems too thick after thawing, add 1 teaspoon warm water at a time until it reaches the desired consistency. Line your airtight container with parchment paper before storing to prevent sticking—this is my secret for easy retrieval later.
I also recommend using glass containers over plastic to maintain texture integrity over time.
Nutrition facts
Frequently asked questions
Why does this recipe use xanthan gum?
The ¼ teaspoon xanthan gum is the secret to achieving that silky, bakery-style texture that gluten-free icings often lack. It acts as a natural stabilizer, preventing graininess and ensuring your icing holds its shape without becoming sticky. Without it, the icing might separate or feel less smooth—trust me, it makes all the difference!
Can I make this icing without almond extract?
The ¼ teaspoon almond extract is optional and simply adds depth to the flavor profile. If you omit it, the icing will still taste delicious—just rely on the vanilla and lemon juice for sweetness and brightness. Skip it entirely if you’re avoiding nuts or prefer a milder coconut taste.
What if my icing is too thin after mixing?
If your icing ends up too thin, simply cover the bowl and refrigerate it for 15-20 minutes to let it thicken naturally. If it’s still too runny, stir in 1 teaspoon of powdered sugar at a time until you reach your desired consistency. Avoid adding cornstarch directly, as it can create clumps.
Can I use this icing for decorating cakes?
Yes! This icing works beautifully for decorating cakes, cupcakes, or even cookies. For a smooth finish, spread it with an offset spatula, or pipe it onto cakes using a star tip for elegant designs. If you want firmer peaks for piping, reduce the ½ teaspoon warm water during the final adjustment step.
How do I prevent my icing from drying out on desserts?
To keep your icing moist, lightly dust the surface of your cake or cupcakes with a thin layer of powdered sugar before applying the icing. This creates a protective barrier that slows down moisture loss. Alternatively, refrigerate your iced desserts for 30 minutes before serving to help the icing set slightly.
- Affordable Chicken Recipe: Juicy Pan-Seared With Pantry Staples - November 30, 2026
- Cut Green Beans Recipe: Crisp-Tender in 15 Minutes - November 30, 2026
- Gluten-Free and Dairy-Free Icing Recipe: Silky Smooth Without Compromises - November 30, 2026