Semitone Calculator

Compute the exact semitone distance, frequency ratio, and cent difference between any two notes.Visualize intervals on an interactive piano keyboard. Built for musicians, producers, audio engineers,and music theory students.

Select any two notes. Default: A4 (440 Hz) & G4 (392 Hz) — a whole step (2 semitones).
♯ Perfect Fifth: C4 – G4
♭ Major Third: C4 – E4
♭ Minor Third: C4 – Eb4
♭ Perfect Fourth: C4 – F4
♯ Octave: C4 – C5
♯ Tritone: C4 – F#4
Privacy first: All calculations run locally in your browser. No data is sent to any server. The piano is drawn on your device.

What Is a Semitone? — The Building Block of Western Music

In music theory, a semitone (also called a half step) is the smallest interval used in Western tonal music. It is the distance between two adjacent keys on a piano keyboard — for example, from C to C♯, or from E to F. In the equal-temperament system, each semitone corresponds to a frequency ratio of exactly 21/12 ≈ 1.059463. This means that the pitch rises by about 5.946% for every semitone step.

The semitone is the atomic unit of pitch in most modern music. Twelve semitones make up an octave, and the octave is the interval where the frequency doubles. This logarithmic scale is what allows music to be transposed across keys while preserving the same emotional character.

f = 440 · 2(n − 69) / 12

where n is the MIDI note number (A4 = 69, C4 = 60).

Equal Temperament — The Standard of Modern Tuning

The equal-temperament system divides the octave into 12 equal parts (semitones). This compromise was developed during the Renaissance and Baroque periods to allow keyboard instruments to play in all keys without retuning. The system was championed by Johann Sebastian Bach in his Well-Tempered Clavier, which demonstrated the viability of equal temperament for all 24 major and minor keys.

In equal temperament, the frequency ratio of any interval can be calculated as 2k/12, where k is the number of semitones. This mathematical simplicity makes it the foundation of modern music theory, synthesis, and audio engineering.

How to Use This Semitone Calculator

  1. Select a Note A (name and octave) from the dropdowns.
  2. Select a Note B (name and octave) from the dropdowns.
  3. Click “Calculate Interval” to compute the semitone distance, frequency ratio, and cent difference.
  4. View the result on the interactive piano keyboard — highlighted keys show the two notes and the interval between them.
  5. Use the preset examples to quickly explore common intervals like perfect fifths, major thirds, and octaves.
  6. Click any key on the piano to automatically set it as Note A and recalculate.
  7. Review your calculation history at the bottom of the results.

Real‑World Applications

  • Music Production & Synthesis: Synthesizers and samplers rely on semitone transposition. Knowing the exact semitone distance helps in tuning oscillators, setting pitch bend ranges, and creating harmonic layers.
  • Audio Engineering & Tuning: When tuning instruments or adjusting pitch in a DAW, the cent difference is crucial. A deviation of even a few cents can cause audible beating and dissonance.
  • Music Education: Students can visualize intervals and hear (conceptually) the relationship between notes. The piano keyboard provides immediate visual feedback that reinforces theoretical knowledge.
  • Live Performance: Transposing instruments (like B♭ trumpet or E♭ alto sax) require quick mental conversion of written pitches to concert pitch. This tool helps verify transpositions.

Understanding Cents — The Microtonal Perspective

A cent is a logarithmic unit of pitch measurement equal to 1/100 of a semitone. This means there are 100 cents in a semitone and 1200 cents in an octave. The cent was introduced by Alexander J. Ellis in the 19th century as a way to precisely describe small pitch differences.

For example, the difference between a justly tuned major third (frequency ratio 5:4) and an equal‑tempered major third (4 semitones) is about 13.7 cents. This subtle difference is perceptible to trained ears and is why some musicians prefer “just intonation” for certain genres.

Our calculator reports the cent difference between the two notes you select, giving you a precise measurement of their pitch relationship.

Interval Name Reference

The table below shows common intervals, their semitone counts, and their typical names in Western music theory.

