"Oh you may not think I'm pretty, but don't judge on what you see, I'll eat myself if you can find a smarter hat than me."
—The Sorting Hat's opening lines of the 1991 Sorting Hat's song[src]

The Sorting Hat is a sentient Hogwarts artefact that magically determines which of the four school Houses each new student belongs most to. These four Houses are Gryffindor, Hufflepuff, Ravenclaw, and Slytherin. The Sorting Hat originally belonged to Godric Gryffindor, one of the founders of Hogwarts. It normally stays in the Headmaster's office until it is needed.


The famous Hogwarts Sorting Hat gives an account of its own genesis in a series of songs. During the opening banquet at the beginning of each school year, the first-year students are lined up and their names read aloud alphabetically. Each then takes a seat on a stool and the hat is placed on her or his head.

The hat is battered and old; it's patched, frayed, and extremely dirty. In order to speak and sing, a tear along the brim opens like a mouth. It speaks to the wearer inside of the hat with a small, quiet voice, using Legilimency to interpret their thoughts and respond to them. After a moment of consideration, the hat announces its choice aloud for all to hear, and the student joins the selected house. The moment of consideration varies in length, from over five minutes (known as "hatstall") to less than a second.

The Sorting Hat is notorious for refusing to admit it has made a mistake in its sorting of a student.[1] On those occasions when Slytherins behave altruistically or selflessly, when Ravenclaws flunk all their exams, when Hufflepuffs prove lazy yet academically gifted, and when Gryffindors exhibit cowardice, the Hat steadfastly backs its original decision. On balance, however, the Hat has made remarkably few errors of judgement over the many centuries it has been at work.


Legend has it that the Sorting Hat was sewn roughly one thousand years ago and began as a normal hat belonging to Godric Gryffindor. When Gryffindor, along with Salazar Slytherin, Rowena Ravenclaw and Helga Hufflepuff, wondered how they would continue to sort the students when the four were dead, Gryffindor pulled his hat from his head and, along with the other founders, enchanted it with their combined intelligence. All four founders wanted to ensure that students would be sorted into their eponymous houses, which would be selected according to each founder's particular preferences in students.[2]

The Sorting Hat, now animated, was able to sort and divide the students into the Hogwarts Houses, and continued to do so for a millennium, passed down to each new Headmaster or Headmistress of the school.

Godric Gryffindor's Sword, one of the founder's only other known relics, can be magically pulled out of the hat by any Gryffindor considered worthy, no matter how secure the sword's location. It is unknown why this is possible, but is linked to loyalty of the highest regard in relation to Hogwarts. There are two known instances of this happening within the seven years of Harry's adventures, once when Harry was in the Chamber of Secrets, and once when Neville refused to join Voldemort during the Battle of Hogwarts.

The hat continues to carry out its duty each September at the beginning of the start-of-term feast, when it is placed on a three-legged (sometimes four-legged) stool at the front of the Great Hall.

The Sorting Hat's songs


The Sorting Hat, stored in the Headmaster's office

Before sorting the students each year, the hat recites a new introductory song. These songs vary in length and content though they generally introduce the hat and its role in sorting new students. Ron Weasley expressed the opinion that the Hat spends the entire school year making up its next song.

They also occasionally warn of danger to come, as in its 1995 song, though it is not known how the Hat is aware of upcoming events. It was suggested that the Hat picks up some of its information from Albus Dumbledore, though it is not known whether it would have done so before such an influential figure in the wider wizarding world was in office.

1991 Song

Oh you may not think I'm pretty,
But don't judge on what you see,
I'll eat myself if you can find
A smarter hat than me.

You can keep your bowlers black,
Your top hats sleek and tall,
For I'm the Hogwarts Sorting Hat
And I can cap them all.

There's nothing hidden in your head
The Sorting Hat can't see,
So try me on and I will tell you
Where you ought to be.

You might belong in Gryffindor,
Where dwell the brave at heart,
Their daring, nerve, and chivalry
Set Gryffindors apart;

You might belong in Hufflepuff,
Where they are just and loyal,
Those patient Hufflepuffs are true
And unafraid of toil;

Or yet in wise old Ravenclaw,
if you've a ready mind,
Where those of wit and learning,
Will always find their kind;

Or perhaps in Slytherin
You'll make your real friends,
Those cunning folks use any means
To achieve their ends.

