For an unpadded FFT, the frequency-bin spacing is the sample rate divided by the number of samples: delta f = fs/N. A larger FFT uses a longer record and places bins closer together. That helps some frequency questions, but it does not guarantee that every pair of nearby tones can be resolved or that the sound stayed unchanged during the record.
At a 48 kHz sample rate, a 2,048-sample FFT has 23.4375 Hz bin spacing. A 32,768-sample FFT has approximately 1.4648 Hz spacing and spans about 683 milliseconds. Choose between them according to the event and the distinction you need to observe.
Bin spacing and true resolving ability
FFT bins are the discrete frequencies at which the transform represents the sampled record. Smaller spacing gives more closely placed values, but resolving two components also depends on window shape, signal duration and their relative strengths.
Do not treat bin spacing as a universal measurement uncertainty. A peak between bins, a weak tone beside a strong one and a changing pitch create different interpretation problems.
NI’s FFT and windowing documentation distinguishes the analysis record, frequency spacing and window effects. The calculations below use the actual record length, not a claim that increasing a display’s point count always creates more information.
Use the frequency analyzer to inspect a signal with a suitable FFT setting. Its displayed frequency features are not automatically a calibrated acoustic assessment.
The two calculations to keep together
The bin-spacing formula is fs/N. The record-duration formula is N/fs. The units are hertz and seconds respectively when fs is samples per second.
| Samples in the FFT | Bin spacing: sample rate / samples | Record duration: samples / sample rate |
|---|---|---|
| 2,048 | 23.4375 Hz | 42.67 milliseconds |
| 8,192 | 5.859375 Hz | 170.67 milliseconds |
| 32,768 | 1.46484375 Hz | 682.67 milliseconds |
These values are mathematical examples at one stated sample rate. A different device rate changes them. At 44.1 kHz, for example, an 8,192-sample record spans about 185.76 milliseconds and has spacing of approximately 5.3833 Hz.
The time span is not necessarily the application’s complete latency. Capture buffering, overlap, processing and display updates can add or alter delay. Avoid promising that a record duration equals the exact time a user waits.
A narrow-frequency comparison
Suppose you want to distinguish a steady feature near 50 Hz from one near 60 Hz. Their separation is ten hertz. A 2,048-sample FFT at 48 kHz has bins approximately 23.44 Hz apart, so its grid is coarse for that question.
An 8,192-sample FFT provides approximately 5.86 Hz spacing, while 32,768 provides approximately 1.46. The larger record may make the distinction easier to inspect, but window width, signal stability and noise still matter.
This is an illustrative analysis problem, not a claim that every 50 Hz peak identifies mains hum or that a particular phone can measure low frequencies accurately. The microphone may suppress or distort that region before the transform is computed.
The dB versus Hz guide explains why locating a frequency does not establish its acoustic level. A frequency estimate and a calibrated pressure measurement are separate tasks.
Why short events favor a different choice
A long FFT combines a longer span of the signal. If a chirp or transient changes substantially during that record, its spectrum can spread across frequencies rather than describe one stationary tone.
A shorter record gives a more localized view in time, with coarser frequency spacing. A longer record favors a finer frequency view of a sufficiently stable signal. This trade-off is a reason to inspect more than one setting thoughtfully.
A spectrogram shows how successive spectra change over time. Its appearance also depends on window length, overlap and scaling. A narrow-looking stripe should not be interpreted without those settings.
Use low-level source examples if demonstrating the distinction with the tone generator. Do not increase playback to make a weak feature more visible.
Windowing and spectral leakage
An FFT analyzes a finite record. If the record’s endpoints do not join smoothly when treated periodically, energy can appear across neighboring bins. This is commonly called spectral leakage.
A window reduces some boundary effects by weighting the samples. The trade-off includes a wider main lobe or different side-lobe behavior. There is no window that simultaneously gives the best result for every amplitude, separation and transient question.
The site’s analyzer uses a defined analysis implementation; a general tutorial should not imply it offers every window choice discussed in signal-processing literature. Keep the distinction between theory and available controls clear.
When comparing plots, hold window and scaling conventions consistent. A change in peak height may reflect normalization rather than a change in the original sound.
Zero padding does not extend the captured event
Adding zeros can produce more densely placed FFT output points. It can help display or interpolate the spectrum, but it does not supply additional observed signal duration.
For example, padding an existing short record is not equivalent to recording a longer stable tone. Closely spaced display points should not be promoted as newly acquired resolving power.
Also distinguish an FFT magnitude spectrum from a system’s frequency response. A microphone recording contains the source and the receiving chain; it is not automatically a loudspeaker transfer-function measurement.
For calibrated acoustic context, the sound pressure level guide explains what must be known beyond the digital spectrum.
Level and hardware limits remain
A larger FFT cannot restore clipped data, bypass microphone processing or establish acoustic calibration. The microphone calibration guide explains those separate limitations.
A digital peak may be expressed relative to full scale. The dB versus dBFS guide explains why that is not automatically room SPL.
If the actual task is a repeatable overall level comparison, a decibel meter online answers a different question from the spectrum. Keep its reference-based acoustic estimate separate from frequency analysis.
The audio wavelength calculator can explore wavelength once a frequency and propagation speed are specified. It does not improve FFT resolution or identify a physical source from a peak.
Frequently asked questions
Does a larger FFT always give a better result?
No. It narrows bin spacing by using a longer record, which can blur changes within that record. Choose it for the question rather than always selecting the maximum.
Is bin spacing the exact frequency error?
No. Windowing, peak estimation, signal-to-noise and stability influence an estimate. Bin spacing describes the transform grid, not every uncertainty in the measurement.
Why does a single tone occupy several bins?
The tone may fall between bins, the finite record may create leakage and the window spreads its representation. Several visible bins do not necessarily mean several physical tones.
Can zero padding separate two tones that were not resolved?
It does not create additional captured information. It may smooth or interpolate the display, but a longer suitable observation and appropriate window are different requirements.
