Semitone Calculator - Note-Pair Interval in Semitones, Cents, and Hz

Use this semitone calculator to convert any note pair to interval in semitones, cents, and Hz. Computes the frequency ratio using equal temperament with a 440 Hz A4.

Updated: June 19, 2026 • Free Tool

Semitone Calculator

Pitch class of the starting note. Maps to a chromatic index from 0 (C) to 11 (B).

Scientific pitch notation octave for the source note. Middle C is C4.

Pitch class of the destination note. The interval can go up (positive) or down (negative).

Scientific pitch notation octave for the target note.

Results

Interval
0semitones
Target frequency 0Hz
Frequency ratio 0
Interval in cents 0cents
Interval name 0

What Is the Semitone Calculator?

A semitone calculator converts any pair of musical notes into the interval between them, expressed in semitones, cents, and hertz. A semitone is the smallest step in standard Western tuning: twelve semitones fill one octave, and each semitone multiplies a frequency by the equal-tempered ratio of 2^(1/12). The calculator handles upward, downward, and octave-wrap intervals in one calculation.

  • Vocalists measuring range: Find the semitones between two notes a singer can reach, then map the result to cents to plan a transposition that keeps the melody in range.
  • Instrument tuners reading deviation: Convert a tuner app's cents reading into a semitone count and frequency ratio so the player can decide whether to retune or transpose.
  • Music students naming intervals: Build a chromatic interval table by reading the standard interval name that matches each semitone count for every note pair.
  • Sound designers shifting MIDI notes: Translate a semitone shift into a frequency ratio and target frequency so a sampler or synth can apply the same shift.

The semitone is the atomic unit of 12-tone equal temperament, the tuning used by every standard piano, guitar, and MIDI controller. Two semitones make a whole tone, six make a tritone, and twelve return to the same pitch class one octave higher. The same arithmetic shows up in any tool that moves a melody between keys.

Multiplying by 2^(semitones/12) raises or lowers a pitch by the chosen interval, because equal temperament is logarithmic. That is why a chord transposer and a frequency-shifting sampler share the same backend math.

When a user already knows the target hertz rather than the note pair, a separate frequency calculator can convert that frequency to wavelength or period without going through MIDI arithmetic.

How the Semitone Calculator Works

The calculator assigns every pitch class a chromatic index from 0 to 11, adds the octave to compute a MIDI note number, and subtracts the source from the target to get the interval. The frequency ratio and the target frequency both follow from a single exponent of 2, and the cents value is the semitone count multiplied by 100.

semitones = targetMidi - sourceMidi ratio = 2^(semitones / 12) cents = semitones * 100 targetHz = A4 * 2^((targetMidi - 69) / 12)
  • sourceNote, sourceOctave: Pitch class and scientific pitch notation octave for the starting note. Middle C is C4.
  • targetNote, targetOctave: Pitch class and octave for the destination note. The interval can go up or down.
  • targetMidi: MIDI note number of the target. Equal to 12 * (octave + 1) + chromatic index of the pitch class.
  • A4: Reference frequency for A4 in hertz. The default is 440 Hz, the international standard concert pitch.

The same exponent appears twice: once for the frequency ratio and once for the target frequency in hertz. The ratio is 2^(semitones/12) regardless of the A4 reference, but the absolute target frequency shifts if A4 is tuned above or below 440 Hz.

Negative semitones come from subtracting a lower MIDI note from a higher one. When the target falls below the source, the cents value goes negative and the frequency ratio drops below 1, which the interval name table flags with a 'down' qualifier.

Find the interval from C4 to G4

Source: C4. Target: G4. Both in octave 4.

C is chromatic index 0 and G is 7. targetMidi - sourceMidi = 67 - 60 = 7. Ratio = 2^(7/12). Cents = 7 * 100.

Interval: 7 semitones up. Target frequency: 391.9954 Hz. Frequency ratio: 1.498307. Cents: 700. Interval name: Perfect fifth up.

A perfect fifth is the standard open-string relationship on a guitar and the root-to-fifth jump in a power chord. The 1.4983 ratio matches the equal-tempered fifth that defines a fixed-pitch instrument.

According to Wikipedia (equal temperament), equal temperament divides the octave into 12 identical semitone steps, so the ratio between consecutive semitones is exactly 2^(1/12).

