# Why is the relationship between frequency and pitch exponential?

I read that the formula relating frequency to the note played was:

F = 440 × 2 n / 12

Where `F` is the frequency in hertz of the note played and `n` is the number of notes from middle A.

It seems strange to me that this relationship is exponential, doesn't it make more sense for the relationship to be linear, so it is easier for the musician to quickly subconsciously predict what each increasing note will sound like?

Is there even any point in this formula at all, or is it just a strange convention? If it is just convention, then where does it originate?

• Because frequencies sound more similar the more oscillation nodes they have in common. Frequencies of 1, 2, 3, 4... don't have as many as 1, 2, 4, 8, 16... do - you can make a simple diagram to see why. – Kilian Foth May 31 at 6:52
• You are making some seriously unwarranted assumptions about audiology and neurology ("quickly subconsciously...") . Don't do that :-) – Carl Witthoft May 31 at 12:26
• Try this experiment: make a note at 440 Hz. Then in quick succession make notes at 540 Hz, 640 Hz, and 740 Hz. Tell us how easy it was to do that. – David K May 31 at 12:36
• For what it's worth, we hear volume (amplitude) on an exponential scale, also. – Jim L. May 31 at 19:44
• You're right, it might "make more sense" if the relationship were linear. It might also "make more sense" if the earth were flat. Alas, the physical universe doesn't really care what might "make more sense" to us lowly linear thinkers. – jwvh Jun 1 at 10:20

It's because the way the ear actually hears pitch differences (for most people) is based on frequency ratios, rather than absolute frequency differences.

If I played you "Twinkle Twinkle Little Star" starting at on a note of 400 Hz, and then played it again with another 300 Hz added to the frequency of each note, it wouldn't sound like the same tune. However, if we multiplied the frequency of each note in the original by a ratio (say 1.75), it would sound like "the same tune, but higher".

I'm not an expert on the physiology, but I believe there are even physical characteristics of the ear that relate to notes an octave apart (which corresponds to a doubling in frequency) being heard as somewhat equivalent.

By the way, the formula you quote describes how to find note frequencies in an equal temperament system; this system came into common usage over time as a clever compromise that allows many different combinations of notes with 'almost consonant' harmonic relationships to be sounded. There are other systems of temperament possible, and therefore there are also different equations possible, though they will all be broadly logarithmic.

In response to g.kertesz' interesting link - from an evolutionary point of view, it may be that hearing is so precisely logarithmic because of the need for the ear to correlate frequency components that are part of the same harmonic series (i.e. are multiples of a fundamental frequency), as these separate components are in fact likely to be providing information about the same source of sound.

• Whenever I see a question about acoustics, you're one of the users that I hope will answer. Do you know if there are any examples of common tunes with the linear change you discussed in your second paragraph? That'd be really interesting to hear! – Richard May 31 at 0:15
• @Richard I know very little about music really, so I have to scavenge for these scraps on the periphery of the subject (luckily we have you to deal with the juicier stuff). I can't think of any tune that works like that - maybe I should try to make one! It would probably be something of an exercise in simultaneous equations to try to get it sounding harmonious... – topo Reinstate Monica May 31 at 9:43
• @Richard youtube.com/watch?v=Ef93WmlEho0 desribes a completely different type of mistake, but I suspect that the result is similar. – Arthur May 31 at 11:42
• "I believe there are even physical characteristics of the ear that relate to notes an octave apart" Presumably that's because any part of your ear into which a sound wave will "fit" will fit exactly two waves of a note an octave higher. – David Richerby May 31 at 14:35
• @Hearth we have had people on this site claiming they don't recognize octave equivalence (though they may be signing in from alternate realities) – topo Reinstate Monica Jun 2 at 19:33

Essentially, it's because we humans perceive pitch on a logarithmic/exponential scale. We hear an octave when the frequency is doubled or halved, not when it has a certain amount added or subtracted to it. Since musicians (well, the western ones, anyway) divide the octave into 12 equal parts, we had to take the 12th root of two as our factor to represent a semitone.

As for the origins of this system, we have to go back all the way to at least the time of Pythagoras, who was one of the first to discover the ratio-based nature of music, and also the harmonic series (which itself is wholly integer multiples of the fundamental). Now, back in Pythagoras' day, there was no such thing as 12-TET - the system we use now and the system described by that handy equation you posted here -, but Pythagoras knew that integer ratios are what drives most harmony, and our modern system of frequencys and their relationships is in large part an approximation of Pythagoras' harmony with some things fixed up. My source for all this is Tom Jackson's Mathematics: An Illustrated History of Numbers. It's a great book, written mostly about math, but math and music are inextricably bound together, and there's a page or two on the origins of music itself.

