This black bean chocolate cake is fudgy, decadent, and completely gluten-free! I promise that no one will guess it’s flourless and made with a whole can of black beans. It’s incredibly easy to make entirely in a blender with simple pantry ingredients like eggs, sugar, oil and cocoa powder.

While a black bean chocolate cake probably sounds like the worst version of healthy desserts, I’m here to change your mind. When I lived with my old roommate who used to try all of my desserts, she told me that this was one of the best desserts I’ve ever made. And she had no idea that it was made from black beans! (I even made it as her birthday cake one year.)
This cake is not only gluten-free and dairy-free, but you get a decent amount of protein and fiber from a whole can of black beans and lots of eggs. While I’ve made some failed black bean brownies, there’s something more forgiving about black beans in a cake texture. Somehow, the oil, cocoa powder and sugar manage to transform the beans into a light yet fudgy texture that will fool pretty much any chocolate cake lover.

Ingredients

- Black beans: These are the main ingredient that provide the structure usually lent from flour in a cake. You can use canned black beans or beans that you’ve cooked from dry (you’ll need a total of 1 and 3/4 cups of cooked beans). If using canned black beans, make sure they’re unseasoned. Most canned beans have a decent level of sodium, so I don’t call for any added salt. If using no-sodium beans or black beans from scratch cooked without salt, increase this to 1/4 tsp.
- Granulated sugar: You may swap the white sugar for light brown sugar if that’s all you have.
- Large eggs: The eggs are crucial for adding structure, moisture and richness to this cake. I’ve tested flaxseed and aquafaba as egg replacers in this cake and neither worked well (the tests sunk and tasted bean-y). However, one reader reported that using a chickpea flour slurry worked well as an egg replacement for this cake. I haven’t yet tried, but will report back if I do!
- Olive oil, neutral oil, melted butter, or refined coconut oil: While I slightly prefer using butter, you can use any fat that you prefer! Make sure to use a mild olive oil or refined coconut oil to avoid overpowering the chocolate flavor.
- Vanilla extract: I’ve used both pure vanilla extract and imitation vanilla and both will work well.
- Unsweetened cocoa powder: I strongly recommend using Dutch-process cocoa for its richer color and the best flavor. A few favorite brands include Hershey’s Special Dark, Valrhona and Droste. However in a pinch, regular cocoa (like Hershey’s) will also work.
Butter vs. oil
I recently re-tested this cake with olive oil (below left) vs. creamed butter (below right).
As you can see, the crumb is slightly tighter, more even and a little more crumbly with the creamed butter, but the the overall texture is so similar that I don’t think creaming is worth the extra effort. I thought the flavor of the butter cake was SLIGHTLY preferable to the oil-based cake, but they’re honestly fairly interchangeable.
I’ve updated the recipe to remove the creamed butter option. Feel free to use melted butter or any type of oil you like and use the blender method!

How to make this black bean chocolate cake recipe
Step 1: Preheat the oven and prep the pans. Preheat oven to 350 degrees F and grease 2 6-inch round cake pans. Line the bottom of the pan with a round of parchment paper for extra security to ensure the cake comes out smoothly.
Step 2: Blend the batter. In a high speed blender or food processor, place beans, sugar, eggs, oil and vanilla and blend until completely smooth. Add the dry ingredients and blend until smooth.
Step 3: Bake! Pour bean batter into each prepared pan and bake for 30-35 minutes, or until the top springs back. Let rest in the pan for 5 minutes before flipping the cake onto a wire rack to cool. Make the frosting as you let the cake cool completely.

