• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Free Dinner Ebook! Get your copy!
  • About
  • Videos
  • Learn to Cook
  • Visit my other site: Fun Cookie Recipes

Little Sunny Kitchen

Delicious Recipes for Real Life

  • All Recipes
  • Course
    • Appetizers
    • Breakfast
    • Sides
    • Dinner
    • Casseroles
    • Salads
    • Sandwiches
    • Pasta
    • Soups & Chilis
    • Desserts
    • Snacks
    • Sauces & Dressings
    • Beverages
  • Holiday
    • Easter
    • Summer
    • Fall
    • Halloween
    • Thanksgiving
    • Christmas
    • Valentine’s
    • Game Day
    • Ramadan
  • Method
    • Instant Pot
    • Air Fryer
    • Slow Cooker
    • Oven
    • Casseroles
    • Stovetop
    • Grill
    • Bread Machine
  • Easy Meals
  • Slow Cooker
  • Air Fryer
  • Breakfast
  • Snacks
  • Copycat Recipes
  • Beef
  • Low Carb
  • Chicken
Home Dessert Cakes

Chocolate Zucchini Cake With Cream Cheese Frosting

This easy and totally decadent Chocolate Zucchini Cake is the best, with a thick layer of homemade chocolate cream cheese frosting.
Rate Recipe Leave a Comment
Jump to Recipe
  • Share
By: Diana Last updated on October 9, 2024

This post may contain affiliate links. Please read my disclosure policy.

a square slice of zucchini cake with a thick layer of chocolate frosting. Text overlay says "chocolate zucchini cake"

This easy and totally decadent Chocolate Zucchini Cake is so good, nobody will expect that you put vegetables in it!

This is chocolate cake at its very best: Moist, dense, and rich, topped with a generous layer of homemade chocolate cream cheese frosting.

a hand holding a spatula, lifting up a square slice of chocolate zucchini cake with frosting.


If you’re looking for zucchini recipes, and not really into making yet another batch of zucchini bread or zucchini soup, then you’re going to love this recipe!

This is the recipe that turns all of your extra summer zucchini into one of the best chocolate cakes you’ve ever had!

Shredded zucchini adds the perfect amount of moisture and texture to this old fashioned chocolate cake recipe, and the homemade chocolate frosting takes makes it over-the-top amazing.

a square slice of chocolate cake with chocolate frosting. In the background are zucchinis and a cup of coffee.

Chocolate Zucchini Cake Highlights

  • Rich Chocolate Flavor – Plenty of cocoa powder gives this cake the perfect amount of chocolatey flavor without being overpowering.
  • Moist, Tender Crumb – Zucchini adds extra moisture to the cake batter without weighing it down. You’ll see!
  • A Healthier Option – I won’t say that this is a recipe for health food, but you’ll find that my zucchini cake recipe has less sugar in it than many of the other recipes you’ll find. This cake is sweet, but not overly so. It’s perfect! There’s also a little bit of fiber in it from the squash!

Key Ingredients

Here’s what you need to make the best zucchini chocolate cake:

Ingredients needed to make a chocolate cake with zucchini from scratch, measured out and arranged on a marble counter.

Complete list of ingredients and amounts can be found in the recipe card below.

  • Cocoa Powder: Use your favorite unsweetened cocoa powder for this recipe, but avoid using Dutch processed cocoa powder. I find that the processed version doesn’t give the right flavor in this recipe.
  • Zucchini: You’ll need a medium zucchini, shredded, to add to the cake batter. Once you’ve shredded the zucchini, squeeze it to remove as much moisture as you can.
  • Flour, Baking Soda, and Salt: The dry base for this cake batter is probably one that you’ll recognize. Baking soda helps to give the cake some lift in the oven.
  • Eggs: Allow your eggs to come to room temperature before mixing them in. This will give us a smooth mixture.
  • Sugar: Regular granulated sugar is perfect in the cake recipe.
  • Oil: There’s no need to cream any butter in this cake recipe! Vegetable oil works really well instead.
  • Salt and Vanilla Extract: To enhance the chocolate flavor even more!

