Lime, butter, and a little tequila turn these margarita cupcakes into a dessert that tastes bright without tipping into sour or boozy. The cake stays soft and tender, the frosting lands tangy and creamy, and the coarse salt on top gives each bite that unmistakable margarita finish. They’re the kind of cupcakes people notice fast because the flavor is clear, balanced, and not overcomplicated.
The trick is keeping the lime flavor lively while the crumb stays plush. Sour cream brings moisture and a little richness, which keeps the cupcakes from tasting dry after the citrus goes in. The frosting uses cream cheese for structure and tang, but the lime juice and tequila need to be added with a light hand so the texture stays pipeable instead of loose.
Below, I’ve included the timing that keeps the cupcakes from sinking, plus a couple of swaps for when you want the margarita flavor more citrusy or a little more classic.
The lime flavor came through in the cake and frosting without turning sharp, and the salt rim made them taste like an actual margarita in cupcake form. My frosting held its shape beautifully after chilling for a bit.
Save these margarita cupcakes for the days when you want a dessert with a bright lime crumb, tequila-lime frosting, and that salty rim finish.
The Salt Rim Only Works If the Frosting Is Stable
That salty edge is the whole point, but it only works when the frosting can hold its shape. If the cream cheese mixture is too soft, the salt starts melting into the frosting and the top goes wet instead of crisp. Cold cream cheese and soft-but-not-warm butter give you a frosting that pipes cleanly and holds the rim long enough to matter.
The other common miss is adding too much lime juice at once. Acid loosens cream cheese frosting fast, so the juice needs to go in gradually while the mixer is running on low. If the frosting looks slack, a short chill firms it back up without making it grainy.
What Each Ingredient Is Doing in This Cupcake
- All-purpose flour — This gives the cupcakes enough structure to support the citrus and frosting without turning bready. Cake flour makes them lighter, but it can also make the crumb a little fragile under a thick frosting cap.
- Baking powder — This is what lifts the batter into a soft, even dome. Old baking powder is a common reason cupcakes bake up flat, so use a fresh tin if yours has been sitting around.
- Sour cream — It adds moisture and tenderness, and it keeps the lime juice from making the crumb feel sharp or thin. Plain full-fat Greek yogurt works too, but the cupcake will taste a little tangier.
- Fresh lime juice and zest — Zest carries the biggest lime punch, so don’t skip it. Bottled lime juice can work in a pinch for the batter, but the frosting tastes cleaner with fresh juice.
- Tequila — This is more about the margarita note than alcohol. If you want the flavor without the booze, use more lime juice in both the batter and frosting and keep the amount modest so the frosting stays thick.
- Cream cheese and butter — Together they make a frosting that’s tangy but sturdy. Cream cheese alone can turn soft; butter alone loses the cheesecake-like edge that works so well here.
- Coarse salt — Use coarse salt, not fine table salt. Fine salt dissolves too fast and disappears into the frosting, while coarse salt gives that sharp little hit that makes the whole cupcake read like a margarita.
Building the Batter Without Deflating It
Start with a Light, Creamy Base
Beat the butter and sugar until it looks pale and fluffy, not just mixed. That step traps air, which helps the cupcakes rise without becoming dense. If the butter is too cold, you’ll get streaks instead of a smooth base, and the batter won’t emulsify properly.
Alternate the Dry and Wet Ingredients
Add the flour mixture and the sour cream mixture in batches, beginning and ending with flour. That pattern keeps the batter from breaking and helps the gluten stay controlled, which matters here because the lime juice can make a batter feel looser than it is. Stop mixing as soon as the flour disappears; overmixing will make the cupcakes tough.
Bake Only Until the Centers Set
Scoop the batter evenly so the cupcakes bake at the same pace, then pull them when a toothpick comes out clean or with a few moist crumbs. If they bake past that point, the crumb dries out fast and the lime flavor tastes flatter. Let them cool all the way before frosting or the salt will slide and the frosting will soften too much.
Make the Frosting Thick Enough to Hold the Rim
Beat the cream cheese and butter first until smooth, then add powdered sugar before the lime juice and tequila. That order gives you a thick base before the liquid goes in. If the frosting starts looking loose, chill it for 10 to 15 minutes instead of adding more sugar right away, which can make it overly sweet.
Three Ways to Change the Margarita Direction
Lime-Forward and Booze-Free
Use lime juice in place of the tequila in both the batter and frosting. You’ll get a brighter, more citrus-driven cupcake with no alcohol bite, and the salt rim still makes sense because the flavor stays in margarita territory.
Gluten-Free Version
Swap in a good 1:1 gluten-free baking blend that includes xanthan gum. The texture will be a touch more delicate, so let the cupcakes cool completely before moving them and don’t overbake them while chasing extra browning.
Less Sweet, More Tangy Frosting
Cut the powdered sugar by about 1/4 cup and add the lime juice slowly until the frosting tastes balanced. This gives you a sharper cream cheese finish, but it also softens the structure, so chill the frosting before piping if the kitchen is warm.
How to Keep Them Neat for a Party Tray
Pipe the frosting in a lower swirl instead of a tall peak, then add the salt to just the outer edge. That keeps the topping tidy while still giving you the margarita look, and it travels better than a heavy frosting cap.
Storage and Reheating
- Refrigerator: Store frosted cupcakes in an airtight container for up to 3 days. The salt rim softens a little after the first day, but the flavor stays good.
- Freezer: Freeze the unfrosted cupcakes tightly wrapped for up to 2 months. The frosting doesn’t freeze as neatly because cream cheese can turn grainy after thawing.
- Reheating: Bring the cupcakes to room temperature before serving. Cold cupcakes taste dull and make the frosting feel stiff, so give them 20 to 30 minutes on the counter before you plate them.
Answers to the Questions Worth Asking

Margarita Cupcakes
Ingredients
Equipment
Method
- Preheat the oven to 350°F and line a muffin tin with cupcake liners, then set it aside for filling.
- Whisk together all-purpose flour, baking powder, and salt in a bowl until evenly combined.
- Beat butter and granulated sugar until light and fluffy, then add the eggs one at a time, beating after each addition.
- Alternate adding the flour mixture and sour cream mixed with fresh lime juice, lime zest, tequila or lime juice, and vanilla extract, starting with flour and ending with flour.
- Divide the batter evenly among the cupcake liners, filling each about 2/3 full.
- Bake at 350°F for 16-18 minutes until a toothpick inserted in the center comes out clean, then cool completely.
- Rest the fully cooled cupcakes for 30 minutes to firm up the crumb before frosting.
- Beat cream cheese and butter until smooth, then add powdered sugar and mix until the frosting thickens.
- Beat in fresh lime juice and tequila or lime juice until the frosting is smooth and spreadable for piping.
- Pipe the frosting onto the cooled cupcakes, then dip the top edge into coarse salt for the salt rim look.
- Garnish each cupcake with a lime slice for a lime-wheel finish.