Sample rate, bit depth and audio formats: digital audio explained
The numbers behind digital sound, from Nyquist and dither to lossless and lossy codecs, and practical settings for recording, mixing and delivery.
Every recording made on a computer, a phone or a field recorder is stored as numbers. How many numbers per second, how precise each one is and how they are packed into a file decide how faithful the sound will be, how much space it takes and where it can be played. Terms such as 44.1 kHz, 24 bits, lossless and 320 kbps appear in every audio application, yet they are often misunderstood. This guide explains how digital audio works, what the main settings mean, how the common file formats differ and which choices make sense for recording, editing and publishing.
Sound reaches a microphone as continuous changes in air pressure, which the microphone turns into a continuous electrical signal. An analogue to digital converter then measures that signal at regular intervals and stores each measurement as a number. Two parameters describe this process: the sample rate, which is how many measurements are taken each second, and the bit depth, which is how precisely each measurement is recorded. On playback, a digital to analogue converter rebuilds a continuous signal from the numbers.
The sample rate is expressed in hertz or kilohertz. A rate of 44.1 kHz means 44,100 measurements per second. According to the sampling theorem associated with Harry Nyquist and Claude Shannon, a signal can be reconstructed accurately if it is sampled at more than twice its highest frequency. Human hearing is usually described as extending to about 20 kHz in young listeners, so a sample rate a little above 40 kHz can in principle capture the whole audible range. Converters include filters that remove frequencies above half the sample rate, which would otherwise fold back into the audible range as distortion called aliasing.
| Sample rate | Where it is used |
|---|---|
| 44.1 kHz | Compact disc and much music distribution |
| 48 kHz | Video, film, broadcasting and many podcasts |
| 88.2 and 96 kHz | High-resolution recording and some music releases |
| 176.4 and 192 kHz | Specialist recording and archiving |
The 44.1 kHz rate comes from the compact disc standard developed by Philips and Sony, which also fixed the bit depth at 16 bits. The compact disc reached the market in the early 1980s, and its specification shaped music distribution for decades. The 48 kHz rate became the standard for professional video and broadcasting.
Higher sample rates capture frequencies beyond human hearing and can make some processing behave more smoothly, at the cost of larger files and more processing power. Whether listeners can hear a difference in finished recordings is debated, and carefully controlled listening tests are needed to draw conclusions.
Bit depth decides how many different values each sample can take. Each additional bit doubles the number of possible values and adds roughly 6 dB to the theoretical dynamic range, the distance between the loudest signal and the noise floor of the digital system.
The practical benefit of 24 bits during recording is headroom. Levels can be set conservatively, with peaks well below the maximum, without bringing the quiet parts close to the noise floor. That leaves room for unexpected loud moments.
When a recording made at 24 bits is reduced to 16 bits, for example to make a CD master, the lowest-level detail has to be rounded. Rounding creates a form of distortion that is correlated with the signal and can be heard in very quiet passages, such as fade-outs and reverb tails. Dither adds a very low level of noise before the reduction, which turns that distortion into a smooth, constant noise floor that the ear tolerates much better. Noise shaping can move that noise towards frequencies where hearing is less sensitive. Dither is applied once, at the final reduction of bit depth, not at every stage of production.
Uncompressed formats store the samples as they are. WAV, developed by Microsoft and IBM, and AIFF, developed by Apple, are the most common. They are simple, widely supported and easy to edit, but they take a lot of space: one minute of stereo audio at 44.1 kHz and 16 bits takes about 10 megabytes.
Lossless compression reduces file size without discarding any information, rather like a compressed archive for documents. When the file is decoded, the original samples are restored exactly. FLAC, an open format, is the best known, and Apple Lossless (ALAC) plays a similar role in Apple's ecosystem. Lossless files are typically around half the size of the uncompressed original, depending on the music.
Lossy formats reduce size much further by discarding information that a model of human hearing predicts will be inaudible or barely audible. They exploit masking: a loud sound makes nearby quieter sounds, in time or frequency, harder to hear, so they can be coded with less precision.
| Format | Background | Typical use |
|---|---|---|
| MP3 | MPEG-1 Audio Layer III, developed largely at the Fraunhofer Institute in Germany and standardised in the early 1990s | Universal compatibility, podcasts, older libraries |
| AAC | Developed within the MPEG standards as a successor to MP3 | Streaming, online video, mobile devices |
| Ogg Vorbis | Open, royalty-free format | Games, some streaming services |
| Opus | Open format standardised by the Internet Engineering Task Force in 2012 | Voice calls, video conferencing, streaming at low bitrates |
The quality of a lossy file depends on its bitrate, measured in kilobits per second, and on the encoder. At generous bitrates, modern encoders produce results that most listeners cannot distinguish from the original in blind tests. At low bitrates, artefacts appear: swirling high frequencies, smeared transients and a loss of stereo detail. Speech tolerates lower bitrates than music.
Lossy encoding should happen once, at the end. Converting from one lossy format to another, or re-encoding the same file repeatedly, accumulates artefacts. Masters and working files should be kept in an uncompressed or lossless format.
A widely used choice is 24 bits at 48 kHz. It provides headroom, matches video and broadcasting, and keeps file sizes reasonable. Music producers who deliver mainly to audio platforms often record at 44.1 kHz or at a higher rate, depending on their workflow. Whatever the choice, keeping the same sample rate throughout a project avoids conversions.
Work in the project's native format, uncompressed or lossless. Export intermediate mixes and stems in WAV or AIFF at the project's sample rate and bit depth, or as 32-bit floating point files if they will be processed further.
Follow the specifications of the destination. Distributors, broadcasters and podcast hosts publish their requirements for format, sample rate, bit depth, bitrate and loudness, and these change over time. When in doubt, deliver a high-quality master and let the platform create its own encoded versions, or encode once from the master to the requested format.
For uncompressed audio, the bitrate follows directly from the settings: sample rate multiplied by bit depth multiplied by the number of channels. Stereo audio at 44.1 kHz and 16 bits runs at about 1,411 kilobits per second, the figure often quoted for CD audio. Lossy formats work at a small fraction of that rate, which is why they dominate streaming and downloads.
File size is easy to estimate from the bitrate. Divide the bitrate in kilobits per second by eight to get kilobytes per second, then multiply by the duration. A one-hour programme encoded at 128 kbps takes roughly 58 megabytes, while the same hour as an uncompressed stereo file at CD settings takes over 600 megabytes.
Lossy encoders can use a constant bitrate, the same number of bits every second, or a variable bitrate, which spends more bits on complex passages and fewer on simple ones. Variable bitrate usually gives better quality for the same average size, while constant bitrate is more predictable for streaming and older players. For speech-only programmes, mono encoding halves the data needed and is often perfectly adequate.
Files also carry metadata: title, artist, album, year, artwork and, for podcasts, chapter markers. In MP3 files, these are stored in ID3 tags, and other formats have their own systems. Accurate metadata helps players, libraries and platforms display and organise recordings correctly, and it should be filled in carefully before a file is published.
For recording and production, 24 bits gives useful headroom. For finished music played at normal levels, 16 bits already offers a dynamic range that covers most listening conditions.
48 kHz became the standard sample rate for professional video and broadcasting equipment, so using it avoids conversions when audio is combined with pictures.
No. Information discarded during MP3 encoding cannot be recovered. Converting to WAV only produces a larger file with the same limitations.
Both preserve every sample. Uncompressed files store the samples directly, while lossless files compress them in a way that can be reversed exactly, saving space.