Piano Tuning Simulator

The method

What is temperament in piano tuning?

Temperament is how the twelve notes inside one octave are spaced. It exists because of an awkward fact of arithmetic: intervals tuned perfectly smooth do not add up to an octave. So each one is nudged, or tempered, by a tiny amount, and a tuner sets those amounts by listening to how fast pairs of notes beat. Setting the temperament is the first and most exacting part of tuning a piano.

Updated 3 December 2026 · 9 minute read · How these guides are made

In short

The problem: smooth intervals do not add up

Two notes sound perfectly smooth together when their vibrations fit in a simple ratio. The smoothest of all is the octave, where the upper note vibrates exactly twice as fast as the lower. Next comes the fifth (seven keys apart, counting black and white, such as A up to E), where the ratio is three to two.

It seems natural to tune a piano by making every fifth perfectly smooth. Start on A, tune a smooth fifth up to E, another from E to B, and carry on. After twelve fifths you have visited all twelve notes and come back to A. The trouble is where you land.

Twelve perfectly smooth fifths, one after another Seven octaves the gap: 23.5 cents ▸
The problem every tuning has to solve. Start on any note and go up by twelve perfectly smooth fifths and you arrive back on the same note name, seven octaves higher. Except you do not quite: you overshoot by about a quarter of the distance between two neighbouring keys. (The gap is drawn larger than life here so that you can see it.)

The arithmetic is short. Twelve fifths multiply the starting pitch by 1.5 twelve times, which comes to about 129.75. Seven octaves double it seven times, which comes to exactly 128. The two A’s you end up with differ by about 23.5 cents, where a cent is a hundredth of the step from one key to the next. That is nearly a quarter of a key: plainly, sourly out of tune.

This is not a flaw in pianos. It is a property of numbers, known since antiquity, and every instrument with fixed pitches has to deal with it somehow. The way it is dealt with is called a temperament.

The fix: share the error out equally

If twelve smooth fifths are 23.5 cents too big in total, the obvious answer is to make each one a twelfth of that smaller: about two cents narrow. Do that to all twelve and the circle closes exactly. Every step from one key to the next is then precisely the same size, which is why this is called equal temperament.

Two cents is a very small amount. It is far too small to hear as “flat”, but it is enough to make the fifth beat: instead of standing perfectly still, the sound swells gently about once a second in the middle of the piano. (If beats are new to you, start here.)

Listen: a fifth, A3 and E4

The middle button is how this fifth should sound on a piano: nearly smooth, with a slow swell. Compare it with the perfectly smooth version, and with one that has gone too far.

The great advantage of sharing the error equally is that no key is favoured. A piece sounds the same in C major as in F sharp major, only higher or lower, so music can move freely between keys.

The price: thirds that beat fast

Fifths get off lightly. The interval that pays is the major third (four keys apart, such as A up to C sharp), the sweet interval at the heart of a major chord. A perfectly smooth major third has a ratio of five to four. The equal-tempered one is about 13.7 cents wider than that: seven times the adjustment made to the fifth.

Listen: a major third, A3 and C♯4

The smooth third is calm and still. The equal-tempered one has a quick shimmer, between eight and nine beats a second. On a piano, the second is the correct one.

Musicians have been used to this sound for so long that a quick, even shimmer in the thirds simply sounds like “a piano”. The table shows how far each common interval sits from perfectly smooth.

IntervalExampleCompared with perfectly smoothWhat you hear
OctaveA3 to A4The sameNo beat
FifthA3 to E42.0 cents narrowA slow swell, under one a second
FourthA3 to D42.0 cents wideA slow swell, about one a second
Major thirdA3 to C♯413.7 cents wideA quick shimmer, eight or nine a second
Minor thirdA3 to C415.6 cents narrowA fast flutter

How a tuner sets the temperament

You cannot hear “two cents narrow” directly. What you can hear, and count, is the beat it produces. So a tuner sets the temperament in one octave in the middle of the piano, where beats are slow and clear, by tuning each note from one already set and listening for the right beat speed.

There are many sequences. This is one of the oldest and simplest, using only fifths and fourths, and starting from the A given by the reference pitch.

A31B33C410D412E42F49G411A4fork8A♯35C♯47D♯44F♯46G♯4
The order of work in one octave. A4 comes from the reference pitch: a tuning fork, or today often an electronic tone. Every other note is tuned from one that is already set, in the order shown, going up a fifth or down a fourth each time.

One rule covers every step in this sequence, which makes it a good one to learn on:

The rule

Tune the new note until the interval is perfectly smooth, with no beat at all. Then lower the new note very slightly, until a slow beat just appears.

Going up a fifth, lowering the top note makes the fifth narrow. Going down a fourth, lowering the bottom note makes the fourth wide. Both are exactly what equal temperament asks for.

