Interval Calculator

Last updated: October 23, 2026 · Written by the Pitch Detectors Editorial Team

Calculate the interval between two notes — the name and the semitone distance, from minor 2nd to octave.

Calculated Interval

Major 3rd (4 semitones)

Common Intervals
Interval Semitones
Minor 2nd 1
Major 2nd 2
Minor 3rd 3
Major 3rd 4
Perfect 4th 5
Perfect 5th 7
Minor 6th 8
Major 6th 9
Minor 7th 10
Major 7th 11
Octave 12

Key Takeaways

  • An interval is the distance between two pitches, named by size (2nd, 3rd, 5th) and quality (major, minor, perfect, augmented, diminished).
  • Count semitones first, name second: 7 semitones is a perfect fifth — the fastest reliable identification method.
  • Perfect intervals (unison, 4th, 5th, octave) are never major or minor — only augmented or diminished.
  • The tritone (6 semitones) splits the octave exactly in half — the most unstable interval in tonal music.
  • Intervals are the atoms of harmony: stack them to build chords (chord identifier) and scales (scale finder).

What Is an Interval Calculator?

An interval calculator measures the musical distance between two notes and names it. Select C and G and it reports a perfect fifth spanning 7 semitones. The name carries two facts: the size (fifth = five letter-names apart) and the quality (perfect = the stable, pure version).

Intervals underpin everything else: chords stack intervals, scales sequence them, melodies move through them. Chord names confuse beginners; intervals are the simpler layer underneath. Learn these and chords start making sense.

How This Calculator Works

The widget above names intervals by semitone counting with wraparound — the theorist's method minus the spelling nuance. The exact procedure:

  1. Pick two notes: each pitch maps to its chromatic position (C = 0, C♯ = 1, D = 2 … B = 11).
  2. Subtract and wrap: semitones = (second − first + 12) mod 12, so a downward pair still yields a positive ascending distance.
  3. Look up the name: the count maps to a fixed table — 4 → major 3rd, 6 → "Tritone / Augmented 4th", 7 → perfect 5th, 12 → octave.
  4. Display: the interval name plus its semitone count, e.g. "Minor 3rd (3 semitones)."

Two simplifications matter. The widget names by semitone count alone, so C to D♯ reads as "minor 3rd" (3 semitones) though the spelling makes it an augmented 2nd — the enharmonic section below explains when that distinction counts. And the same note in both fields reads as "Octave (12 semitones)": with no register input, the tool cannot separate a unison from an octave, so it reports the octave.

Interval Formula and Worked Example

The core computation, with note positions numbered C = 0 through B = 11:

semitones = (note₂ − note₁ + 12) mod 12

Worked example — C up to A:

  1. Positions: C = 0, A = 9.
  2. Semitones: (9 − 0 + 12) mod 12 = 9.
  3. Table lookup: 9 semitones = major 6th.
  4. Sanity check: C–D–E–F–G–A spans six letter names, and C major contains A natural — major 6th confirmed.

Descending example — G down to E: the widget measures ascending distance, so G (7) to E (4) gives (4 − 7 + 12) mod 12 = 9 semitones — a major 6th upward. Flip it: E up to G is the minor 3rd you hear going down.

The rule behind the flip: a descending interval is the inversion of the ascending result — the two sizes sum to 9 (6th ↔ 3rd) and the quality inverts (major ↔ minor, perfect stays perfect). G down to E is therefore a minor 3rd, the inversion of the major 6th the calculator reports upward.

How to Use This Calculator

  1. Select the first note: the lower (or starting) pitch of the pair.
  2. Select the second note: the upper (or target) pitch.
  3. Read the result: the interval name and semitone count appear instantly (e.g. "Perfect 5th (7 semitones)").
  4. Experiment: change one note at a time to feel how each semitone alters the quality — minor one step below major.

Reading Your Result: The Complete Interval Table

The just ratio is each interval's size in just intonation — the tuning built from whole-number frequency ratios. Equal temperament, this calculator's system, trims most intervals slightly to make every key usable: the perfect 5th narrows from a pure 3:2 (about 702 cents) to exactly 700 cents, and the major 3rd widens from 5:4 to 400 cents. The names stay the same; only the exact pitch shifts by a few cents.

SemitonesInterval nameAbbreviationJust ratioCharacter
0 / 12Perfect unison / OctaveP1 / P81:1 / 2:1Total stability
1Minor 2ndm216:15Tense, clashing
2Major 2ndM29:8Open, neutral
3Minor 3rdm36:5Dark, sad
4Major 3rdM35:4Bright, happy
5Perfect 4thP44:3Stable, hollow
6Tritone (aug. 4th)A4 / d545:32Maximum tension
7Perfect 5thP53:2Strong, stable
8Minor 6thm68:5Wistful
9Major 6thM65:3Warm, sweet
10Minor 7thm79:5Bluesy, unresolved
11Major 7thM715:8Dreamy, yearning

