Crumb Top Baking

  • About
  • Recipe Index
  • Air Fryer Recipes
  • Subscribe
menu icon
go to homepage
  • About
  • Recipe Index
  • Air Fryer Recipes
  • Subscribe
search icon
Homepage link
  • About
  • Recipe Index
  • Air Fryer Recipes
  • Subscribe
×
Home » Desserts

Chocolate Zucchini Cupcakes

Published: Sep 2, 2022 · Modified: Apr 6, 2026 by Leanne

Pinterest image for Chocolate Zucchini Cupcakes.
Pinterest image for Chocolate Zucchini Cupcakes.
↓ Jump to Recipe

Chocolate Zucchini Cupcakes are rich and fudgy, with almost 2 cups of grated zucchini, cocoa and chocolate chips. You don't need to press or drain the zucchini. Just shred it and add it to the batter. This helps create super moist chocolate cupcakes. They're also oil-based, made without butter or milk, so they're not only soft and tender, but they're dairy-free. (Just make sure to use dairy-free frosting and chocolate chips). You can also enjoy them as a decadent muffin without any frosting!

Chocolate cupcake on a cupcake wrapper with a bite taken out of it.

Want to save this recipe for later?

Enter your email address and I'll send it straight to your inbox. You'll also receive new recipes from me regularly!

Table of Contents
  • Details on the ingredients
  • How to make chocolate zucchini cupcakes
  • My favorite frosting options
  • Frequently asked questions
  • Storage and freezing
  • Measuring ingredients
  • Key recipe tips
  • 📖 Recipe

*This recipe was originally published in August 2018. It has been updated with new photos, text and adjustments to the recipe.

I know, 2 cups seems like a lot of zucchini packed into 12 cupcakes, but I promise, you can't taste it! Zucchini adds moisture to baked goods, like these almond flour zucchini muffins, so it makes these cupcakes extra soft and tender.

Details on the ingredients

Below is an overview of the ingredients used. For the exact quantities, please visit the recipe card at the end of this post.

Ingredients to make chocolate zucchini cupcakes arranged individually.
  • Zucchini - You'll need 1 ¾ cups of grated zucchini. Just use the larger shredding holes on your box grater.
  • Cocoa - For a rich and chocolatey cupcake, the recipe calls for ½ cup of Dutch-processed cocoa. I haven't tested this recipe with natural cocoa.
  • Flour - While I normally use whole wheat flour for much of my baking, I decided to use all-purpose white flour for these cupcakes. You'll need 1 cup, spooned and levelled.
  • Oil - I like to use extra virgin olive oil in my baking, but you can use another type of oil like canola, avocado or olive oil.
  • Coconut sugar - This sweetener adds a rich, caramel flavor and is less refined than brown sugar. If you don't have coconut sugar, you can substitute with lightly packed brown sugar. 
  • Cinnamon - You'll love the hint of cinnamon in these cupcakes. It really enhances the chocolate flavor. 
  • Eggs - Two eggs will add moisture and help with leavening. Bring them to room temperature before whisking them with the other ingredients.
  • Vanilla - A full tablespoon is added to enhance the flavor of the other ingredients. Be sure to use real vanilla extract and not artificial.
  • Baking soda and baking powder - Both are used in combination for leavening.
  • Salt - Some fine sea salt is added as a flavor enhancer. You can also use kosher salt, if you prefer.
  • Chocolate chips - For extra chocolate flavor, I like to add 3 tablespoons of mini chocolate chips. You can leave them out if you prefer, but the chocolate chips melt into the muffins to create an extra fudgy texture.

How to make chocolate zucchini cupcakes

Preheat your oven to 325F and line a 12-cup muffin pan with cupcake liners.

Whisk together your dry ingredients (except the chocolate chips).

In a separate large bowl, whisk together your eggs and then whisk in the remaining wet ingredients, adding the zucchini last.

Gradually, stir the dry ingredients into the wet mixture. (The batter will be thick).

Stir in the chocolate chips.

Collage of 4 images demonstrating how the dry ingredients and wet mixture come together to make the cupcake batter.

Divide the batter into the prepared muffin pan. (Each cup should be about ¾ full).

Cupcake batter divided into a muffin pan.

