Toolvito

Works on this device

Sampling Frequency Calculator

Work out a sampling frequency (sampling rate) from the time between samples or a number of samples in a time, or the time between samples from a rate. You can also find the rate for a number of samples per cycle, and the data rate and size of samples with a bit depth and a number of channels.

Enter your values

The sampling frequency is the number of samples each second: fs = 1 ÷ (time between samples).

Your values

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Sampling frequency from the time between samples, then what you know, and type it.
  2. For a signal of known frequency, choose Sampling frequency for a number of samples per cycle.
  3. For storage and links, choose Data rate and size of sampled data and type the rate, the bit depth and the channels.
  4. Choose Calculate. Every result also gives the Nyquist frequency.

The formulas

  • Sampling frequency: fs = 1 ÷ Ts, with the time between samples Ts; or fs = N ÷ t for N samples in a record of length t.
  • Samples per cycle: fs = n × f, and n = fs ÷ f for a signal of frequency f.
  • Data rate (uncompressed): fs × bits per sample × channels, in bits per second. Size = data rate × time ÷ 8 bytes.
  • Nyquist frequency: fs ÷ 2, the highest frequency the samples can hold.

Worked examples

  • One sample every 125 µs is 1 ÷ 0.000125 = 8,000 Hz (8 kHz), with a Nyquist frequency of 4 kHz.
  • 48,000 samples in 1 s is 48 kHz. A rate of 44.1 kHz has 22.676 µs between samples.
  • Ten samples in each cycle of a 1 kHz signal need 10 kHz.
  • CD audio: 44,100 Hz × 16 bits × 2 channels = 1,411,200 bit/s (1.4112 Mbit/s). One minute is 10,584,000 bytes, about 10.58 MB.

Limits you should know

  • Data sizes are for uncompressed samples. A file adds a header; compressed formats are much smaller.
  • Taking more than 2 samples per cycle captures a frequency; it does not stop noise above the Nyquist frequency from folding in. Filter before sampling.
  • For the Nyquist rate of a bandwidth with a margin, use the Nyquist Frequency Calculator. For the false frequency of a tone sampled too slowly, use the Aliasing Calculator.

Related tools