Interval quality
An interval’s written name tells you both its letter span and chromatic size.
The letter and the distance
In Western interval naming, a number counts letter names while a quality tells the chromatic size. C to E is a third; C to E-flat is a minor third, while C to E is major. Perfect applies to unisons, fourths, fifths, and octaves in this system. Counting keyboard keys alone can miss the written letter relationship, especially with altered notes.
Spell before you measure
Write C to F-sharp and C to G-flat. On an equal-tempered keyboard they may sound the same, yet one is an augmented fourth and the other a diminished fifth. Sing both, then inspect the spelling. The distinction helps explain voice leading; it does not claim that two identical key presses make different sounds.
For a quick written check, count the letter names first, including both endpoints. Then count semitones to determine major, minor, perfect, augmented, or diminished quality within the relevant Western system.
Related entries
Further reading
These source links provide technical background; the exercises above are Eidolon's own editorial guidance.