Frequency Ratio Calculator
Enter two frequencies and get the simplified ratio, the cents value, the nearest just-intonation interval, and the nearest 12-TET interval — with cents deviation for both, so you can see which tuning system your interval is closer to.
Input
Result
About Frequency Ratios
A frequency ratio expresses one tone in terms of another. Musical intervals are perceived logarithmically: the brain hears a 440 → 880 Hz step (ratio 2:1) and a 220 → 440 Hz step as the "same" interval — both octaves. The two tuning systems below organize music's vocabulary of ratios in different ways.
Just intonation — small integer ratios
Just intonation (JI) defines intervals as small whole-number ratios: 2:1 octave, 3:2 fifth, 4:3 fourth, 5:4 major third, 6:5 minor third, etc. These ratios maximize "consonance" — the overtones of one note line up perfectly with those of the other, producing a beat-free sound. Pythagoras built tuning systems from just 2:1 and 3:2 (Pythagorean tuning); 5-limit just intonation adds 5:1 (the harmonic). Drawback: only one key sounds perfect; transposing requires re-tuning.
12-tone equal temperament — geometric spacing
12-TET divides the octave into 12 equal logarithmic steps. Each semitone is 21/12 ≈ 1.05946 (exactly 100 cents). All keys sound equally (slightly) out of tune. Drawback: the major third in 12-TET (400 cents) is 14 cents sharper than the just 5:4 (386 cents), giving piano thirds their characteristic beating. Benefit: any key sounds the same, transposition is free.
Cents — the universal interval unit
One cent is 1/100 of a 12-TET semitone, or 1/1200 of an octave. Cents convert any ratio to a linear measurement: cents = 1200 · log₂(ratio). Most listeners can detect pitch differences down to ~5 cents in isolation, ~10-20 cents in musical context. Beat rates also help: a 7 cent deviation at 440 Hz gives ~1.8 beats per second.
Continued-fraction approximation
This tool's "Best integer ratio" finds the simplest p:q with q ≤ 1000 closest to your decimal ratio, using continued fractions. For an exact 3:2 input (660/440 = 1.5), it returns 3:2 exactly. For a 12-TET fifth (440 × 27/12 ≈ 659.255 Hz), it returns 1.4983:1 — close to but not 3:2, illustrating the tuning gap.
Frequently Asked Questions
Why does the 12-TET major third sound "out of tune" compared to JI?
What does "small integer ratio" mean for consonance?
What's the difference between just and Pythagorean intervals?
Can two different ratios produce the same cents value?
1200·log₂(r). In practice the cents value can be the same to within rounding for very close ratios (e.g., 16:9 vs 9:5 both round to ~1000 cents). The tool uses the actual decimal ratio for matching, not rounded cents. Different ratios with the same cents are mathematically impossible since the log is bijective on positive reals.