Sorting Hat Cupcakes

“Difficult. Very difficult. . . So where shall I put you?”

Harry gripped the edges of the stool and thought, Not Slytherin, not Slytherin.
“Not Slytherin, eh?” said the small voice. “Are you sure? You could be great, you know, it’s all here in your head, and Slytherin will help you on the way to greatness, no doubt about that — no? Well, if you’re sure — better be GRYFFINDOR!” ( J.K. Rowling, Harry Potter and the Sorcerer's Stone

Why make these Sorting Hat Cupcakes? 

These are a fantastic idea for a Harry Potter Movie night snack or a Harry Potter birthday party! Filled with the four colors of the Hogwarts houses, these Sorting Hat cupcakes are perfect for any Harry Potter party or movie night! Easily 'sort' your guests into their houses. 😉 


“Do I have to make the cupcakes / frosting from scratch?”
  • Not if you don't want to! You can substitute your favorite cake mix plus the ingredients the mix calls for; keep the baking pans the same! The cupcakes will just be a little less rich. Substituting butter for oil, buttermilk for water, and adding an extra egg will help!

  • Store bought frosting is usually a little thinner than my recipe. I recommend adding some extra powdered sugar and cocoa powder to thicken it a bit. Add a 1/4 cup of extra powdered sugar alternating with 2 Tablespoons cocoa powder a a time, mixing until you reach a consistency that pipes and stays in place on the cupcakes well. 

(Disclosure: As an Amazon associate I may earn from qualifying purchases, and my posts often contain affiliate links. If you click a link and make a purchase, I may receive a commission at no extra cost to you!) 

Sorting Hat Cupcakes pinterest pin

Sorting Hat Cupcakes

"...but where to put you?" Add some magic and Hogwarts house rivalry to your next Harry Potter movie night with these Sorting Hat Cupcakes!
Prep Time30 minutes
Cook Time20 minutes
Decorating time35 minutes
Total Time1 hour 25 minutes
Course: Dessert
Cuisine: American
Keyword: Harry Potter Cupcakes, Harry Potter House Cupcakes, Harry Potter Sorting Hat Cupcakes, Sorting Hat Cupcakes
Servings: 24 cupcakes
Calories: 464kcal
Author: Sarah H




  • 1 cup butter (melted and cooled)
  • 3 cups all purpose flour
  • 1 teaspoon baking powder
  • 1/2 teaspoon baking soda
  • 2 cups granulated sugar
  • 5 large eggs
  • 1 T pure vanilla extract
  • 1 cup milk - I used whole milk
  • 1/2 cup sour cream

Sorting Hat Fillings & Frosting

  • 8 ounces cream cheese (one package; softened)
  • 1 cup butter (two sticks, softened)
  • 5 ½ -6 cups powdered sugar
  • 2-4 Tablespoons milk
  • 1 Teaspoon clear vanilla extract
  • 1/4 teaspoon salt (if using unsalted butter)
  • 1-2 drops each red, blue, yellow, and green gel food coloring (Save and add later! I used Americolor gel colors)
  • 1 cup cocoa powder (Save and add later!)



  • First – melt your unsalted butter and set aside to cool. This ensures it won’t be too warm and cook your eggs when you add it!
  • Preheat your oven to 325 degrees F, and prepare 24 muffin tins with cupcake liners.
  • In a large bowl combine the all purpose flour, baking powder, baking soda and salt.
  • In a medium bowl, whisk sugar, eggs, vanilla extract, milk and sour cream until well combined.  Add the cooled melted butter and whisk again until well combined.
  • Add flour mixture to the wet ingredients and mix until just combined. Don’t overmix! The batter will be a bit lumpy and quite thick.
  • Divide the batter evenly between the cupcake liners, filling them about 2/3 full. (I like to use a large cookie scoop for this part – makes the process a little cleaner and my cupcake sizes a lot more consistent!) Bake for 14-20 minutes, or until a toothpick inserted in the center comes out mostly clean. Cool completely before decorating.
  • Meanwhile, make your fillings, frosting, and decorations!

Sorting Hat Fillings & Frosting

  • Beat together softened cream cheese and butter; slowly add in powdered sugar alternating with milk until frosting reaches a pipeable consistency. Add vanilla and salt if needed and beat until well combined.
  • Remove about ½ cup of frosting into each of 4 small bowls, and stir in red, yellow, blue, and green gel food coloring until desired color is reached. Gel food coloring is pretty strong, so it only took about 1-2 large drops to get the bright colors I wanted.
  • Add cocoa powder to the remainder of frosting and mix until well combined, adding additional milk to maintain consistency.


  • Once the cupcakes have cooled, core them. (You can use a cupcake corer, the back end of a large piping tip, can do what I do and cut the cores out with a plastic knife. Up to you!)
  • Fill cupcakes with colored fillings using a piping bag or a spoon - I made six of each color.


  • I used brown fondant to cover the cupcakes and make the 'brims' of the hats – fondant can be purchased, or it’s fairly easy to make your own! I like Amy’s Confectionary Adventures recipe.
  • Whichever type of fondant you decide to use, soften it slightly in the microwave and then roll it out into a large sheet on a cutting board or clean countertop. Use a biscuit cutter or a large glass roughly the size of your cupcakes, and cut out 24 fondant circles. Place these over the tops of your cupcakes.
  • Transfer the chocolate frosting into a large piping bag fitted with a large round tip. Pipe in large swirls onto your cupcakes and top each one with a chocolate kiss. Add Harry Potter cupcake toppers – to be completely honest, I thought they helped a *lot* to keep the cupcakes from looking just like the poop emoji    ><
  • Done and done! Enjoy!



Serving: 1cupcake | Calories: 464kcal | Carbohydrates: 63g | Protein: 5g | Fat: 22g

Did you make these Sorting Hat Cupcakes? 

Send me an email and let me know how it went – or make my day and find me on Pinterest or on Instagram and tag @IntensiveCakeUnit in your photo!

You can also add a comment or a recipe rating at the bottom of the page! 🙂

Mentioned in post:
Chocolate Cream Cheese Buttercream 

Other recipes you may love…

(Click / tap the photos to be taken to the recipe pages!)

3 thoughts on “Sorting Hat Cupcakes

Leave a Comment

Your email address will not be published. Required fields are marked *

Recipe Rating