semitone calculator

Semitone Calculator – Calculate Musical Intervals and Frequency Ratios

Semitone Calculator

Calculate the musical distance between two frequencies in semitones, cents, and ratios.

Standard tuning A4 is 440 Hz.
Please enter a positive frequency.
Frequency of the note you are comparing to.
Please enter a positive frequency.
Semitone Difference 12.00
Cents Difference: 1200.00
Frequency Ratio: 2.000:1
Musical Interval: Octave

Formula: n = 12 × log₂(f₂ / f₁)

Frequency vs. Semitones Visualization

Semitone Offset (-12 to +12) Ratio
Semitones Interval Name Frequency Ratio

What is a Semitone Calculator?

A Semitone Calculator is a specialized tool used by musicians, audio engineers, and acousticians to determine the musical distance between two specific frequencies. In Western music theory, a semitone (also known as a half-step) is the smallest interval commonly used. This Semitone Calculator allows you to input two frequencies in Hertz (Hz) and instantly see how many semitones and cents separate them.

Whether you are tuning an instrument, designing a synthesizer, or analyzing a vocal performance, understanding the logarithmic relationship between frequency and pitch is essential. This tool simplifies complex logarithmic math into an easy-to-read format, providing not just the semitone count but also the exact cents and the standard musical interval name.

Semitone Calculator Formula and Mathematical Explanation

The relationship between frequency and musical pitch is logarithmic. This means that as you go up in octaves, the frequency doubles. To find the number of semitones between two frequencies, we use the base-2 logarithm.

The Formula:

n = 12 × log₂(f₂ / f₁)

Where:

  • n: The number of semitones.
  • f₁: The starting frequency (reference).
  • f₂: The target frequency.
  • 12: The number of semitones in an octave.
Variable Meaning Unit Typical Range
f₁ Starting Frequency Hertz (Hz) 20 Hz – 20,000 Hz
f₂ Target Frequency Hertz (Hz) 20 Hz – 20,000 Hz
n Semitone Difference Semitones -120 to 120
Cents Fine Pitch Tuning Cents 1 semitone = 100 cents

Practical Examples (Real-World Use Cases)

Example 1: Calculating an Octave

If you have a starting frequency of 440 Hz (A4) and a target frequency of 880 Hz, the Semitone Calculator will perform the following calculation:

n = 12 × log₂(880 / 440) = 12 × log₂(2) = 12 × 1 = 12 semitones.

The result is exactly 12 semitones, which corresponds to one full octave.

Example 2: Finding a Perfect Fifth

Suppose you are analyzing a sound at 440 Hz and another at 659.25 Hz. Using the Semitone Calculator:

n = 12 × log₂(659.25 / 440) ≈ 12 × 0.58496 ≈ 7.019 semitones.

This result indicates the interval is a Perfect Fifth (7 semitones) with a very slight deviation in cents.

How to Use This Semitone Calculator

  1. Enter Starting Frequency: Type the base frequency in the "Starting Frequency" field. The default is 440 Hz.
  2. Enter Target Frequency: Type the frequency you want to compare in the "Target Frequency" field.
  3. Review Results: The Semitone Calculator updates in real-time. Look at the large green box for the total semitone difference.
  4. Check Cents: For precise tuning, look at the "Cents Difference" value. 100 cents equals 1 semitone.
  5. Identify Interval: The calculator will automatically name the closest musical interval (e.g., Major Third, Minor Seventh).
  6. Copy Data: Use the "Copy Results" button to save your calculations for use in DAW software or research papers.

Key Factors That Affect Semitone Calculator Results

  • Tuning Systems: This calculator uses Equal Temperament (12-TET), which is the standard for modern Western music. Other systems like Just Intonation will have different ratios.
  • Reference Pitch: While 440 Hz is the standard for A4, some orchestras use 442 Hz or 432 Hz, which shifts all relative calculations.
  • Temperature and Humidity: In physical instruments, environmental factors change the frequency of strings and air columns, affecting the measured semitone distance.
  • Logarithmic Perception: Human hearing is logarithmic. A 100 Hz jump from 100 Hz to 200 Hz sounds like an octave, but a 100 Hz jump from 1000 Hz to 1100 Hz sounds like a small interval.
  • Cents Precision: Because semitones are a broad measurement, "cents" are used for microtonal adjustments. The Semitone Calculator provides 2 decimal places for high precision.
  • Harmonic Content: When measuring complex sounds, the fundamental frequency must be identified correctly for the Semitone Calculator to provide accurate musical results.

Frequently Asked Questions (FAQ)

1. How many cents are in one semitone?

There are exactly 100 cents in one semitone in the equal temperament system.

2. Can the Semitone Calculator handle negative results?

Yes, if the target frequency is lower than the starting frequency, the calculator will show a negative semitone value, indicating a downward interval.

3. What is the frequency ratio of a semitone?

In equal temperament, the ratio of a semitone is the 12th root of 2, which is approximately 1.059463.

4. Why does 432 Hz sound different than 440 Hz?

432 Hz is about 31.7 cents lower than 440 Hz. The Semitone Calculator can help you visualize this exact microtonal difference.

5. Is this calculator useful for sound design?

Absolutely. Sound designers use a Semitone Calculator to calculate pitch shift amounts for samplers and oscillators.

6. What is an octave in semitones?

An octave is exactly 12 semitones, representing a doubling or halving of the frequency.

7. Does this tool work for non-Western scales?

While it calculates semitones based on the 12-tone system, the "cents" output is useful for analyzing microtonal scales found in non-Western music.

8. How accurate is the frequency ratio?

The Semitone Calculator provides the ratio up to three decimal places, which is more than sufficient for most musical and engineering applications.

Leave a Comment