Moist Chocolate Pistachio Cake with Crunchy Pistachios
This moist chocolate pistachio cake is the kind of dessert that feels special without any fuss.

It’s a simple loaf cake loaded with rich cocoa flavor and plenty of chopped pistachios, both in the batter and scattered on top. The salty, crunchy nuts break up the tender crumb in a way that lets a single slice be its own perfect bite.
Why This Chocolate Pistachio Cake Works
I bake this cake whenever I need a sure thing. The crumb is tight and tender from the buttermilk, and the pistachios add a salty crunch that plays off the bittersweet chocolate.
There’s no layering or frosting, so it comes together fast and still looks beautiful when you slice it. That crackly top with a handful of nuts is all the topping it needs.
Ingredients

- 1 3/4 cups all-purpose flour: spooned and leveled, not scooped. Unbleached works best.
- 3/4 cup unsweetened cocoa powder: Dutch-process gives a darker result, natural is lighter.
- 1 1/2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1/2 teaspoon salt: use fine sea salt or table salt.
- 1 teaspoon instant espresso powder (optional): sharpens the chocolate without adding coffee flavor.
- 1 cup (2 sticks) unsalted butter, softened to room temperature: if using salted butter, reduce the added salt to 1/4 teaspoon.
- 1 1/2 cups granulated sugar
- 3 large eggs, at room temperature
- 2 teaspoons vanilla extract
- 1 cup buttermilk, at room temperature: if you don’t have buttermilk, stir 1 tablespoon lemon juice into 1 cup milk and let it sit for 5 minutes.
- 3/4 cup shelled pistachios, roughly chopped, plus 2 tablespoons for topping: salted or unsalted works; taste and adjust the salt in the batter if needed.
Variations / Substitutions
- Swap half the pistachios: use almonds, walnuts, or hazelnuts for a different nutty crunch.
- Make it gluten-free: a 1-to-1 gluten-free baking flour blend replaces the all-purpose flour without changing the method.
- Add a swirl: drop spoonfuls of pistachio cream or Nutella on top of the batter before baking and run a knife through it for a marbled effect.
If you like this, try my Chocolate Hazelnut Loaf Cake.
How to Make Chocolate Pistachio Cake
Step 1: Mix the Dry Ingredients

Preheat your oven to 350°F (175°C). Grease a 9×5-inch loaf pan and line it with parchment paper, leaving an overhang on the long sides. In a medium bowl, whisk together the 1 3/4 cups flour, 3/4 cup cocoa powder, 1 1/2 teaspoons baking powder, 1/2 teaspoon baking soda, 1/2 teaspoon salt, and the optional 1 teaspoon espresso powder until no streaks remain.
The mixture will look uniformly dark, and the cocoa should be fully blended. A quick whisk here prevents bitter pockets of baking soda later.
Step 2: Cream the Butter and Sugar

In a large bowl, beat the 1 cup softened butter and 1 1/2 cups sugar with an electric mixer on medium-high speed for about 3 minutes, scraping down the bowl once halfway through. The butter will turn pale and fluffy.
Rub a little of the mixture between your fingers; when the sugar grains feel almost dissolved, you’re done. This step traps air and gives the cake its lift.
Step 3: Alternate the Dry and Buttermilk

Add the 3 eggs one at a time, beating well after each, then mix in the 2 teaspoons vanilla. With the mixer on low, add the dry ingredients in three additions, alternating with the 1 cup buttermilk. Start and end with the dry mix, and blend just until incorporated after each addition, about 15 seconds, no longer.
The batter will be thick and glossy. A few faint flour streaks before the last addition are fine; overmixing makes the cake tough.
Step 4: Fold in the Pistachios and Bake

Switch to a spatula and fold in the 3/4 cup chopped pistachios until evenly distributed. Scrape the batter into the prepared loaf pan, smooth the top, and scatter the reserved 2 tablespoons of chopped pistachios over the surface. Bake for 55 to 60 minutes, until a toothpick inserted in the center comes out with a few moist crumbs clinging, not wet batter.
The kitchen will smell deeply of chocolate after half an hour, and the top will develop a crack down the middle. That crack tells you the cake is rising well. If the nuts on top brown too quickly, tent the pan loosely with foil after 40 minutes.
Step 5: Cool and Slice

Let the cake cool in the pan on a wire rack for 10 minutes, then use the parchment overhang to lift it out. Cool completely on the rack, about 1 hour. Slice with a serrated knife and serve.
The crust will be delicate and crisp-edged, while the inside stays incredibly moist. You’ll get salty pistachio crunch in every bite, and the cake slices cleanly.
Tips for the Best Chocolate Pistachio Cake
- Toast the pistachios in a dry skillet over medium heat for 3 to 4 minutes, shaking often, before chopping. This deepens their flavor and makes them extra crunchy.
- Use room temperature butter, eggs, and buttermilk. Pull everything from the fridge about an hour before you start so the batter stays smooth.
- A kitchen scale gives the most consistent results, especially for flour and cocoa. If you don’t have one, spoon the flour into your measuring cup and level it without packing.
Bake times vary by pan size:
| Pan Size | Bake Time |
|---|---|
| 9×5-inch loaf pan | 55-60 minutes |
| 8×8-inch square pan | 40-45 minutes |
| 9-inch round cake pan | 35-40 minutes |
Storing Leftover Cake
- Refrigerate: store the cooled cake tightly wrapped at room temperature for up to 3 days, or in the fridge for up to 5 days.
- Reheating: warm individual slices in the microwave for 15 to 20 seconds to soften the crumb and bring back that just-baked richness.
What to Serve with Chocolate Pistachio Cake
This cake stands alone just fine, but a scoop of lightly sweetened mascarpone or whipped cream offsets the deep cocoa flavor nicely. A cup of strong black coffee cuts through the sweetness and plays up the chocolate, and a drizzle of warm chocolate sauce turns it into a real dessert moment.
Frequently Asked Questions
Can I use pistachio paste instead of chopped pistachios?
Yes, but use it differently. Swirl 1/3 cup of pistachio paste through the batter right before baking for ribbons of intense nut flavor.
Why did my cake sink in the middle?
Oven temperature that’s too low or opening the door early in the bake can cause sinking, as can overmixing the batter after adding the flour. Check your oven with an external thermometer and resist peeking before the 50-minute mark.
Can I freeze this cake?
Yes. Wrap the fully cooled cake tightly in a layer of plastic wrap and then foil. Freeze for up to 2 months, and thaw overnight at room temperature before slicing.
Can I make this cake dairy-free?
You can. Swap the butter for a solid plant-based butter alternative, and replace the buttermilk with 1 cup of unsweetened oat milk mixed with 1 tablespoon apple cider vinegar. The texture will be slightly different but still tender.

Chocolate Pistachio Cake Recipe
Ingredients
Method
- Preheat oven to 350°F (175°C). Grease a 9×5-inch loaf pan and line with parchment. Whisk together flour, cocoa, baking powder, baking soda, salt, and espresso powder if using.
- Beat butter and sugar on medium-high until pale and fluffy, about 3 minutes. Add eggs one at a time, then vanilla.
- With mixer on low, add dry ingredients in three additions, alternating with buttermilk, mixing just until combined.
- Fold in 3/4 cup chopped pistachios. Scrape batter into pan, smooth top, and sprinkle with remaining pistachios. Bake 55 to 60 minutes, until a toothpick comes out with a few moist crumbs.
- Cool in pan 10 minutes, lift out, and cool completely on a rack. Slice and serve.
