Piano Tuning Calculator
Calculate target frequencies and cents offsets for piano tuning with octave stretch compensation.
About this calculator
This calculator converts a piano key number into a target tuning frequency, starting from equal temperament and layering on the octave stretch real pianos need because their strings are stiff enough to be slightly inharmonic. Key Number is the dominant input -- it sets how many semitones the note sits from A4 (key 49), and Target Frequency follows the standard equal-temperament formula of the reference frequency times 2 raised to that semitone distance divided by 12. Reference A4 Frequency scales every note by the same ratio, which is why orchestras that tune to 442 Hz instead of 440 Hz get a slightly brighter-sounding instrument across the whole keyboard, not just at A4. Stretch Factor widens the higher octaves sharp and the lower octaves flat relative to pure equal temperament, roughly proportional to the square of the distance from A4 -- this compensates for how a physical piano string's overtones run slightly sharp of the mathematically pure harmonic series. Cents from Equal Temp and Octave Stretch report how far the stretched target sits from a theoretically pure equal temperament tuning.
Frequency Deviation from Equal Temp converts that same cents offset into Hz (frequency times cents-from-equal, divided by 1200) -- it describes this single note's own drift from a theoretically pure reference, not the audible beating a tuner hears between two simultaneously sounding notes like a fifth or octave, even though "beat" terminology in piano tuning usually refers to that two-note phenomenon. Tuning Order Priority suggests a practical tuning sequence: pianos are conventionally tuned starting from the center octave (around key 42, near middle C) outward toward the extremes, since the center octave's pitches are easiest to hear accurately and everything else is set relative to them, so this figure is just each key's distance from key 42. What this does not model: individual piano inharmonicity coefficients (which vary by instrument, string gauge, and scale design), aural beat-counting technique, or partial-based stretch curves that professional tuners use with electronic tuning devices. This is a starting reference point, not a substitute for a Verituner-style measured stretch curve or a trained ear.
Inputs
Results
Target Frequency
440 Hz
How to Use This Calculator
- Enter Key Number (1-88), Reference A4 Frequency, and Stretch Factor.
- Set Temperament.
- Review the Target Frequency (Hz) result.
- Use Cents from Equal Temp (cents) and Octave Stretch (cents) to inform your decision.
- Check Frequency Deviation from Equal Temp (Hz) and Tuning Order Priority to sequence and cross-check your tuning session.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
How the result changes with Key Number (1-88)
| Key Number (1-88) | Target Frequency |
|---|---|
| 25 | 109.87 Hz |
| 37 | 219.94 Hz |
| 74 | 1,866.99 Hz |
| 88 | 4,198.8 Hz |
What each input means
- Key Number (1-88)
- Piano key number. A4 is key 49, middle C (C4) is key 40.
- Reference A4 Frequency
- Concert pitch reference. Standard is 440 Hz.
- Stretch Factor
- Inharmonicity compensation. 0=no stretch, 1=standard, higher for older pianos.
- Temperament
- Equal temperament spaces all 12 semitones identically; well-tempered applies small key-dependent deviations.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersKey Number (1-88) = 49, Reference A4 Frequency = 440, Stretch Factor = 1, Temperament = 1 = 4 input(s) provided
- Calculate Target Frequency440 = 440
- Calculate Cents from Equal Temp0 = 0
- Calculate Octave StretchOctave Stretch0 = 0
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does Key Number affect the frequency more than any other input?
Target Frequency follows an exponential equal-temperament curve across the full 88-key range, so moving Key Number by even a few positions shifts the frequency by a larger amount than a proportional change to Reference A4 Frequency does. Reference A4 Frequency scales every note by the same ratio, but Key Number determines which note -- and therefore which frequency band -- you're targeting in the first place.
Why would I ever tune to something other than 440 Hz?
Some orchestras and recording contexts use 442 Hz or occasionally 415 Hz for historical (baroque) tuning. Raising Reference A4 Frequency raises the target frequency of every note by the same proportional amount, so the whole piano shifts together rather than changing pitch relationships between notes.
What does the octave stretch actually correct for?
Piano strings are stiff rods, not the ideal flexible strings equal-temperament math assumes, so their overtones run slightly sharp of a pure harmonic series -- an effect called inharmonicity. Stretching the tuning (sharpening high notes, flattening low notes relative to pure equal temperament) makes the piano's own overtones line up better with each other than a mathematically pure tuning would, which is why real pianos sound more in tune when deliberately mistuned from theory.
Is this calculator a substitute for a professional tuning device?
No -- it applies one simplified stretch curve based only on distance from A4, while real tuning devices and technicians measure each individual piano's actual inharmonicity coefficients, which vary by string gauge, scale design, and age. Use this for a reference starting point or to understand the concept, not as the target values for a production tuning job.
What do Frequency Deviation from Equal Temp and Tuning Order Priority mean?
Frequency Deviation from Equal Temp is Cents from Equal Temp converted into Hz -- how far this specific note's stretched/tempered pitch has drifted from a theoretically pure equal-tempered reference. It is not the audible "beating" a tuner hears between two notes sounding together (like a slightly-off fifth), even though tuners often use "beat" for that different, two-note phenomenon. Tuning Order Priority is simply each key's distance from key 42 (near the center of the keyboard), reflecting the common practice of tuning the center octave first -- where pitches are easiest to hear accurately -- and working outward from there.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Drum Head Tuning Calculator
Calculate fundamental frequency and lug torque for drum head tuning based on size, tension, and material.
Instrument MaintenanceGuitar String Tension Calculator
Calculate the tension on a guitar string based on gauge, scale length, tuning frequency, and material.
Musical AcousticsPiano Room Acoustics Calculator
Optimize piano room acoustics by type, checking volume adequacy, wall distances, and acoustic treatment needs.
Instrument MaintenanceBow Rehair Timeline Calculator
Estimate when your string instrument bow needs a rehair based on usage, climate, and current condition.
More in Creative, Media & Design.