Plan your future with our Retirement Budget Calculator

Frequency Ratio to Musical Interval Calculator

Enter two frequencies in Hz to calculate the musical interval between them in cents, semitones, and interval name — with just intonation comparison.
Loading...
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter Frequency 1 (Reference)

    Input the lower or reference frequency in Hertz (Hz). For example, 440 Hz is concert A.

  2. 2

    Enter Frequency 2 (Interval)

    Input the second frequency in Hertz (Hz). The interval will be calculated from Frequency 1 to this value.

  3. 3

    Review Interval Metrics

    The calculator will display the interval in cents, semitones, its frequency ratio, the nearest musical interval name, and tuning deviation.

Example Calculation

A musician wants to determine the precise musical interval between a 440 Hz reference tone and a 660 Hz note.

Frequency 1 (Hz)

440

Frequency 2 (Hz)

660

Results

701.95 ¢

Tips

Understand Cents vs. Semitones

Cents provide a highly precise measurement of musical intervals, with 100 cents equaling one semitone. Semitones are the smallest interval in Western equal temperament. Use cents for fine-tuning and analyzing minute pitch differences, and semitones for general interval identification.

Compare to Just Intonation

Pay attention to the 'Nearest Just Ratio' and 'Tuning Deviation' outputs. This helps identify how closely your interval aligns with the 'pure' mathematical ratios of just intonation, which often sound more consonant but are not practical for all keys in equal temperament.

Explore Inverted Intervals

If Frequency 2 is lower than Frequency 1, the ratio will be less than 1, and the cents value will be negative. This indicates an inverted or descending interval, which is also a valid musical relationship. The calculator will still identify the interval name.

Unveiling Musical Relationships with the Frequency Ratio to Musical Interval Calculator

The Frequency Ratio to Musical Interval Calculator is an indispensable tool for musicians, acousticians, and music theorists seeking to precisely quantify the relationships between musical notes. By converting any two frequencies into a musical interval expressed in cents and semitones, this tool not only identifies the interval name but also highlights its tuning deviation from ideal just intonation ratios. Understanding these precise mathematical relationships is fundamental to comprehending harmony, tuning systems, and the psychoacoustics of consonance and dissonance. For example, inputting 440 Hz (Concert A) and 660 Hz immediately reveals a ratio of 1.5, corresponding to exactly 702 cents, which is a perfect fifth—a cornerstone of Western harmony.

The Mathematics of Musical Harmony and Tuning

The mathematical foundations of musical harmony and tuning systems are deeply rooted in frequency ratios. Just intonation, an ancient tuning system, relies on simple integer ratios (e.g., 3:2 for a perfect fifth, 4:3 for a perfect fourth, 5:4 for a major third) to create perfectly consonant sounds. These ratios produce "pure" intervals where the overtones align perfectly, resulting in a smooth, beat-free sound. However, these pure intervals are specific to a given key, meaning that modulating to other keys would introduce dissonances unless the instrument was re-tuned. In contrast, equal temperament, the dominant tuning system since the 18th century, mathematically divides the octave into 12 exactly equal semitones, each with a frequency ratio of 2^(1/12). While no interval (except the octave) is perfectly "pure" in equal temperament, the slight deviations, measured in cents (100 cents per semitone), are small enough to be generally imperceptible to the average listener, allowing for seamless modulation across all 12 keys.

Calculating Musical Intervals from Frequencies

The core of this calculator lies in converting the ratio of two frequencies into a logarithmic scale, which is how human hearing perceives pitch intervals. The standard unit for this is the "cent," where 1200 cents equal one octave, and 100 cents equal one semitone in 12-tone equal temperament.

Frequency Ratio = Frequency 2 / Frequency 1
Interval in Cents = 1200 × LOG₂(Frequency Ratio)
Interval in Semitones = Interval in Cents / 100

Frequency 1 is the reference (lower) frequency, and Frequency 2 is the higher frequency. The LOG₂ function (logarithm base 2) is used because musical pitch perception is logarithmic, with each octave representing a doubling of frequency.

