SERIES / The Mathematics of Musical Pitch · Article 01

What Is a Musical Interval? Ratios, Tuning, and Consonance

Frequency ratios, musical intervals, and the limits of consonance.

ABSTRACT

This opening article explains what a musical interval is before asking why some intervals have seemed especially important in the history of music. It defines sound, frequency, pitch, and interval in accessible terms; uses an ideal string to derive the octave, fifth, and fourth; introduces ancient Greek harmonic theory and the later history of tuning; and shows why ratios survive transposition while frequency differences do not. It ends by separating exact interval mathematics from the more difficult perceptual question of consonance.

Published
Updated
Reading time
14 min
Author
Natoandro

Play 220 Hz and then 330 Hz. Now play 440 Hz and then 660 Hz. The second pair is separated by twice as many hertz as the first, yet both pairs trace the same musical motion: each rises by a perfect fifth.

Why? The answer is not the size of the frequency gap. It is the ratio:

330220=660440=32.\frac{330}{220}=\frac{660}{440}=\frac32.

This article begins with that small calculation and develops it slowly. Along the way, we will define the words that musicians use casually but mathematicians must make precise: sound, frequency, pitch, interval, octave, fifth, pure, and consonance.

The central claim is modest but powerful:

In tuning mathematics, an interval is a relationship between frequencies, and that relationship is multiplicative.

This is not yet a theory of why every listener likes one sound more than another. It is the mathematical starting point from which tuning systems, harmonic spectra, and later theories of consonance can be studied.

First: what is a sound?

A sound is a physical disturbance that travels through a medium such as air. A loudspeaker, string, vocal fold, or drum does not send “music” through the air as an abstract object. It creates changing pressure. The pressure rises and falls as the source vibrates, and those changes propagate outward as a wave. [1]

For a repeating vibration, two quantities are especially useful:

  • Period, written TT, is the time required for one complete cycle.
  • Frequency, written ff, is the number of cycles per second.

They are reciprocals:

f=1T.f=\frac1T.

The unit of frequency is the hertz, abbreviated Hz. One hertz means one cycle per second. A vibration at 220 Hz completes 220 cycles each second. A vibration at 440 Hz completes twice as many. Introductory musical-acoustics treatments use these quantities to connect physical vibration with the sounds produced by strings, pipes, and other instruments. [1]

A pure sine wave plotted against time, beginning and ending at the center line, with one cycle marked as the period T.
Figure 1. Model-generated schematic of a pure sine wave. One complete cycle takes the period $T$; frequency is the number of such cycles per second.

The waveform above is deliberately simple. Real instruments rarely produce a perfect sine wave. They produce a fundamental vibration together with additional components called partials. When those partials occur at integer multiples of the lowest frequency, they are called harmonics. [1]

Frequency is not the same as pitch

Frequency is a measurable physical quantity. Pitch is the auditory attribute by which a listener hears a sound as relatively high or low. For many steady, pitched sounds, higher fundamental frequency tends to be heard as higher pitch. But pitch is not simply a second name for frequency. It is a perceptual response to a sound, and the spectrum, duration, loudness, and context can influence it. [1]

This distinction matters throughout the article:

  • when we write f=440Hzf=440\,\text{Hz}, we are describing a physical frequency;
  • when we say “the note is higher,” we are using a musical and perceptual description;
  • when we define an interval as a ratio, we are building a mathematical model of the relationship between two frequencies.

The model is powerful because it captures an important regularity without claiming to explain every detail of hearing.

What is a musical interval?

An interval is the relationship between two pitches. In everyday music theory, intervals can be named with words such as unison, second, third, fourth, fifth, sixth, seventh, and octave. Those names combine two ideas that should be separated at first: [2]

  1. a qualitative or notational name, often based on staff positions and note letters;
  2. a quantitative size, which can be represented by a frequency relationship.

For two positive frequencies f1f_1 and f2f_2, define the directed frequency ratio from the first to the second as

I(f1,f2)=f2f1.I(f_1,f_2)=\frac{f_2}{f_1}.

The word directed means that order matters. Going from 220 Hz to 330 Hz gives 3/23/2. Going back gives 2/32/3:

I(330,220)=220330=23.I(330,220)=\frac{220}{330}=\frac23.

A unison, in which both sounds have the same frequency, has ratio 11. A modern mathematical treatment of tuning uses this frequency-ratio definition and identifies the pure octave, fifth, and fourth with 22, 3/23/2, and 4/34/3. [2]

Three terms that are easy to confuse

  • Interval: the relationship between two pitches.
  • Ratio: the quotient that represents that relationship in a frequency model.
  • Difference: the subtraction f2f1f_2-f_1, measured in hertz.