Chocolate Cream Cheese Frosting Ingredients

This chocolate zucchini cake is delicious on its own, but I don’t recommend skipping the cream cheese frosting! It’s so, so good!

The ingredients needed to make a rich chocolate cream cheese frosting, all in small bowls, arranged on a marble counter.
  • Butter and Cream Cheese: Be sure that these ingredients are fully softened at room temperature or your frosting will have lumps.
  • Powdered Sugar
  • Cocoa Powder
  • Vanilla Extract and Salt

How To Make Zucchini Chocolate Cake

flour, cocoa powder, salt, and baking soda whisked together in a large glass mixing bowl.
1. Mix Dry Ingredients: Whisk together the flour, cocoa powder, salt, and baking soda.
sugar, oil, eggs, whisked together in a large glass bowl.
2. Mix Wet Ingredients: In a second bowl, beat together the sugar, eggs and vanilla until smooth and pale.
flour and cocoa powder added to cake batter with a whisk inside a glass mixing bowl.
3. Combine Wet and Dry: With the mixer on low, gradually add the flour mixture to create a thick batter.
shredded zucchini added to chocolate cake batter in a glass mixing bowl with a red spoon.
4. Add Zucchini: Fold in the grated zucchini.
chocolate zucchini cake batter in a square pan lined with parchment that is held with binder clips.
5. Pour: Add the chocolate cake batter to a 9-inch square cake pan that is lined with parchment paper.
baked chocolate zucchini cake in a square pan, lined with parchment paper.
6. Bake: Bake in a preheated 350°F (180°C) oven for 20-25 minutes. Allow to cool completely.

How to Make Chocolate Cream Cheese Frosting

whipped butter and cream cheese in a glass mixing bowl.
1. Cream Butter and Cream Cheese: Beat the butter and cream cheese until creamy.
cocoa and powdered sugar added to whipped butter and cream cheese to make chocolate frosting.
2. Add Remaining Ingredients: Mix in the vanilla extract and salt, then gradually add the powdered sugar and cocoa powder.
whipped chocolate cream cheese frosting in a glass mixing bowl.
3. Beat Until Smooth: Mix well until the frosting is smooth. Add milk or heavy cream if needed to adjust the consistency.
chocolate cake in a square pan, covered in chocolate frosting.
4. Frost the Cake: Generously spread the chocolate frosting over the cooled cake.

Tip!

Be sure to let your chocolate zucchini cake cool down completely before covering it with frosting so that the frosting doesn’t melt!

Recipe Tips

  • Squeeze the zucchini well. Remove as much excess moisture as you can from the shredded zucchini by using your hands to really squeeze it.
  • Avoid overmixing. Add the flour gradually, and only mix for as long as it takes to incorporate. When you no longer see dry streaks in the bowl, stop mixing!
  • Choose your pan. I suggest using a 9-inch square pan for this recipe, but it will also work fine in an 8-inch square pan or 9-inch round pan. You should also be able to make it in a standard Bundt pan!
  • Add more chocolate! Stir about ½ cup of regular or mini chocolate chips into the cake batter before baking if you like. You can also top the cake with extra chocolate chips as a tasty decoration.
a square piece of chocolate zucchini cake with frosting. A fork has removed a bite from the corner.

Storing Tips

Keep this zucchini cake in an airtight container in the fridge. It should stay fresh for 2-3 days this way.

You can also freeze slices of cake in containers for up to 3 months.

You won’t want to leave the frosted cake at room temperature for too long, since the frosting is made with cream cheese.

More ways to Make a Chocolate Cake

I have a huge fondness for chocolate cakes, and I have many delicious recipes for them here. Try one of these decadent dessert recipes next:

  • Old-Fashioned Mayonnaise Cake
  • Chocolate Cupcakes
  • Texas Sheet Cake
  • Coca Cola Cake
  • Earthquake Cake
  • Ding Dong Cake
  • Vegan Chocolate Cake
  • Chocolate Layer Cake
chocolate zucchini cake cut into squares.

Recipe FAQs

Do you need to peel zucchini before baking with it?

