Margarita cupcakes bring the same bright lime snap and salty finish people love in the drink, but in a tender cupcake that still tastes like dessert first. The crumb stays soft from sour cream, the lime juice keeps it fresh instead of flat, and the tequila in the frosting gives the whole thing that unmistakable margarita edge without turning it harsh or boozy. The salt rim on top is the part that makes people pause for a second, then go back in for another bite.
What makes these work is balance. Too much lime juice in a cake batter can make the texture tight, but here it’s backed up with butter, sour cream, and the right amount of baking powder, so the cupcakes rise cleanly and stay moist. The frosting is cream cheese-based, which helps it hold the lime and tequila without sliding off into something overly sweet. The coarse salt on the rim matters too — a fine salt disappears, but coarse salt gives you that sharp little hit right when the frosting softens on your tongue.
Below, I’ll walk through the parts that matter most, including the step that keeps the frosting smooth and the easiest way to get that neat salted edge on top. If you’ve ever wanted a dessert that tastes playful but still feels polished, this one lands right there.
The cupcakes came out so soft and the lime flavor was bright without being sour. I was nervous about the tequila in the frosting, but it mixed in smoothly and the salt rim made them taste exactly like a margarita in cupcake form.
Love the salty-lime finish on these margarita cupcakes? Save this recipe to Pinterest for the next time you want a bright dessert with a fun tequila-kissed frosting.
Why the Salt Rim Has to Go on Last
The salt rim is the detail that makes these read as margarita cupcakes instead of just lime cupcakes with frosting. If you add it too early, the salt pulls moisture from the frosting and starts dissolving into the top edge, which leaves you with a damp, patchy rim instead of that clean, sharp finish. The trick is to frost the cupcakes first, then dip only the edge into coarse salt right before serving or right before they go out on a tray.
That timing also keeps the salt where you want it. Cream cheese frosting softens as it sits, and a salted rim on warm frosting slides around fast. Chill the frosted cupcakes for a few minutes if your kitchen is warm, then dip the edge. You’ll get a neater line and a much better contrast between sweet frosting and salty top.
What Each Ingredient Is Actually Doing in This Batch
- All-purpose flour — This gives the cupcakes enough structure to support the sour cream and lime juice without turning dense. Cake flour would make them softer, but it also makes the crumb more fragile, which matters once the cupcakes are topped with a heavy frosting.
- Sour cream — This is the moisture insurance in the batter. It keeps the cupcakes tender and gives the lime a mellow background instead of a sharp, thin taste. Plain Greek yogurt works in a pinch, but expect a slightly tangier finish.
- Fresh lime juice and zest — Use fresh here. Bottled juice tastes flat and can make the cupcakes taste one-note. The zest carries the oils that make the lime flavor pop, so don’t skip it even though the juice is already in the batter and frosting.
- Tequila — A little goes a long way. In the frosting, it gives the cupcakes their margarita character without overpowering the lime. If you want the flavor without alcohol, swap in extra lime juice and keep the rest of the frosting the same.
- Cream cheese and butter — This frosting needs both. Butter gives body, while cream cheese brings tang and helps balance the powdered sugar. If the cream cheese is too cold, the frosting turns lumpy, so let it soften fully before mixing.
- Coarse salt — Use coarse salt, not table salt. You want a crunchy edge and distinct pops of salt, not an even sting that disappears into the frosting.
Building the Batter So It Stays Soft, Not Dense
Start With the Dry Mix
Whisk the flour, baking powder, and salt together before anything else. That step spreads the leavener evenly through the batter so the cupcakes rise in a uniform way instead of doming oddly or baking with little tunnels. If you skip the whisk, you’ll sometimes get a pocket of baking powder that tastes bitter in one bite and disappears in the next.
Beat the Butter and Sugar Until It Looks Pale
Butter and sugar need time together. Beat them until the mixture looks lighter in color and a little fluffy at the edges, because that’s where the air starts. If the butter is too cold, it won’t cream properly; if it’s melted, you lose the structure that gives the cupcakes a clean crumb.
Alternate the Flour and Lime Mixture
Add the flour mixture and the sour cream-lime mixture in alternating additions, beginning and ending with flour. That keeps the batter from splitting and prevents overmixing once the liquid goes in. Stop as soon as the flour disappears; if you keep stirring for the sake of smoothness, the cupcakes bake up tighter and less tender.
Watch the Tops, Not the Clock
At 16 to 18 minutes, the cupcakes should spring back when you touch the center lightly and a toothpick should come out clean or with a few moist crumbs. If the tops are still pale and wobble in the middle, they need another minute or two. Pull them before the edges dry out, because these finish fast once they’re set.
Three Ways to Make These Margaritas Your Own
Alcohol-Free Lime Cupcakes
Swap the tequila in both the batter and frosting for extra lime juice or lime juice plus a teaspoon of milk if the frosting needs loosening. You’ll lose the tiny bite tequila adds, but the cupcakes still taste bright and balanced, and the lime flavor stays front and center.
Dairy-Free Version
Use a plant-based butter in the batter and frosting, then replace the sour cream with a thick dairy-free yogurt. The texture will be a little different, but it still bakes up soft. The frosting may be slightly looser, so chill it before piping.
Gluten-Free Swap
Use a 1:1 gluten-free flour blend that includes xanthan gum. The cupcakes won’t dome quite as high as the wheat version, but the sour cream keeps them from turning crumbly. Let the batter rest for 10 minutes before baking so the flour hydrates evenly.
Extra-Salty Rim for Margarita Lovers
If you like a stronger salty-sweet contrast, brush just the outer edge of each frosted cupcake with a little lime juice before dipping it in coarse salt. That keeps the salt in place and gives you a sharper margarita-style finish without making the whole top taste briny.
Storage and Reheating
- Refrigerator: Store in an airtight container for up to 4 days. The frosting stays stable, but the salt rim is best added close to serving because it softens over time.
- Freezer: Freeze the unfrosted cupcakes for up to 2 months. Wrap them well so they don’t pick up freezer odors, then thaw at room temperature before frosting. Freeze the frosting separately only if you’re okay with re-whipping it after thawing.
- Reheating: These don’t need reheating. If the cupcakes have been chilled, let them sit at room temperature for 20 to 30 minutes so the frosting softens slightly and the lime flavor comes back through.
Questions I Get Asked About This Recipe