Recognize intervals by ear with famous openings: each melody below starts with the listed interval.

IntervalOpening melody
Minor 2ndJaws theme (E–F)
Major 2nd"Happy Birthday" (first two notes)
Minor 3rd"Smoke on the Water" riff
Major 3rd"When the Saints Go Marching In"
Perfect 4th"Here Comes the Bride"
TritoneThe Simpsons theme
Perfect 5thStar Wars main theme
Octave"Somewhere Over the Rainbow"

What Each Interval Does in a Key

Intervals have jobs, not just names — each one pushes harmony in a specific direction. The perfect 5th is the stability anchor: C–G sounds finished because its 3:2 frequency ratio is the simplest after the octave. The minor 7th above the tonic spells dominant color — add B♭ to a C major triad and the chord suddenly wants to resolve to F.

The tritone does the heavy lifting. In C major, F–B (scale degrees 4 and 7) spans 6 semitones of pure tension, and it resolves by half steps in opposite directions: F falls to E, B rises to C. That squeeze is the engine inside every dominant-7th chord and the reason V7–I cadences sound inevitable.

Songwriter's shortcut: when a melody note forms a tritone against the bass, you are standing on the dominant — resolve it.

Melodic vs Harmonic: Same Distance, Different Job

A melodic interval sounds its notes in sequence; a harmonic interval sounds them together — and the ear judges them by different rules. Played together, intervals are judged by consonance: thirds and sixths blend, seconds grind. Played in sequence, direction and singability rule instead.

The practical consequence: a melody full of leaps wider than a perfect 5th is hard to sing, while harmony stacks 7ths and 9ths without strain. Write melodies in steps and small leaps; let the chords carry the wide intervals.

Count Intervals on Guitar Frets in Seconds

Every fret is one semitone, so the fretboard is a built-in interval ruler. Pick any string, count frets upward from the starting note, and read the interval off the count.

Worked example on the low E string: open E to the 7th fret is 7 semitones — a perfect 5th (the note is B). The 12th fret is 12 semitones — the octave (E again). The 5th fret gives 5 semitones — a perfect 4th (A). Three landmarks — 5th, 7th, and 12th frets — name the three most-used intervals with no math.

Compound Intervals: 9ths, 11ths, and 13ths

A compound interval is a simple interval plus an octave: a 9th is a 2nd up an octave, an 11th a 4th, a 13th a 6th. The widget reports the simple form (within one octave): subtract 7 from any compound number to find what it displays. A 9th (14 semitones) reads as a major 2nd (2 semitones).

Jazz chord symbols use compound names deliberately — C13 tells the player the 13th sits above the 7th in the voicing, information the simple "6th" would lose. Think compound for naming; the calculator's simple interval is enough for measuring.

Alt text: Piano diagram showing a perfect fifth within one octave and its compound form, the perfect twelfth, an octave higher.
Alt text: Piano diagram showing a perfect fifth within one octave and its compound form, the perfect twelfth, an octave higher.

Enharmonic Intervals: Same Sound, Different Name

Enharmonic intervals sound identical but are spelled — and named — differently. C to D♯ and C to E♭ are both 3 semitones, but the first is an augmented 2nd and the second a minor 3rd. The widget reports "minor 3rd" for both: it counts semitones, not spelling.

For sound, the distinction never matters — 3 semitones is 3 semitones. For notation and theory exams, it does: the correct name follows the letter distance (C to D is a 2nd of some kind; C to E is a 3rd). Use the calculator for sound; apply the letter-count rule when spelling counts.

Name any interval exactly with two counts. Step 1: count letter names to fix the size — C up to E spans C–D–E, so the interval is some kind of 3rd. Step 2: count semitones to fix the quality — for a 3rd, 4 semitones is major, 3 is minor, 2 is diminished. Apply both counts and the spelling-correct name falls out:

PairLetter count (size)SemitonesCorrect nameCalculator shows
C → E♭3 letters — a 3rd3Minor 3rdMinor 3rd
C → D♯2 letters — a 2nd3Augmented 2ndMinor 3rd
F → B4 letters — a 4th6Augmented 4thTritone / Augmented 4th
B → F5 letters — a 5th6Diminished 5thTritone / Augmented 4th

The last two rows are the same sound with two correct names — which one applies depends on the spelling in front of you. That is the whole enharmonic rule: semitones give the distance, letters give the name.

The Quality Pattern: Major, Minor, Perfect in 30 Seconds

Interval quality follows one pattern. Seconds, thirds, sixths, and sevenths come in major/minor pairs — the major version is one semitone wider. Unisons, fourths, fifths, and octaves are perfect: no major/minor form, only augmented (wider) or diminished (narrower).

