Sampling Rate Calculator

Determine the minimum required sampling rate and bit rate based on Nyquist-Shannon Theorem.

Nyquist Rate: Hz
Bit Rate: kbps

What is Sampling Rate?

The sampling rate, or sampling frequency, defines how many times per second a continuous signal is sampled to be converted into a digital signal. In Digital Signal Processing (DSP), this is a fundamental concept for converting analog audio or sensor data into a format that computers can process.

The Nyquist-Shannon Theorem

According to the Nyquist-Shannon sampling theorem, to perfectly reconstruct a signal, the sampling frequency must be at least twice the maximum frequency component present in the signal. This value is known as the Nyquist Rate. If the sampling rate is lower than this threshold, a phenomenon called "aliasing" occurs, where high-frequency signals masquerade as lower-frequency ones, causing distortion.

How to Use This Calculator

This tool helps you calculate the theoretical minimum sampling frequency and the resulting digital bit rate. Follow these steps:

  • Enter Max Frequency: Input the highest frequency component you want to capture (e.g., 20,000 Hz for human hearing).
  • Enter Bit Depth: Input the number of bits used to represent each sample (e.g., 16-bit for CD quality, 24-bit for studio quality).
  • Review Steps: The calculator will show the multiplication steps used to derive the Nyquist Rate and the Total Bit Rate.

Frequently Asked Questions

Why is 44.1 kHz used for CDs?

The human hearing range is roughly 20 Hz to 20,000 Hz. Following Nyquist's theorem, we need at least 40,000 Hz. The extra 4,100 Hz allows for "anti-aliasing filters" to function properly without cutting into the audible spectrum.

What is Bit Rate?

Bit rate is the volume of data processed per unit of time. It is calculated by multiplying the sampling rate by the bit depth. Higher bit rates generally mean higher audio fidelity but larger file sizes.