Super fun and easy vegan Harry Potter sorting hat cupcakes that are perfect for any Halloween party! Filled with each Hogwarts house color, you’ll have so much fun being sorted into your houses!

sorting hat cupcakes on books with candles

The ultimate Harry Potter Halloween Dessert Recipes

If you follow me on Instagram, then you know my all time favorite thing to do every Saturday morning post long-run is make a plate of waffles and watch Harry Potter.

I’m a little obsessed. I’ve taken every quiz out there and know I am a Gryffindor through and through.

Even the sorting hat cupcakes told me so! I’m not joking.

sorting hat cupcake with liner pulled off

These Harry Potter sorting hat cupcakes do not lie. And trust me, any witch or wizard, of any and all ages, will absolutely love finding out which Hogwarts house they’ve been chosen for.

With a vegan chocolate cupcake base, these dairy free Harry Potter cupcakes are hidden with each Hogwarts house color in the middle, topped with a dairy free buttercream sorting hat!

These are the perfect vegan Halloween dessert to bring to any part or if you’re having a Halloween at home!

sorting hat cupcake with filling

How to make Harry Potter Sorting Hat Cupcakes

Of course, I thought what better way to show you how to make vegan sorting hat cupcakes than by making a video!

In this video, I go over exactly what you need to do step-by-step to make vegan Harry Potter cupcakes.

However, if you prefer the written version, I’ve also written out these steps down below in the recipe card.

But of course, I have some tips to ensure that any witch or wizard who bites into one of these cupcakes is absolutely spellbound!

  • Make these vegan cupcakes chocolate and pumpkin: instead of just making vegan chocolate cupcakes as the base, you can actually swap in pumpkin puree for the dairy-free yogurt, and add in pumpkin pie spice to the dry ingredients! This gives the cupcakes more of a festive and Halloween feel.
  • I give many options for making a plant based food coloring realistic! Contrary to popular belief, you can actually achieve beautiful and vibrant colors with plant based food coloring. Down below in the recipe card, I’ve listed some of my favorite powders that can be used as food coloring (think turmeric and beet) along with some tried and true vegan plant based food coloring gels.
  • Use your fingers to shape the hats: this will sort of feel a bit like a pottery class, but much like we used out fingers to create the shape of the pumpkin cake, we’ll be molding and shaping frozen buttercream into Harry Potter sorting hats!
  • Make sure to ice the tops of the cupcakes so as to cover the house colors! You don’t want anyone peeking to see which house they got before biting into the cupcake! Just pipe a thick wall of frosting onto the tops of each cupcake before placing the sorting hat down.
  • Use a cupcake corer to create the perfect well for frosting. You can also use a serrated knife and a spoon, but I recommend a cupcake corer as it’s so much faster and cleaner.
  • Make sure that the cupcakes are fully cooled before you frost them! If not, they’ll instantly melt the vegan buttercream you just made! I like to let my cupcakes cool for 10 minutes in the tin so that the liner peels off nicely. Then remove the cupcakes and transfer them to a cooling rack to fully cool before frosting.

I hope you love these vegan Harry Potter sorting hat cupcakes as much as I do!

Which Hogwarts house did you get sorted into?

I’ll let you in on a secret- I got Gryffindor!! COMPLETELY NOT PLANNED! Ah, I could not be more pleased haha! Let me know which house you got into in the comments section below!

cupcake on piece of book paper

As always, I love to see your beautiful creations on Instagram and Pinterest, so be sure to tag me there!

Happy sorting!

candles blow out over sorted hat cupcakes

More vegan Halloween desserts and treats:

Hocus Pocus Spellbook Brownies

Vegan Peanut Butter Buckeyes

Healthier Worms n’ Dirt Pudding Cups

Homemade Vegan Snickers Bars

Halloween Jack O’ Lantern Lava Cakes

Pumpkin Shaped Chocolate Cake

Want to save this recipe for later? Add it to your favorite recipe board on Pinterest!

pinterest image for sorting hat cupcakes
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
cupcake on piece of book paper

Vegan Harry Potter Sorting Hat Cupcakes

  • Author: thebananadiaries
  • Prep Time: 60
  • Cook Time: 25
  • Total Time: 1 hour 25 minutes
  • Yield: 12 1x
  • Category: Dessert
  • Method: Baking
  • Cuisine: American
  • Diet: Vegan


Super fun and easy vegan Harry Potter sorting hat cupcakes that are perfect for any Halloween party! Filled with each Hogwarts house color, you’ll have so much fun being sorted into your houses!




  1. Prepare the vegan chocolate cupcakes according to the directions, up until the step in which you cool them. To make the pumpkin chocolate version, see the notes section below.
  2. Place the chocolate cupcakes onto a cooling rack, and prepare the vegan buttercream frosting.
  3. In a large bowl, use a hand mixer or stand mixer to beat the vegan butter until creamy and fluffy.
  4. Add in the powdered sugar and continue to beat. Once the powdered sugar is partly incorporated, dairy-free milk and vanilla extract, starting with the smallest quantity of dairy-free milk and adding another tablespoon if the powdered sugar isn’t blending into the vegan butter. Beat until fluffy and voluminous.
  5. Now divide the frosting. Place 2 tbsp each of buttercream frosting into 3 small bowls. Place about 1 1/2 cups of frosting into a medium bowl. Set these bowls aside (they will be for the colors of the house).
  6. With the remaining frosting in the original bowl, add in the cacao powder, and continue to beat the cacao powder until it becomes a chocolate buttercream frosting. You can add in 1-2 additional tbsp of dairy-free milk if the cacao powder isn’t blending easily. Place a piece of parchment paper onto a baking sheet and spoon the frosting into a piping bag with a round clean tip. Carefully pipe the sorting hats, starting with a large circle (about 1″ wide) and spiraling up (see the video).
  7. Repeat for 11 more hats. Place the baking sheet into the freezer to set the frosting so that you can mold it.
  8. Now core the cupcakes. You can save the cores to enjoy later! Set aside and prepare the colored frostings.
  9. Mix the colors for the houses. Add red coloring to one small bowl, blue to another, and yellow to another. Then add the green coloring to the medium bowl and mix each color until it’s a consistent color.
  10. Spoon or pipe about 1 1/2 tsps of frosting into each middle of the cupcake. You’ll have 3 cupcakes with red, 3 cupcakes with blue, 3 cupcakes with yellow, and 3 cupcakes with green.
  11. Then with the remaining green frosting, pipe a circle to cover the top of the cupcake so that the sorting hat can be placed on top. Set aside and remove the sorting hats.
  12. Use your fingers or a spoon to carefully smooth and shape the sorting hat to resemble more of a hat. Smooth the edges of the hat and the crevices. You can even shape it to be a bit crooked like the hat. If you’d like, you can also use a toothpick to carve a face into the cupcake.
  13. Place each hat on top of a cupcake.
  14. Serve and enjoy!


To make these chocolate cupcakes with pumpkin instead of dairy-free yogurt: adding in 1/3 cup pumpkin puree in place of the dairy-free yogurt, and add in 2 tsp pumpkin spice blend into the dry mixture.

To easily create a well in the cupcakes: use this cupcake corer

For vegan food colorings: 

Keywords: harry potter cupcakes, sorting hat cupcakes, harry potter sorting hat cupcakes, vegan harry potter cupcakes

pinterest image for sorting hat cupcakes