Kids Classical Music

Articles · Music theory

Pythagoras and music: the math of octaves and fifths

Updated 2026-11-14

Pythagoras was a thinker in ancient Greece, about 2,500 years ago. He is famous for a rule about triangles. He and his followers also found that the notes that sound good together follow simple number patterns. It was one of the first times anyone connected music and math.

The legend of the hammers

The story goes that Pythagoras walked past a blacksmith’s shop and heard hammers ringing. Some pairs of hammers sounded good together. Others clashed. He found that the hammers that sounded good had weights in simple ratios. Experts doubt the story, because hammers do not work that way. But it has been told for centuries.

The monochord

Pythagoras’s followers used a monochord, a single string stretched over a long box. A movable bridge could divide the string into parts. They plucked the parts and listened.

The number patterns

Divide the string Ratio Interval
In half 2 to 1 Octave
Into thirds, play two of them 3 to 2 Perfect fifth
Into quarters, play three of them 4 to 3 Perfect fourth

Half the string sounds one octave higher than the whole string. Two thirds of the string sounds a perfect fifth higher. These intervals sound smooth and stable. Read intervals explained for kids and what is an octave?

The same idea, with frequency

Today we know that a shorter string vibrates faster. Half the string vibrates twice as fast. So an octave is a doubled frequency: 220, 440, 880. A fifth is one and a half times the frequency. Read pitch and frequency.

Building a scale from fifths

If you start on one note and keep stacking fifths, you get new notes. Start on C, then G, D, A, E, B, and so on. After 12 fifths, you land back near C, many octaves higher. Read the circle of fifths.

The tiny gap

There is a catch. Twelve perfect fifths overshoot seven octaves by a tiny amount. The math does not quite close. This small gap is called the Pythagorean comma.

For centuries, musicians tried different tuning systems to deal with it. Today, pianos use equal temperament. The tuner shrinks every fifth by a tiny bit, so all 12 notes are spaced the same and every key works. The fifths on a piano are a hair narrower than Pythagoras’s perfect ones.

The music of the spheres

Pythagoras’s followers believed the planets made music as they moved, in perfect ratios. They called it the music of the spheres. No one could hear it, but the idea inspired thinkers and composers for 2,000 years.

Try it at home

  1. Make a monochord. Stretch a rubber band or string over a long box. Pluck it. Then press it down at the halfway point and pluck one side. It sounds an octave higher.
  2. Find the fifth. Press the string one third of the way along. Pluck the longer part.
  3. Fraction fun. On a guitar, the 12th fret is halfway along the string. Play the open string, then the 12th fret.

Read music history for kids and how string instruments make sound.

Use it with your kids

Print a listening page, a practice chart, or a composer fact sheet. Or try a tool, such as the composer timeline or the piece picker.

Free printablesTools