Saved

Press the star next to a tool's name to save it.

All my tools

Note Frequency Calculator

Use this note frequency calculator to turn notes into frequencies, MIDI numbers and piano keys, find the nearest note and its cents, and count semitones between notes.

Restored your last values ·

Hz
Hz

Enter a note, such as A4 or C#5, to get its frequency, MIDI number and piano key. Or enter a frequency to find the nearest note and how many cents sharp or flat it is. The third option gives the interval between two notes or frequencies in semitones.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want, enter a note or a frequency, then press Calculate.

A note frequency calculator converts between musical notes and the frequencies of their sound. Type a note, such as A4 or C♯5, and you get its frequency in hertz, its MIDI note number and its place on an 88-key piano. Type a frequency and you see the nearest note and how far off it is in cents. A third mode gives the interval between two notes or frequencies in semitones. It also works as a semitone calculator, and it runs in your browser.

How to use the note frequency calculator

  1. Choose note to frequency, frequency to note or semitones between.
  2. Enter a note such as A4, C#5 or Bb3, or a frequency.
  3. Change the reference pitch if you do not tune to 440 Hz.
  4. Press Calculate.

The frequency formulas

The Wikipedia article on piano key frequencies gives the frequency of the nth key as f(n) = 440 Hz × 2^((n − 49) ÷ 12). Key number 49 is A4, which has a frequency of 440 Hz, and an 88-key piano has keys 1 to 88.[1] The article on the MIDI tuning standard gives the same relation for MIDI note numbers: f = 440 Hz × 2^((N − 69) ÷ 12), with the inverse N = 69 + 12 log₂(f ÷ 440 Hz).[2] Note 69 is A4. The calculator uses these formulas, and it scales them if you choose another reference pitch, such as 432 Hz.

Semitones and cents

The article on equal temperament says that the ratio of one semitone is the twelfth root of 2, which is about 1.05946, or 1.059463 more precisely, and that the cent scale divides it into 100 cents per semitone and 1,200 cents per octave.[3] So up one octave the frequency doubles, and each semitone multiplies the frequency by 1.059463. The page's example is that one semitone above A4 is 440 × 2^(1/12), two semitones, B4, is 440 × 2^(2/12), about 1.122462 times 440, and three semitones, C5, is about 1.189207 times 440, which is 523.25 Hz.[3]

A table that you can check

The piano key page lists the frequencies of an octave. Middle C, C4, is key 40 and MIDI note 60, at 261.6256 Hz. Then C♯4 is 277.1826, D4 is 293.6648, D♯4 is 311.1270, E4 is 329.6276, F4 is 349.2282, F♯4 is 369.9944, G4 is 391.9954, G♯4 is 415.3047, A4 is 440.0000, A♯4 is 466.1638, B4 is 493.8833, and C5 is key 52, MIDI note 72, at 523.2511 Hz.[1] The calculator reproduces these values. The page also states that the frequencies are for an idealized piano, because real pianos stretch their octaves.[1]

From frequency to note

For a frequency, the calculator finds the real MIDI number, 69 + 12 log₂(f ÷ 440), rounds it to the nearest note, and gives the difference in cents. The cents are 100 times the part of a semitone that is left, which is the same as 1,200 log₂ of the ratio to the nearest note. This relation is derived from the page's 100 cents per semitone, because the pages do not state a formula for cents. A frequency of 450 Hz is 38.9 cents above A4, and 430 Hz is 39.8 cents below it. That is the kind of reading that a guitar tuner shows.

Intervals between two notes

The third mode takes two notes, or two frequencies, or one of each, and gives the interval in semitones, cents, as a frequency ratio and in octaves. From A4 to A5 it is 12 semitones, 1,200 cents and a ratio of 2. From C4 to G4 it is 7 semitones, a perfect fifth, which the page lists as 700 cents.[3] A negative result means that the second note is lower than the first. You can use it to find how far apart two instruments are tuned, or how many semitones to shift a sample.

Note names and octave numbers

The calculator names the octave so that middle C is C4, the same as on the MIDI scale, where it is note 60. The lowest MIDI note, 0, is C−1 at 8.1758 hertz, and the highest, 127, is G9 at 12,543.854 hertz.[2] Some software numbers the octaves one higher or lower, so check the convention when you move between programs. You can enter flats as b or ♭ and sharps as # or ♯, in lower or upper case.

Tuning to another reference

Some players tune to a reference other than 440 Hz, such as 432 Hz or 442 Hz. Enter the pitch of A4 in the first box, and every note moves with it, because the formulas scale from the reference. With A4 at 432 Hz, middle C is 256.87 Hz, a little lower than the 261.63 Hz of standard tuning. This is the same formula with 432 in place of 440, and the ratio between notes does not change.

Using it to tune and to transpose

To tune an instrument by ear or with a meter, look up the frequency of each open string, and compare it with the reading. To shift a recording by a number of semitones, multiply its frequencies by 1.059463 for each semitone up, or divide for each semitone down. The semitone mode gives the number to use when you know only the two frequencies.

Common mistakes

  • Using another octave convention. Here, middle C is C4.
  • Forgetting the reference. The values depend on the pitch of A4.
  • Mixing up semitones and cents. A semitone is 100 cents.
  • Expecting real pianos to match. Pianos stretch their octaves.

What next

Use this often? Add Note Frequen to your Home screen.

Frequently asked questions

What is a note frequency calculator?

A tool that converts between musical notes, frequencies in hertz, MIDI note numbers and piano keys, and finds intervals in semitones.

What is the frequency of middle C?

261.6256 Hz, for C4 with A4 at 440 Hz. It is MIDI note 60 and piano key 40.

What is the formula for a note's frequency?

f = 440 × 2^((n − 49) ÷ 12) for piano key n, or 440 × 2^((N − 69) ÷ 12) for MIDI note N.

How many cents are in a semitone?

100. An octave is 12 semitones, or 1,200 cents.

How do I find the number of semitones between two notes?

Take 12 × log₂ of the ratio of the two frequencies. A4 to A5 is 12 semitones.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Education Tools