It’s generally not necessary to peel the zucchini before grating it. The only time it could be is if you really don’t want any green specks in the cake, or if your zucchini’s skin is particularly thick.

What is the best way to shred zucchini for cake?

I like to shred the zucchini with the larger holes on my box grater for zucchini desserts. It’s pretty quick and easy! You can also grate it using a food processor if you prefer.

Does zucchini cake taste like zucchini?

I don’t think so! Zucchini already has a very mild flavor, so it’s easily covered by sugar and chocolate in this recipe.

More Cake Recipes!

Strawberry Tres Leches Cake

Banana Pudding Poke Cake

Classic Red Velvet Cake

Red, White, and Blue Fourth of July Cake

All Cakes →

This chocolate zucchini cake with chocolate cream cheese frosting is truly amazing! Save this for for the next time you have some extra zucchinis to cook, everyone will be so happy to enjoy this zucchini dessert recipe.

Did you make this? Be sure to leave a review below and tag me on Facebook, Instagram, or Pinterest!

Recipe
a square piece of chocolate zucchini cake with frosting. A fork has removed a bite from the corner.
No ratings yet
(Click stars to rate!)

Chocolate Zucchini Cake

Prep Time: 20 minutes mins
Cook Time: 20 minutes mins
Total Time: 40 minutes mins
Author: Diana
Print Rate Recipe
This easy and totally decadent Chocolate Zucchini Cake is the best, with a thick layer of homemade chocolate cream cheese frosting.
9 servings
This easy and totally decadent Chocolate Zucchini Cake is the best, with a thick layer of homemade chocolate cream cheese frosting.

Equipment

  • Mixing Bowl
  • Electric Hand mixer or Stand mixer
  • 9 inch square pan

Ingredients 

Cake:

  • 1 ½ cups (180 g) all-purpose flour
  • ¼ cup (25 g) unsweetened cocoa powder not Dutch process
  • ½ teaspoon baking soda
  • ¼ teaspoon kosher salt
  • 1 cup (200 g) granulated sugar
  • ½ cup (120 ml) vegetable oil
  • 2 large eggs
  • ½ teaspoon pure vanilla extract
  • 1 medium (170 g) zucchini grated and squeezed dry (2 cups, 6oz/170g)

Frosting:

  • ½ cup (113 g) unsalted butter softened
  • 8 ounces (225 g) cream cheese softened
  • 1 teaspoon vanilla extract
  • ⅛ teaspoon kosher salt
  • 1 ½ cups (200 g) powdered sugar
  • ½ cup (50 g) cocoa powder

Instructions 

  • Preheat the oven to 350°F (180°C), or 160°C for a fan oven. Line a 9-inch square baking pan with parchment paper.
  • In a medium bowl, whisk together the flour, cocoa powder, baking soda, and salt. Set aside.
  • In a large bowl, beat together the sugar, oil, eggs, and vanilla extract with a mixer on medium speed until smooth and pale, about 3 minutes.
  • Reduce mixer speed to low and gradually add the flour mixture. Mix until just combined, about 2 minutes. The batter will be thick.
  • Stir in the grated and squeezed zucchini.
  • Pour the batter into the prepared pan. Bake for 20 to 25 minutes, or until a toothpick inserted into the center comes out clean. Allow to cool completely in the pan on a wire rack.

Make the Frosting

  • In a large bowl, beat the butter and cream cheese with a mixer on medium speed until creamy.
  • Add vanilla extract and salt, mixing until combined.
  • Gradually add powdered sugar and cocoa powder, beating until smooth. Adjust consistency with milk or cream if necessary.
  • Spread the frosting evenly over the cooled cake. Cut into squares and serve.

Notes:

  • Squeeze the zucchini well. Remove as much excess moisture as you can from the shredded zucchini by using your hands to really squeeze it.
  • Avoid overmixing. Add the flour gradually, and only mix for as long as it takes to incorporate. When you no longer see dry streaks in the bowl, stop mixing!
  • Choose your pan. I suggest using a 9-inch square pan for this recipe, but it will also work fine in an 8-inch square pan or 9-inch round pan. You should also be able to make it in a standard Bundt pan!
  • Add more chocolate! Stir about ½ cup of regular or mini chocolate chips into the cake batter before baking if you like. You can also top the cake with extra chocolate chips as a tasty decoration.
  • To Store: Keep in an airtight container at room temperature for up to 3 days.

