These Zucchini Cupcakes are moist, light, and fluffy! You can eat them plain, add a sprinkling of powdered sugar, or top them with cream cheese frosting.

🍋🟩Zucchini Cupcakes with Cream Cheese Frosting
The problem: homemade cupcakes are prone to drying out after a day or two, leaving all of us cupcake lovers sadly eating crumbly, dry cupcakes. The solution: pack those cupcakes with ZUCCHINI, bay-bee!
Zucchini is the ultimate “moist-maker” (shoutout to Friends for that reference) when it comes to baked goods. No more choking down dry cupcakes while a single solitary tear runs down your cheek–the natural moisture from this shredded vegetable produces a supremely soft and tender cupcake, with staying power for DAYS. Top them off with my Lime Cream Cheese Frosting and a sprinkling of crushed pistachios to make the perfect treat.
Turn Zucchini Cupcakes into Bread
One more bonus to this recipe: it also makes an awesome loaf of zucchini bread! Yep, this exact same recipe can be baked in a 2lb bread pan, to make the most delicious zucchini bread you’ve ever had. Find the full instructions in my Easy Zucchini Bread post, try it both ways, and then tell me which way you prefer to have your zucchini! (Hint: eating it plain is not an option 😉 )

Table of Contents
🧾What You’ll Need

Ingredients
My zucchini cupcake recipe is a bit different than most–I like adding some lime zest as a secondary flavor. If you’re not a lime lover, I urge you to keep an open mind, because I think they just might surprise you! Here’s what else you’ll need to make these cupcakes. Full ingredient amounts can be found in the recipe card below. (Links are affiliate links and I earn a small commission from qualifying purchases.)
For the Cupcakes
- Shredded zucchini: We’re using 2 cups of zucchini (which is roughly 1 medium zucchini) in this delicious treat. The zucchini adds tons of moisture to the bread too, for an amazingly soft texture!
- Lime zest: Adding lime zest might come as a surprise, but I love the bright pop of lime flavor. If you don’t have limes, you can swap in lemon or orange zest, or omit it entirely. You can use regular limes or key limes in this recipe. (Not sure what makes them different . . . check out my detailed post about what makes a regular lime different from a key lime!)
- All-purpose flour: “Regular” flour, aka all-purpose, is what we’re using to give the bread its structure. I recommend weighing the flour (and all of your ingredients!) with a food scale for a more accurate result. You can also spoon it into the measuring cup and gently level it off.
- Baking soada and baking powder: You’ll need both leavening agents to create a perfectly light yet moist texture.
- Canola oil: Has a neutral flavor that won’t take away from the zucchini and lime.
- Brown sugar: Gives the cake a deeper flavor and helps keep it moist. You can use dark or light brown sugar.
- Large eggs: Bring them to room temperature by letting them sit out for 20-30 minutes, or submerge them in a bowl of warm water for a few minutes to warm them up quickly.
For the Frosting and Topping
- Unsalted butter: Room temperature, please! I recommend letting your butter sit at room temperature for 30-45 minutes before making the frosting, so it’s easy to blend.
- Cream cheese: Be sure to use full-fat, brick-style cream cheese so the frosting has a nice, creamy texture — I recommend Philadelphia cream cheese. Anything with a lower fat content will yield a runny frosting.
- Fresh lime zest and juice: Fresh lime is the key to giving this frosting the perfect amount of tangy lime flavor. I do not recommend making this with bottled juice and powdered zest–you will probably be disappointed in the results.
- Powdered sugar: Adds sweetness and thickens the frosting.
- Crushed pistachios: For an optional garnish.