Bake for 20-22 minutes, or until a toothpick inserted into the middle of a muffin comes out clean.

Let cool completely. Enjoy them unfrosted (like muffins) or top with your favorite chocolate frosting.

My favorite frosting options

  • Avocado Chocolate Frosting
  • Chocolate Peanut Butter Buttercream
  • Peanut Butter Cream Cheese Frosting
  • Sour Cream Chocolate Frosting
  • Sour Cream Vanilla Bean Frosting
Cupcakes baked up in a muffin pan.

Frequently asked questions

How do you grate zucchini for cupcakes?

You'll want the zucchini coarsely shredded so just use the larger shredding holes on a box grater (cheese grater). If you use the small holes and finely shred the zucchini, you will end up with too much. 

Do you need to squeeze the moisture out of the grated zucchini?

No, you don't need to do this. The moisture will ensure these cupcakes are soft and tender. Plus, it saves time!

Do you need to peel zucchini before baking with it?

No, you can leave the skin on the zucchini. Just try to choose zucchini without any dents or scratches on the skin, and wash well before shredding. The skin is thin so it really isn't noticeable in the cake.

Can this cupcake recipe be made into a zucchini cake?

I've only tested this recipe as cupcakes, but if you're looking for a cake recipe, you can try this chocolate zucchini cake!

Overhead view of cupcakes being topped with frosting.

Storage and freezing

Store these unfrosted chocolate cupcakes in an airtight container at room temperature. They will stay moist and tender for 3 days. If they're frosted, store them in the fridge.

To freeze, place the unfrosted cupcakes in a freezer safe container in a single layer. They'll last in the freezer for up to 3 months.

Let defrost at room temperature before frosting.

Measuring ingredients

For convenience, US cup measurements are included in the recipe card for this recipe. To ensure greater accuracy, however, weight and volume measurements are also provided. So, if you see grams (g), you'll want to use a kitchen scale to weigh your ingredients, and if you see milliliters (ml), you'll want to use a liquid measuring cup. Smaller quantities of ingredients are provided in teaspoons and tablespoons.

Key recipe tips

  • Bring your eggs to room temperature as they'll mix together with the other ingredients more easily.
  • Don't drain or press the water out of the grated zucchini. The moisture is needed in the batter.
  • When measuring the flour for this recipe, use the spoon and level method. I've also included the amount in the recipe card in grams.
  • When filling the cupcake pan, each cavity should be about ¾ full. 
  • The cupcakes should be fully cooled before frosting. If they're still warm, the frosting will melt off.
Overhead view of zucchini cupcakes on a plate and topped with chocolate frosting.

If you make this recipe, I'd love to hear what you think in the comments below!

HUNGRY FOR MORE?  Sign up for our newsletter and follow Crumb Top Baking on Instagram, Pinterest and Facebook!

📖 Recipe

Close up view of a chocolate zucchini cupcake with a bite taken out of it.

Chocolate Zucchini Cupcakes

Chocolate Zucchini Cupcakes are rich and fudgy chocolate cupcakes, with almost 2 cups of grated zucchini, cocoa and chocolate chips!
5 from 15 votes
Print Pin
Prep Time: 15 minutes minutes
Cook Time: 22 minutes minutes
Cooling Time: 1 hour hour
Total Time: 1 hour hour 37 minutes minutes
Servings: 12 cupcakes
Author: Leanne

Ingredients

  • 1 cup (125 g) all-purpose white flour, spooned and levelled
  • ½ cup (45 g) Dutch processed cocoa, sifted if lumpy
  • 1 ½ teaspoons ground cinnamon
  • 1 teaspoon baking powder
  • ½ teaspoon baking soda
  • ½ teaspoon fine sea salt
  • 2 large eggs, room temperature
  • 1 cup (180 g) coconut sugar
  • ⅓ cup (80 ml) extra virgin olive oil
  • 1 tablespoon vanilla extract
  • 1 ¾ cups (190 g) coarsely grated zucchini
  • 3 tablespoons mini chocolate chips, (dairy-free, if necessary)

Instructions