Memory hook: perfect intervals sound hollow and stable (P4, P5, P8) — the pillars of the scale. Everything else carries major/minor color. Widen any perfect or major interval by a semitone for augmented; narrow any perfect or minor interval for diminished.

From Intervals to Chords and Scales

Every chord is a stack of intervals, and every scale is a sequence of them. A major triad is a major 3rd plus a minor 3rd (4 + 3 semitones); a major scale is the interval pattern whole–whole–half–whole–whole–whole–half. Name intervals instantly and chord formulas become arithmetic instead of memorization.

Workflow: measure an unfamiliar chord's intervals here, then enter the full note set into the chord identifier for the complete name — or check a melody's notes against candidate scales in the scale finder.

Infographic showing a C major triad built by stacking a major third and a minor third
Alt text: Infographic showing a C major triad built by stacking a major third and a minor third.

Limitations

  • Spelling-blind: the widget names by semitone count, so enharmonic intervals (augmented 2nd vs minor 3rd) get one shared name.
  • No unison: the same note in both fields reads as "Octave (12 semitones)". With no octave/register input, the tool cannot tell a unison from an octave, so it reports the octave.
  • One octave range: compound intervals (9ths and beyond) are reported in their simple form — subtract 7 yourself for the compound name.
  • Ascending measurement: distances are measured upward with wraparound; descending melodic intervals need mental flipping.
  • 12-tone equal temperament: just-intonation and microtonal intervals are rounded to the nearest semitone.

Interval Calculator vs Alternatives

MethodHow it worksBest forWatch out for
This calculatorNote pair → semitone count → nameInstant naming, ear trainingSpelling-blind; one octave
Piano/keyboardCount keys visuallyBuilding physical intuitionSlow; easy to miscount
Interval ear trainerQuiz by soundAudiation and recognitionDoesn't teach the math
Frequency ratio mathCompute Hz ratios (e.g. 3:2)Acoustics and tuning theoryOverkill for naming

Interval names follow 12-tone equal temperament convention. Enharmonic equivalents (e.g. augmented 2nd vs minor 3rd) share semitone counts and are reported under their most common name.

Frequently Asked Questions

Number the chromatic scale C = 0 through B = 11, then apply semitones = (higher − lower + 12) mod 12. Look up the count: 7 is a perfect fifth, 4 a major third, 3 a minor third. The calculator above runs this computation instantly.

One semitone. A major interval is the wider version: major 3rd is 4 semitones, minor 3rd is 3. Lower any major interval by a half step and it becomes minor; raise a minor interval and it becomes major. Only 2nds, 3rds, 6ths, and 7ths have major/minor forms.

Unisons, 4ths, 5ths, and octaves — the intervals that sound uniquely stable and "hollow" because of their simple frequency ratios (the perfect fifth is 3:2). They have no major/minor version; widening one makes it augmented, narrowing makes it diminished.

Seven. It is the most useful number in music theory to memorize: 7 semitones up is a fifth, 7 down (or 5 up) is a fourth. The circle of fifths is literally the number 7 applied repeatedly modulo 12.

The tritone spans 6 semitones — exactly half an octave — splitting it into two equal, unstable halves. Its frequency ratio (√2:1) is the most complex in the chromatic scale, which our ears hear as tension demanding resolution. It is the engine inside every dominant-7th chord.

Sound: nothing — both are 3 semitones. Spelling: everything. C to E♭ spans three letter names (a 3rd); C to D♯ spans two (a 2nd). Use the minor 3rd name in minor keys and the augmented 2nd in harmonic-minor contexts where the D♯ spelling is correct.

Simple intervals plus an octave: a 9th is a 2nd up an octave (14 semitones), an 11th is a 4th (17), a 13th is a 6th (21). Subtract 7 from the compound number to get the simple interval this calculator reports. Jazz harmony names them compound to show voicing height.

Chords are stacks of intervals measured from the root: a major triad is a major 3rd (4 semitones) plus a minor 3rd (3 semitones) = perfect 5th total. Learn the interval table and chord formulas become arithmetic instead of memorization.

The semitone (half step) — e.g. E to F, or C to C♯. It is the smallest step on a piano and the unit this calculator counts in. Some traditions use smaller microtonal divisions, but 12-tone equal temperament builds everything from semitones.

Flip it upside down: the inversion of an interval always sums to 9 (2nd ↔ 7th, 3rd ↔ 6th, 4th ↔ 5th), and the quality flips too — major becomes minor, augmented becomes diminished, perfect stays perfect. So a major 6th inverts to a minor 3rd.

The calculator has no octave (register) input, so it measures pitch-class distance with wraparound: (second − first + 12) mod 12. Two identical notes give 0, which the tool reports as 12 — an octave. A true unison is 0 semitones between two notes in the same register, a distinction this tool cannot see.