What does flourless black bean chocolate cake taste like?
Coming from someone who has tried a lot of chocolate cakes, this tastes exactly like regular chocolate cake. The crumb is tender, moist, a little fudgy and not too sweet. I promise you won’t taste the black beans at all!
Frosting recommendations
I highly recommend pairing this cake with a regular chocolate buttercream!
- Chocolate Greek yogurt frosting: I love this frosting because you can mix it by hand in one bowl (almost as easy as the cake). It has a softer, creamy texture and gets its body and an extra boost of protein from the addition of Greek yogurt! Rich, chocolate-y and just a tiny bit tangy.
- Sally’s chocolate buttercream: My go-to for a conventional buttercream! Half of the linked recipe is just enough to frost this 6″ double layer cake. I’d use the full recipe if you want a more generous amount of frosting. A peanut butter filling would also work really well with this cake!
- A very simple glaze: One reader noted that she made a simple glaze with melted chocolate chips and almond milk that worked well with this cake made in an 8×8 pan. I’d estimate 2/3 cup of chocolate chips with 2-3 tbsp of milk (depending on how thick you want the glaze) would work well.
What ingredients are in the vegan frosting?
Back in the day, I used to frost this cake with a vegan pudding frosting adapted from Angelica’s Kitchen. I now prefer this with a regular chocolate buttercream, though I’m still including the recipe for the pudding frosting below since it’s great for those with dietary restrictions.
The original vegan frosting uses a few unusual ingredients:
- Maple syrup: for sweetness.
- Cornstarch: for thickening properties.
- Agar flakes: a sea vegetable superfood that serves as a gelatin substitute. When boiled with water, the flakes create a jelly-like texture.
- Cocoa powder: for chocolate-y flavor.
- Milk: I used almond milk, but you can use any milk you like. Coconut milk could be a great option for a slightly richer flavor.
- Vanilla: for enhanced flavor
All of these ingredients combine to form a frosting with the texture of chocolate pudding. You can tell it’s fat-free thanks to a lack of richness, but the good thing about it? It’s a nice light frosting that will be safe for vegans and gluten-free folk alike.

How to store black bean cake?
I would recommend storing leftover slices of cake in an airtight container in the fridge for up to 1 week. You can also wrap individual frosted slices in plastic wrap, slip into a freezer bag and freeze for up to 1 month.
If you loved this cake, you may also like:
- The peanut butter sibling to this cake: my peanut butter chickpea cake!
- For another chocolate-y treat with no refined sugar, these vegan mini chocolate muffins are another classic recipe that uses date paste as a wholesome sweetener.
- This cottage cheese cheesecake is made with just cottage cheese and Greek yogurt for a higher-protein version of a delicious classic cheesecake!
- A decadent flourless chocolate cake with an aquafaba meringue
- This lemon meringue pie has a tofu-based filling with an aquafaba meringue
Flourless Black Bean Chocolate Cake (gluten-free!)
Video
Ingredients
For the cake
- 1 15.5 oz can black beans, drained and rinsed* or 1 3/4 cups cooked black beans (301g)
- 3/4 cup granulated sugar 150g
- 4 large eggs 200g
- 5 tbsp melted butter or oil of your choice (vegetable, canola, grapeseed, avocado, a mild olive oil or refined coconut oil all work) 70g
- 1 tbsp vanilla extract
- 5 tbsp cocoa (Dutch-process preferred) 26g
- 1 tsp baking powder
- 1/2 tsp baking soda
Instructions
Make the cake
- Preheat oven to 350F. Grease and line 2 6-inch round cake pans with parchment paper.
- In a high speed blender or food processor, puree the beans, sugar, oil, eggs and vanilla until completely smooth.
- Add the cocoa powder, baking powder and baking soda directly to the blender and blend until smooth.
- Divide batter equally into prepared pans and bake for 30-35 minutes, or until the top springs back. Let cool for 5 minutes before flipping the cake onto a cooling rack. Make the frosting as the cake cools completely. (I recommend this chocolate Greek yogurt frosting!)
Notes
Did you try this recipe?
Leave a star rating ⭐️ below to help others discover this recipe!Vegan Chocolate Pudding Frosting
Ingredients
- 6 tbsp agar flakes
- 1.5 cups water
- 3/4 cups cocoa powder (Dutch-process preferred)
- 3/4-1 cup pure maple syrup
- 1.5 tsp vanilla extract
- 1/4 tsp kosher salt
- 3 tbsp cornstarch
- 6 tbsp milk, your choice (I used almond)
Instructions
- Combine the agar flakes and water over medium heat for 3 minutes, whisking occasionally. Then whisk in the cocoa powder, maple syrup, vanilla and salt.
- Combine the cornstarch and almond milk in a small bowl and add the cornstarch slurry to the agar mixture. Continue to cook, stirring constantly, until the mixture starts to bubble and thicken. Let cook for 1 full minute to activate the cornstarch, then remove from heat.
- Pour into a glass pan or measuring cup and refrigerate for at least 20 minutes, or until the cake is ready to be frosted. Whisk the frosting by hand or with an electric beater to fluff up before frosting the cake.



