Note to frequency chart and calculator
Pick a note and octave, or type one like F#3, to get its frequency. The full chart below follows your reference pitch.
A4
440.00Hz
- MIDI note number
- 69
- Semitones from A4
- 0
- Period
- –
- Wavelength in air (20 °C)
- –
| Note | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|---|
| C | |||||||||
| C♯/D♭ | |||||||||
| D | |||||||||
| D♯/E♭ | |||||||||
| E | |||||||||
| F | |||||||||
| F♯/G♭ | |||||||||
| G | |||||||||
| G♯/A♭ | |||||||||
| A | |||||||||
| A♯/B♭ | |||||||||
| B |
B0 to D♯8 as #define lines, rounded to whole hertz, for tone(pin, NOTE_A4). Follows the reference above.
How to use it
- Choose the note and octave from the lists, or type a name such as C4, Eb2 or G#5.
- Change the reference pitch if you need A4 at 432, 442 or another value; the result and the whole chart update.
- Click any frequency in the chart to select it and hear it.
The note to frequency formula
In twelve-tone equal temperament each semitone multiplies the frequency by 2^(1/12) ≈ 1.059463, so twelve of them double it. Counting n semitones from A4, the frequency is f = 440 × 2^(n/12). Middle C, C4, is nine semitones below A4: 440 × 2^(−9/12) ≈ 261.63 Hz. An octave up always doubles the frequency, and an octave down halves it.
The chart uses scientific pitch notation, in which middle C is C4. Sharps and flats with the same pitch, such as C♯ and D♭, share a row because equal temperament makes them identical.
Piano key frequencies and Arduino tone()
A standard 88-key piano runs from A0 (27.50 Hz) to C8 (4186.01 Hz); key 49 is A4. Every key is in the chart above.
For an Arduino buzzer, copy the note table under the chart: tone(pin, NOTE_C4) plays middle C at 262 Hz. Arduino’s reference says tone() cannot make frequencies below 31 Hz, which is why the table starts at B0 (31 Hz).
Reference pitch
A4 = 440 Hz is the international standard concert pitch. Some orchestras tune a little higher, around 442 or 443 Hz, and many baroque ensembles lower, often at 415 Hz. Changing A4 shifts every note by the same ratio.
For the 88 keys of a piano with their key numbers, see the piano key frequency table on stretch.cihat.dev, which also explains why pianos are tuned slightly wider than these exact values.
Related tools
Questions people ask
What is the frequency of middle C?
C4 is about 261.63 Hz at A4 = 440 Hz.
How do you calculate the frequency of a note?
Count the semitones n from A4 (negative below it) and work out 440 × 2^(n/12). For E4, five semitones below A4: 440 × 2^(−5/12) ≈ 329.63 Hz.
What frequency is A4 at 432 Hz tuning?
Exactly 432 Hz; every other note moves by the ratio 432 ÷ 440, about 31.8 cents lower than standard.
What are the note frequencies for an Arduino buzzer?
Copy the #define list under the chart and call tone(pin, NOTE_A4). The values are equal-tempered frequencies rounded to whole hertz, from B0 (31 Hz) to D♯8 (4978 Hz).
Are C♯ and D♭ the same frequency?
In equal temperament, yes. In other tuning systems they can differ slightly.
What is the lowest and highest note in the chart?
C0 at about 16.35 Hz, near the bottom of human hearing, up to B8 at about 7902.13 Hz.
