Digital Sampling Rate Calculator
Calculation Results
Understanding Sampling Rate and the Nyquist Theorem
In digital signal processing and audio engineering, the sampling rate (or sampling frequency) defines how many times per second an analog signal is measured to convert it into a digital format. This process is the foundation of everything from professional music production to VoIP calls and medical imaging.
The Nyquist-Shannon Sampling Theorem
The core principle governing digital audio is the Nyquist-Shannon theorem. It states that to accurately reconstruct an analog signal, the sampling rate must be at least double the highest frequency contained within the signal.
- The Nyquist Rate: The minimum sampling frequency ($2 \times f_{max}$).
- The Nyquist Frequency: Half of the actual sampling rate ($f_s / 2$). This represents the highest frequency a digital system can accurately record.
If you attempt to record a signal frequency that exceeds the Nyquist frequency, a phenomenon called aliasing occurs. This introduces artificial, low-frequency distortions into the recording that were not present in the original source.
Calculating Bitrate and Data Requirements
Beyond the sampling rate, the quality and size of a digital file are determined by the Bit Depth and the number of Channels. The formula for the bitrate of uncompressed pulse-code modulation (PCM) audio is:
Bitrate = Sampling Rate (Hz) × Bit Depth (bits) × Number of Channels
Common Real-World Examples
| Standard | Sample Rate | Bit Depth | Typical Use |
|---|---|---|---|
| CD Audio | 44.1 kHz | 16-bit | Consumer Music |
| DVD/Film | 48 kHz | 24-bit | Professional Video |
| High-Res Audio | 96/192 kHz | 24-bit | Studio Mastering |
| Telephony | 8 kHz | 8-bit | Voice Communication |
Why choose 44.1 kHz?
The standard 44.1 kHz sampling rate for CDs was chosen because the upper limit of human hearing is roughly 20,000 Hz (20 kHz). According to Nyquist, we need at least 40 kHz to capture this. The extra 4.1 kHz allows for "roll-off" filters that prevent aliasing without affecting the audible frequencies.