Question: how many years do you have to go to hogwarts?
Answer: Students routinely attend Hogwarts for seven years — unless you are Harry Potter and his two best friends, who blew off their senior year.