Skip to content
Other

Semitone Calculator

Choose two notes or enter two frequencies and this calculator returns the number of semitones between them, the musical interval name, the frequency ratio, the deviation in cents, and the MIDI note numbers. Switch between note-to-note mode, frequency-to-frequency mode, and transposition mode. The A4 reference pitch is adjustable from the standard 440 Hz to any concert pitch you need.

Your details

Note-to-note compares two notes. Frequency-to-frequency compares two Hz values. Transpose calculates a target frequency from a starting note and a semitone shift.
The lower or first note of the interval.
The upper or second note of the interval.
Standard concert pitch is 440 Hz. Some orchestras use 432 Hz (historically informed) or 442-443 Hz (European orchestral standard). Changing this shifts all frequencies proportionally.
Hz
Semitones
7

Number of semitones between the two notes or frequencies

Cents700c
IntervalPerfect 5th
Frequency ratio1.498307
Target frequency659.2551Hz
Start frequency440Hz
MIDI - start note69
MIDI - target note76
Nearest note (start)A4 (in tune)
Nearest note (target)E5 (in tune)
Semitones7
Cents / 100700
08802k-12624
Semitones from start
Frequency (Hz)
Semitones from startFrequency from 440.00 Hz
-12220
-11233.08
-10246.94
-9261.63
-8277.18
-7293.66
-6311.13
-5329.63
-4349.23
-3369.99
-2392
-1415.3
0440
1466.16
2493.88
3523.25
4554.37
5587.33
6622.25
7659.26
8698.46
9739.99
10783.99
11830.61
12880
13932.33
14987.77
151k
161k
171k
181k
191k
201k
211k
222k
232k
242k

Perfect 5th - 7.00 semitones upward

  • The interval spans 7.0000 semitones (700.0 cents) in the upward direction.
  • The frequency ratio f2/f1 is 1.498307, meaning the target note vibrates at 149.83% of the starting frequency.
  • In standard 12-tone equal temperament this interval is closest to a Perfect 5th.

Next stepUse the transposition mode to find what frequency any note lands on after shifting a set number of semitones, useful for capo calculations, pitch shifting, and modulation planning.

Formula

n=12×log2 ⁣(f2f1),cents=1200×log2 ⁣(f2f1),f2=f1×2n/12n = 12 \times \log_2\!\left(\frac{f_2}{f_1}\right), \quad \text{cents} = 1200 \times \log_2\!\left(\frac{f_2}{f_1}\right), \quad f_2 = f_1 \times 2^{n/12}

Worked example

From A4 (440 Hz) to E5 (659.255 Hz): n = 12 x log2(659.255 / 440) = 12 x log2(1.4983) = 12 x 0.5833 = 7.0 semitones, which is a Perfect 5th. In cents: 7 x 100 = 700 c. The frequency ratio is 2^(7/12) = 1.498307.

What is a semitone?

A semitone is the smallest interval in standard Western music. In 12-tone equal temperament (12-TET), the octave is divided into exactly 12 equal semitones. Each adjacent key on a piano keyboard, whether black or white, is one semitone apart. Because the octave represents a 2:1 frequency ratio, each semitone corresponds to a frequency ratio of 2^(1/12), approximately 1.0595. This means moving up one semitone multiplies the frequency by about 1.0595, and moving up twelve semitones exactly doubles it. Semitones are the building blocks of all Western scales, chords, and harmonic relationships.

How to use this calculator

Select a mode from the dropdown. In note-to-note mode, pick two notes from the selectors and the calculator returns the semitone distance, cents, interval name, frequency ratio, frequencies, and MIDI numbers for both notes. In frequency-to-frequency mode, enter two frequencies in Hz and the same outputs are computed from those raw values, which is useful for audio engineering, tuning work, or any situation where you have measured frequencies rather than named notes. In transposition mode, choose a starting note and a semitone shift (positive to go up, negative to go down) and the calculator gives you the target frequency, its nearest note name, and the MIDI number. The A4 reference pitch defaults to 440 Hz and can be adjusted for baroque tuning (415 Hz), Verdi tuning (432 Hz), or high-pitch orchestral tuning (442-443 Hz).

Cents and why they matter for tuning

