The number: count both notes
To find the number, count the letter names from the lower note up to the higher one, both included. From C to E: C, D, E. That is three notes, so it is a third.
The most common mistake is counting the steps instead of the notes: from C to E there are two steps, but it is a 3rd. If your answer comes out one short, that is why.
A trick on the staff
If both notes are on lines or both are in spaces, the number is odd: a 3rd, 5th or 7th. If one is on a line and the other in a space, it is even: a 2nd, 4th, 6th or 8th.
Melodic and harmonic
If the notes sound one after the other, the interval is melodic; if they sound together, it is harmonic. You count them the same way. A melodic interval can go up or down.
The quality: major, minor, perfect
Two intervals with the same number can be different sizes. C–E and D–F are both thirds, but C–E spans two whole steps and D–F a whole step and a half step. The first is major and the second minor: it sounds darker.
- 2nds, 3rds, 6ths and 7ths are major or minor.
- 4ths, 5ths and octaves are perfect.
- Any of them can also be augmented (a half step larger) or diminished (a half step smaller). Among the natural notes, every 4th is perfect except F–B, which is augmented: three whole steps, the tritone.
To measure the quality you need to count whole and half steps. You have that in whole steps and half steps.
Inversion
If you move the lower note up an octave, the interval is inverted. The two numbers add up to nine (a 3rd becomes a 6th) and the quality flips: major becomes minor, augmented becomes diminished, and perfect stays perfect.