Semitone count Interval name Example Frequency ratio
0 Unison C – C 1.000
1 Minor second C – C# 1.059
2 Major second C – D 1.122
3 Minor third C – Eb 1.189
4 Major third C – E 1.260
5 Perfect fourth C – F 1.335
6 Tritone C – F# 1.414
7 Perfect fifth C – G 1.498
8 Minor sixth C – Ab 1.587
9 Major sixth C – A 1.682
10 Minor seventh C – Bb 1.782
11 Major seventh C – B 1.888
12 Octave C – C 2.000
Case Study: Tuning a Synthesizer

A sound designer is creating a pad patch on a subtractive synthesizer. They want to detune two oscillators by a perfect fifth to create a rich, animated texture. Using this calculator, they select C4 (261.63 Hz) and G4 (392.00 Hz) — a distance of 7 semitones. The calculator confirms the frequency ratio is 1.498. The designer then sets oscillator 2 to +7 semitones and adjusts fine‑tuning to achieve the exact ratio. The result is a lush, beating pad that sits perfectly in the mix.

Pro tip: For an even wider sound, try detuning by 7 semitones (perfect fifth) or 12 semitones (octave) and then adding a small cent offset (e.g., 2–5 cents) to create a “chorus” effect.

Common Misconceptions About Semitones

  • “A semitone is always the same frequency difference.” — False. Because pitch perception is logarithmic, a semitone represents a ratio of about 1.059, not a fixed frequency difference. The actual frequency gap grows as pitch increases.
  • “All intervals are based on semitones.” — True for equal temperament, but in other tuning systems (like just intonation), intervals are based on simple integer ratios (3:2 for perfect fifth, 5:4 for major third). Our calculator uses the equal‑temperament standard.
  • “Cents are only for audiophiles.” — While cents are essential for tuning and audio engineering, they are also used in music theory to describe microtonal music and to analyze historical tunings.

The Mathematics Behind the Calculator

The tool converts each note to a MIDI number using the formula: n = 12 · (octave + 1) + index, where index is the position of the note name in the chromatic scale (C=0, C#=1, …, B=11). For example, A4 is 12·(4+1)+9 = 69.

The frequency is then computed via f = 440 · 2(n − 69)/12, which is the standard MIDI tuning formula using A4 = 440 Hz.

The semitone distance is simply the absolute difference between the two MIDI numbers. The cent difference is 1200 · log2(f1 / f2), which is equivalent to 100 · Δn for equal‑tempered notes.

The interval name is derived from the semitone count using standard music theory nomenclature (unison, minor second, major second, … octave).

Frequently Asked Questions

A semitone is the smallest interval in Western music, equal to 1/12 of an octave. A cent is 1/100 of a semitone, so there are 100 cents per semitone and 1200 cents per octave. Cents allow for precise measurement of pitch differences, especially in tuning and microtonal music.

A4 = 440 Hz is the international standard for concert pitch, adopted by the International Organization for Standardization (ISO 16) in 1975. However, some orchestras use A4 = 442 Hz or 443 Hz for a slightly brighter sound. This calculator uses 440 Hz as the default, but you can adjust the frequency manually if needed (the tool currently uses the fixed standard).

The current version supports standard note names with sharps (e.g., C#, F#, A#) and flats are represented via their enharmonic equivalents (e.g., Eb = D#). In equal temperament, enharmonic notes have the same pitch, so this is sufficient for all practical purposes.

Yes — the calculations are based on double‑precision floating‑point arithmetic, so they are accurate to well within 0.001 cents. However, for live tuning, you should use a dedicated tuner that can process audio input. This tool is best for educational and planning purposes.

The piano keyboard shows two octaves (C4 to B5). The selected Note A is highlighted in red, Note B in blue. If both notes are the same, a green highlight is used. This visual feedback helps you see the interval on the keyboard.

Excellent resources include MusicTheory.net, Teoria.com, and the book “Tonal Harmony” by Stefan Kostka and Dorothy Payne. For a deeper dive into acoustics, see “The Physics of Music” by Alexander Wood.
References: MIDI Association; Wikipedia: Equal Temperament; UNSW Music Acoustics. Reviewed by the GetZenQuery tech  team, last updated July 2026.