So put me on! Don't be afraid!
And don't get in a flap!
You're in safe hands (though I have none)
For I'm a Thinking Cap!

1994 Song

A thousand years or more ago
When I was newly sewn,
There lived four wizards of renown,
Whose names are still well known:

Bold Gryffindor, from wild moor,
Fair Ravenclaw, from glen,
Sweet Hufflepuff, from valley broad,
Shrewd Slytherin, from fen.

They shared a wish, a hope, a dream,
They hatched a daring plan
To educate young sorcerers
Thus Hogwarts School began.

Now each of these four founders
Formed their own house, for each
Did value different virtues
In the ones they had to teach.

By Gryffindor, the bravest were
Prized far beyond the rest;
For Ravenclaw, the cleverest
Would always be the best;

For Hufflepuff, hard workers were
Most worthy of admission;
And power-hungry Slytherin
Loved those of great ambition.

While still alive they did divide
Their favourites from the throng,
Yet how to pick the worthy ones
When they were dead and gone?

Twas Gryffindor who found the way,
He whipped me off his head
The founders put some brains in me
So I could choose instead!

Now slip me snug about your ears,
I've never yet been wrong,
I'll have a look inside your mind
And tell where you belong!

1995 Song

In times of old, when I was new,
And Hogwarts barely started,
The founders of our noble school
Thought never to be parted.

United by a common goal,
They had the selfsame yearning
To make the world's best magic school
And pass along their learning.

"Together we will build and teach"
The four good friends decided.
And never did they dream that they
Might some day be divided.

For were there such friends anywhere
As Slytherin and Gryffindor?
Unless it was the second pair
Of Hufflepuff and Ravenclaw,

So how could it have gone so wrong?
How could such friendships fail?
Why, I was there, so I can tell
The whole sad, sorry tale.

Said Slytherin, "We'll teach just those
Whose ancestry's purest."
Said Ravenclaw, "We'll teach those whose
Intelligence is surest."

Said Gryffindor, "We'll teach all those
With brave deeds to their name."
Said Hufflepuff, "I'll teach the lot
And treat them just the same."

These differences caused little strife
When first they came to light.
For each of the four founders had
A house in which they might

Take only those they wanted, so,
For instance, Slytherin
Took only pure-blood wizards
Of great cunning just like him.

And only those of sharpest mind
Were taught by Ravenclaw
While the bravest and the boldest
Went to daring Gryffindor.

Good Hufflepuff, she took the rest
and taught them all she knew,
Thus, the houses and their founders
Maintained friendships firm and true.

So Hogwarts worked in harmony
for several happy years,
but then discord crept among us
feeding on our faults and fears.

The Houses that, like pillars four
had once held up our school
now turned upon each other and
divided, sought to rule.

And for a while it seemed the school
must meet an early end.
what with duelling and with fighting
and the clash of friend on friend.

And at last there came a morning
when old Slytherin departed
and though the fighting then died out
he left us quite downhearted.

And never since the founders four
were whittled down to three
have the Houses been united
as they once were meant to be.

And now the Sorting Hat is here
and you all know the score:
I sort you into Houses
because that is what I'm for.

But this year I'll go further,
listen closely to my song:
though condemned I am to split you
still I worry that it's wrong,

Though I must fulfil my duty
and must quarter every year
still I wonder whether sorting
may not bring the end I fear.

Oh, know the perils, read the signs,
the warning history shows,
for our Hogwarts is in danger
from external, deadly foes

And we must unite inside her
or we'll crumble from within
I have told you, I have warned you...
let the Sorting now begin.

2017 Song

I've done this job for centuries
On every student's head I've sat
Of thoughts I take inventories
For I'm the famous Sorting Hat.

I've sorted high, I've sorted low,
I've done the job through thick and thin
So put me on and you will know
Which house you should be in...

2019 Song

Are you afraid of what you'll hear?
Afraid I'll speak the name you fear?
Not Slytherin! Not Gryffindor!
Not Hufflepuff! Not Ravenclaw!
Don't worry, child, I know my job,
You'll learn to laugh, if first you sob.

The Sorting Hat and Students

Personality and traits