Laura Stoddard
This looks fantastic! I did not have a chance to go through all the comments to check. I was wondering if I can make this sugar-free? What would you suggest? Also, for the frosting would sugar-free maple syrup work?
erika
I haven’t tested any sugar-free subs so unfortunately can’t recommend any subs. Sugar-free maple syrup should work in the frosting, yes!
GG
The absolute best chocolate cake recipe and the easiest. I take it out of the oven at 30 minutes and it comes out perfect!
Sonya
I just made and tested this cake out of straight curiousity. Thee best chocolate cake I’ve EVER tasted! I made the chocolate greek yogurt frosting and used the remaining chocolate bar for shavings on top as decoration – PERFECT COMPLIMENT!
YOU MADE A BELIEVER OUT OF ME!!!
erika
Ahhh so glad to hear it!!
Stacey Shelby
Can I use coconut sugar instead of white sugar and is there a sub for the agar flakes? I don’t have those.
erika
Coconut sugar should be fine (cake might be slightly less sweet). Gelatin is the typical sub for agar flakes–I might recommend using the yogurt frosting instead!
Katherine
Oh my goodness! I’m blown away by how fluffy and delicious this cake is! I’ll admit, I was skeptical at first, but wow, I was pleasantly surprised! This recipe is definitely a keeper. Thank you so much!
The only changes I made were using unrefined coconut oil (we love coconut flavoring with chocolate), 8-inch pans (baked for just 20 minutes), and Lakanto Monk Fruit with Allulose. I also used coconut oil in the Greek yogurt chocolate icing with sugar-free semi-sweet chocolate chips, and it turned out amazing!
My husband and I absolutely loved it! It’s even delicious the next day after being refrigerated. I’m truly in love with this recipe and can’t wait to try your chickpea cake next. Thanks again! ❤️
erika
Ahh so glad to hear you and your husband loved it!! <33
Theresa
This recipe yielded some amazing cupcakes! They were moist and cake-like. The frosting was a bit sweeter than I’d like, but overall it was a hit with my family. No one could believe that they were made with black beans! I will have to try it with less sugar next time.
erika
Thank you for reporting back Theresa!
Kayla
I made this cake. Grateful for this protein desert. I reduced the sugar, used 3/4 C coconut sugar for the cake.
Made half the quantity of icing and could make slightly less. The icing goes hard with that much Agar agar. Did she mean teaspoons instead of tablespoons ? I used honey and halved the quantity, could possibly use even less.
I think it would be improved by a cashew nut cream cheese filling with cashew nut cream cheese piping on top and some fresh strawberries.
erika
Hi Kayla, thanks for reporting back! I honestly haven’t made this frosting in over 10 years–I will try to retest it soon and update the recipe!
Lindsay
This cake is awesome! I’ve tried similar recipes so I had faith. Brought it to work and everyone couldn’t believe the ingredients! I have a question: do you think aquafaba in place of the eggs could work? I have a vegan friend and thought I’d maybe try it. Thanks so much!
erika
Ahh so glad it was a hit at work! And such a good question–unfortunately, I tried it and the aquafaba definitely did not work. The cake sank and tasted much more beany–not good from a flavor or texture perspective 🙁
Jane
Hi, can I substitute sugar for Allulose?
erika
Unfortunately I don’t bake with Allulose so I can’t advise on that!
Katherine
Hi Jane! I substituted the sugar for Lakanto Monk fruit with Allulose and it turned out amazing! I truly enjoyed it! Try it out. ☺️
Shalonne Seward
I recently made frosting with Oki triple zero Greek yogurt I had vanilla so that’s what I used. I melted, sugar-free chocolate chips with a small amount of coconut oil so that will firm up when it cools. It made the best, creamiest frosting! I’m vegetarian and try to go sugar-free when possible. this also adds protein! You may be able to use cocoa powder. I haven’t tried it yet. I’m not sure if it would spread as well? Thank you for the recipes.!
erika
Sounds amazing!! Thank you for reporting back!
Pam
Can this cake be made in advance abs frozen?
erika
Yes! I would freeze it for up to two weeks, wrapped very well!
Gima
This cake is amazing. I am making it again for my daughter’s birthday (per her request), but I want to make it the day before. Should I put the cake in the refrigerator or leave it out (covered)?
erika
Honestly either would be fine–I personally would probably wrap it well in plastic wrap and refrigerate it!
Vonda
This cake is SO good! I made with the boiled egg chocolate pudding recipe, whipped coconut cream & fresh berries 13/10
Dawn
Can I substitute honey for the sugar?
erika
I haven’t personally tried but I think it should work!
Alyssa
Yum! The texture and flavor of this is outstanding. Just like regular cake. I used vanilla bean paste and half coconut sugar/half allulose and it was not overly sweet. I will definitely make this again!