Prevent your screen from going dark
  • Preheat oven to 325F and line a 12-cup muffin pan with cupcake liners.
  • In a medium-sized bowl, whisk together the flour, cocoa, cinnamon, baking powder, baking soda and salt.
  • In a separate large bowl, whisk the eggs, then whisk in the coconut sugar, oil and vanilla. Stir in the zucchini.
  • Gradually add the dry ingredients to the wet mixture, stirring well after each addition.
  • Stir in the chocolate chips.
  • Divide the batter evenly into the 12 cupcake liners.
  • Bake for 20-22 minutes, or until a tooth pick inserted into the middle of a cupcake comes out clean.
  • Cool in the pan for a few minutes before transferring to a wire rack to cool completely.
  • Enjoy on their own or top with your favorite frosting.

Notes

  1. Bring your ingredients to room temperature as they'll mix together more easily.
  2. Don't drain or press the water out of the grated zucchini. The moisture is needed in the batter.
  3. You'll want the zucchini coarsely shredded, so use the larger shredding holes on a box grater (cheese grater).
  4. You can substitute lightly packed brown sugar for the coconut sugar.
  5. When measuring the flour for this recipe, use the spoon and level method or weigh it.
  6. Use dairy-free chocolate chips and frosting to keep these cupcakes dairy-free.
  7. When filling the cupcake pan, each cavity should be about ¾ full.
  8. The cupcakes should be fully cooled before frosting. If they're still warm, the frosting will melt off.

Want to save this recipe for later?

Enter your email address and I'll send it straight to your inbox. You'll also receive new recipes from me regularly!

Nutrition Facts per Serving

Calories: 182kcal | Carbohydrates: 26g | Protein: 3g | Fat: 8g | Saturated Fat: 2g | Polyunsaturated Fat: 1g | Monounsaturated Fat: 5g | Trans Fat: 0.01g | Cholesterol: 32mg | Sodium: 224mg | Potassium: 122mg | Fiber: 2g | Sugar: 12g | Vitamin A: 86IU | Vitamin C: 3mg | Calcium: 41mg | Iron: 1mg

Disclaimer

Nutrition information is an estimate only and will vary depending on the substitutions made and the brands used.

Did you make this recipe or have any questions?

I love reading your comments and addressing your questions, so please leave your comments and ratings or questions below!

More Desserts

  • Side view of a slice of almond flour lemon raspberry cake on a white platter.
    Almond Flour Lemon Raspberry Cake with Crumb Topping
  • Close up overhead view of almond flour oatmeal butterscotch cookies on a pink surface.
    Almond Flour Oatmeal Butterscotch Cookies
  • Side view of a frosted almond flour sugar cookie bar.
    Thick and Chewy Almond Flour Sugar Cookie Bars with Cream Cheese Frosting
  • Angled view of cookies close together with a bite taken from one and resting on top of another.
    Almond Flour Chocolate Blossom Cookies (No Chill!)