A difference is useful when discussing physical spacing in frequency. It is not stable under transposition, so it cannot by itself represent interval identity. [2]

A string turns geometry into pitch

The simplest route from a physical object to a frequency ratio is an ideal string fixed at both ends. Imagine a string with:

  • vibrating length LL;
  • tension τ\tau;
  • linear mass density μ\mu, meaning mass per unit length.

For the idealized fundamental mode, the frequency is

f=12Lτμ.f=\frac{1}{2L}\sqrt{\frac{\tau}{\mu}}.

This formula is the standard ideal-string starting point in musical acoustics. [1]

This is a model, not a complete description of a piano, guitar, or violin. Real strings have stiffness, their supports move slightly, and the instrument body changes the sound that reaches the listener. A peer-reviewed analysis of guitar-string mechanics begins with the same one-dimensional wave-equation relationship before adding the effects of bending and fretting. [3]

If tension and linear density remain fixed, the square-root factor is constant. Therefore

f1L.f\propto\frac1L.

The symbol \propto means “is proportional to.” Here it says that if the vibrating length is multiplied by a factor, the frequency is multiplied by the reciprocal factor.

  • Halve the length, and the frequency doubles.
  • Multiply the length by 3/43/4, and the frequency is multiplied by 4/34/3.
  • Multiply the length by 2/32/3, and the frequency is multiplied by 3/23/2. [1]
Three ideal strings show lengths L, 3L/4, and L/2, paired with frequencies f, 4f/3, and 2f.
Figure 2. In the ideal-string model, shortening the active length raises the fundamental frequency in inverse proportion. The pale dashed sections show the length that has been removed.

Now shorten the active length from LL to L/2L/2:

f=12(L/2)τμ=2f.f' = \frac{1}{2(L/2)}\sqrt{\frac{\tau}{\mu}}=2f.

The frequency doubles. In the ratio model, the interval from ff to 2f2f is an octave.

Shorten the string to 2L/32L/3:

f=32f.f'=\frac32f.

The interval is a perfect fifth in the pure-ratio sense.

Shorten it to 3L/43L/4:

f=43f.f'=\frac43f.

The interval is a perfect fourth.

IntervalFrequency multiplierRequired ideal-string length
unison11LL
octave22L/2L/2
perfect fifth3/23/22L/32L/3
perfect fourth4/34/33L/43L/4

The adjectives need care. Pure means that we are using an exact ratio in the model. It does not mean that every instrument, tuning system, or performance uses exactly that value. Equal temperament deliberately changes most intervals slightly so that music can modulate between keys without accumulating the same kind of tuning problem found in pure fifth construction. [2] [4]

A short history of number and music

The connection between number and musical interval is ancient, but the popular story needs qualification. A familiar version says that Pythagoras discovered the octave, fifth, and fourth by comparing simple lengths on a monochord. The surviving history is more complicated than that single anecdote.

Ancient Greek theorists wrote about harmonic divisions, intervals, and numerical relationships, but they did not all share one theory or one method. Modern historians distinguish the surviving theoretical texts from later stories that attribute a unified discovery to Pythagoras. [5] [6]

A monochord is a one-string measuring instrument. A movable bridge changes the length of the vibrating section, allowing a theorist to compare lengths and sounds. In the ideal-string model, length ratios become frequency ratios in the opposite direction:

L1:L2=2:1f1:f2=1:2.L_1:L_2 = 2:1 \quad\Longrightarrow\quad f_1:f_2=1:2.

The instrument therefore makes a geometric relationship audible. That does not prove that ancient musicians all used the same tuning, nor does it show that a simple ratio automatically produces a universal emotional response. It shows why ratios were attractive mathematical descriptions of certain interval relationships. [5] [6]

From Pythagorean tuning to temperaments

A tuning system is a rule for assigning frequencies to the notes used by a musical tradition or instrument. Pythagorean tuning constructs pitch relationships mainly from pure fifths and octaves. Starting from a reference frequency, one can multiply by 3/23/2 to move up a fifth and multiply or divide by 22 to move the result into a chosen octave. Historical surveys describe this construction alongside later systems such as meantone, well temperament, and equal temperament. [4]

The mathematical problem is that pure fifths and octaves do not fit together perfectly. Twelve pure fifths come close to seven octaves but do not equal them. The small discrepancy is the Pythagorean comma. The modern literature on Pythagorean-like tuning describes this construction through repeated fifths, fourths, and octave adjustment. [2] We will see the elementary arithmetic behind the mismatch below.

