Semitone Calculator
Computed Results
The semitone calculator determines the musical interval, cents difference, and frequency ratio between two notes or frequencies. It also allows you to shift a starting frequency by a specific number of semitones to find the resulting pitch, making it a practical tool for audio engineering, instrument tuning, and music theory.
How to Use the Calculator
This tool operates in three distinct modes depending on the information you have:
- Notes Mode: Select a starting note and octave, then choose a target note and octave. The calculator will determine the interval and semitone difference between them.
- Frequencies Mode: Enter two specific frequencies (in Hz) to calculate the exact semitone distance and frequency ratio between them.
- Semitone Shift Mode: Enter a starting frequency and a positive or negative semitone shift to calculate the resulting target frequency.
Formulas and Calculation Method
The relationship between musical pitch and frequency is logarithmic. In Western music, an octave consists of 12 semitones, and moving up one octave exactly doubles the frequency.
Frequency to Semitones
To find the number of semitones between two frequencies, the calculator uses the base-2 logarithm of their ratio:
Semitone Shift to Frequency
To calculate a new frequency after shifting by a specific number of semitones, the tool applies the frequency ratio:
Inputs and Outputs
| Input/Output | Description |
|---|---|
| Calculation Mode | The method used for the calculation (Notes, Frequencies, or Semitone Shift). |
| Starting & Target Notes | The musical notes and their respective octaves (used in Notes mode). |
| Frequency 1 & 2 (Hz) | The starting and target frequencies in Hertz (used in Frequencies mode). |
| Semitone Shift (st) | The number of half-steps to transpose the pitch up or down. |
| Semitone Difference | The total number of half-steps between the two pitches. |
| Cents Difference | The interval measured in cents (1 semitone = 100 cents). |
| Frequency Ratio | The mathematical multiplier between the two frequencies. |
| Standard Interval Name | The musical name for the interval (e.g., Perfect 5th, 1 Octave). |
Verified Calculation Scenarios
Here are examples of how the calculator processes different modes and inputs:
Scenario 1: Interval Between Specific Notes
Calculating the distance from Note 0 (Octave 3) to Note 5 (Octave 4):
- Resulting Semitones: 17
- Cents: 1700
- Frequency Ratio: 2.6697
- Interval Name: Perfect 4th + 1 Octave
- Resulting Frequency: 349.23 Hz
Scenario 2: Interval Ratio Between Frequencies
Analyzing the distance between 220 Hz and 440 Hz:
- Resulting Semitones: 12
- Cents: 1200
- Frequency Ratio: 2
- Interval Name: 1 Octave
- Resulting Frequency: 440 Hz
Scenario 3: Negative Semitone Shift
Transposing a starting frequency of 880 Hz down by 12 semitones:
- Resulting Semitones: -12
- Cents: -1200
- Frequency Ratio: 0.5
- Interval Name: 1 Octave
- Resulting Frequency: 440 Hz
Scenario 4: High Frequency Shift
Shifting a 12,000 Hz audio signal up by 24 semitones:
- Resulting Semitones: 24
- Cents: 2400
- Frequency Ratio: 4
- Interval Name: 2 Octaves
- Resulting Frequency: 48,000 Hz
Practical Use Cases
Understanding semitone distances and frequency ratios is useful in several technical and creative fields. Audio engineers use these calculations to pitch-shift samples without losing harmonic alignment. Musicians and theorists use semitone math to identify complex intervals across multiple octaves. Additionally, synthesizer programmers rely on exact frequency ratios to design FM synthesis patches and tune oscillators accurately.
Frequently Asked Questions
What is a semitone?
A semitone, also known as a half-step, is the smallest musical interval commonly used in Western tonal music. It represents the distance between two adjacent keys on a piano.
How many cents are in a semitone?
There are exactly 100 cents in one semitone. Cents are used to measure microtonal differences in pitch that are smaller than a half-step.
How does frequency change when you move up one octave?
Moving up one octave (12 semitones) exactly doubles the frequency. For example, if a note is 440 Hz, the same note one octave higher is 880 Hz.