Hobbies, Pets, Food & Lifestyle

Piano Key Frequency Calculator

Determine the exact acoustic frequency (Hz) and wavelength of any standard piano key based on equal temperament tuning (A4 = 440Hz).

Frequency
440

Calculated locally in your browser. Fast, secure, and private.

The Mathematics of the 88 Keys

A standard modern piano has 88 keys, spanning seven octaves plus a minor third. The tuning of these keys is based on the Equal Temperament system, where the octave is divided into twelve equal logarithmic steps (semitones). This allows a piano to play in any key while remaining 'acceptably' in tune, a breakthrough that enabled the complex harmonies of the last 300 years of Western music.

The A440 Standard

The benchmark for all piano tuning is A4 (the 49th key on the keyboard), which is tuned to exactly 440 Hz. Every other note is calculated relative to this frequency.

The Formula

The frequency of any key 'n' is calculated using an exponential function where each step represents a factor of the 12th root of 2.

f(n)=4402((n49)/12)\begin{aligned} f(n) = 440 * 2^((n - 49) / 12) \end{aligned}

Where:
n=
The key number (1 for A0, 88 for C8)
49=
The key number for A4 (the 440Hz reference)
12=
The number of semitones in an octave

Inharmonicity and 'Stretch Tuning'

In the real world, piano strings are not 'ideal' mathematical lines; they have physical stiffness. This causes the higher harmonics (overtones) to be slightly sharper than they 'should' be. To make the piano sound harmonious to our ears, tuners perform Stretch Tuning, where the high notes are tuned slightly sharp and the low notes slightly flat to match these imperfect overtones.

Frequently Asked Questions

An octave is the interval between one musical pitch and another with double its frequency. For example, A4 is 440Hz, so A5 (one octave higher) is 880Hz, and A3 (one octave lower) is 220Hz. To our ears, notes separated by an octave sound like the 'same' note at a different pitch.

The 12-note chromatic scale is a cultural and mathematical choice. It is the smallest number of notes that allows for a wide variety of pleasing harmonic intervals (like the perfect fifth and major third) to be played in any key without the instrument sounding wildly out of tune.

Middle C is the 40th key on a standard piano. Using the formula, its frequency in standard equal temperament is approximately 261.63 Hz.