You can experiment for yourself, too.

1. Go find any tone generator application (this website works).
2. Try picking a note (say, 440hz). Play it, then play another sound simultaneously with a frequency 1.5x the original (660hz). Observe.
3. Clear both tones. Play another tone with a different frequency (say, 500hz). Play a second tone at the same time with 1.5x the frequency of the original (750hz). You should hear a very similar sound, starting on a higher note. This is the result of multiplying the frequency by the same amount.
4. Start again with a 440hz tone. This time, add 220hz to it to produce the second note (which should still end up as 660hz). Play that; obvoiusly, it's the same sound as before.
5. Now, starting on 500hz, add 220hz to your 500hz frequency. Play the 500hz frequency at the same time as your new 720hz frequency.
6. Notice the difference?

Conclusion: Our ears perceive pitch in a logarithmic manner. Therefore, to change a frequency by any amount, one must multiply the frequency by certain factors instead of adding or subtracting. All musical intervals can be represented as a ratio, and multiplying the two frequencies by the same factor produces that same ratio. Adding the same amount to both frequencies does not preserve the ratio.

And if you haven't already, check out this question.

• I'm not quite sure how you managed it, but your sound file links in this answer are all local on your own machine. – Andrew Leach Jun 2 at 22:17
• @AndrewLeach What does that mean? Is that a problem? – user45266 Jun 3 at 1:07
• It means that they only work for you. You downloaded the files and linked to those downloaded files, but no-one else has a location /home/chronos/u-8284b... You need to link to their location on the internet. – Andrew Leach Jun 3 at 6:10
• @AndrewLeach Ah. I'll just toss those. Does the link to the website itself still function? – user45266 Jun 3 at 14:57

While the answers by topo morto and user45266 are both correct, they do not really go into the "why" from the physiological side. It looks like that the perception of different frequencies is no different from sensory perception in general, which is logarithmic in nature. This empirical fact is known as the Weber-Fechner law.

Same goes for example for visual brightness or the loudness of sound. When we feel a certain difference in brightness our loudness, it corresponds to a certain ratio (as opposed to difference) of the input stimulus (that is the physical intensity in this case).

• Sensation might work this way to squeeze a big range into a tinier range, like a log-paper plot (which are also quite common in signal processing). You can notice this when you use a screen outdoors vs indoors, subjectively not that much difference but the difficulty in reading the screen tells you it is, or when waking up and your eyes have to adapt. – StefanH May 31 at 12:31
• Also for comparing sizes and amounts. It's easier to judge "this is twice the size/length of that". For areas it's four times (twofold increase in two dimensions) and for volumes (e.g. two party balloons) it's eight times (twofold increase in three dimensions). This naturally becomes logarithmic when applied smoothly to all scales. I.e. a balloon that looks twice as big as another balloon has roughly eight times the volume. – CJ Dennis Jun 1 at 1:10

doesn't it make more sense for the relationship to be linear, so it is easier for the musician to quickly subconsciously predict what each increasing note will sound like?

No. We use pitches to make music, and we can do that without any understanding of frequency. As an analogy, you can watch television without knowing anything about raster scanning (how broadcast cameras work).

People have been making music for many thousands of years, and for most of that time we had no understanding of frequency. We've known that frequency relationships create consonance or dissonance since the ancient Greeks, but we had no method of actually measuring frequency until the 1500s, when Vincenzo Galillei started experimenting with taught ropes - a rope of sufficient length and mass vibrated slowly enough to actually count the vibrations.

Marin Mersenne then took Galilei's work farther, and formalized the math. The result was Mersenne's Laws, which describe how vibrating strings work.

The formula you cite, F = 440 + 2^(n/12), is the formula for 12 tone equal temperament. Because Mersenne showed us that pitch relationships are exponential, and because octave equivalence is a 2:1 ratio, diving an octave into 12 equal sonic steps requires using the 12th root of 2. Use it 12 times in sequence and you've got 2, the octave. You'll need a different formula for other temperaments - and if the temperament isn't equal you'll need a more complicated function.

Is there even any point in this formula at all, or is it just a strange convention?

