Teachers can use elements of the Harry Potter books and movies to inspire students of all ages to engage with scientific concepts.