Equipment
The equipment list is short, and full of things you might own already! (Links are affiliate links and I earn a small commission from qualifying purchases.)
- Box grater: I shred my zucchini on the side of a box grater with small holes.
- Citrus juicer and microplane: A citrus juicer makes it super easy to get all the lime juice out the fruit. To zest the lime, you could use a box grater, but I prefer using a microplane.
- Hand mixer: Mix your batter and frosting with a hand mixer or stand mixer. Just make sure not to over-mix the batter or you’ll end up with tough, gummy cupcakes!
- Cupcake pan and liners: I use a standard-sized cupcake pan. You can use another size, but the baking time will be affected. I also recommend using cupcake liners for easy clean up.
- Cupcake scoop: Use a cupcake scoop to evenly portion out the batter.
- Piping bag and piping tip: For perfectly frosted cupcakes, use a piping bag fitted with a large closed star piping tip.

💚More Cupcake Favorites to Try
Looking for more fun cupcake recipes to try? Here are a few of my favorites!
Leave a Review!
If you make this recipe, let us know! Leave a ⭐️⭐️⭐️⭐️⭐️ rating on the recipe below, and leave a comment, take a photo and tag me on Instagram @elabau, or use #sugarhero on IG!

Zucchini Cupcakes
Ingredients
For the cupcakes:
- 7.5 oz light brown sugar, (1 cup)
- 2 large eggs, room temperature
- 4 fl oz canola oil, (1/2 cup)
- 5.3 oz all purpose flour, (1 1/4 cups)
- 1/2 tsp baking soda
- 1/2 tsp baking powder
- 1/2 tsp salt
- 2 cups grated zucchini, (approx 1 medium zucchini)
- 1.5 TBSP lime zest, (from 1 large lime)
For the frosting:
- 4 oz unsalted butter, (1 cup), at room temperature
- 8 oz cream cheese, (1 block), full fat
- 2 TBSP fresh lime juice, (from 1 large lime)
- 3 TBSP lime zest, (from 2 large limes)
- 20 oz powdered sugar, (5 cups)
- 1/4 cup pistachio nuts, roughly chopped, optional
Instructions
For the cupcakes:
- Prepare to bake: Preheat the oven to 350 degrees Fahrenheit. Line 20 cupcake cavities with paper liners.
- Mix brown sugar, eggs, and oil: Put the brown sugar, eggs, and canola oil into a mixing bowl. Use an electric mixer to beat them together until smooth. Set aside.
- Combine dry ingredients: In a separate bowl, whisk together the flour, baking soda, baking powder, and salt.
- Add dry ingredients to wet ingredients: With the mixer running on low, slowly add the dry ingredients, and mix just until combined. Stop mixing when you can no longer see the streaks of flour.
- Fold in zucchini and lime zest: Add the grated zucchini and lime zest, and fold into the batter gently by hand.
- Fill cupcakes: Divide the mixture between 20 cupcake liners.
- Bake: Put the cupcake pan into the center of the preheated oven and bake for about 20 minutes, or until the cupcakes are lightly golden and feel springy to the touch.
- Cool: Remove from the oven and allow to completely cool before frosting.
For the frosting:
- Beat the butter: Put the room temperature butter into the bowl of a hand mixer. Use the paddle attachment to beat until creamy.
- Add cream cheese and beat: Add the cream cheese and mix again until combined.
- Add 4 cups of flour: Add the powdered sugar, one cup at a time, beating well between each addition.
- Mix in lime zest and juice, adjust texture: When all the powdered sugar has been incorporated, add the lime zest and lime juice, and beat until combined. You may need to add more powdered sugar until you reach the desired consistency.
Finish the cupcakes:
- Fill piping bag with frosting, swirl on cupcakes: To frost the cupcakes, transfer the frosting to a piping bag fitted with a large star tip, and pipe a swirl on top of each cupcake.
- Top with crushed pistachios: Scatter pistachios over the top of the frosted cupcakes to decorate, if desired.
- Storage instructions: Zucchini cupcakes will last unfrosted in an airtight container at room temperature for up to 4 days. They can also be stored in the freezer for up to 1 month. Once they are frosted, they will last for up to a week in the fridge. The cream cheese frosting can be made and stored in an airtight container in the fridge for up to 4 days or in the freezer for up to 1 month. Defrost in the fridge overnight.
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?
Nutrition
📸Photo Tutorial: How to Make Zucchini Cupcakes
These zucchini cupcakes are ready in just over 30 minutes! Get a printable version of this recipe in the recipe card above.

