Cal11 calculator

Interval Calculation Piano

Reviewed by Calculator Editorial Team

Understanding musical intervals is essential for piano players, composers, and music theorists. This guide explains how to calculate and identify intervals on a piano, with practical examples and an interactive calculator.

What is Interval Calculation?

A musical interval is the distance between two pitches. On a piano, intervals are measured in semitones, which are the smallest steps between notes. The most common intervals are perfect, major, minor, augmented, and diminished.

Interval Formula

The number of semitones between two notes is calculated by:

Semitones = |Note 2 - Note 1| mod 12

Where Note 1 and Note 2 are the MIDI note numbers of the two pitches.

For example, the interval between C (MIDI 60) and E (MIDI 64) is 4 semitones (E - C = 4). This is a perfect fourth.

How to Calculate Intervals

To calculate an interval on a piano:

  1. Identify the MIDI note numbers of the two pitches.
  2. Subtract the lower note number from the higher one.
  3. Take the absolute value of the result.
  4. Find the remainder when divided by 12 to get the semitone count.
  5. Match the semitone count to the interval name.
Common Intervals and Semitones
Interval Semitones Example
Minor 2nd 1 C to C#
Major 2nd 2 C to D
Minor 3rd 3 C to Eb
Major 3rd 4 C to E
Perfect 4th 5 C to F
Perfect 5th 7 C to G

Common Piano Intervals

Here are some of the most frequently encountered intervals on a piano:

Interval Types

  • Perfect intervals sound consonant (unison, 4th, 5th, octave)
  • Major intervals have a brighter sound (2nd, 3rd, 6th, 7th)
  • Minor intervals have a darker sound (2nd, 3rd, 6th, 7th)
  • Augmented intervals are sharpened by a semitone
  • Diminished intervals are flattened by a semitone

Practicing these intervals will help you develop your ear and improve your piano skills.

Practical Applications

Understanding intervals is crucial for:

  • Improving your piano technique
  • Composing original music
  • Analyzing existing compositions
  • Developing your musical ear

For example, knowing that a major 3rd is 4 semitones apart helps you create harmonious chord progressions.

Frequently Asked Questions

What is the difference between a major and minor interval?
A major interval has a brighter sound and is larger in semitones than its minor counterpart. For example, a major 2nd is 2 semitones, while a minor 2nd is 1 semitone.
How do I calculate an interval between two notes?
Subtract the lower note's MIDI number from the higher one, take the absolute value, and find the remainder when divided by 12 to get the semitone count.
What is the largest interval on a piano?
The largest interval is the octave, which spans 12 semitones. It's the most consonant interval and appears frequently in music.
Can I use this calculator for other instruments?
Yes, the principles apply to any instrument that uses equal temperament tuning, such as guitars and keyboards.
How do I identify an interval by ear?
Practice recognizing the sound differences between major and minor intervals, and use the calculator to verify your hearing.