💡 Understanding relationships between different elements is key in both music and statistics. If you're analyzing how two sets of data correlate, our Spearman Rank Correlation Calculator provides tools to measure the strength and direction of monotonic relationships.

Analyzing a Perfect Fifth

Let's use the calculator to analyze the relationship between two common musical frequencies.

  1. Frequency 1: We'll use 440 Hz, which is the standard tuning for A4 (the A above middle C).
  2. Frequency 2: We'll use 660 Hz, which is E5 (the E above A4).

First, calculate the Frequency Ratio:

  • Frequency Ratio = 660 Hz / 440 Hz = 1.5

Next, calculate the Interval in Cents:

  • Interval in Cents = 1200 × LOG₂(1.5)
  • Interval in Cents = 1200 × 0.5849625... ≈ 701.95 cents

Finally, calculate the Interval in Semitones:

  • Interval in Semitones = 701.95 cents / 100 = 7.0195 semitones

This result shows that the interval between 440 Hz and 660 Hz is a perfect fifth, with a slight deviation of approximately 2 cents sharper than an equally tempered perfect fifth (which is exactly 700 cents). This small difference is typical when comparing just intonation ratios to equal temperament.

💡 Just as musical intervals combine elements, understanding how components make up a whole is essential in many fields. If you are exploring the composition of spatial arrangements, our Span of Vectors Checker Calculator can help you determine if a set of vectors can "span" a given space.

Limitations of Simple Frequency Ratios in Real Music

While frequency ratios are fundamental to defining musical intervals, relying solely on them for analyzing real music can be incomplete or misleading. First, this calculator primarily addresses simple two-note intervals, not the complexities of full chords or polyphonic textures. In a complex harmonic context, the perceived "purity" of an interval can be influenced by other voices, timbre, and the overall harmonic progression, which a simple ratio cannot capture. Second, the psychoacoustics of timbre and overtone series play a crucial role. Instruments produce rich overtone series, and how these overtones align (or clash) between notes can significantly affect consonance, even if the fundamental frequencies form a "pure" ratio. A square wave and a sine wave, for instance, might have the same fundamental frequency ratio, but their harmonic richness will make them sound very different. Third, microtonal music intentionally uses intervals smaller than a semitone, often outside the 12-tone equal temperament system. While cents can quantify these, the "interval name" provided by the calculator is based on Western standard intervals, which may not apply. For these complex scenarios, advanced spectral analysis or a deeper understanding of music theory and psychoacoustics is required beyond simple frequency ratios.

Frequently Asked Questions

What is a frequency ratio in music?

A frequency ratio in music is the mathematical relationship between the fundamental frequencies of two musical notes. It is a core concept in understanding musical intervals and harmony. For example, a perfect octave has a frequency ratio of 2:1, meaning the higher note vibrates at twice the speed of the lower note. Historically, simple integer ratios (like 3:2 for a perfect fifth) formed the basis of just intonation, which aimed for pure, consonant sounds.

How are cents used to measure musical intervals?

Cents are a logarithmic unit of measurement used to express musical intervals with high precision, where 100 cents equal one semitone in 12-tone equal temperament. This system allows for the precise quantification of even minute pitch differences, making it invaluable for tuning instruments, analyzing microtonal music, and comparing various tuning systems (e.g., just intonation vs. equal temperament). The entire octave spans 1200 cents, providing a standardized scale for interval comparison.

What is the difference between just intonation and equal temperament?

Just intonation is a tuning system that uses simple integer frequency ratios (e.g., 3:2, 4:3) to create perfectly consonant intervals within a specific key, resulting in very pure-sounding harmonies. However, these pure intervals change when modulating to different keys, leading to dissonances. Equal temperament, the dominant tuning system in Western music since the 18th century, divides the octave into 12 semitones, each exactly 100 cents (a ratio of 2^(1/12)). This system allows music to be played in any key without retuning, but at the cost of slightly compromising the purity of most intervals, making them slightly 'out of tune' compared to just intonation.