Prefects are the student officials of Hogwarts. The official encyclopedia defines a prefect as “a student who enjoyed a level of seniority over the other students, complete with a Prefect badge,” chosen at the rate of “one male and one female student in their fifth year from each house.” Their duties included “patrolling the Hogwarts Express, taking and awarding house points and dishing out detentions,” and the post carried the famous perk of “special access to the fancy Prefects’ bathroom with the nice taps.” In Harry’s generation the badge went to Hermione Granger and Ron Weasley for Gryffindor, Draco Malfoy and Pansy Parkinson for Slytherin, and Ernie Macmillan and Hannah Abbott for Hufflepuff. The office sits below the Head Boys and Girls, who supervise the prefects in turn.
Organization
Hogwarts student office; two prefects per house
Purpose
Maintaining order and discipline among students, with patrol, point, and detention powers
Members
Percy, Ron, and Hermione (Gryffindor); Draco and Pansy (Slytherin); Ernie and Hannah (Hufflepuff); Penelope Clearwater (Ravenclaw)
Period
Appointments made before a student’s fifth year; the office persists across the series
Purpose & Origins
The Lexicon describes prefects as “students who accept some responsibility for maintaining order and discipline at Hogwarts,” two per house, chosen in August before the start of their fifth year.
Perks of the office include “the use of their own private bathroom and a separate car on the Hogwarts Express,” though prefects also spend time policing the train’s corridors.
On the Express in Philosopher’s Stone, Percy notes that “the prefects have got two compartments to themselves” — the office’s first appearance in the series.
Prefects serve “under the jurisdiction of the Head Boy and Girl,” making the office the lower rung of Hogwarts’s two-tier student authority.
Membership & Structure
Percy Weasley served as prefect in his fifth and sixth years before becoming Head Boy; the official prefects feature remembers him loving the power and docking “points off his own house and brother.”
In Order of the Phoenix, Ron and Hermione are named Gryffindor’s prefects for Harry’s fifth year; the feature praises Hermione as the most effective holder, keeping Fred and George so in check they “could barely get their Wizard Wheezes off the ground.”
Ernie Macmillan took the badge so seriously he nearly skipped Dumbledore’s Army over it, and Ravenclaw’s Penelope Clearwater, Percy’s girlfriend, was Petrified by the Basilisk after following Hermione’s advice to peer around corners with a mirror.
Earlier generations include Remus Lupin, given the badge in the hope he would rein in James and Sirius, and Lord Voldemort, who as Tom Riddle appeared “practically perfect in every way” to professors while opening the Chamber of Secrets; Cedric Diggory and Lucius Malfoy also held the office.
The Lexicon flags one limit of the record: Lily Evans’s prefecture is “almost certain” but never directly stated, since Head students need not have been prefects.
Role in Canon
The Prefects’ Bathroom, on the fifth floor four doors to the left of the statue of Boris the Bewildered, is the office’s most visible privilege: a huge bath with gold taps, water that ran in different colours, a portrait of a mermaid — and Moaning Myrtle as a regular visitor.
Harry, never a prefect, solves the Golden Egg’s clue to the Triwizard Tournament’s second task in that bathroom, an episode the official fact file records.
Percy’s prefect-and-Head-Boy arc sets up his Ministry loyalty, while Ron’s shaky tenure — too nervous to discipline his own brothers — becomes a running thread in Order of the Phoenix.
Draco Malfoy used the badge “to lord it over” other students, the feature’s caution that seniority and character do not always arrive together.