How to make a cake for Harry Potter’s 11th birthday

Each editorial product is independently selected, although we may be compensated or receive an affiliate commission if you purchase something through our links. Ratings and prices are accurate and items are in stock at time of publication.

Learn how to make a copycat version of Hagrid’s birthday cake for Harry from the iconic movies and books.

“You got something for you. I’m afraid I might sit on it at some point, but I imagine it will taste just the same. I cooked it myself, words and all!”

More thoughtful than a pair of Uncle Vernon’s old socks (and far more appetizing than a Cockroach Cluster), a moist and fudgy Harry Potter chocolate birthday cake with vibrant pink coconut cream frosting and green lettering is the perfect way to tell the Harry Potter fan. your life happy birthday. It would be the perfect centerpiece for any Harry Potter themed party.

U Official Harry Potter book share the recipe for this iconic cake from the magical world with more than 40 other official recipes. Flipping through the pages, there were countless tempting recipes that had us hungrier than a hippogriff to try. Yes Hagrid’s rock cakes to a homemade molasses cake from the Hogwarts Great Hall. It seemed appropriate, however, to test the recipe that started it all for Harry.

Read on to learn how you can bring some magic into your kitchen with a homemade version of Hagrid’s birthday cake for Harry. So what buy some butterbeer to wash everything!

How to make Hagrid’s Harry Potter birthday cake

This recipe makes an 8 inch layer cake.


Harry Potter Birthday Cake Ingredients

Lauren Habermehl for Taste of Home

  • 3 cups of all-purpose flour
  • 1-1/2 cups granulated sugar
  • 6 tablespoons of cocoa powder
  • 2 teaspoons of baking soda
  • 1 tablespoon of white vinegar
  • 1 teaspoon of vanilla extract
  • 1 cup dairy free milk
  • 3.5 ounces vegan chocolate, melted


Editor’s note: Are you as surprised as we are to see that this cake is vegan? We followed the recipe, as written; however, we imagine that you can use milk, chocolate and food colorings that include milk without any problems.

Tools you need


Step 1: Prep cake pans

Preheat the oven to 375°F and grease two 8-inch round pans. Line the bases with baking paper and set them aside.

Step 2: Mix the dry ingredients

Harry Potter Birthday Cake dry ingredients

Lauren Habermehl for Taste of Home

Next, in the bowl of a stand mixer, combine the flour, sugar, baking soda and cocoa powder.

Editor’s note: You can also mix this cake the Muggle way with a bowl and spoon. (Bonus points if it’s with one of these Harry Potter Kitchenware.)

Step 3: Add wet ingredients

Harry Potter Birthday Cake

Lauren Habermehl for Taste of Home

Add the vinegar, vanilla, non-dairy milk and beat until smooth, creamy and slightly paler in color; about 3-4 minutes.

Step 4: Stir in the chocolate

Harry Potter Birthday Cake Batter

Lauren Habermehl for Taste of Home

Stir in the melted chocolate and mix until fully incorporated.

Step 5: Bake

Harry Potter Birthday Cake

Lauren Habermehl for Taste of Home

Divide the batter equally between the two prepared cake pans, spreading it into a smooth, even layer. Then bake for 20-25 minutes, until the cakes are firm to the touch (here are more tips for try baking the cake). Remove promptly, remove the cakes from their pans, and transfer to wire racks to cool completely.

Step 6: Prepare the icing

Harry Potter Birthday Cake

Lauren Habermehl for Taste of Home

While the cakes are cooling, whip the frosting. In a saucepan, heat the non-dairy milk and creamed coconut until melted and smooth. Transfer to a bowl and combine with the vanilla and confectioners’ sugar. Beat until a thick, smooth, spreadable frosting forms.

Editor’s note: If the frosting is too thick, you can add a little non-dairy milk. If it is too thin, add a little confectioner’s sugar until the desired consistency is achieved.

Step 7: Divide the icing

Harry Potter Birthday Cake

Lauren Habermehl for Taste of Home

Transfer a third of the ice cream into a bowl with 1 tbsp cocoa powder. Mix until combined, then set aside. Scoop 2-3 tablespoons of the white ice base in another small bowl. Add the green food coloring, a few drops at a time, stirring after each addition until the desired green color is achieved. Put it aside.

Grate the beets in a clean bowl lined with paper towels or cheesecloth. Wrap the beets in the cloth to make a bundle and squeeze over the cup to collect as much juice as possible. Discard the beets and then gradually start adding the beetroot juice to the remaining icing base, stirring after each addition, until a vibrant pink color is achieved.

Editor’s note: While we appreciate the use of beets as a natural food coloringsFeel free to use a few drops of pink gel food coloring if you don’t want to mess with the beets (we are unfortunately Muggles, after all).

Step 8: Assemble the cake

Harry Potter Birthday Cake

Lauren Habermehl for Taste of Home

To assemble the cake, spread the chocolate frosting generously on top of one of the cooled cake rounds.

Step 9: Decorate

Harry Potter Birthday Cake

Lauren Habermehl for Taste of Home

Place the second cake on top and then, with an offset spatula, spread the pink frosting evenly over the entire cake until smooth and even. (Here’s how the professionals decorate a cake.)

Next, add your message “Happee Birthdae” (remember, Hagrid is not the greatest speller), personalize the cake with the name of your choice. Use a piping bag fitted with a small round tip to pipe the letters onto the cake.

Step 10: Sit on the cake

Well, maybe not indeed sit on the cake like Hagrid did. Instead, take a sharp knife and use it to cut a jagged vein through the center of the icing and between the letters, as desired.

Cut into slices and serve with a glass home brewed beer.

Here’s what I thought

We were skeptical as we mixed this cake. The boat was very much dense and quite dry making it difficult to mix. Also, the absence of any oil or fat (not even apple juice) worried that the cake would be dense and dry.

But we were wrong. In the words of Gilderoy Lockhart, “This is like magic!” The cake was incredibly moist and ultra-decadent with a rich chocolate flavor.

As for the icing, let’s admit it was a little difficult to work with. In fact, we suspect that conjuring a Patronus for the first time may be easier than spreading this ice. In the test, we found the ice set very quickly, making it challenging to spread evenly and smoothly.

However, perhaps it is not intended to be perfectly smooth, because the pastel retains some of the rustic charm of Hagrid.

We’re not quite sure why the authors decided to make this Harry Potter birthday cake vegan. Maybe they wanted to make sure that the recipe in this book was as inclusive as possible for different diets.

Another theory is that maybe they thought that Hagrid, being a friend of all magical creatures, would have preferred to cook vegan to ensure that no one was harmed in the manufacture of this cake.