This fun Dirty Coke Fudge has the flavors of a popular fountain drink! It uses cola extract, lime zest, and coconut extract to give it a delicious, slightly tropical taste.

Dirty Coke Fudge |
Want to save this recipe?
Get this sent right to your inbox, plus great new recipes weekly!

There are two kinds of people in the world: those who know what a Dirty Coke is, and those who think this is the setup to a really tasteless joke.

All of my friends are apparently in the first group people. Starting earlier this year, my Facebook and Instagram feeds started blowing up with references to Dirty Cokes (or, more accurately, Dirty Diet Cokes, because women be dieting, am I right?) and how amazingly life-changing they are.

If you’re not in the know, I’ll spare you some googling and tell you that a Dirty Coke is just a Coke with a shot of coconut syrup and a squeeze of lime juice. Proportions are to taste, and some people like to add a little half and half to make it more of an Italian soda. Apparently people also make Dirty Doctor Peppers and Dirty Pepsis, but my research Facebook friends give these substitutions mixed results.

Dirty Coke Fudge |

So the first thing you should know about me is that I’m not a soda drinker. I like to steal sips from Jason’s sodas occasionally, but I rarely drink my own, and I can’t remember the last time I craved a soda.

The second thing you should know is that as soon as I started hearing about Dirty Cokes, I couldn’t get them out of my head. I didn’t want to drink one, I wanted to make a dessert using those flavors. Is that weird? It’s weird. I know it is. I can’t explain it, but the urge to make a cola, coconut, and lime-flavored dessert was very strong and very real.

This is my life, people.

Dirty Coke Fudge |

I was in luck, though, because earlier this year I’d bought some cola flavoring to make these (adorable) cola gummies. Unlike some other flavorings (banana, I’m looking at you) cola flavor really, really tastes like cola. I guess it helps that cola is basically a bunch of artificial chemicals in the first place, so it’s not hard to recreate that flavor with other artificial chemicals.

So I had my cola element. I had some coconut flavoring, and I had a giant bag o’ limes. Time to party!

Dirty Coke Fudge |

My first idea was to make Dirty Coke marshmallows. The light, fluffy texture of marshmallows seemed like a natural pairing for the effervescent fizz of soda, and I still think this is a pretty genius idea. However, I just couldn’t get excited about eating a whole pan of cola-flavored marshmallows—that seems like a one-and-done sort of dessert. So I deferred to my tastebuds, and my gluttony, and made Dirty Coke Fudge instead!

This recipe is based on my favorite recipe for white chocolate fudge. It’s fast, it’s easy, it always sets up and it has a dreamy soft and smooth texture. Most of the batch is cola-flavored, but it has a lime-coconut swirl running throughout, so you get a little bit of each flavor in every bite. You’ll want to check out my detailed blog post about the difference between regular limes and key limes so that you’ll be fully informed when picking the fruit for this recipe!

Dirty Coke Fudge |

I’m not going to lie. It’s a little different. Soda-flavored fudge? Who does that?! But I’m into it! It’s all sorts of tart and tangy and fruity and has a sort of refreshing bite, like a newly opened cola. Mostly it’s really fun and different and a definite candy experience! You need to make it for the soda lover in your life. Or at least make them a Dirty Coke—and then tell me if my Facebook friends are crazy, or if they’re onto something.

Recipe Note: During the flavoring process, it’s a good idea to taste the coconut and cola fudges, since different brands of extracts have different strengths. You may find that you want to add a little more than the recommended amount of flavoring if your brand differs.

Close up of a stack of Peanut Butter Cup Fudge.

Peanut Butter Cup Fudge

This Peanut Butter Cup Fudge is so easy…all you do is cook it, stir in some peanut butter, and give yourself giant pats on the back for making such great fudge! Of course you don’t have let everyone else know how easy it was!
View Recipe
Close-up of 3 pieces of Oreo Fudge.

Oreo Fudge

Like Oreos? Like white chocolate? Then you are going to LOVE this Oreo Fudge! The smoothest, creamiest, packed-full-of-cookies-est fudge you'll ever taste. Best of all, you can make it in 5 minutes!
View Recipe
A plate full of slice Dirty Coke Fudge.

Dirty Coke Fudge

5 from 1 vote
This fun Dirty Coke Fudge has the flavors of a popular fountain drink! It uses cola extract, lime zest, and coconut extract to give it a delicious, slightly tropical taste.
Prep15 minutes
Cook10 minutes
Total25 minutes