Though it's a hat, the Sorting Hat is sentient and has its own personality. At the beginning of every term, the hat sings a new song (which Ron Weasley speculated it spent the rest of the year thinking up) describing each of the four houses of Hogwarts. Despite its use in the purposes of "sorting," the Hat has been known to urge students to maintain a united front in the face of adversity and danger. Its songs can be used in warning of troubles to come, and ultimately the hat represents the unity of the four houses under the Hogwarts school.

That hat also appears to have a sense of humour and expansive memory (as in the cases of the Weasleys all being in Gryffindor, and the Malfoys all being in Slytherin).

The Sorting Hat on Pottermore

The Sorting Hat on Pottermore uses a set of question to determine the house of a user. The questions vary in style and do not necessarily have four answers (one for each house). There are 27 questions in all, and each user can be asked a maximum of 7, or 8 if the hat can not decide between houses and asks your opinion. Generally, a set of a few questions can be given to a user for each question, there are, of course, occasional exceptions to the order.


Which of the following would you most hate people to call you?

  • Ordinary
  • Ignorant
  • Cowardly
  • Selfish

After you have died, what would you most like people to do when they hear your name?

  • Miss you, but smile
  • Ask for more stories about your adventures
  • Think with admiration of your achievements
  • I don’t care what people think of me after I’m dead; it’s what they think of me while I’m alive that counts

Given the choice, would you rather invent a potion that would guarantee you:

  • Love?
  • Glory?
  • Wisdom?
  • Power?

How would you like to be known to history?

  • The Wise
  • The Good
  • The Great
  • The Bold


You enter an enchanted garden. What would you be most curious to examine first?

  • The silver leafed tree bearing golden apples
  • The fat red toadstools that appear to be talking to each other
  • The bubbling pool, in the depths of which something luminous is swirling
  • The statue of an old wizard with a strangely twinkling eye

What kind of instrument most pleases your ear?

  • The violin
  • The trumpet
  • The piano
  • The drum

Four boxes are placed before you. Which would you try and open

  • The small tortoiseshell box, embellished with gold, inside which some small creature seems to be squeaking.
  • The gleaming jet black box with a silver lock and key, marked with a mysterious rune that you know to be the mark of Merlin.
  • The ornate golden casket, standing on clawed feet, whose inscription warns that both secret knowledge and unbearable temptation lie within.
  • The small pewter box, unassuming and plain, with a scratched message upon it that reads ‘I open only for the worthy.’

Four goblets are placed before you. Which would you choose to drink?

  • The foaming, frothing, silvery liquid that sparkles as though containing ground diamonds.
  • The smooth, thick, richly purple drink that gives off a delicious smell of chocolate and plums.
  • The golden liquid so bright that it hurts the eye, and which makes sunspots dance all around the room.
  • The mysterious black liquid that gleams like ink, and gives off fumes that make you see strange visions.

Once every century, the Flutterby bush produces flowers that adapt their scent to attract the unwary. If it lured you, it would smell of:

  • A crackling log fire
  • The sea
  • Fresh parchment
  • Home


A troll has gone berserk in the Headmaster’s study at Hogwarts. It is about to smash, crush and tear several irreplaceable items and treasures, including a cure for dragon pox, which the Headmaster has nearly perfected; student records going back 1000 years and a mysterious handwritten book full of strange runes, believed to have belonged to Merlin. In which order would you rescue these objects from the troll’s club, if you could? Select order:

  • Merlin’s Book/Student Records/Dragon Pox Cure

Which would you rather be:

  • Envied?
  • Imitated?
  • Trusted?
  • Praised?
  • Liked?
  • Feared?

Which of the following do you find most difficult to deal with?

  • Hunger
  • Cold
  • Loneliness
  • Boredom
  • Being ignored


What are you most looking forward to learning at Hogwarts?

  • Apparition and Disapparition (being able to materialise and dematerialise at will)

  • Transfiguration (turning one object into another object)

  • Flying on a broomstick
  • Hexes and jinxes

  • All about magical creatures, and how to befriend/care for them

  • Secrets about the castle
  • Every area of magic I can

If you could have any power, which would you choose?

  • The power to read minds
  • The power of invisibility
  • The power of superhuman strength
  • The power to speak to animals
  • The power to change the past
  • The power to change your appearance at will

Which of the following would you most like to study?

  • Centaurs
  • Goblins
  • Merpeople
  • Ghosts
  • Vampires
  • Werewolves
  • Trolls


