LISTEN · MEASURE · UNDERSTAND

Linear vs Log Frequency in a Spectrogram

Compare linear and logarithmic spectrogram axes. See how Hz steps, octaves, harmonic spacing and frequency sweeps look on each scale.

On a linear spectrogram axis, equal distances represent equal differences in hertz. On a logarithmic axis, equal distances represent equal frequency ratios. An octave such as 100 to 200 Hz is the same vertical distance as 1,000 to 2,000 Hz on a logarithmic axis. Choose the scale that makes the pattern you want to inspect easier to read.

Read What Equal Distances Mean

A linear axis might mark 0, 500, 1,000, 1,500 and 2,000 Hz at even intervals. The distance from 500 to 1,000 Hz equals the distance from 1,500 to 2,000 Hz. A 500 Hz change takes up the same amount of space at any frequency on that axis.

On a logarithmic axis, labels such as 100, 200, 400 and 800 Hz can be evenly spaced because each value doubles. The relative scale can give low frequencies more room than a linear axis with the same high-frequency limit. Exact 0 Hz has no logarithm, so check the lower bound when inspecting very low noise or offset.

What you are comparing Linear axis Logarithmic axis
100 to 200 Hz and 1,000 to 2,000 Hz Different vertical distances Same vertical distance
100 to 200 Hz and 1,000 to 1,100 Hz Same vertical distance Different vertical distances
A 60 Hz harmonic series Bands separated by equal Hz steps Gaps appear smaller at higher harmonics
Equal octave jumps Gaps get larger at higher frequencies Gaps look equal

Predict the Shape of a Frequency Sweep

Imagine a tone sweeps from 500 Hz to 4,000 Hz in two seconds and gains 1,750 Hz every second. On a linear axis with uniform time, this appears close to a straight line. On a logarithmic axis it rises more quickly near the start and flattens as it approaches the higher end.

A sweep that increases by a constant percentage each second behaves differently. If it doubles at equal time intervals, the trace appears straight on the logarithmic axis. When it is useful to compare an unknown sweep, check time and frequency at several positions. One pair of endpoints cannot tell you which sweep shape was used.

Choose a Scale for Harmonics or Musical Intervals

Suppose a note produces lines at 200, 400, 600 and 800 Hz. The lines look evenly spaced on a linear frequency axis because each is 200 Hz from the next. On a log axis those four bands bunch closer together as the frequency rises. The harmonic relationship remains the same. See the guide to harmonic spacing for a worked fundamental estimate.

The same log scale is useful when comparing octave intervals. For example, 200 to 400 Hz and 400 to 800 Hz each cover one octave. On a linear graph the second distance is twice the first. Use labeled grid lines or cursor values when the shape alone might mislead you.

Inspect the Same Audio on Both Scales

Open a steady tone or sweep in the spectrogram frequency display. Save a view on each scale with the same time span, approximate frequency bounds and color range. Locate a clear feature and read the cursor value on both views. The same feature may sit at different heights. Its value in hertz should still agree within the display’s resolution.

When the viewer aggregates several analysis bins into one screen row, display interpolation can change the apparent thickness of the band. Keep the sample rate, window and FFT size consistent before treating a visual difference as a different frequency. The FFT resolution guide explains the numbers behind those settings.

Match the Scale to the Task

For fixed intervals in Hz, such as spacing around 60 Hz hum and its harmonics, start with linear scale and zoom into the relevant frequency band. For octave relationships or a wide view that keeps the low end readable, try logarithmic scale. In either case, choose a crop that includes the frequencies needed to answer your question.

When sharing a figure, include “linear frequency” or “log frequency” in the caption and keep tick labels visible. A reader can then distinguish how a band looks from what it measures. The guide to exporting spectrogram images has a checklist for labels, colors and example captions.

Frequently Asked Questions

Does changing to log scale alter the frequencies in my audio?

The scale changes the vertical mapping of the display. The tone keeps the same measured frequency if the analysis settings and input stay the same. Some viewers can change the display algorithm as part of a preset, so check the other settings too.

Why can’t I see 0 Hz on a log spectrogram?

The logarithm of zero is undefined. Logarithmic frequency views use a positive lower limit or another mapping near zero. Switch to a linear view to inspect the DC region if the tool exposes it.

Which scale is better for music?

Log scale can make octaves and other equal-ratio intervals easy to compare. Linear scale makes equal differences in hertz and many harmonic patterns easy to see. Choose according to the part of the music you want to measure.