Save this recipe!
Get this sent right to your inbox, plus great new recipes weekly!


  • Prepare a 9×9 pan by lining it with aluminum foil and spraying the foil with nonstick cooking spray. Set a small bowl aside as well.
  • Place the butter, sugar, sour cream, and salt in a heavy-bottomed medium saucepan over medium-high heat. Stir until the sugar dissolves and the butter melts. Continue to cook the fudge, stirring frequently, until it comes to a boil. Once boiling, insert a candy thermometer. Cook the fudge, stirring constantly, until the thermometer reads 235 degrees Fahrenheit (113 C).
  • Once at 235 F, remove the pan from the heat and add the white chocolate chips, the marshmallow cream, and the vanilla extract. Stir vigorously until the chips and cream are melted and incorporated. If necessary, return the fudge to the heat for brief periods to melt the chips.
  • Next, scoop about 1 1/2 cups of fudge into the small bowl. You don’t need to measure, just separate out approximately a quarter of the fudge. This will be the white swirl you see in the final product. Add the lime zest and coconut flavoring to the fudge in the bowl, and mix well.
  • Add the cola flavoring to the remaining fudge in the pot, and stir until it is well-blended. Scrape the cola fudge into the prepared pan. Working quickly, scoop spoonfuls of the white fudge and drop them on top of the cola fudge in a random pattern, spreading them out evenly over the top. Once all of the white fudge is dotted on top, swirl a knife through the top of the fudge, creating a beautiful pattern of white and brown swirls. Gently tap the pan against the counter to smooth out the top of the fudge.
  • Let the fudge set at room temperature for about 4 hours, or in the refrigerator for at least an hour. Once set, cut into small squares to serve. Store Dirty Coke Fudge in an airtight container at room temperature for a week, or in the refrigerator for up to two weeks. For best taste and texture, serve at room temperature.

Measuring Tips

Our recipes are developed using weight measurements, and we highly recommend using a kitchen scale for baking whenever possible. However, if you prefer to use cups, volume measurements are provided as well. PLEASE NOTE: the adage “8 oz = 1 cup” is NOT true when speaking about weight, so don’t be concerned if the measurements don’t fit this formula.

Want to learn more about baking measurements and conversion?


Calories: 143kcal | Carbohydrates: 21g | Protein: 0g | Fat: 6g | Saturated Fat: 4g | Cholesterol: 11mg | Sodium: 99mg | Potassium: 33mg | Fiber: 0g | Sugar: 20g | Vitamin A: 110IU | Vitamin C: 0.1mg | Calcium: 25mg | Iron: 0mg
Tried this recipe?Snap a pic and hashtag it #SugarHero. We love to see your creations on our Instagram @elabau.

This post contains Amazon affiliate links. For more information, see my Affiliate and Advertising Policy.

Meet Elizabeth!

Hi, I’m Elizabeth — a trained pastry chef, cookbook author, video instructor, and your new Baking BFF! I’m going to teach you everything you need to know to be a sugar hero. ❤️

Related Recipes

5 from 1 vote

Leave a comment

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

Rate This Recipe!

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


  1. Thanks Molly! This could TOTALLY be root beer float fudge! I’ve done something similar (I think using a slightly different base recipe) and it works great! Your root beer extract might be stronger or weaker than my cola one, so I’d recommend adding a little less than the recipe calls for and then adding more to taste if necessary.

    Thanks for stopping by–and let me know what you think if you give it a try!

  2. Thanks for the explanation on what dirty coke is! My son and I just finished making this fudge and are waiting for it to set up so we can try it. In looking back at the recipe vanilla extract is listed but in the directions it doesn’t say when and where to use it. Would you please clarify that for us?


    1. Hi Becky–so sorry about that! It gets added with the marshmallow cream, although if you put it in at a different place that’s totally fine too. It’s such a mellow flavor that you can’t really go wrong whenever you add it. 🙂

  3. Is there any way to make this Cherry Coke fudge? I ask because I’d like to make it for someone who is allergic to coconut. So maybe use cherry flavoring and leave out the lime zest? What do you think?

    1. Hi Emily! I think that would totally work. A lot of cherry flavoring taste pretty strong (to me) so maybe start with less than the recommended amount and taste it before adding the full amount. You could also add chopped maraschino cherries if you want, if you think your friend would like them. If you want to add the cherries, pat them dry really well, chop them, then pat them dry again before you add them so they don’t add too much moisture to the fudge. Sounds delicious!