Musical interval cents calculator

Signed interval: positive when to_hz is above from_hz, negative when below.

Your inputs

Use the units shown.

Frequency ratio
1.5
Interval (cents)
701.95500087
Nearest interval (semitones)
7

Your calculation
How is this calculated?

ratio (dimensionless): to_hz divided by from_hz.

cents (cents): 1200 * log2(ratio); one octave is 1200 cents, so the value is signed by the direction of the interval.

nearest_semitones (semitones): cents/100 rounded to the nearest integer, with halves rounded toward positive infinity.

Signed interval: positive when to_hz is above from_hz, negative when below. Nearest semitone uses round-half-toward-positive-infinity.

UNSW Music Acoustics: note names, MIDI numbers and frequencies ↗

Try an example

Worked example

Frequency ratio: 1.5

Inputs
  • From frequency (Hz): 440
  • To frequency (Hz): 660

Compare inputs

Frequency ratio: 0.5

Inputs
  • From frequency (Hz): 880
  • To frequency (Hz): 440
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.