Music Transposition Calculator

Music Transposition Calculator

Leading AI Skill PRO

Enter Calculation

Formula

New Note=((Note+Semitones)mod12+12)mod12\text{New Note} = \left(\left(\text{Note} + \text{Semitones}\right) \bmod 12 + 12\right) \bmod 12
Usage stats

Advertisement

Results

Transposed Note
D
from C
New note index (pitch class 0–11) 2
Octave shift 0

Report an error on this page

What is the Music Transposition Calculator?

Transposition means shifting every note of a melody or chord up or down by the same musical distance, measured in semitones (half steps). This calculator takes a starting note and a number of semitones and tells you the resulting note name, its pitch-class index, and how many octaves it crosses. It works for any of the twelve chromatic pitches and for shifts in either direction.

How to use it

Pick your original note from the dropdown, then enter how many semitones to transpose. Use a positive number to move up (e.g. +2 for a whole step) and a negative number to move down (e.g. -5 to go down a perfect fourth). The result shows the new note name plus an octave-shift indicator so you know whether you have moved into a higher or lower register.

The formula explained

Every chromatic note is numbered 0 to 11: C=0, C#/Db=1, D=2, and so on up to B=11. Transposing simply adds the semitone offset to that index. Because an octave repeats every 12 semitones, we take the result modulo 12 to land back inside a single octave:

$$\text{new\_index} = (\text{original\_index} + \text{semitones}) \bmod 12$$

To keep negative shifts valid, the calculation normalises with \(((n + s) \bmod 12 + 12) \bmod 12\). The octave shift is the floor of \((n + s) / 12\).

Advertisement
Circle of twelve pitch-class dots with an arrow showing transposition wrapping modulo 12
Transposing wraps around the 12 pitch classes (mod 12).

Worked example

Start on A (index 9) and transpose up 4 semitones (a major third). \(9 + 4 = 13\). Then \(13 \bmod 12 = 1\), which is C#/Db. The octave shift is \(\lfloor 13 / 12 \rfloor = 1\), meaning the new note lands one octave above the starting register. So A transposed up 4 semitones is C#/Db.

Piano keyboard with an arrow from a starting key to a transposed key a few semitones higher
Each semitone is one adjacent key on the keyboard.

Pitch-Class Index Chart (C=0 to B=11)

In twelve-tone equal temperament, every note name maps to one of 12 pitch classes, numbered from C = 0 up to B = 11. Notes that sound the same but have different spellings (enharmonic equivalents such as C# and Db) share an index. The calculator uses this index in the formula \(\text{New Note} = ((n + s) \bmod 12 + 12) \bmod 12\), where \(n\) is the starting index and \(s\) is the number of semitones.

Pitch-class index Sharp name Flat name
0 C C
1 C# Db
2 D D
3 D# Eb
4 E E
5 F F
6 F# Gb
7 G G
8 G# Ab
9 A A
10 A# Bb
11 B B

Example: starting on G (index 7) and moving up 5 semitones gives \(7 + 5 = 12\), and \(12 \bmod 12 = 0\), which is C. The extra \(+12\) in the formula keeps the result in the range 0–11 when you transpose downward by a negative number of semitones.

Advertisement

Common Intervals in Semitones

An interval's size in semitones (half steps) is the amount you enter in the calculator. Positive values transpose up; negative values transpose down. The names below are the standard Western interval names.

Interval Semitones up Semitones down Example from C (up)
Unison 0 0 C
Minor second +1 −1 C# / Db
Major second +2 −2 D
Minor third +3 −3 Eb
Major third +4 −4 E
Perfect fourth +5 −5 F
Tritone (augmented fourth / diminished fifth) +6 −6 F# / Gb
Perfect fifth +7 −7 G
Minor sixth +8 −8 Ab
Major sixth +9 −9 A
Minor seventh +10 −10 Bb
Major seventh +11 −11 B
Octave +12 −12 C (one octave higher)

Inversion rule: the inversion of an interval of \(n\) semitones is \(12 - n\) semitones. For example, a major third (4) inverts to a minor sixth (8), and a perfect fifth (7) inverts to a perfect fourth (5). Because pitch classes wrap around every 12 steps, transposing down by \(n\) semitones gives the same note name as transposing up by \(12 - n\); only the octave differs.

FAQ

How many semitones is a perfect fifth? Seven semitones. A perfect fourth is five, a major third is four, and an octave is twelve.

What does the pitch-class index mean? It is a number 0–11 that uniquely identifies the note regardless of octave or enharmonic spelling, widely used in music theory and software.

Can I transpose down? Yes — enter a negative semitone value. The calculator wraps the result correctly so you always get a valid note name.

Last updated:

Most popular in Hobby and Craft

View all Hobby and Craft calculators