Semitone Count Between Notes Calculator

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

Counting model: exact mode uses scientific pitch notation where C4 is MIDI 60 and A4 is MIDI 69. Pitch-class mode ignores octave numbers and reports the chromatic distance inside one octave.

Note inputs

Use the written letter name of the first note.
Enharmonic notes can share the same semitone count.
Scientific pitch notation, with middle C as C4.
The second written note in the comparison.
Double sharps and flats are counted chromatically.
Ignored only when pitch-class mode is selected.
Use shortest path for interval-class checks.
Pitch-class mode folds both notes into one octave.
Frequency ratio uses equal temperament.
This changes the breakdown emphasis, not the math.
Selected semitone count
4
half steps
Simple chromatic class
Major 3rd
4 semitones within octave
Octave span
0
plus 4 semitones
Equal-tempered ratio
1.260
400 cents

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.

C0
C# or Db1
C## or D2

E and F

The natural half step in the staff.

E4
F5
E# equals F5

G center

Common anchor for fifths and modes.

G7
G# or Ab8
A9

B and C

The octave boundary wraps at 12.

Bb or A#10
B11
C next12

📘 Simple interval semitone table

SemitonesCommon interval nameCentsExample from C
0Perfect unison0C to C
1Minor 2nd100C to Db
2Major 2nd200C to D
3Minor 3rd300C to Eb
4Major 3rd400C to E
5Perfect 4th500C to F
6Tritone600C to F# or Gb
7Perfect 5th700C to G
8Minor 6th800C to Ab
9Major 6th900C to A
10Minor 7th1000C to Bb
11Major 7th1100C to B
12Perfect octave1200C to C5

🎼 Compound interval table

Compound spanTotal semitonesReduced classTypical reading
Minor 9th131Octave plus minor 2nd
Major 9th142Octave plus major 2nd
Minor 10th153Octave plus minor 3rd
Major 10th164Octave plus major 3rd
Perfect 11th175Octave plus perfect 4th
Perfect 12th197Octave plus perfect 5th
Major 13th219Octave plus major 6th
Double octave240Two complete octaves

🔀 Direction and octave table

Input pairWritten signedAscending classShortest class
C4 to E4+444
E4 to C4-484
B3 to C4+111
C4 to B3-1111
F#4 to C5+666
A2 to A4+2400

💻 MIDI and frequency reference

ReferenceFormulaExampleUse
MIDI note(octave + 1) × 12 + pitch classC4 = 60Exact pitch number
Semitone deltaend MIDI - start MIDIC4 to G4 = 7Signed distance
Centssemitones × 1007 = 700Tuning distance
Frequency ratio2^(semitones / 12)12 = 2.000Equal temperament
Target frequencyA4 × 2^((MIDI - 69) / 12)A4 = 440 HzPitch estimate
Exact octave tip When comparing recorded pitches, keep octave numbers on so C4 to C5 reports 12 semitones instead of 0.
Enharmonic tip C# and Db share pitch class 1 in 12-tone equal temperament, but their written interval names may differ.

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.

Semitone Count Between Notes Calculator

Leave a Comment