A temperament is a family of strategies for managing such discrepancies. Instead of preserving every pure ratio exactly, a temperament distributes or concentrates the errors so that an instrument can support a practical collection of notes. Equal temperament divides the octave into twelve equal logarithmic steps. It is one solution to a tuning problem, not the definition of music itself. [4]

Intervals multiply

The ratio definition makes interval composition almost automatic. Suppose three frequencies satisfy f1,f2,f3>0f_1,f_2,f_3>0. Then [7]

I(f1,f2)I(f2,f3)=f2f1f3f2=f3f1=I(f1,f3).I(f_1,f_2)I(f_2,f_3) =\frac{f_2}{f_1}\frac{f_3}{f_2} =\frac{f_3}{f_1} =I(f_1,f_3).

The middle frequency cancels. This is the algebra of consecutive melodic movement.

Go up a pure fifth and then a pure fourth:

3243=2.\frac32\cdot\frac43=2.

The result is an octave.

Go up a pure fifth and then down a pure fifth:

3223=1.\frac32\cdot\frac23=1.

The result is unison.

This multiplicative behavior is why ratios are more than a convenient notation. They preserve the way interval movements combine.

Animated diagram of an ideal string changing from length L to L/2 as its frequency changes from f to 2f.
Figure 3. An animated view of the octave. The string alternates between length $L$ at frequency $f$ and length $L/2$ at frequency $2f$. The diagram also works as a static figure, and the animation can be disabled for reduced-motion preferences.

Why differences fail

Suppose interval size were described by the frequency difference f2f1f_2-f_1. [7]

  • From 220 Hz to 330 Hz, the difference is 110 Hz.
  • From 440 Hz to 660 Hz, the difference is 220 Hz.

But both are the same proportional move, a pure fifth. The difference doubles when the entire pair is moved up by an octave.

Ratios do not change under common scaling. If a>0a>0, then

I(af1,af2)=af2af1=f2f1.I(af_1,af_2)=\frac{af_2}{af_1}=\frac{f_2}{f_1}.

This is transposition in the mathematical sense used here: moving a relationship to another register while preserving its ratio. A pure fifth above 220 Hz is 330 Hz. A pure fifth above 440 Hz is 660 Hz. The absolute gap changes, but the multiplicative relationship remains 3/23/2.

Two frequency pairs, 220 to 330 hertz and 440 to 660 hertz, are each multiplied by three halves.
Figure 4. Transposition changes the absolute difference from 110 Hz to 220 Hz, but both pairs retain the ratio $3/2$. This is why interval identity is multiplicative rather than additive.

The first integer patterns

The small integers in 2/12/1, 3/23/2, and 4/34/3 are not decoration. They describe how repeated interval operations interact. [2] [7]

Two octaves multiply to

22=4,2\cdot2=4,

so ff, 2f2f, and 4f4f form successive octaves.

Two fifths produce

(32)2=94.\left(\frac32\right)^2=\frac94.

This lies above one octave. Dividing by 22 moves it into the octave from ff to 2f2f:

9412=98.\frac94\cdot\frac12=\frac98.

The result, 9/89/8, is the Pythagorean whole tone. This example shows how a tuning system can generate a family of intervals from a small set of multiplicative operations. [2] [7]

A useful mathematical question now appears:

(32)m=2n.\left(\frac32\right)^m=2^n.

If positive integers mm and nn solved this equation, repeated pure fifths could close exactly against octaves. But the equation would imply

3m=2m+n,3^m=2^{m+n},

which is impossible because a positive power of 33 cannot equal a positive power of 22. The next article will turn this impossibility into a fuller study of the Pythagorean comma. [2]

Ratio is not the same as consonance

At this point it is tempting to say: “Small integer ratios sound consonant.” That sentence compresses several different claims into one.

A ratio such as 3/23/2 is an exact mathematical relationship. Consonance is a judgment about a sound or combination of sounds. It can depend on:

  • the partials present in each tone;
  • whether those partials are harmonic or inharmonic;
  • the frequency separation between nearby components;
  • beating and roughness;
  • the auditory system’s critical bands;
  • register, loudness, onset, and duration;
  • timbre, meaning the spectral character of a sound;
  • musical experience and cultural context.

Historical acoustics treated partial tones and beating as central to the explanation of consonance. Helmholtz’s nineteenth-century account is important in that history, but it should be read as a historical theory rather than as the final word on perception. [8]

Later psychoacoustic work connected tonal consonance with interactions among partials and the auditory critical-band framework. This helps explain why nearby components can produce roughness, but it still does not turn a frequency ratio into a complete perceptual law. [9]

The distinction becomes even clearer across listeners and timbres. One study reported cross-cultural variation in responses to consonance and dissonance. [10] Another found that consonance preferences could be reshaped by changing the spectral character of the sounds. [11] A mathematical interval and a listener’s response are related subjects, not identical facts.