Key Concepts Explained

Four ideas explain every number this semitone calculator produces.

Chromatic index

Every pitch class is assigned an integer from 0 (C) to 11 (B), with C# at 1, D at 2, and so on. The chromatic index turns pitch names into numbers the calculator can add and subtract.

MIDI note number

A MIDI note number combines the chromatic index with the octave: midi = 12 * (octave + 1) + index. C4 is MIDI 60 and A4 is MIDI 69, the international standard concert pitch reference.

Frequency ratio

Equal temperament multiplies a frequency by 2^(1/12) for each semitone up. The cumulative ratio is 2^(semitones/12), which is why an octave up is exactly 2x and a perfect fifth up is about 1.4983x.

Cents

A cent is one hundredth of an equal-tempered semitone, so 100 cents = 1 semitone and 1200 cents = 1 octave. Cents let a tuner report a small pitch deviation as a signed number.

These four ideas cover every output on the result panel. The chromatic index and MIDI note number do the arithmetic, the frequency ratio answers the 'how much do I multiply?' question, and the cents value answers the 'how far off am I?' question that tuners report.

A chord transposer moves a progression by adding a constant semitone count to every root, and a frequency calculator works in the same logarithmic space when it converts a wavelength into a frequency.

How to Use This Calculator

Five steps cover every common semitone query, from a single note pair lookup to a full transposition check.

  1. 1 Pick the source note: Choose the starting pitch class from the Source note menu. The list covers every chromatic pitch from C to B; Db, Eb, Gb, Ab, and Bb are accepted on input.
  2. 2 Set the source octave: Type the scientific pitch notation octave for the source. Middle C is C4, the standard reference for vocal range and piano repertoire.
  3. 3 Pick the target note: Choose the destination pitch class. Pick a note higher than the source for a positive interval, lower for a negative interval, or the same pitch class in a higher octave to measure an octave jump.
  4. 4 Set the target octave: Type the target octave. The calculator subtracts the source MIDI note from the target MIDI note, so the sign of the result tells you whether the target is above or below the source.
  5. 5 Read the result panel: The result panel shows the signed interval in semitones, target frequency in hertz assuming a 440 Hz A4 reference, the multiplicative frequency ratio, the cents value, and the standard interval name.

With source C4 and target G4 the panel shows 7 semitones up, 391.9954 Hz, a frequency ratio of 1.498307, 700 cents, and 'Perfect fifth up'. Switching the target to G5 keeps the interval name but adds 12 semitones, doubles the ratio, and gives a compound twelfth.

If the target is a chord progression rather than a single note, a separate chord transposer applies the same semitone arithmetic to every root in the progression.

Benefits of Using This Calculator

Putting semitone, cents, ratio, frequency, and interval name in one calculation saves a chain of single-purpose lookups.

  • Five outputs from one note pair: Semitones, target frequency, frequency ratio, cents, and interval name appear together, so a tuner can match the cents reading to a frequency ratio without a separate calculation.
  • Negative intervals handled automatically: A target below the source returns a negative semitone count and a frequency ratio below 1, so the same input covers both directions without flipping inputs by hand.
  • Octave wrap handled by MIDI arithmetic: Moving from B4 to C5 returns a clean 1-semitone-up result because the MIDI subtraction takes the octave change into account.
  • Interval name with up/down qualifier: Standard music-theory names appear with an up/down qualifier, which makes the result easy to read for singers, students, and players.
  • Frequency ratio ready for samplers and synths: The multiplicative ratio matches what a sampler pitch-shift knob or a synth's pitch-bend input expects, so the calculator doubles as a quick reference for audio plugins.

These benefits stack when the calculator is used as a teaching aid. A teacher can ask a class to predict the interval name from a note pair, then show the same interval as a frequency ratio and a cents value so the numbers line up with the name.

Audio engineers get the same value when checking a tuning session: the cents reading lines up with the frequency ratio, and the interval name gives a label that the rest of the recording session can reference.

The frequency-ratio exponent on this page is a binary logarithm in disguise, and a separate log 2 calculator confirms the same log base 2 step for any positive input.

Factors That Affect Your Results