- Mix wet ingredients and dry ingredients: In a bowl, mix together brown sugar, eggs, and oil. Use a whisk to beat until smooth. In a separate bowl, mix together flour, baking soda, baking powder, and salt.
- Add dry ingredients to wet: Slowly add the flour mixture to the wet batter. Mix until no streaks remain.

- Mix zucchini and lime zest into batter: Use the grater to shred the zucchini into small shreds, then add that to the batter along with the lime zest. Mix by hand until combined.

- Fill cupcake pan: Portion the batter out into a lined cupcake pan. Fill each liner about 1/2-2/3 full.
- Bake and cool: Bake the cupcakes at 350ºF for 20 minutes or until they are lightly golden. Cool completely, then add the frosting.

💭Variations
Stick to the original recipe, or mix things up a bit with these variation ideas!
- Spice things up. Feel free to add 1 tsp of cinnamon to the batter in place of the citrus zest to make spiced cupcakes for fall.
- Add nuts. Mix in a handful of chopped walnuts or pecans for some extra crunch.
- Make them chocolatey. Mini chocolate chips would be a great addition as well.
- Use another zest. Not a fan of lime zest? Swap it out for lemon or orange zest—or just leave it our entirely! Love all the citrus? Check out more of my recipes using citrus!
- Use another frosting. These cupcakes taste delicious with the cream cheese frosting, because who doesn’t love any recipe using cream cheese. However, they would also be great topped with other types of frosting, such as buttercream or chocolate sour cream frosting.
- Flavor the frosting. This cream cheese frosting recipe can be easily adapted for other flavors. You can substitute the limes for lemons or turn it into a vanilla frosting by adding 2 teaspoons of vanilla extract. You can also try adding 1/2 tsp of cinnamon for a cinnamon frosting.
💡Tips and FAQs for Success
- Use flavorless oil. We used oil instead of butter, because it yields a super light crumb, which is delicious. I recommend sticking to a flavorless oil such as vegetable oil. Olive oil will not work here as you will be able to taste it.
- Don’t dry the zucchini! Although it may be tempting, do not squeeze the water from the zucchini after you grate it. That water makes these cupcakes so insanely moist. Their light, soft, and moist texture is part of what makes them so darn good.
- Use full-fat cream cheese. If you’re making the cream cheese frosting, make sure you use full-fat cream cheese blocks. Otherwise the frosting will be thin and runny.
- Bring the butter and cream cheese to room temperature. Before you begin, bring the butter and cream cheese to room temperature. This ensures a silky smooth frosting with no lumps.
- Adjust the texture if needed. The consistency of this frosting is a little thinner for sweet breads than you would want for cupcakes. If it looks too soft, just add more powdered sugar (1/4 cup at a time). You can also refrigerate for half an hour or so which will help the frosting to set up.
Yep! Although you can peel it if you prefer, there’s no need. It just adds an extra step.
These zucchini cupcakes will last unfrosted in an airtight container at room temperature for up to 4 days. They can also be stored in the freezer for up to 1 month. Once they are frosted, they will last for up to a week in the fridge. Keep in mind that they will dry out in the fridge, so the sooner you enjoy them, the better.
The cream cheese frosting can be made and stored in an airtight container in the fridge for up to 4 days or in the freezer for up to 1 month. Defrost in the fridge overnight.

Don’t miss the step-by-step tutorial showing how to make Zucchini Cupcakes – check out the web story here!
We absolutely loved these! I’ve always enjoyed zucchini muffins and bread but dayum. Cupcakes? Whole new level of awesome.
I’m making these right now. SO GOOD!
Yeah!! Let me know how they turn out. I hope you fall in love with them.
Loved these! The powdered sugar topping made it extra yummy!
I’m loving the subtle pop of green the pistachios provide. I’ve been looking for a new recipe to use up zucchini. Looking forward to trying these cupcakes!
I have a ton of zucchini in my garden, so I can’t wait to use it to make these delicious looking cupcakes!