The formula
Equal temperament: f = A4 × 2^((n − 69) ÷ 12), where n is the MIDI note number (A4 = 69)
MIDI number = (octave + 1) × 12 + pitch class (C = 0 … B = 11)
Note from frequency: n = 69 + 12 × log₂(f ÷ A4); cents offset = (exact n − nearest n) × 100
Transposing by k semitones multiplies frequency by 2^(k/12)
Worked example
- A4 at standard pitch is 440 Hz (MIDI 69).
- Middle C, C4 (MIDI 60), is 440 × 2^(−9/12) = 261.626 Hz.
- Transposing A4 up 7 semitones gives E5 = 440 × 2^(7/12) = 659.255 Hz, a ratio of 1.4983, very close to the pure fifth of 1.5.
- A frequency of 445 Hz is A4 + 19.6 cents sharp.
How note frequencies work
Every musical pitch corresponds to a frequency of vibration, measured in hertz (cycles per second). Doubling a frequency raises the pitch by one octave: A4 is 440 Hz, A5 is 880 Hz and A3 is 220 Hz. Western music divides each octave into 12 semitones. In twelve-tone equal temperament, the tuning system used by pianos, guitars and almost all modern instruments and software, each semitone is the same ratio, the twelfth root of two, about 1.05946. That makes every key sound equally in tune and allows music to be transposed freely.
Concert pitch and A = 440
The reference pitch A4 = 440 Hz was adopted as an international standard in 1939 and confirmed by ISO 16 in 1975. Not everyone uses it: many European orchestras tune to 442 or 443 Hz for a brighter sound, baroque ensembles often use 415 Hz, and some musicians prefer 432 Hz. Change the A4 reference to calculate frequencies for any tuning. Every other note scales with it, so at A = 442 Hz middle C becomes about 262.81 Hz.
Cents and tuning accuracy
A cent is one hundredth of an equal-tempered semitone, so an octave has 1,200 cents. Most listeners can detect differences of about 5–10 cents between two notes played together, and well-tuned instruments aim to be within a few cents. Enter a frequency measured by a tuner or spectrum analyser to find the nearest note and how many cents sharp or flat it is. That's useful for tuning instruments, checking samples, identifying the key of a recording and setting oscillators in synthesis.
Transposition and intervals
Transposing moves music up or down by a fixed number of semitones, changing every frequency by the same ratio. Singers transpose songs to suit their range, and players of transposing instruments such as B♭ clarinet and trumpet read music written a tone higher than it sounds. The interval table shows the notes and frequencies from your note up to an octave. Equal-tempered intervals are slightly different from the pure ratios of just intonation: an equal-tempered fifth is about 2 cents narrower than a pure 3:2 fifth, and a major third about 14 cents wider than a pure 5:4.
MIDI note numbers
MIDI numbers notes from 0 to 127, with middle C as 60 and A4 as 69. Music software, synthesisers and audio programming use these numbers, and the formula f = 440 × 2^((n − 69)/12) is the standard way to convert them to frequencies in code. Note that octave numbering conventions vary: some manufacturers, including Yamaha, call middle C C3 instead of C4. The calculator uses the scientific pitch notation standard, where middle C is C4.
Sound, wavelength and the room
Wavelength is the speed of sound divided by frequency, about 343 m/s in air at 20 °C. Low E on a bass guitar, 41.2 Hz, has a wavelength of 8.3 m, which is why bass frequencies interact strongly with room dimensions and are hard to control. Our room modes calculator finds the frequencies where a room resonates. For tempo-synced effects, use the BPM to milliseconds calculator, and for recording file sizes, the audio bitrate calculator.