StepTuneFromIntervalLeave it beating
StartA4The reference pitchNot at all
1A3A4An octave downNot at all
2E4A3A fifth upAbout 0.7 a second
3B3E4A fourth downAbout 1.1 a second
4F♯4B3A fifth upAbout 0.8 a second
5C♯4F♯4A fourth downAbout 1.3 a second
6G♯4C♯4A fifth upAbout 0.9 a second
7D♯4G♯4A fourth downAbout 1.4 a second
8A♯3D♯4A fourth downAbout 1.1 a second
9F4A♯3A fifth upAbout 0.8 a second
10C4F4A fourth downAbout 1.2 a second
11G4C4A fifth upAbout 0.9 a second
12D4G4A fourth downAbout 1.3 a second
CheckD4 with A4The last fifthAbout 1.0 a second

Notice the pattern in the last column: fifths beat a little slower than one a second, fourths a little faster, and both speed up gradually as the notes get higher. Nobody counts these to a decimal place at the piano. The figures are there so you know what “a slow beat” means: roughly one swell a second, never a flutter.

The last line is the moment of truth. The fifth from D4 up to A4 has not been tuned: both notes were set by other routes. If every step was right, it will beat at about one a second like its neighbours. If it is perfectly smooth, or beating fast, the small errors along the way have added up, and the tuner goes back to find them.

Checking the work: thirds that speed up evenly

Fifths and fourths beat so slowly that a small error in one is hard to hear. Major thirds are far more sensitive, because they beat quickly: a tiny error changes their speed noticeably. So although the notes are set with fifths and fourths, the result is judged with thirds.

  • A3 + C♯48.7
  • A♯3 + D49.2
  • B3 + D♯49.8
  • C4 + E410.4
  • C♯4 + F411.0
  • D4 + F♯411.7
  • D♯4 + G412.3
  • E4 + G♯413.1
  • F4 + A413.9
The test: thirds that speed up evenly. Beats a second for each major third in the octave, from the lowest to the highest. In a good temperament every third is a little quicker than the one below it. A third that is slower than its lower neighbour, or that leaps ahead, points to a note that is out of place.

The tuner plays the thirds one after another, moving up a key at a time, and listens to the shimmer getting steadily quicker, like a wheel gradually picking up speed. One that breaks the pattern shows which note needs a touch more or less. Comparing beat speeds like this is the central listening skill of the whole craft, and it is a skill that can be practised long before you pick up a lever.

A short history: temperament was not always equal

Equal temperament is one answer to the problem, not the only one. For centuries keyboard instruments were tuned so that the error was shared out unequally. Some thirds were made beautifully smooth, and the leftover error was pushed into keys that composers then avoided. In the systems that followed, known as well temperaments, every key was usable but each had a slightly different flavour, some calm and some tense.

Equal temperament gives up those sweet thirds and those differences of character in exchange for complete freedom to play in any key. It took over gradually during the nineteenth century: it was close to universal in France and the German-speaking countries by about 1835, the London maker Broadwood began training its tuners in it in 1846, and it was not firmly established in the United States until the early twentieth century. It is what a tuner means today unless they say otherwise.

On a real piano the numbers shift a little

Everything above comes from the arithmetic of ideal strings. Real piano strings are stiff, and stiffness makes their overtones slightly sharper than the arithmetic predicts. The beat rates on an actual instrument therefore differ a little from the table, and differ from one piano to another.

This is why the temperament is judged by comparison and not by counting. The rule “each third a little faster than the one below” holds on every piano, whatever the exact numbers turn out to be. It is also why tuners use several different sequences, some built around thirds from the start, and some set in the octave from F3 to F4 instead of A3 to A4. They are different routes to the same place.

Once the temperament octave is right, the rest of the piano is copied from it in octaves, and the three strings of each note are brought together. The whole order of work is in how to tune a piano by ear.

Common questions

What does temperament mean in piano tuning?

It means the way the twelve notes of the octave are spaced. “Tempering” an interval is deliberately tuning it slightly away from perfectly smooth, so that all the intervals fit together inside the octave.

What is equal temperament?

The tuning used on modern pianos, in which the octave is divided into twelve exactly equal steps. Every fifth is about 2.0 cents narrower than a perfectly smooth one, and every major third about 13.7 cents wider.

Why can a piano not be tuned perfectly?

Because perfectly smooth intervals contradict each other. Twelve smooth fifths come out about 23.5 cents larger than seven octaves, so if every fifth is smooth the octaves cannot be, and the other way round. Temperament is the compromise.

What is the temperament octave?

The one octave near the middle of the piano that a tuner sets first, note by note, by listening to beat rates. Commonly it runs from A3 to A4 or from F3 to F4. Every other note on the piano is then tuned from it in octaves.

How fast should fifths and thirds beat?

In the octave from A3 to A4, fifths beat a little under once a second and fourths a little over. Major thirds beat much faster, from about 8.7 a second at the bottom of the octave to about 13.9 at the top. On a real piano the exact figures vary slightly.

What is a temperament strip?

A long strip of felt that a tuner weaves between the strings across the middle of the piano, so that only one string of each note can sound. It lets the temperament be set without three strings per note confusing the beats.

Sources and further reading