Comments

    5 from 15 votes

    Leave a Reply Cancel reply

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

    Recipe Rating




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

  1. Lizzy says

    September 07, 2018 at 1:14 pm

    5 stars
    Love this virtual baby shower! How cute- and such great recipes. And these cupcakes are just so darn pretty! That icing recipe looks perfect !

    Reply
    • Leanne says

      September 07, 2018 at 7:43 pm

      Thanks Lizzy! I wish it was an in-person shower so I could enjoy all the delicious eats! Have a great weekend!

      Reply
  2. Marisa says

    September 07, 2018 at 1:49 am

    I too prefer the cooler temperatures and LOVE Fall baking! These are such cute cupcakes and that coconut whip sounds heavenly...looking forward to trying!

    Reply
    • Leanne says

      September 07, 2018 at 7:42 pm

      Thanks Marisa! Fall is just so cozy! Love cooking and baking with all the fall produce and spices. Enjoy your fall baking!

      Reply
  3. Marie says

    September 07, 2018 at 1:10 am

    These are the cutest little cupcakes. I've never tried zucchini in cakes before but it looks like it makes them very moist so I definitely have to give these a try.

    Reply
    • Leanne says

      September 07, 2018 at 7:40 pm

      Thanks Marie! Zucchini really keeps them moist. Baking with zucchini is definitely worth a try! Have a great weekend!

      Reply
  4. Katherine | Love In My Oven says

    September 07, 2018 at 12:27 am

    Oh my goodness Leanne! These are awesome - I love how healthy they are. I'm legit going to make them for the boys this weekend! They'll be so excited for cupcakes and I'll be so excited for how healthy they are!! XO

    Reply
    • Leanne says

      September 07, 2018 at 7:38 pm

      Thanks so much Katherine! I hope your boys like them! Be sure to let me know what they think!

      Reply
  5. Mary Ann | The Beach House Kitchen says

    September 07, 2018 at 12:24 am

    How fun are these Leanne! I love that coconut whipped icing too! So delicious I bet!

    Reply
    • Leanne says

      September 07, 2018 at 7:38 pm

      Thanks Mary Ann! The coconut whip is a must for cupcakes!! Happy weekend!

      Reply
  6. Ashika | Gardening Foodie says

    September 06, 2018 at 5:43 pm

    These cupcakes look so pretty Leanne. Chocolate and zucchini are so perfect in cakes and cupcakes. I love how zucchini helps keep the cupcakes moist and fluffy. The frosting looks amazing and those sprinkles just so cute 🙂

    Reply
    • Leanne says

      September 06, 2018 at 10:24 pm

      Thanks Ashika! That's definitely one of the reasons I love baking with zucchini! That, and I'm able to sneak some veggies into dessert! 😉

      Reply
  7. Haylie Abele says

    September 06, 2018 at 2:34 pm

    5 stars
    These look delightful, Leanne! Love that they're healthier and the coconut whip sounds amazing! I'll need to use up the last of my zucchini with these! Another great recipe 🙂

    Reply
    • Leanne says

      September 06, 2018 at 10:23 pm

      Thanks so much Haylie! I hope you get a chance to make them! The coconut whip is my go-to frosting!

      Reply
  8. heather (delicious not gorgeous) says

    September 05, 2018 at 11:53 pm

    that sprinkle mix is so cute! and i've been meaning to experiment with coconut whip- this one looks so decadent and chocolatey (:

    Reply
  9. Jenni says

    September 05, 2018 at 12:50 pm

    5 stars
    These sound fantastic--so moist and decadent but also pretty healthy. A great combination! Plus they're so pretty! Totally shower-worthy! 🙂

    Reply
    • Leanne says

      September 05, 2018 at 11:53 pm

      Thank you Jenni! They are a nice little balance of decadent treat with some healthier ingredients! Have a great week!

      Reply
  10. Jessica from Cooking in my Genes says

    September 04, 2018 at 11:33 pm

    5 stars
    Can't beat a chocolate cupcake and this one looks divine! That frosting - OMG. I need one of these right about now!

    Reply
    • Leanne says

      September 05, 2018 at 11:52 pm

      Thanks Jessica! It's hard to eat just one! The coconut whip is a bit addictive!

      Reply
  11. Melissa says

    September 04, 2018 at 10:35 pm

    I made a delicious pasta dish with grated zucchini last night and have some left over, this is perfect and sounds so yummy!!!

    Reply
    • Leanne says

      September 04, 2018 at 11:27 pm

      Thanks Melissa! Aside from baked goods, my fave way to enjoy zucchini is in a pasta dish!

      Reply
  12. Trang says

    September 04, 2018 at 1:16 pm

    5 stars
    I love that you use coconut whipped cream, I just discovered this myself and it's a life changer!

    Reply
    • Leanne says

      September 04, 2018 at 8:24 pm

      I discovered coconut whipped cream a few years ago, and it is a complete game changer! It's my go-to dairy-free frosting! Have a great week Trang!

      Reply
  13. Kelsie | the itsy-bitsy kitchen says

    September 04, 2018 at 11:25 am

    5 stars
    I LOVE these! Chocolate and zucchini are so good together! And I'm really hungry looking at your pictures--what else is new? Have a great week, Leanne!

    Reply
    • Leanne says

      September 04, 2018 at 8:23 pm

      Thanks Kelsie! Chocolate and zucchini are a great pair! And I get hungry looking at your dessert pics all the time! Enjoy your week!

      Reply
  14. Dawn says

    September 04, 2018 at 8:42 am

    5 stars
    While I'm sad that summer is coming to an end I absolutely love fall - it's my fave! These cupcakes are super fun, Leanne..I just love all those pretty sprinkles and I can only imagine how tasty that frosting is! Hope you have a fabulous week...it's a short one 😉

    Reply
    • Leanne says

      September 04, 2018 at 9:03 am

      Thanks Dawn! Yes, thank goodness for short weeks....and sprinkles! Hope your week is great too!

      Reply
  15. Neha says

    September 03, 2018 at 12:19 am

    5 stars
    Can't get any prettier Leanne! Love the moisture zucchini adds to the chocolate cupcakes. Loving all your clicks!

    Reply
    • Leanne says

      September 03, 2018 at 6:54 pm

      Thanks so much Neha! Hope you're having a great holiday weekend!

      Reply
  16. marcie says

    September 02, 2018 at 12:50 am

    5 stars
    I'm on board with summer coming to end now. Fall is my favorite time of year and always has been. 🙂 These cupcakes are so pretty and it doesn't get much better than chocolate and zucchini. That coconut whip frosting sounds fantastic!

    Reply
    • Leanne says

      September 02, 2018 at 11:29 pm

      Thanks Marcie! The coconut whip is my favourite frosting to add to desserts! I've used it in countless recipes. And I'm with you about fall. It's the best time of year!

      Reply
  17. [email protected] says

    August 31, 2018 at 7:01 pm

    Give me a big bowl of that frosting and a spoon!

    Reply
    • Leanne says

      September 02, 2018 at 11:27 pm

      Haha! I like the way you think Patrick!

      Reply
  18. annie@ciaochowbambina says

    August 31, 2018 at 2:30 pm

    5 stars
    I love how festive these are! A perfect treat for this holiday weekend! 🙂

    Reply
    • Leanne says

      September 02, 2018 at 11:26 pm

      Thanks Annie! I wish I had a batch right now!

      Reply
