Frequency to Note Calculator
Converts any audio frequency in Hz to its closest musical note and MIDI number, with support for custom tuning standards. Useful for tuning instruments, analyzing recordings, and exploring alternative temperaments.
Last updated: September 2026
Formula below · 2 sources (aes.org, Wikipedia) · Updated Sep 2026
Compare with similar
About this calculator
In standard equal temperament, the MIDI note number for a given frequency is derived using logarithms: MIDI = round(12 × log₂(frequency / tuningStandard) + 69). The number 69 corresponds to A4 in MIDI notation. The log₂ term counts how many semitones the input frequency is above (or below) the reference. Dividing by the tuning standard (typically 440 Hz for A4) normalizes the frequency before the log. The MIDI number of a pitch is fixed, so the Reference Octave input does not change the result; it only matters when naming the note, because some software calls MIDI 60 "C3" instead of "C4". The result is rounded to the nearest integer to snap to a named note, and the fractional remainder gives the deviation in cents.
How to use
Say you record a tone at 523.25 Hz and want to identify it, using a 440 Hz tuning standard and reference octave 4. Calculation: MIDI = round(12 × log₂(523.25 / 440) + 69) = round(12 × log₂(1.1892) + 69) = round(12 × 0.2496 + 69) = round(2.995 + 69) = round(71.995) = 72. MIDI note 72 is C5, which is exactly middle C one octave up. The tiny deviation from 72.000 shows this frequency is almost perfectly in tune.
Frequently asked questions
How do I convert a frequency in Hz to a musical note name using this calculator?
Enter the frequency in hertz, set the tuning standard (440 Hz is the default concert pitch), and choose your reference octave. The calculator applies the formula MIDI = round(12 × log₂(f / tuningStandard) + 69); map the result to a note name using the standard MIDI note table. MIDI 69 is A4, 70 is A♯4, 71 is B4, 72 is C5, and so on. Any fractional remainder is the pitch deviation in cents, useful for checking tuning accuracy.
What tuning standard should I use when identifying notes in old or non-standard recordings?
Concert pitch has varied significantly throughout history. Baroque ensembles often used A = 415 Hz, roughly a semitone below modern standard. Some orchestras use A = 442 or 443 Hz for a brighter sound. For analyzing a recording, you can measure the frequency of a known note and back-calculate the tuning standard used. Entering the correct tuning standard ensures the calculator maps every note correctly rather than showing systematic sharp or flat offsets throughout the piece.
What does the reference octave setting do?
It does not change the MIDI number, which is fixed by the frequency (440 Hz is always MIDI 69 at A440). Octave numbering conventions differ only in the name: most software calls MIDI 60 "C4", while some synthesizers and DAWs (Yamaha, Ableton) call it "C3". If your software uses the C3 convention, subtract one from the octave number in the note name; the MIDI number stays the same.