Three inputs and one reference assumption drive the result, and two limitations tell you when to switch to a different tool.

Reference A4 frequency

Target frequency assumes A4 = 440 Hz by default. A=442 Hz or A=415 Hz ensembles need scaling, even though the semitone, ratio, and cents values stay correct.

Pitch class spelling

Sharp and flat spellings (C# vs Db, F# vs Gb) name the same pitch but use different letters. The calculator accepts both and maps them to the same chromatic index.

Octave wrap across B-C and E-F

Moving from B to C and from E to F crosses the chromatic boundary between index 11 and 0 or between 4 and 5. The MIDI subtraction handles the wrap, so B4 to C5 returns 1 semitone up instead of -11.

Equal-tempered approximation

Equal temperament spaces every semitone by 2^(1/12), which makes every key sound equally in tune. Just intonation and historical temperaments use slightly different ratios for the same interval, so the cents value is exact only within equal temperament.

  • Equal temperament assumes every semitone is exactly 2^(1/12). Just intonation, Pythagorean tuning, and meantone temperament use slightly different ratios for the same named interval, so the cents row will not match those systems exactly.
  • A change in the A4 reference shifts the absolute hertz output but does not change the semitone, ratio, or cents values. A user who works with baroque pitch (A=415 Hz) needs to scale the hertz result rather than rely on the default 440 Hz.

These factors apply to every calculation on this page. The cents row stays correct in equal temperament regardless of the A4 reference, which is why tuner apps report pitch deviation in cents. A user who needs a hertz reading can still trust the ratio and the cents while scaling the hertz output to match the room.

According to Wikipedia (cent, music), the cent is the logarithmic unit that splits a semitone into 100 equal parts, giving 1200 cents per octave.

According to Wikipedia (scientific pitch notation), scientific pitch notation assigns C4 to middle C and A4 to the standard 440 Hz reference pitch, with MIDI note 69 mapped to A4.

The 12-semitone octave is a modulo-12 system, and a separate modulo calculator shows how the same remainder-after-division pattern handles any wrap-around step.

Semitone calculator showing the source note, source octave, target note, target octave, and the result panel with interval in semitones, target frequency, frequency ratio, cents, and interval name.
Semitone calculator showing the source note, source octave, target note, target octave, and the result panel with interval in semitones, target frequency, frequency ratio, cents, and interval name.

Frequently Asked Questions

Q: What is a semitone in music?

A: A semitone is the smallest interval in standard Western tuning. Two semitones make a whole tone, six semitones make a tritone, and twelve semitones return to the same pitch class one octave higher. The semitone is also the smallest step on a piano keyboard, the distance between adjacent frets on a guitar, and the unit of a MIDI note number.

Q: How many semitones are in an octave?

A: An octave contains exactly twelve semitones in 12-tone equal temperament. The semitone ratio of 2^(1/12) means the top note of the octave is exactly 2 times the frequency of the bottom note, which is why an octave is the most consonant non-unison interval in Western music.

Q: How do you calculate the interval between two notes?

A: Map each note to its chromatic index from 0 (C) to 11 (B), convert each note to a MIDI number (12 times the octave plus 1 plus the index), and subtract the source MIDI from the target MIDI. The result is a signed semitone count: positive means up, negative means down, and zero means the two notes are the same pitch.

Q: What is the frequency ratio of one semitone?

A: One semitone multiplies a frequency by 2^(1/12), which is approximately 1.0594630943592953. Twelve such multiplications raise the frequency by a factor of exactly 2, which is why an octave doubles the frequency and an interval name like 'perfect fifth' has a ratio near 1.4983.

Q: How do you convert a semitone count to cents?

A: Multiply the semitone count by 100. One semitone equals 100 cents, so 7 semitones equals 700 cents and 12 semitones equals 1200 cents. The cents row is useful for tuner apps because most tuners report pitch deviation in cents rather than in fractions of a semitone.

Q: What interval name matches each semitone count?

A: Zero semitones is a unison, one is a minor second, two is a major second, three is a minor third, four is a major third, five is a perfect fourth, six is a tritone, seven is a perfect fifth, eight is a minor sixth, nine is a major sixth, ten is a minor seventh, and eleven is a major seventh. Twelve semitones returns to the same pitch class in the next octave.