Skip to content
12notez

Sample Rate and Bit Depth Explained

What sample rate and bit depth set in an audio file, what each setting costs in file size, and which to record at, with the sizes worked out.

·By Sudeep Jain

Sample rate is how many times a second the sound is measured, and it sets the highest frequency a file can hold: half the rate. Bit depth is how finely each measurement is written down, and it sets how far the quietest sound can sit above the format's own noise, about 6 dB for every bit. For most recording, 48 kHz at 24-bit is enough. The answers below show why, with the file sizes worked out and the settings that tools on this site use, starting with the Audio Latency Calculator.

What does sample rate set?

A recording is a long list of measurements of the air pressure at the microphone. The sample rate is how many are taken each second, so 48 kHz means 48,000 a second.

A file holds frequencies up to half its rate, known as the Nyquist frequency. At 44.1 kHz that is 22.05 kHz, at 48 kHz it is 24 kHz, at 96 kHz it is 48 kHz and at 192 kHz it is 96 kHz. Hearing is usually put at 20 Hz to 20 kHz, so the first two rates already cover all of it.

Sound above the limit does not simply vanish. It folds back down as a false lower frequency, which is called aliasing. Converters avoid it with a filter ahead of the sampler that attenuates everything above the limit, as the Wikipedia page on the Nyquist frequency describes.

Why are 44.1 kHz and 48 kHz the everyday rates?

44.1 kHz is the rate of CD audio, and music is usually delivered at it. 48 kHz is the usual rate for sound that goes with picture, so video editors work at it. Apple's podcast page lists 44.1 and 48 kHz as the recommended rates for MP3 files.

Switching from one to the other means resampling, which rebuilds every sample. Pick the rate your destination uses at the start and keep the project there. If the sound will end up on video, choose 48 kHz.

In a browser the page decides the rate, not you. The Voice Recorder has no sample rate or bit depth control. Its Download WAV button writes a 16-bit PCM file at whatever rate the browser decoded your take at, and it makes that file from the take the browser recorded, in a format the page names, such as WebM (Opus). The WAV is a copy of that take and not a better recording of it.

What does a higher sample rate cost?

File size, in direct proportion. Bytes per minute equal the sample rate, times the bytes in each sample, times the channels, times 60. Decimal megabytes, for stereo:

  • 44.1 kHz, 16-bit: 10.6 MB a minute.
  • 48 kHz, 16-bit: 11.5 MB a minute.
  • 48 kHz, 24-bit: 17.3 MB a minute, or 1.04 GB an hour.
  • 96 kHz, 24-bit: 34.6 MB a minute, or 2.07 GB an hour.
  • 192 kHz, 24-bit: 69.1 MB a minute, or 4.15 GB an hour.

Mono is half of each figure, so an hour of 48 kHz, 24-bit mono is 0.52 GB.

The rate also changes buffer time. The calculator's Sample rate presets are 44.1, 48, 88.2, 96, 176.4 and 192 kHz, plus Other for anything from 8 to 384 kHz, and it opens at 48 kHz with a 128-sample buffer. That buffer lasts 2.90 ms at 44.1 kHz, 2.67 ms at 48 kHz, 1.33 ms at 96 kHz and 0.67 ms at 192 kHz. Doubling the rate halves the time, but the computer then has twice as many samples to process each second.

What is bit depth?

Bit depth is the number of bits in each sample. 16 bits give 65,536 possible levels and 24 bits give 16,777,216.

Each bit adds about 6 dB of range. 16-bit holds about 96 dB between full scale and the format's noise, and 24-bit holds about 144 dB. Wikipedia's page on audio bit depth makes the same point and adds that sensors and microphones rarely exceed 130 dB, so the 24-bit format is not what limits a recording. The analog circuit is.

Bit depth does not set loudness. A 16-bit file is not quieter than a 24-bit one. Its noise floor sits higher below full scale.

Why record at 24-bit?

For headroom. Digital clipping cannot be undone, so the safe habit is to record with the peaks well below full scale. Wikipedia notes that higher bit depths in the studio make headroom available while keeping the same dynamic range, which reduces the risk of clipping without raising quantization error at low levels.

Work it out. Peaks 20 dB below full scale cost 20 divided by 6.02, a little over three bits. Of 16 bits that leaves about 76 dB. Of 24 bits it leaves about 124 dB, which is more than the roughly 123 dB that Wikipedia gives for converters. Apple's page recommends 24-bit WAV for podcast delivery and accepts 16-bit as the minimum. The podcast loudness checklist covers the rest of an episode.

After recording, drop a take on the loudness meter. Its True peak readout shows how close the take came to 0 dBTP.

What does 32-bit float add?

A float file stores each sample as a number with a movable point and not as a whole number between fixed limits. Wikipedia notes that WAV supports it and that the spacing between float values grows with the value.

The Vocal Remover shows the difference. The result screen has an Export format menu with "WAV (16-bit)", "WAV (24-bit)", "WAV (32-bit float)" and FLAC, and the page says its stems are stereo at 44.1 kHz. The 16-bit and 24-bit writers clip any sample beyond full scale and add a small random noise called dither before rounding. The 32-bit float writer stores each sample as it is, with no clipping, so a float file can hold a value above 0 dBFS that the others cannot.

Whether your own file holds any such value depends on how it was made. Use float for files you will process further. Apple's page lists 16-bit and 24-bit, not float, as delivery formats.

What happens when a file is converted down?

Lowering bit depth rounds every sample to a coarser grid. Rounding error that follows the signal sounds like distortion on quiet passages. Dither replaces it with a small amount of random noise, as the Wikipedia page on dither explains, and it is applied at the last conversion to 16-bit.

Lowering the sample rate removes everything above the new half rate. Going from 96 kHz to 48 kHz removes nothing below 24 kHz.

Raising either one adds nothing. A 16-bit file saved as 24-bit has the same detail in a larger file, and the guide on MP3 bitrate and audio formats says the same of sample rate.

The MP4 to MP3 converter shows both rules. It keeps 32, 44.1 and 48 kHz as they are. Other rates in the 44.1 family, such as 22.05 and 88.2 kHz, become 44.1 kHz, and every other rate becomes 48 kHz, so a 96 kHz file comes out at 48 kHz. Its WAV choice is 16-bit, whatever the source was.

What does our catalog show?

Makers of audio interfaces list their figures, and we counted them without measuring anything. In our catalog 253 of 267 interfaces list a top sample rate, and at least half of them list exactly 192 kHz. The range runs from 44.1 to 768 kHz. 197 list a bit depth, and at least half of those list exactly 24. The range runs from 16 to 32.

The audio interface guide has the rest of the spec sheet. Since most makers list the same two figures, they will not separate one interface from another.

Checks before you record

  • Set the project to 48 kHz if video is involved. For music alone, 44.1 and 48 kHz both cover the range of hearing, so pick one and stay with it.
  • Record at 24-bit and keep peaks well below 0 dBFS.
  • Do not record at 192 kHz without a reason. It costs four times the space of 48 kHz.
  • Convert to 16-bit once, at the end, with dither.
  • Keep the 24-bit original after exporting an MP3 or a 16-bit WAV.

Sources

More guides