A cent is one hundredth of a semitone, so there are 1,200 cents in an octave. Cents provide a much finer resolution than semitones for describing small pitch differences that are musically significant but below the threshold of a full semitone. A deviation of 10-15 cents is audible to most trained musicians, and deviations above 20-25 cents sound noticeably out of tune. The frequency-to-frequency mode shows the cent deviation between any two pitches, making this calculator useful for checking whether a recording or instrument is sharp or flat relative to a reference, for specifying pitch-shift amounts in a DAW, or for comparing just-intonation ratios to their 12-TET equivalents.

MIDI note numbers and frequency conversion

MIDI (Musical Instrument Digital Interface) assigns each note a number from 0 to 127. A4 is MIDI note 69, C4 (middle C) is MIDI note 60. The formula linking MIDI number m to frequency is f = A4 x 2^((m - 69) / 12), where A4 is the reference pitch. This calculator displays MIDI numbers for both the start and target notes, making it straightforward to cross-reference results with synthesisers, sequencers, and any software that works in MIDI. The reverse calculation - finding the nearest MIDI note for any arbitrary frequency - is also shown, with the cent deviation from perfect tune displayed for each.

Standard musical intervals in 12-TET

SemitonesInterval nameFrequency ratioCents
0Unison1.0000000
1Minor 2nd1.059463100
2Major 2nd1.122462200
3Minor 3rd1.189207300
4Major 3rd1.259921400
5Perfect 4th1.334840500
6Tritone1.414214600
7Perfect 5th1.498307700
8Minor 6th1.587401800
9Major 6th1.681793900
10Minor 7th1.7817971000
11Major 7th1.8877491100
12Perfect Octave2.0000001200

Semitone counts, interval names, and frequency ratios for the 12 chromatic steps within one octave in 12-tone equal temperament.

Frequently asked questions

How many semitones are in an octave?

There are exactly 12 semitones in one octave in standard 12-tone equal temperament. Moving up 12 semitones doubles the frequency. For example, A4 is 440 Hz and A5 is 880 Hz, a ratio of exactly 2:1 and a distance of 12 semitones.

What is the difference between a semitone and a cent?

A semitone is the smallest standard interval in Western music. A cent is one hundredth of a semitone, or one twelve-hundredth of an octave. Cents are used when precision finer than a semitone is needed, such as measuring how flat or sharp an instrument is, comparing just-intonation ratios to equal temperament, or specifying pitch-shift amounts in audio software.

What is the formula for converting frequency to semitones?

The formula is n = 12 x log2(f2 / f1), where f1 and f2 are the two frequencies in hertz and n is the number of semitones. For cents, multiply by 100 instead: cents = 1200 x log2(f2 / f1). The reverse formula - finding f2 from a semitone count - is f2 = f1 x 2^(n/12).

Why would I change the A4 reference from 440 Hz?

Standard concert pitch sets A4 at 440 Hz, but this has not always been the norm. Baroque ensembles often tune to A4 = 415 Hz (one semitone below modern pitch). Some orchestras, particularly in continental Europe, tune to A4 = 442 or 443 Hz for a brighter sound. The numerology-influenced 432 Hz tuning is also widely discussed. Changing the reference shifts all calculated frequencies proportionally, so you can match any tuning system your ensemble or project uses.

What is a perfect fifth and how many semitones is it?

A perfect fifth is 7 semitones. It is one of the most consonant intervals, with a frequency ratio very close to 3:2 (1.498307 in 12-TET vs. exactly 1.5 in just intonation). The difference between the equal-tempered and just fifth is about 2 cents, which is below the threshold of detectability for most listeners. It forms the basis of the circle of fifths and is used in power chords, drone tuning, and countless harmonic structures.

What is MIDI note 69?

MIDI note 69 corresponds to A4, the A above middle C, which vibrates at 440 Hz in standard tuning. MIDI note 60 is middle C (C4). The numbering runs from 0 (C-1, about 8.18 Hz) to 127 (G9, about 12,544 Hz). Every semitone is one MIDI number.

How do I use this calculator for a capo?

Use transposition mode. Set the starting note to the open string pitch (for example E2 on a guitar) and set the semitones to shift equal to the capo fret number. The result is the effective pitch of the string with the capo in place. A capo on fret 2 shifts every string up by 2 semitones, so E2 becomes F#2 at approximately 92.50 Hz.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…