Music Intervals Calculator






Music Intervals Calculator | Calculate Semitones & Interval Names


Music Intervals Calculator

Instantly find the distance and name of the interval between any two musical notes.

Base Note


Select the starting note.


Middle C is in octave 4.

Second Note


Select the ending note.


Enter the octave for the second note.

Perfect Fifth
Semitone Difference: 7 | Direction: Ascending
The interval is found by calculating the total number of semitones between the two notes.

Visual representation of the notes’ positions (by semitone index).

What is a Music Interval?

In music theory, an interval is simply the distance in pitch between two sounds. Intervals are the fundamental building blocks of both melody (notes played in sequence) and harmony (notes played simultaneously). Whether you’re listening to a catchy pop song, a complex classical symphony, or a driving rock anthem, you are hearing a series of intervals. Understanding them is crucial for sight-reading, ear training, and composing music.

Every interval is described by two components: a number (like second, third, fifth) and a quality (like major, minor, perfect, augmented, or diminished). The number tells you the basic distance counting note names on a scale, while the quality gives a more precise measure of the exact distance in semitones (or half-steps). This accurate music intervals calculator helps you identify both instantly.

The Music Interval Formula and Explanation

The core of calculating a musical interval is determining the distance in semitones. A semitone, or half-step, is the smallest interval in Western music, like moving from one key to the very next on a piano, black or white.

The calculation is as follows:

  1. Assign a numerical value to each of the 12 unique notes (e.g., C=0, C#=1, D=2, … B=11).
  2. Calculate the total MIDI-like number for each note using its octave: `Total Value = (Octave * 12) + Note Value`.
  3. The semitone difference is the absolute difference between the two total values: `Semitone Difference = |Total Value 2 – Total Value 1|`.
  4. This semitone difference is then mapped to a specific interval name and quality. For instance, a difference of 7 semitones is always a Perfect Fifth.

Learning how to calculate intervals yourself is a great skill, but this music intervals calculator can provide immediate, accurate answers as you learn. Check out our guide on building major scales to see how intervals form scales.

Variables Table

Variables used in the music interval calculation.
Variable Meaning Unit / Type Typical Range
Base Note The first or lower note of the interval. Note Name (C, D, E…) C to B
Base Octave The octave of the base note. Integer 0 – 8
Second Note The second or higher note of the interval. Note Name (C, D, E…) C to B
Second Octave The octave of the second note. Integer 0 – 8
Semitone Difference The primary calculated value. Integer (Semitones) 0 to >24

Practical Examples

Example 1: Classic Perfect Fifth

  • Inputs: Base Note = C, Base Octave = 4; Second Note = G, Second Octave = 4.
  • Calculation: Note C4 has a value of (4*12)+0 = 48. Note G4 has a value of (4*12)+7 = 55. The difference is 55 – 48 = 7 semitones.
  • Result: An interval of 7 semitones is a Perfect Fifth.

Example 2: Minor Third

  • Inputs: Base Note = A, Base Octave = 3; Second Note = C, Second Octave = 4.
  • Calculation: Note A3 has a value of (3*12)+9 = 45. Note C4 has a value of (4*12)+0 = 48. The difference is 48 – 45 = 3 semitones.
  • Result: An interval of 3 semitones is a Minor Third. This is a foundational interval for minor chords, which you can explore with a chord finder tool.

How to Use This Music Intervals Calculator

  1. Select the Base Note: Using the first dropdown menu and number input, choose the name and octave for your starting note.
  2. Select the Second Note: In the second set of controls, choose the name and octave for your ending note.
  3. View the Results: The calculator automatically updates. The primary result shows the interval’s name (e.g., “Major Third”).
  4. Check Intermediate Values: Below the main result, you can see the precise difference in semitones and whether the interval is ascending or descending.
  5. Reset: Click the “Reset” button to return the calculator to its default state (C4 to G4).

Key Factors That Affect Music Intervals

  • Number of Semitones: This is the most direct factor. For example, 4 semitones is a Major Third, while 3 is a Minor Third.
  • Note Spelling (Enharmonics): The way a note is written can change the interval’s name, even if it sounds the same. For example, the distance from C to G# is an Augmented Fifth, but C to Ab (the same key on a piano) is a Minor Sixth. Our music intervals calculator focuses on the semitone distance, which is the most common way of thinking about intervals.
  • Simple vs. Compound Intervals: Intervals within one octave are ‘simple’ (e.g., Major Third). Intervals larger than an octave are ‘compound’ (e.g., a Major Tenth, which is an octave plus a Major Third).
  • Consonance and Dissonance: Some intervals, like the Perfect Fifth, sound stable and resolved (consonant). Others, like the Minor Second, sound tense and unstable (dissonant), creating a desire to resolve to a consonant interval.
  • Inversion: Flipping an interval upside down creates its inversion. For example, inverting a Major Third (C to E) gives you a Minor Sixth (E to C). The rule is that the original interval size and its inversion always add up to 9.
  • Tonal Context: The role an interval plays depends heavily on the key of the music. The interval between the 1st and 3rd degrees of a major scale is a Major Third, which gives the scale its ‘happy’ sound. You can learn more about this with a key finder tool.

Frequently Asked Questions (FAQ)

What is the difference between a major and minor interval?
Seconds, thirds, sixths, and sevenths can be major or minor. A minor interval is always one semitone smaller than its major counterpart. For example, a Major Third is 4 semitones, and a Minor Third is 3 semitones.
What is a perfect interval?
Unisons, fourths, fifths, and octaves are called ‘perfect’. These intervals have a very pure, stable sound that is historically significant in Western harmony.
What is a tritone?
A tritone is a specific interval of 6 semitones. It can be spelled as an Augmented Fourth or a Diminished Fifth and is known for its highly dissonant and unresolved sound.
How do I count intervals on a staff?
To find the number (2nd, 3rd, 4th, etc.), count the lines and spaces from the first note to the second, including both notes. For example, from a note on a line to a note on the next line is a third (line-space-line).
What are compound intervals?
A compound interval is any interval larger than an octave. For example, a ninth is a compound second (an octave + a second). You can find them by subtracting 7 from the compound interval number (9 – 7 = 2).
What does ‘augmented’ or ‘diminished’ mean?
An augmented interval is one semitone larger than a perfect or major interval. A diminished interval is one semitone smaller than a perfect or minor interval. For example, C to G is a Perfect Fifth (7 semitones). C to G# is an Augmented Fifth (8 semitones).
Why is this called a ‘semantic’ calculator?
This music intervals calculator is ‘semantic’ because it understands the meaning behind the inputs. It knows the relationships between notes and octaves, allowing it to perform a musically-aware calculation rather than just a simple numerical one. A BPM calculator is another example of a tool that understands a specific musical concept.
How can I get better at recognizing intervals by ear?
A popular method is to associate each interval with the opening notes of a well-known song. For example, the first two notes of “Twinkle, Twinkle, Little Star” form a Perfect Fifth.

Related Tools and Internal Resources

Expand your music theory knowledge with our other powerful calculators and resources:

© 2026 Your Website Name. All Rights Reserved. This music intervals calculator is for educational purposes.



Leave a Reply

Your email address will not be published. Required fields are marked *