Nutrition Information

Serving: 1slice, Calories: 561kcal, Carbohydrates: 64g, Protein: 7g, Fat: 33g, Saturated Fat: 14g, Polyunsaturated Fat: 8g, Monounsaturated Fat: 8g, Trans Fat: 0.5g, Cholesterol: 89mg, Sodium: 256mg, Potassium: 240mg, Fiber: 3g, Sugar: 44g, Vitamin A: 750IU, Vitamin C: 4mg, Calcium: 49mg, Iron: 2mg

This website provides approximate nutrition information for convenience and as a courtesy only. Nutrition data is gathered primarily from the USDA Food Composition Database, whenever available, or otherwise other online calculators.

© Little Sunny Kitchen

Did You Make This?I love to see what you made! Tag me @LittleSunnyKitchen and hashtag #LittleSunnyKitchen
Pin Recipe Tag on Insta Leave Review

You may also like...

  • Sliced zucchini bread on a wire rack with a green zucchini in the background
    Zucchini Bread
  • a stack of fried zucchini fritters topped with sour cream and sliced green onion.
    Zucchini Fritters
  • a ladle serving creamy, green zucchini soup from a red dutch oven.
    Zucchini Soup
  • Piped cinnamon cream cheese frosting in a small bowl
    Cinnamon Cream Cheese Frosting
Overhead shot of Bulgur Mujadara served in a large oval white plate, topped with crispy onions and fresh mint leaves as a garnish
Previous Post
Mujadara With Bulgur
a cheeseburger on a sesame seed roll topped with thick slices of red onion and tomato, pickle chips, and sauce.
Next Post
Perfect Grilled Burgers

Reader Interactions

Leave a Review! Cancel reply

Have a question or just want to say how much you loved the recipe? Leave a rating below, save for later on Pinterest, and share on Facebook. Your email address will not be published. Required fields are marked *

Rate this recipe!




Primary Sidebar

Diana, author of Little Sunny Kitchen.
Welcome

Meet Diana

Welcome to Little Sunny Kitchen! I'm Diana and I’m here to teach you how to make easy meals that are quick, family-friendly, and delicious!

Read More
Follow on Pinterest for more ideas!
Free ebook!

Download My Free Dinner eBook!


Get my copy!

Free eBook

Download My Free Dinner eBook!

Popular Recipes

Marry Me Chicken

Creamy Garlic Shrimp Pasta

Garlic Butter Chicken Tenders

Air Fryer Chicken Breast

Rasta Pasta Recipe

Shredded Chicken Tacos

Reader Favorites

a light green plate of spaghetti and meat sauce with hidden vegetables.

Meat Sauce with Hidden Vegetables

top down view of cheesy beef enchiladas in a casserole pan.

Ground Beef Enchiladas

Oven Baked Chicken and Rice

three mahi mahi tacos on a wooden board.

Mahi Mahi Fish Tacos

Cheesy Chicken Fajita Casserole

two white bowls of lasagna soup with a dollop of ricotta cheese and other cheeses, garnished with fresh herbs.

Lasagna Soup

Instant Pot Air Fryer Crockpot Easy Dinners Salads Grilling
Opens in a new window Opens an external site Opens an external site in a new window

As Featured On:

Dinner tonight
Free ebook!

Get My Free Dinner eBook!

Join us and receive new recipes every week! Receive our FREE eBook with quick and easy dinner recipes that are family-friendly and delicious.

Back to Top

explore

Recipe Index

Videos

Cooking Guides

Follow Along on Social:

Join My Free Cookie Facebook Group
Back to Top

About

Contact

Privacy Policy

Accessibility

© 2025 Little Sunny Kitchen
|
Site Credits Designed by Melissa Rose Design Developed by Once Coupled

Rate This Recipe

Your vote:




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