The Sorting Hat: how it chooses your house, and when it listens
The Sorting Hat explained: whose hat it was, how the Sorting ceremony works, its yearly song, the Hatstall, why it nearly put Harry in Slytherin, and the sword it gives Harry in later books.
This article contains spoilers — reveal content

On the first night of school, every new student puts on a patched, frayed and extremely dirty wizard's hat, and the hat decides where they will spend the next seven years. It is one of the most famous rituals in fiction, and the subject of more online quizzes than anything else in the series. Here is how it actually works in the books.
At a glance
- What: an old, talking, thinking wizard's hat
- Belonged to: Godric Gryffindor, one of the four founders
- Job: sorting each new student into Gryffindor, Hufflepuff, Ravenclaw or Slytherin
- Where: on a stool in the Great Hall on the first night, and in the headmaster's office the rest of the year
- Famous for: a new song every year
- In the HBO series: voiced by David Threlfall
Where the hat came from
When the four founders of the castle worried about who would choose students once they were gone, Godric Gryffindor took off his own hat and the four of them enchanted it with their brains, so it could choose for them. It has been sorting students ever since, for about a thousand years.
The Sorting ceremony
The first-years wait in a small chamber off the Entrance Hall, terrified. Fred and George have told Ron the Sorting involves wrestling a troll. It does not. They walk into the Great Hall between the four house tables, and Professor McGonagall places a stool in front of them with the hat on top.
A rip near its brim opens like a mouth, and the hat sings. Then McGonagall reads each name in turn. The student sits, the hat goes on their head, and after a moment the hat shouts the name of a house. That house's table erupts.
The song
Every year the hat sings a new song introducing the four houses and what each values. In book one, it boasts that it is the cleverest hat in the world and that nothing in your head can hide from it. In later years, its songs turn into warnings about unity, which the school does not always listen to. Our houses guide explains the values it describes.
Some students take longer
Most sortings take a few seconds. Some do not. In book one, Seamus Finnigan sits for almost a whole minute. Neville takes a long time, then runs off still wearing the hat and has to bring it back. Hermione almost runs to the stool. Draco Malfoy is sorted into Slytherin before the hat even touches his head.
The official fact file calls an especially long sorting, over five minutes, a Hatstall.
Harry's sorting
When the hat goes on Harry's head, it talks to him. It sees courage, a good mind, talent and a thirst to prove himself. It wonders aloud whether Slytherin would help him on the way to greatness. Harry grips the stool and thinks, over and over, not Slytherin. The hat listens, and calls out Gryffindor.
That moment is the heart of the series' idea about who you are: the hat weighs what you value and what you choose, not just what you are good at.
Spoiler sectionthe sword in the hatTap to reveal
the sword in the hat
In Chamber of Secrets, Harry worries the hat put him in the wrong house. Dumbledore tells him it is our choices, far more than our abilities, that show what we truly are. Later that year, fighting the basilisk, Harry pulls the sword of Gryffindor out of the hat, proof he is a true Gryffindor.
In Deathly Hallows, Voldemort puts the burning hat on Neville's head at the Battle of Hogwarts. Neville pulls the sword out of it and kills Nagini.
Quick questions
Whose hat was the Sorting Hat? Godric Gryffindor's.
What is a Hatstall? A sorting that takes more than five minutes, according to the official fact file.
Can you choose your house? The hat takes your choice into account. Harry asked not to be in Slytherin, and the hat listened.
Sources
- Every actor confirmed for HBO Original series Harry Potter
Harry Potter (official) · Checked
Confirms David Threlfall as the Sorting Hat in the HBO series.
- The Sorting Hat
Harry Potter (official) · Checked
Official fact file: the hat sorts new students into the four houses and can sometimes be indecisive, a phenomenon known as a Hatstall.
- Why being sorted is not as simple as it seems
Harry Potter (official) · Checked
Official feature arguing students were rarely sorted on traits alone, with Neville as an example.
Owl Post
One letter a week, no spoilers
Series news, new guides and the best of the lore, every Friday. Free, and you can leave with one click.
The conversation
Your take, fellow fan.
Got a detail we missed? A theory worth arguing about? Make your case. Keep it friendly, and keep personal details out.
JavaScript is needed for this optional discussion; the full article is readable without it.
Keep going