Sample Rate Converter – Understanding Audio Sample Rates
The sample rate of a digital audio file determines how many times per second an audio signal is sampled and stored as a digital value. Every time you record, export, or stream audio — whether for music production, podcast publishing, video post-production, or app development — sample rate compatibility is critical. This converter helps you calculate resampling ratios, Nyquist frequencies, bitrates, and file sizes instantly.
What Is a Sample Rate?
When analog audio is converted to digital, the signal is measured (sampled) at regular intervals. The sample rate defines how many of those measurements are taken every second, expressed in Hertz (Hz) or kilohertz (kHz). A sample rate of44,100 Hz means the audio waveform is captured 44,100 times per second. Higher sample rates can theoretically represent higher audio frequencies, but also produce larger file sizes.
Common Industry Standard Sample Rates
Different industries converge on different standards for audio quality, storage, and transmission:
- 8 kHz — Telephone and VoIP. Captures speech up to 4 kHz, sufficient for voice intelligibility.
- 22.05 kHz — FM radio and older multimedia formats. Covers up to 11 kHz.
- 44.1 kHz — CD Audio standard. Covers frequencies up to 22.05 kHz, exceeding the ~20 kHz limit of human hearing.
- 48 kHz — Professional audio and video. The standard for film, broadcast, and DAW projects. Required by most video platforms.
- 96 kHz — DVD-Audio and high-resolution studio recording. Used when extra headroom is needed during mixing.
- 192 kHz — Professional archival and mastering. Often used for high-resolution audio delivery formats.
Resampling Ratio: Upsampling vs. Downsampling
Converting between sample rates is called resampling. The resampling ratio is the factor by which audio data must be scaled:
Resampling Ratio = Output Sample Rate ÷ Input Sample Rate
A ratio greater than 1 is upsampling — for example, converting from 44.1 kHz to 48 kHz yields a ratio of approximately 1.0884. Upsampling adds interpolated samples and can increase file size. A ratio less than 1 isdownsampling, such as converting 96 kHz to 44.1 kHz (ratio ≈ 0.459). Downsampling removes samples, which may eliminate high frequencies above the new Nyquist limit.
The Nyquist–Shannon Sampling Theorem
The Nyquist–Shannon sampling theorem states that a digital audio system can accurately capture frequencies up to half the sample rate. This upper limit is called the Nyquist frequency:
Nyquist Frequency = Sample Rate ÷ 2
For a 44.1 kHz file, the Nyquist frequency is 22,050 Hz — comfortably above the 20 kHz ceiling of human hearing. Frequencies above the Nyquist limit cannot be captured; attempting to do so produces aliasing, where high-frequency content "folds back" and appears as unwanted audible distortion at a lower frequency.
Bitrate and Uncompressed File Size
Uncompressed PCM audio bitrate depends on three parameters: sample rate, bit depth, and channel count:
Bitrate (bps) = Sample Rate × Bit Depth × Channels
For example, stereo CD audio at 44.1 kHz and 16-bit gives:44,100 × 16 × 2 = 1,411,200 bps (1,411 kbps). To estimate total uncompressed file size for a recording:
File Size (bytes) = Sample Rate × (Bit Depth ÷ 8) × Channels × Duration (seconds)
A 3-minute stereo recording at 48 kHz and 24-bit would occupy approximately48,000 × 3 × 2 × 180 ≈ 49.3 MB as raw PCM. Compressed formats like MP3, AAC, and FLAC dramatically reduce this, but the uncompressed estimate is essential for planning storage, streaming bandwidth, and recording sessions.
Practical Use Cases
Audio professionals and developers use sample rate conversion in several common workflows:
- Video production: Most video editors and platforms require 48 kHz audio. Music recorded at 44.1 kHz must be resampled before export.
- Podcast and streaming: Delivery services often specify 44.1 kHz or 48 kHz; knowing the resampling ratio ensures no pitch or duration artifacts.
- Game audio: Mobile games may need audio down-sampled to 22 kHz or even 11 kHz to reduce asset sizes.
- Hardware compatibility: Audio interfaces, DACs, and embedded systems may support only certain sample rates; this tool identifies the closest standard and conversion ratio.
Tips for Accurate Conversions
When planning a resampling workflow, keep these principles in mind. Always resample using ahigh-quality interpolation algorithm (such as sinc or SRC) to avoid aliasing. Avoid repeated conversions — every resample step introduces minor rounding errors. If your session requires multiple output formats, export all from the original high-resolution source. For video deliverables, prefer starting at 48 kHz to avoid any resampling at the delivery stage.