Music of the Harry Potter films

The music of the Harry Potter film series was recorded and released in conjunction with the post-production and releases of each of the eight corresponding films. The scores were composed by John Williams, Patrick Doyle, Nicholas Hooper, and Alexandre Desplat. Though Williams only scored the first three films, several motifs that he created have been reprised and incorporated into the remaining scores, in particular "Hedwig's Theme", which can be heard in all eight films. Other musicians credited with writing the Harry Potter music include Jarvis Cocker, The Ordinary Boys, and Nick Cave and the Bad Seeds. Jeremy Soule and James Hannigan wrote the music for the Harry Potter video games. J. Scott Rakozy, Peter Murray, and Chuck E. Myers "Sea" composed the music for Hogwarts Legacy.

Themes and motifs
Throughout the series, each composer created themes for particular characters, items, locations, and ideas. Several themes can be heard in films subsequent to the one they were written for, although very few lasted for the entire film series.