In the Harry Potter universe, the underage trace is a tracking spell that monitors underage wizards for unauthorized magic use. The trace lifts when a wizard turns 17, which is the age of majority in the wizarding world. At 17, wizards are considered adults and can legally use magic outside school.