Semitone Count Between Notes Calculator
Count the half steps between two written notes, compare ascending, descending, shortest-path, and exact octave distances, then convert the result to cents and equal-tempered frequency ratio.
🎯 Semitone presets
⚙ Note inputs
Calculation breakdown
🎹 Counting mode comparison
Written signed
Preserves whether the ending note is above or below the starting note in exact octave notation.
Absolute
Reports the size of the span without showing direction, useful for keyboard distance checks.
Ascending
Counts upward from the first pitch class to the second, wrapping through the octave if needed.
Shortest path
Returns the nearest chromatic distance, from 0 to 6 semitones, for interval-class work.
📊 Chromatic pitch-class map
C family
Natural and nearby altered spellings.
E and F
The natural half step in the staff.
G center
Common anchor for fifths and modes.
B and C
The octave boundary wraps at 12.
📘 Simple interval semitone table
| Semitones | Common interval name | Cents | Example from C |
|---|---|---|---|
| 0 | Perfect unison | 0 | C to C |
| 1 | Minor 2nd | 100 | C to Db |
| 2 | Major 2nd | 200 | C to D |
| 3 | Minor 3rd | 300 | C to Eb |
| 4 | Major 3rd | 400 | C to E |
| 5 | Perfect 4th | 500 | C to F |
| 6 | Tritone | 600 | C to F# or Gb |
| 7 | Perfect 5th | 700 | C to G |
| 8 | Minor 6th | 800 | C to Ab |
| 9 | Major 6th | 900 | C to A |
| 10 | Minor 7th | 1000 | C to Bb |
| 11 | Major 7th | 1100 | C to B |
| 12 | Perfect octave | 1200 | C to C5 |
🎼 Compound interval table
| Compound span | Total semitones | Reduced class | Typical reading |
|---|---|---|---|
| Minor 9th | 13 | 1 | Octave plus minor 2nd |
| Major 9th | 14 | 2 | Octave plus major 2nd |
| Minor 10th | 15 | 3 | Octave plus minor 3rd |
| Major 10th | 16 | 4 | Octave plus major 3rd |
| Perfect 11th | 17 | 5 | Octave plus perfect 4th |
| Perfect 12th | 19 | 7 | Octave plus perfect 5th |
| Major 13th | 21 | 9 | Octave plus major 6th |
| Double octave | 24 | 0 | Two complete octaves |
🔀 Direction and octave table
| Input pair | Written signed | Ascending class | Shortest class |
|---|---|---|---|
| C4 to E4 | +4 | 4 | 4 |
| E4 to C4 | -4 | 8 | 4 |
| B3 to C4 | +1 | 1 | 1 |
| C4 to B3 | -1 | 11 | 1 |
| F#4 to C5 | +6 | 6 | 6 |
| A2 to A4 | +24 | 0 | 0 |
💻 MIDI and frequency reference
| Reference | Formula | Example | Use |
|---|---|---|---|
| MIDI note | (octave + 1) × 12 + pitch class | C4 = 60 | Exact pitch number |
| Semitone delta | end MIDI - start MIDI | C4 to G4 = 7 | Signed distance |
| Cents | semitones × 100 | 7 = 700 | Tuning distance |
| Frequency ratio | 2^(semitones / 12) | 12 = 2.000 | Equal temperament |
| Target frequency | A4 × 2^((MIDI - 69) / 12) | A4 = 440 Hz | Pitch estimate |
A simple way for everyone to understand is to just count half steps. This process do not require you to be able to read music. It doesn’t matter if you are singing, playing piano or programming a synthesiser. Removing the issue of accidentals and letter names means counting half steps give you a clear measure of the distance between notes.
What about the inputs? Why do they matter? You must know your terms, such as distinction between pitch and pitch class. In other words, C5 is different than C4 even though it sounds like the same note. They’re both Cs; one’s an octave higher than the other. There is 12 semitones between them. If you don’t count the octave, then there are no semitones between C4 and C5. It’s zero.
Understanding Semitones and Music Theory
Use this option on the tool for exact octaves if you want to trace a melody. Use the pitch class option if you’re analysing the structure of chords. Using both will give you incorrect interval.
Direction also matters. A minor third up is different than a minor third down. The one goes four semitones higher. The other eight semitones lower, and both are displayed by the calculator for you. You can then see what’s shortest distance between them. This helps when looking at interval classes.
There’s only one interval that is the inverse of itself, and it’s the tritone. At exactly six semitones, the tritone is its own inverse. All others has a closer neighbor. So that tells you about the symmetrical nature of chromatic scale. It also makes clear why the intervals of an augmented fourth and diminished fifth sounds the same.
Tuning is accurate in cents. There are one hundred cents in each semitone. With this division of pitch we can accurately discuss pitches. We can say that a singer may be out by twenty cents. Can you not hear a cent? No. Ten cents becomes audible. The cents to semitones calculator will convert cents into semitones and show you the ratio of frequencies given as an A4 reference. Traditionally most stay at 440 Hz. Orchestras tend to be tuned higher. Alter that reference and the ratios move just a little. The maths keeps up. This is useful if you are working electronically or recreating historic performances.
Confusion exists when it comes to Enharmonics. On a piano, both C sharp and D flat is the same key. Both have the same number of semitones. Yet each suggests a different tonal centre. The calculator sees it as equal. And that’s true if we measure the distance. It isn’t necessarily the case regarding music function. There are times in theory where the key needs to be spelled in a certain way. In physics, no such need exists. The tool fills the gap by providing the distance. That’s all it does; it calculates space between A and B.
This can be taken further with compound intervals that span more than one octave. For example, an octave plus a second is just called a ninth. It has thirteen semitones. Subtract twelve from that and you’re left with a simple second. How many semitones does a perfect fifth have? Answer: seven. (The table of references on the page makes this clear). It helps you translate between simple and compound spans. Why would you need to do this? Well, it’s important when thinking about voice leading. What leaps is comfortable for a singer? The number of semitones give you the answer. It tells you precisely how far apart they are going to have to reach.
The physical nature of music emerges from frequency ratios. Two to one is an octave. Three to two is about a fifth. These is derived from equal temperament, the system that the calculator uses. Equal temperament is a compromise between flexibility and purity. No need to retune as you modulate from key to key. Pure tones sound sweeter. Freedom comes with equal temperament. You choose what’s most important for your project. The numbers comes from the tool. Context comes from you.
Intervals build music. Semitones build intervals. Semitones are building blocks of harmony. Everything makes sense when you stop thinking in letters and begin to think in steps. No more mystery about how far apart the notes are. It’s measurable. It is a measurement that you can trust. It is not an ‘if it sounds right’ but a ‘count it‘. If it sounds good then you don’t have to guess because you can count it out. And there is the power of the semitone. Math replaces gut feeling.