Newer Comments »
Image of Leanne Combden

Welcome!

Hey there! I'm Leanne and welcome to Crumb Top Baking. I'm a self-taught baker, home cook and food photographer, and I'm passionate about sharing well-tested, simple and approachable desserts and savory recipes

More about me

Popular Recipes

  • Air fryer baby potatoes served in a white bowl and topped with sea salt and chopped fresh parsley.
    Air Fryer Baby Potatoes (Just 4 Ingredients!)
  • Air fryer tortilla chips served on a round platter with salsa and guacamole on the side.
    Homemade Air Fryer Tortilla Chips (with Corn or Flour Tortillas)
  • Air fryer pork schnitzel on a white plate with green beans and a lemon wedge.
    Crispy Air Fryer Pork Schnitzel
  • Ground beef fajitas with toppings arranged on a platter.
    Ground Beef Fajitas with Homemade Fajita Seasoning
  • Side view of half an almond flour cupcake on a cupcake liner.
    Vanilla Almond Flour Cupcakes
  • A slice of eggless banana cake topped with cream cheese frosting being removed from the cake platter.
    Easy and Moist Eggless Banana Cake Recipe

Air Fryer Recipes

  • Overhead view of air fryer cake topped with chocolate frosting and cut into some slices.
    Chocolate Air Fryer Cake
  • Air fryer butternut squash cubes in a serving dish with chopped pecans, pumpkin seeds and fresh herbs.
    Air Fryer Butternut Squash
  • Close up view of air fryer cornflake chicken strips on a plate.
    Crispy Air Fryer Cornflake Chicken Strips
  • Air fryer carrots served in a white dish with fresh parsley and salt and pepper on the side.
    Air Fryer Carrots (Garlic Herb)
  • Overhead view of air fryer parmesan potatoes on a white plate next to chopped chives and parmesan cheese.
    Golden and Crispy Air Fryer Parmesan Potatoes
  • Up close view of air fryer roasted beets in a white bowl with a spoon inserted into the beets.
    Air Fryer Beets (Easy Roasted Beets)

Footer

↑ back to top

About

  • About Leanne
  • Privacy Policy
  • Contact

Newsletter

  • Sign Up! for emails and updates

Recipes

  • All Recipes
  • Air Fryer Recipes
  • Almond Flour Recipes

Copyright © 2026 Crumb Top Baking

Rate This Recipe

Your vote:




A rating is required
A name is required
An email is required

Recipe Ratings without Comment

Something went wrong. Please try again.