One useful way to keep the claims separate is:

  1. What is the mathematical interval? In this article’s model, it is a frequency ratio.
  2. What is in the sound? A real tone may contain a fundamental and many partials.
  3. How is the combination perceived? That is an empirical question involving acoustics, auditory processing, timbre, experience, and culture.

The relationship between tuning and timbre is itself a substantial subject. Sethares shows why changing a sound’s spectrum can change which scales and intervals seem to fit it well. [12]

What this article establishes

We can now answer the narrower mathematical question precisely.

  • A sound is a physical disturbance propagated through a medium.
  • Frequency counts cycles per second, while period measures the duration of one cycle.
  • Pitch is a perceptual attribute related to, but not identical with, physical frequency.
  • An interval can be represented by the directed ratio I(f1,f2)=f2/f1I(f_1,f_2)=f_2/f_1.
  • A string model explains why shortening a vibrating length raises frequency.
  • The pure octave, fifth, and fourth correspond to 2:12:1, 3:23:2, and 4:34:3.
  • Consecutive intervals multiply, and reversing an interval takes its reciprocal.
  • Ratios survive common scaling, while frequency differences do not.
  • Ancient and later tuning traditions used, modified, and debated these relationships.
  • Consonance cannot be reduced to a ratio alone.

These conclusions combine physical acoustics, tuning theory, historical scholarship, and psychoacoustic research rather than following from one source alone. [1, 2, 4, 5, 7, 9, 10, 11, 12]

The compact mathematical starting point is therefore

I(f1,f2)=f2f1.\boxed{I(f_1,f_2)=\frac{f_2}{f_1}}.

That equation does not explain every reason two notes may sound related. It does something more foundational: it gives us a stable object whose composition, inversion, transposition, and failure to close can be studied. The next article follows the failure to close and shows how a familiar musical problem becomes a theorem in elementary number theory.

Notation and prerequisites

  • Frequencies ff, f1f_1, and f2f_2 are positive and measured in hertz unless stated otherwise.
  • LL is vibrating length, and μ\mu is linear mass density.
  • A pure interval is an exact ratio in the mathematical model. It is not a claim that every practical tuning uses that exact ratio.
  • Only elementary algebra is required here. Later articles will introduce logarithms and elementary number theory when they are first needed.

Bibliography

  1. N. H. Fletcher and T. D. Rossing, The Physics of Musical Instruments, 2nd ed. Springer, 1998. doi:10.1007/978-0-387-21603-4
  2. G. Kersting, “The Mathematical Structure of Pythagorean-like Tuning Systems,” The Mathematical Intelligencer, vol. 48, pp. 57–65, 2026. doi:10.1007/s00283-025-10478-y
  3. D. R. Grimes, “String Theory - The Physics of String-Bending and Other Electric Guitar Techniques,” PLOS ONE, vol. 9, no. 7, e102088, 2014. doi:10.1371/journal.pone.0102088
  4. J. M. Barbour, Tuning and Temperament: A Historical Survey. Michigan State College Press, 1951. Internet Archive
  5. A. Barker, Greek Musical Writings, Volume 2: Harmonic and Acoustic Theory. Cambridge University Press, 1989. doi:10.1017/CBO9780511552776
  6. T. J. Mathiesen, Apollo's Lyre: Greek Music and Music Theory in Antiquity. University of Nebraska Press, 1999. Publisher page
  7. D. Benson, Music: A Mathematical Offering. Author-hosted open-access edition, 2006. PDF
  8. H. von Helmholtz, On the Sensations of Tone as a Physiological Basis for the Theory of Music, English translation, 1885. Internet Archive
  9. R. Plomp and W. J. M. Levelt, “Tonal Consonance and Critical Bandwidth,” The Journal of the Acoustical Society of America, vol. 38, no. 4, pp. 548–560, 1965. doi:10.1121/1.1909741
  10. J. H. McDermott, A. F. Schultz, E. A. Undurraga, and R. A. Godoy, “Indifference to Dissonance in Native Amazonians Reveals Cultural Variation in Music Perception,” Nature, vol. 535, pp. 547–550, 2016. doi:10.1038/nature18635
  11. R. Marjieh et al., “Timbral Effects on Consonance Disentangle Psychoacoustic Mechanisms and Suggest Perceptual Origins for Musical Scales,” Nature Communications, vol. 15, art. 1482, 2024. doi:10.1038/s41467-024-45812-z
  12. W. A. Sethares, Tuning, Timbre, Spectrum, Scale, 2nd ed. Springer, 2005. doi:10.1007/978-1-84628-605-0