We discuss the mathematics behind the Pan’s flute. We analyze how the sound is created, the relationship between the notes that the pipes produce, their frequencies and the length of the pipes. We find an equation which models the curve that appears at the bottom of any Pan’s flute due to the different pipe lengths.