Music Interval Calculator

Music Interval Calculator

Growing AI Skill PRO

Enter Calculation

Formula

ftarget=Base (Hz)·2Semitones12where{ratio=2Semitones12cents=100×Semitones\begin{gathered} f_{\text{target}} = \text{Base (Hz)} \cdot 2^{\frac{\text{Semitones}}{12}} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} \text{ratio} &= 2^{\frac{\text{Semitones}}{12}} \\ \text{cents} &= 100 \times \text{Semitones} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Frequency Ratio
0.594604
f2 / f1 · Semitones: -9
Interval size (cents) -900 cents
Target frequency 261.63 Hz

Report an error on this page

What is a music interval?

A musical interval is the pitch distance between two notes, measured most precisely as a frequency ratio. In 12-tone equal temperament (12-TET) — the tuning used by pianos and most modern instruments — the octave is divided into 12 equal semitones. This calculator converts any number of semitones into its frequency ratio, its size in cents, and the resulting target frequency from a base pitch you choose.

Piano keyboard octave with two highlighted keys and a labeled span of semitones between them
An interval is the distance between two pitches, measured in semitones.

How to use it

Enter the interval size in semitones (for example 7 for a perfect fifth, 12 for an octave, or -5 for a descending perfect fourth) and a base frequency in hertz (440 Hz is concert A). The calculator returns the frequency ratio, the interval size in cents, and the frequency you reach when you transpose the base pitch by that interval.

The formula explained

Equal temperament makes every semitone an identical ratio, so an interval of n semitones has the ratio \(r = 2^{n/12}\). Because each semitone is exactly 100 cents, the cents value is simply \(100 \times n\), which matches the general logarithmic definition $$\text{cents} = 1200 \cdot \log_2\!\left(\frac{f_2}{f_1}\right).$$ The target frequency is the base frequency multiplied by the ratio: $$f_2 = f_1 \times 2^{n/12}.$$

Advertisement
Diagram showing frequency ratio formula as a curve doubling over twelve equal semitone steps to the octave
Each semitone multiplies frequency by the twelfth root of two, doubling at the octave.

Worked example

For a perfect fifth (7 semitones) from A = 440 Hz: $$r = 2^{7/12} \approx 1.498307.$$ The interval is \(7 \times 100 = 700\) cents, and the target frequency is $$440 \times 1.498307 \approx 659.26 \text{ Hz}$$ (roughly E5). Note that equal temperament's fifth (1.4983) is slightly narrower than the pure just-intonation fifth of 1.5.

Common Intervals in 12-TET: Semitones, Ratio and Cents

In 12-tone equal temperament (12-TET) the octave is divided into 12 equal semitones. The frequency ratio for \(n\) semitones is \(2^{n/12}\) and the size in cents is \(100 \times n\). The last column shows the usual 5-limit just-intonation ratio for comparison.

Interval Semitones 12-TET ratio \(2^{n/12}\) Cents Just ratio
Unison 0 1.000000 0 1/1
Minor 2nd 1 1.059463 100 16/15
Major 2nd 2 1.122462 200 9/8
Minor 3rd 3 1.189207 300 6/5
Major 3rd 4 1.259921 400 5/4
Perfect 4th 5 1.334840 500 4/3
Tritone 6 1.414214 600 45/32
Perfect 5th 7 1.498307 700 3/2
Minor 6th 8 1.587401 800 8/5
Major 6th 9 1.681793 900 5/3
Minor 7th 10 1.781797 1000 9/5
Major 7th 11 1.887749 1100 15/8
Octave 12 2.000000 1200 2/1

To get the target pitch, multiply the base frequency by the ratio: \(f_{\text{target}} = f_{\text{base}} \cdot 2^{n/12}\). Negative semitone values give intervals below the base note. Just ratios for the tritone, sixths and sevenths vary between tuning systems; the values above are one common choice.

Equal Temperament vs Just Intonation: Cents Difference

The size of a just interval in cents is \(1200 \cdot \log_2(\text{ratio})\). The table compares it with the 12-TET value; the difference is 12-TET minus just. Ratios used: major third 5/4, minor third 6/5, perfect fourth 4/3, perfect fifth 3/2, major sixth 5/3, and for the minor seventh both 16/9 and 9/5.

Interval Just ratio 12-TET cents Just cents Difference (cents)
Major 3rd 5/4 400 ≈ 386.31 ≈ +13.69
Minor 3rd 6/5 300 ≈ 315.64 ≈ −15.64
Perfect 4th 4/3 500 ≈ 498.04 ≈ +1.96
Perfect 5th 3/2 700 ≈ 701.96 ≈ −1.96
Major 6th 5/3 900 ≈ 884.36 ≈ +15.64
Minor 7th 16/9 1000 ≈ 996.09 ≈ +3.91
Minor 7th 9/5 1000 ≈ 1017.60 ≈ −17.60

Fifths and fourths in 12-TET are very close to pure, while thirds and sixths differ noticeably. That is why a pure major third sounds sweeter, with less beating, than the equal-tempered one.

Advertisement

Key Constants and Reference Pitches

  • Semitone ratio: \(2^{1/12} \approx 1.0594631\)
  • Cents per semitone: 100
  • Cents per octave: 1200 (frequency ratio 2:1)
  • Concert pitch: A4 = 440 Hz, the standard reference given in ISO 16
  • Middle C (C4): ≈ 261.63 Hz, which is 9 semitones below A4: \(440 \cdot 2^{-9/12}\)
  • Just-noticeable pitch difference: roughly 5–6 cents under good listening conditions (an approximate, commonly cited figure; it varies with pitch, loudness and listener)
  • Pythagorean comma: ≈ 23.46 cents, the gap between twelve pure fifths and seven octaves

The calculator assumes 12-tone equal temperament, so results differ slightly from just-intonation or historical tunings.

FAQ

What does a negative semitone value mean? A negative number is a descending interval; the ratio becomes less than 1 and the target frequency drops below the base.

Why is the equal-tempered fifth not exactly 3/2? Equal temperament compromises pure ratios so every key sounds equally in tune; the fifth is about 2 cents flat of just intonation.

How many cents are in an octave? Exactly 1200 cents, since an octave is 12 semitones at 100 cents each.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators