This pistachio coconut cake is a fragrant, moist layer cake that pairs the buttery crunch of pistachios with the tropical sweetness of shredded coconut. Topped with a silky cream cheese buttercream, the cake stays tender for days and makes a stunning centerpiece for brunch, birthdays, or any celebration where a touch of elegance is welcome.
Ingredients
- 2 ½ cups (310 g) all‑purpose flour
- 1 ½ tsp baking powder
- ½ tsp baking soda
- ¼ tsp salt
- 1 cup (120 g) unsweetened shredded coconut
- ½ cup (70 g) finely chopped pistachios, plus extra for garnish
- 1 ¾ cups (350 g) granulated sugar
- ½ cup (115 g) unsalted butter, softened
- ½ cup (120 ml) vegetable oil
- 4 large eggs, room temperature
- 1 tsp pure vanilla extract
- 1 tsp almond extract (optional)
- 1 cup (240 ml) whole milk, room temperature
- ¼ cup (60 ml) coconut milk
- For the cream cheese buttercream:
- 8 oz (225 g) cream cheese, softened
- ¼ cup (60 g) unsalted butter, softened
- 3 cups (360 g) powdered sugar, sifted
- 2 tbsp heavy cream or whole milk
- ½ tsp vanilla extract
- ¼ tsp salt
- ¼ cup (30 g) finely chopped pistachios, toasted
Instructions
- Pre‑heat the oven to 350°F (177°C). Grease two 9‑inch round cake pans, line the bottoms with parchment circles, and lightly dust with flour.
- In a medium bowl whisk together the flour, baking powder, baking soda, and salt. Set aside.
- In a large mixing bowl, beat the butter, oil, and granulated sugar on medium speed until light and fluffy, about 3–4 minutes. Scrape down the sides as needed.
- Add the eggs one at a time, beating well after each addition. Stir in vanilla and almond extracts.
- With the mixer on low, alternately add the dry‑ingredients mixture and the milk/coconut‑milk blend, beginning and ending with the dry mixture. Mix just until incorporated; over‑mixing can make the crumb dense.
- Fold in the shredded coconut and chopped pistachios using a rubber spatula, ensuring even distribution without deflating the batter.
- Divide the batter evenly between the prepared pans, smoothing the tops with an offset spatula.
- Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean and the tops are a light golden brown. The internal temperature should read 200°F (93°C) on an instant‑read thermometer.
- Allow the cakes to cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely before frosting.
- While the cakes cool, prepare the cream cheese buttercream. In a large bowl, beat the softened cream cheese and butter together on medium speed until smooth, about 2 minutes.
- Gradually add the sifted powdered sugar, one cup at a time, beating on low to avoid a sugar cloud. Once incorporated, increase speed to medium and beat for another minute.
- Add the heavy cream (or milk), vanilla, and salt. Beat for 2–3 minutes until the frosting is light, fluffy, and spreads easily. If the frosting is too stiff, add a tablespoon more cream; if too soft, add a little more powdered sugar.
- To assemble, place one cake layer on a serving plate. Spread a generous layer of buttercream over the top, then sprinkle a few toasted pistachios for texture.
- Place the second layer on top, turn the cake 90 degrees, and apply a thin “crumb coat” of frosting around the entire cake. Chill for 15 minutes to set the crumb coat.
- After chilling, apply the final coat of buttercream, smoothing with an offset spatula. Press the remaining toasted pistachios gently into the sides or top for decoration.
- Refrigerate the finished cake for at least 30 minutes before slicing to allow the buttercream to firm up. Serve at room temperature for best flavor.
Tips
- Toasting pistachios: Spread chopped pistachios on a baking sheet and toast in a 300°F (150°C) oven for 5–7 minutes, stirring once, until fragrant. This enhances their nutty flavor and prevents them from becoming soggy in the frosting.
- Ingredient temperature: Ensure butter, cream cheese, and eggs are at room temperature. Cold ingredients can cause the batter to curdle and the frosting to be lumpy.
- Measuring flour: Spoon flour into the measuring cup and level it with a knife. Packing flour leads to a dense cake.
- Make‑ahead option: Bake the layers up to 2 days ahead, wrap tightly in plastic, and store at room temperature. Frost the cake on the day you plan to serve it for optimal freshness.
Serving Suggestions
Serve each slice with a dollop of lightly sweetened whipped coconut cream or a scoop of vanilla bean ice cream for contrast. The cake also pairs beautifully with a glass of chilled Moscato, a light sparkling wine, or a non‑alcoholic hibiscus iced tea.
Variations
- Chocolate twist: Replace ¼ cup of the all‑purpose flour with unsweetened cocoa powder and add ¼ cup melted dark chocolate to the batter for a pistachio‑coconut chocolate cake.
- Gluten‑free version: Use a 1‑to‑1 gluten‑free flour blend in place of regular flour. Add an extra ½ teaspoon xanthan gum if the blend does not already contain it.
- Vegan adaptation: Substitute the butter with coconut oil, use a plant‑based cream cheese (such as almond‑based) and replace the eggs with ¼ cup unsweetened applesauce per egg. Use oat milk instead of dairy milk.
- Flavor boost: Add 1 tablespoon finely grated fresh lemon zest to the batter for a bright citrus note that complements the pistachio.
Storage and Reheating
Store the frosted cake in an airtight container in the refrigerator for up to 5 days. The buttercream will keep its texture, and the cake stays moist thanks to the coconut. If you need to serve the cake at room temperature, remove it from the fridge 30–45 minutes before slicing.
To warm individual slices, place them on a microwave‑safe plate and heat on medium power for 15–20 seconds, or warm a whole layer in a 300°F (150°C) oven for 8–10 minutes, covered loosely with foil to prevent the frosting from drying out.
Frequently Asked Questions
Can I use salted butter for the cake?
Yes, but reduce the added salt in the recipe by half (use ⅛ tsp instead of ¼ tsp) to keep the overall flavor balanced.
Why does my buttercream turn grainy?
Graininess usually occurs when powdered sugar is added too quickly or when the cream cheese is not fully softened. Beat the cream cheese until smooth before adding sugar, and add the sugar gradually, allowing each cup to incorporate fully.
Do I need to use both oil and butter?
The combination gives the cake a tender crumb (oil) while retaining flavor (butter). If you prefer, you can replace the oil with an equal amount of melted butter, but the texture will be slightly less moist.
How can I tell if the cake is fully baked?
Besides the toothpick test, insert an instant‑read thermometer into the center; the cake is done at 200°F (93°C). The edges should pull slightly away from the pan.
Can I freeze the cake?
Yes. Wrap each cooled, unfrosted layer tightly in plastic wrap, then in foil, and freeze for up to 2 months. Thaw overnight in the refrigerator before frosting and serving.
Is the buttercream safe for people with lactose intolerance?
The buttercream contains dairy (cream cheese, butter, and milk). For lactose‑intolerant guests, use lactose‑free cream cheese and butter, or a dairy‑free alternative, and substitute the milk with almond or oat milk.