One of your house mates has cheated in a Hogwarts exam by using a Self-Spelling Quill. Now he has come top of the class in Charms, beating you into second place. Professor Flitwick is suspicious of what happened. He draws you to one side after his lesson and asks you whether or not your classmate used a forbidden quill. What do you do?

  • Lie and say you don’t know (but hope that somebody else tells Professor Flitwick the truth).
  • Tell Professor Flitwick that he ought to ask your classmate (and resolve to tell your classmate that if he doesn’t tell the truth, you will).
  • Tell Professor Flitwick the truth. If your classmate is prepared to win by cheating, he deserves to be found out. Also, as you are both in the same house, any points he loses will be regained by you, for coming first in his place.
  • You would not wait to be asked to tell Professor Flitwick the truth. If you knew that somebody was using a forbidden quill, you would tell the teacher before the exam started.

You and two friends need to cross a bridge guarded by a river troll who insists on fighting one of you before he will let all of you pass. Do you:

  • Attempt to confuse the troll into letting all three of you pass without fighting?
  • Suggest drawing lots to decide which of you will fight?
  • Suggest that all three of you should fight (without telling the troll)?
  • Volunteer to fight?

Which road tempts you most?

  • The wide, sunny, grassy lane
  • The narrow, dark, lantern-lit alley
  • The twisting, leaf-strewn path through woods
  • The cobbled street lined with ancient buildings

Which nightmare would frighten you most?

  • Standing on top of something very high and realising suddenly that there are no hand- or footholds, nor any barrier to stop you falling
  • An eye at the keyhole of the dark, windowless room in which you are locked
  • Waking up to find that neither your friends nor your family have any idea who you are.
  • Being forced to speak in such a silly voice that hardly anyone can understand you, and everyone laughs at you

Late at night, walking alone down the street, you hear a peculiar cry that you believe to have a magical source. Do you:

  • Proceed with caution, keeping one hand on your concealed wand and an eye out for any disturbance?
  • Draw your wand and try to discover the source of the noise?
  • Draw your wand and stand your ground?
  • Withdraw into the shadows to await developments, while mentally reviewing the most appropriate defensive and offensive spells, should trouble occur?

A Muggle confronts you and says that they are sure you are a witch or wizard. Do you:

  • Ask what makes them think so?
  • Agree, and ask whether they’d like a free sample of a jinx?
  • Agree, and walk away, leaving them to wonder whether you are bluffing?
  • Tell them that you are worried about their mental health, and offer to call a doctor.


Dawn or dusk?

  • Dawn
  • Dusk

Moon or stars?

  • Moon
  • Stars

Forest or river?

  • Forest
  • River


Black or white?

  • Black
  • White

Heads or tails?

  • Heads
  • Tails

Left or right?

  • Left
  • Right

QUESTION 8: (in case of a hat stall)

Which House would you rather belong to?

  • Gryffindor
  • Ravenclaw
  • Slytherin
  • Hufflepuff

Author's comments

  • In an interview, when asked about the Sorting Hat, Rowling stated that it had never been wrong and asked for theories, though no specific character was mentioned.[3] In exclusive content released for Pottermore, however, she was a bit more shrewd, stating that it "has made remarkably few errors of judgement over the many centuries it has been at work." She also stated that in those cases where students did not exhibit the qualities traditionally associated with their house, or were noted for those associated with others, "the Hat steadfastly backs its original decision."[4]
  • According to J. K. Rowling, Sorting Hat wasn't her first idea of how new Hogwarts student shall be sorted into Houses. She wrote:
"The Sorting Hat does not appear in my earliest plans for Hogwarts. I debated several different methods for sorting students (because I knew on early from that there would be four houses, all with very different qualities). The first was an elaborate Heath Robinson-ish machine that did all kind of magical things before reaching a decision, but I did not like it: it felt at once too complicated, and too easy. Next I placed four statues of the four founders in the Entrance Hall, which came alive and selected students from the throng in front of them while the school watched. This was better, but still not quite right. Finally, I wrote a list of the ways in which people can be chosen: eeny-meeny-miny-mo, short straws, chosen by team captains, names out of a hat - names out of a talking hat - putting on a hat - the Sorting Hat!"
J. K. Rowling's thought.[src]