Formulas describe the world in mathematical terms. E=mc^2 would be easier to work with if the speed of light (c) is equal to one - but how you choose to measure the speed of light doesn't change the relationship. If you change the relationship to something "simpler" you're no longer describing what's being observed.

So it's not convention. And the point is pretty simple: it describes mathematically what's going on.

Just like raster scanning, you don't need to understand it (or even be aware of it) to make use of it.

Your equation is incorrect. It's not F = 440 + 2^(n/12) it's F = 440 * 2^(n/12)

Actually the relationship IS linear, on a logarithmic scale. Here are 2 graphs, one of the frequency of each note, and one of the natural log of frequency-440. Notice that the second is a straight line. (The frequency-440 just makes the straightness more apparent)  Just FYI: Most older electronic music synthesizers used a linear 1V/octave (1/12V per note) scale for the control voltage on their voltage controlled oscillators. I assume the linear 1V/octave scale was chosen to limit the voltage range required for larger keyboards. For example, an 88 key keyboard would require less than an 8 volt swing to span the entire range of keys.

First, as some others have pointed out, your formula is wrong.

Not: F = 440 + 2^(n/12)

It should be: F = 440 x 2^(n/12)

Consider the case n = 12 (an octave). Your formula would suggest that 2Hz is added but in fact the frequency is doubled (times 2). An octave up from 440Hz is 880Hz not 442Hz.

Now my main point: you have the cart before the horse. No one sat down and devised that weird formula before they first started to sing. It was developed long after and, as some have mentioned, it only applies to the relatively modern equal temperament system. Older systems did not use strange irrational numbers.

The answer, with the horse before the cart, is that this happens to be how our ears work. We don't hear 440Hz, 880Hz, 1320Hz, 1760Hz, etc as equal steps. It would sound like decreasing steps: an octave (A to A), a fifth (A to E), a fourth (E to A); roughly, ignoring precise temperament considerations.

Others have touched on why so I won't go into that but if you want to convince yourself that it is so then try this experiment.

Find a man and a woman who can sing simple tunes reasonably well but are neither trained musicians nor mathematicians or physicists. Hence they cannot read music and do not know that formula.

Give the woman a 440Hz (A4) note to start and ask her to sing Twinkle, Twinkle Little Star. Her first two notes will be (approximately) 440Hz and then she will hopefully jump to 660Hz (E5). 220Hz up or 1.5 times the frequency.

Now ask the man to sing with her. Unless he has an exceptionally high voice, he won't sing the same notes but an octave down. So, he will start on 220Hz (A3) and then he will jump to 330Hz (E4). 110Hz up and 1.5 times the frequency. So, what sounds like the same change is still 1.5 times the frequency but a smaller step of 110Hz.

This also shows that moving an octave (doubling or halving the frequency) is perceived as pretty much the same note. If the woman was close to 440Hz and the man close to 220Hz, they would be considered as in tune. Others have touched on why: all of the harmonics of the woman's 440Hz would also be harmonics of the man's 220Hz.

This is common in physics. Look at the formula for the gravitational attraction between two bodies. Newton did not invent that formula and impose it on the Solar System. He figured out that it did a very good job of explaining and predicting the Solar System's behaviour. Your formula is similar: it was not imposed on music. Music came first and the formula was developed as a model for it later.

All the other answers are correct, but the root of the answer is simpler: the relationship between frequency and pitch is exponential, not because of perception or convention, but as a matter of simple geometry. Intervals are frequency ratios, not A plus B but A times (or divided by) B. The interval of an octave exists between a tone and another tone with twice the frequency, so that there are two cycles to every one cycle. The nature of intervals is geometric and therefore exponential.

• This sounds like a circular argument. Intervals are frequency ratios because that's how we perceive pitch. You're not explaining why we perceive frequency ratios instead of absolute differences as pitch. Possibly the OP (or other future readers) don't understand the math meaning of the word exponential, so maybe this answer is useful. (Also, a geometric series doesn't imply that "geometry" (the study of shapes and sizes) is involved.) – Peter Cordes Jun 2 at 8:44

There is a scale called Mel Scale, which is (frequency to degree):

M(f) = 1125 ln(1 + f/700)

and (degree to frequency):

M'(m) = 700(exp(m/1125) - 1)

It's a scale that empirically fits the ears of human, created from psychologic experiments.

The chromatic scale is an approximation of the Mel Scale, though not by design.