Margarita Cupcakes
Ingredients
Equipment
Method
- Preheat the oven to 350°F and line a muffin tin with cupcake liners, so the liners are ready for an even bake. When finished, the oven should be fully heated before batter goes in.
- Whisk all-purpose flour, baking powder, and salt together in a bowl until evenly combined. You want no visible streaks of baking powder or salt.
- Beat butter and granulated sugar until light and fluffy, scraping the bowl as needed. Continue until the mixture looks pale and airy.
- Add the eggs one at a time and beat until each egg is fully incorporated. The batter should look smooth rather than curdled.
- Alternate adding the flour mixture and the sour cream mixture (mixed with fresh lime juice, lime zest, tequila or lime juice, and vanilla extract), beginning and ending with flour. Mix just until the batter comes together with no dry pockets.
- Divide the batter among the liners, filling them evenly for consistent cupcakes. Each liner should be about two-thirds full.
- Bake at 350°F for 16-18 minutes until a toothpick comes out clean. Look for domed tops and a set center.
- Cool the cupcakes completely before frosting. This prevents the frosting from melting and keeps the salt rim intact.
- Beat cream cheese and butter until smooth for a creamy, pipeable base. Stop when there are no lumps and the texture looks glossy.
- Add powdered sugar, fresh lime juice, and tequila or lime juice and beat until fully combined. The frosting should be thick enough to hold a piped swirl.
- Pipe the frosting onto cooled cupcakes, using a steady pressure for defined ridges. Create a generous top layer for the salt rim to adhere.
- Dip the top edge of each cupcake in coarse salt for the visible salt rim. Use light contact so the frosting remains mostly intact.
- Garnish each cupcake with a lime slice right after dipping. Arrange the slice so it sits flat and shows the lime wheel.
- Rest the frosted cupcakes for 30 minutes to set the salt rim and help the frosting hold its shape. The frosting should look slightly firm and less tacky.