Behind the scenes

File:Sorting Hat LEGO.jpg
  • It seems that the Sorting Hat tends to place students based on qualities they value rather than qualities they personify. This is never more apparent than with Peter Pettigrew, who was Sorted into Gryffindor but ultimately turned out to be quite cowardly, self-serving and corruptible. He was probably placed there because at the time, he admired strong, brave individuals like James Potter and Sirius Black. Though it is possible Pettigrew was placed in Gryffindor because he aspired to these qualities.
  • The Sorting Hat can detect nascent qualities in a student and place them in the House that will challenge them the most and put their character to the test. Case in point, Neville Longbottom is Sorted into Gryffindor because the Hat sensed that he was capable of demonstrating bravery and leadership during his time at Hogwarts. However, these qualities do not fully surface until he learns to believe in himself.
  • The Hat also appeared to take each student's wishes into account. Just because someone is placed in a certain House does not mean that they can not possess characteristics of other Houses. Dumbledore claimed that choices can show just as much, if not more, about who someone is as their abilities. Harry Potter, for instance, embodies many of the traits that are appreciated by Salazar Slytherin. He is clever, resourceful and cunning, yet the Sorting Hat made him a Gryffindor because he didn't feel like he belonged there. However, the hat denied Neville from being in Hufflepuff even though he begged for it.
  • Another prime example of this happening is Severus Snape. At one point, Albus Dumbledore said that his loyal, courageous nature was much more befitted to Gryffindor. However, as a child, Snape's ambition, social-climbing behaviour and secret inclination towards sadism made him an obvious Slytherin when he first came to Hogwarts.
File:L MAGICALWORLD Headwear Novelty HarryPotter Headwear SortingHat 1219098.jpg
  • In film adaptation of Harry Potter and the Philosopher's Stone, the Sorting Hat appears to speak so all the students can hear, whereas in the book the Sorting Hat speaks so only the wearer can hear.
  • In the first two Harry Potter films, it is voiced by actor Leslie Phillips.
  • Songs are only featured in books 1, 4, and 5, and are omitted entirely from the films.
  • Harry was not physically present for the Sorting Hat's songs in books two, three, six and seven. Harry was, however, present for the song and Sorting ceremony in the third movie.
  • In the American edition of Harry Potter and the Philosopher's Stone, Harry saw that "there were only three people left to be sorted," but then Professor McGonagall read off four more names (Dean Thomas, Lisa Turpin, Ron Weasley and Blaise Zabini). Dean Thomas did not appear in the British edition. It is possible, however, that Harry did not see one of the first-years ahead of him.
  • The Sorting Hat bears a certain resemblance to The Archchancellor's Hat from Terry Pratchett's Discworld novel Sourcery
  • A LEGO version of the Sorting Hat was released, entitled 4701 Sorting Hat. It featured a dial with the four house symbols on it that could be spun to land on one and sort the figures.
  • One of the possible choices on the W.O.M.B.A.T. aptitude test was that the hat was stolen and substituted by delinquent students in 1325, and the whereabouts of the real hat remain unknown.
  • One can purchase a copy of the Sorting Hat at Template:WWHP.
  • Prior to creating the Sorting Hat, Rowling considered using a Magical Gateway, founder statues, a Ghost Court, or a Selection Committee.
  • Just before the Template:HPFJ ride at Template:WWHP, the Sorting Hat makes an appearance and delivers a final safety spiel, in the manner of one of his Sorting songs:
"Your journey is about to start, but safely you must go,
And so the Hogwarts Sorting Hat tells all you need to know.
These benches are not safe for you if you are still too small.
You must be more than goblin-sized, 48 inches tall.
Now rid yourself of objects that might poke or scratch or fall.
Take jewellery, cell phones, all loose change and stow them, one and all.
To keep your treasures safe and sound, Smart Lockers are supplied.
Gringotts-made and wizard-proofed, for all you need to hide.
And now, a warning; do not ride if flying makes you queasy.
If pregnant or else sore in back or neck, then leave, it's easy!
You've travelled far, you’re very near, the waiting’s been long,
But smoking, drinking, or eating while in line are very wrong.
Now thank you all for listening. My safety lesson's done.
We hope you live to tell the tale, and most of all, have fun!

See also

Cite error: <ref> tags exist, but no <references/> tag was found