Go Back
harry potter birthday cake

Harry Potter Birthday Cake

This chocolate cake is moist and full of deep chocolate flavor while the vanilla buttercream is light and fluffy. It's perfect for any Harry Potter lover!
Prep Time 10 mins
Cook Time 25 mins
Total Time 35 mins
Course Dessert
Cuisine American
Servings 12 slices


Chocolate Cake

  • 1 1/2 cup all purpose flour
  • 1 1/4 cup granulated sugar
  • 3/4 cup cocoa powder
  • 1 tsp baking soda
  • 1 tsp baking powder
  • 1 tsp salt
  • 1/4 cup vegetable oil
  • 2 large eggs
  • 1 cup buttermilk
  • 1 cup strong coffee
  • 2 tsp pure vanilla extract

Vanilla Buttercream

  • 1 1/2 cup unsalted butter room temperature
  • 6 cups confectioners sugar
  • 2 tbsp heavy cream
  • 2 tsp pure vanilla extract


Chocolate Cake

  • Preheat oven to 350°F and lightly grease baking pans. You can use three 6" pans or two 8" or 9" pans. Line the bottom of the pans with parchment paper for easy removal.
  • In a large bowl, whisk together the flour, salt, baking powder, baking soda, and sugar. Sift in the cocoa powder, and whisk to combine.
  • In a medium bowl, whisk together the oil, eggs, vanilla, buttermilk, and coffee. Be sure to temper your eggs or add in the coffee very slowly in order to keep the eggs from cooking.
  • Pour the wet ingredients into the dry ingredients and beat on medium speed until combined.
  • Pour the batter into the pans and bake 25-30 minutes or until a toothpick inserted in the center comes out clean.
  • Let the cakes cool in the pan 5-10 minutes, then remove them and place on a wire rack to cool completely.

Vanilla Buttercream

  • In the bowl of a stand mixer fitted with the paddle attachment, beat butter on high until light and fluffy - about 1 to 2 minutes.
  • Add in half of the confectioners sugar and beat until combined.
  • Add in the rest of the confectioners sugar, heavy cream, and vanilla extract. Beat until light and fluffy - about 2 minutes.
  • If frosting is too thick, add a bit more heavy cream.
  • Remove 1/4 cup of the frosting and tint with green gel food coloring. Tint the remaining frosting pink.


  • Level the cake layers using a knife or cake leveler.
  • Place one layer of cake on a turntable or cake stand. Evenly spread a bit of frosting onto the top.
  • Repeat with the next layer(s) of cake.
  • Coat the outside of your cake with a light layer of frosting, also known as a crumb coat. Then put the cake in the fridge 15-30 minutes.
  • Take the cake out and cover with the remaining pink frosting.
  • Place the green icing into a pipping bag fitted with an icing tip (I use wilton #2 for this), and pipe "Happee birthdae harry" onto the top of the cake.
  • Drag a toothpick through the top of the cake to create the crack in Hagrid's cake.
Keyword chocolate cake, harry potter cake