Calculate sampling rate from samples and duration, find the Nyquist minimum for a signal frequency, or estimate recording time from a sample rate.

Sampling Rate Calculator

Pick the tab that matches what you know.
Find Rate
Nyquist Min
Find Duration
Enter a positive number.
Enter a duration greater than 0.
▸ How this is calculated
Copy result
Enter a frequency greater than 0.
▸ How this is calculated
Copy result
Enter a positive number.
Enter a rate greater than 0.
▸ How this is calculated
Copy result

Sampling Rate Formula

The calculator uses one of three formulas depending on the tab you select.

Find Rate (samples and duration known):

fs = N / t

Nyquist Minimum (highest signal frequency known):

fs_min = 2 * f_max

Find Duration (samples and rate known):

t = N / fs
  • fs = sampling rate in samples per second (Hz)
  • N = total number of samples collected
  • t = total acquisition time in seconds
  • f_max = highest frequency component in the signal (Hz)
  • fs_min = minimum sampling rate that avoids aliasing

Nyquist gives the theoretical floor. In practice you sample 10 to 25 percent above 2 × f_max to leave room for an anti-aliasing filter rolloff. The duration formula assumes a constant rate and uniform spacing between samples.

Common Sampling Rates and Nyquist Limits

Reference values for matching a rate to an application or sanity-checking your result.

Application Typical Rate Max Captured Frequency
Telephone voice8 kHz4 kHz
Wideband speech (VoIP)16 kHz8 kHz
CD audio44.1 kHz22.05 kHz
Studio / video audio48 kHz24 kHz
High-res audio96 / 192 kHz48 / 96 kHz
Vibration / ECG1 to 5 kHz500 Hz to 2.5 kHz
Ultrasonic sensors200 kHz to 1 MHz100 to 500 kHz
RF / SDR baseband2 to 20 Msps1 to 10 MHz
Highest Signal Frequency Nyquist Minimum Practical Rate (≈2.2x)
100 Hz200 Hz220 Hz
1 kHz2 kHz2.2 kHz
10 kHz20 kHz22 kHz
20 kHz40 kHz44 kHz
100 kHz200 kHz220 kHz
1 MHz2 MHz2.2 MHz

Worked Example and FAQ

Example: You record a sensor and end up with 480,000 samples over 10 seconds. The rate is 480,000 ÷ 10 = 48,000 samples/s, or 48 kHz. That is enough to capture frequencies up to 24 kHz.

Why 44.1 kHz for CDs and not exactly 40 kHz? Human hearing tops out near 20 kHz, so the Nyquist minimum is 40 kHz. The extra 4.1 kHz gives the anti-aliasing filter room to roll off without affecting audible content.

What happens if you sample below the Nyquist rate? Frequencies above fs/2 fold back into the captured spectrum as aliases. They cannot be removed after sampling, so the only fix is a higher rate or an analog low-pass filter before the ADC.

Is higher always better? No. Doubling the rate doubles storage, bandwidth, and processing load. Pick a rate that covers your signal plus a margin, then stop.

How do you find samples if you know rate and duration? Multiply: N = fs × t. A 10-second recording at 44.1 kHz produces 441,000 samples per channel.