Learn & Understand

Turning Sound Into Numbers: How Digital Audio Works

In a hurry? Skip straight to the numbers.

Open the Song File Size Calculator →

The song file size calculator estimates how large an audio file is from its bitrate and length. The concept of a "bitrate" for music points to a profound transformation: sound, a continuous physical wave, being turned into a stream of numbers that a computer can store, copy, and transmit. Understanding how digital audio captures a wave as data, and how clever compression shrinks that data by discarding what the ear cannot hear, explains both the calculator's math and one of the most consequential technologies in the history of music.

Capturing a Wave as Numbers

Sound in the physical world is a continuous, smoothly varying wave. To store it digitally, the wave is measured, sampled, many thousands of times per second, and each measurement is recorded as a number. Played back rapidly, this stream of numbers recreates the wave closely enough that the ear cannot tell the difference from the original. The more measurements taken per second and the more precisely each is recorded, the more faithfully the wave is captured, but also the more data is produced. This is the essence of digital audio: a wave rebuilt from a dense sequence of numbers.

The Bitrate Tells the Story

Bitrate is simply how much data is used to represent each second of sound. A higher bitrate means more data per second, capturing the sound in finer detail but producing a larger file; a lower bitrate means less data, a smaller file, but potentially a loss of quality. This is exactly the relationship the calculator uses: file size grows with both the bitrate and the length of the recording. The bitrate is the dial that trades fidelity against file size, and it directly determines how much storage a song consumes.

The bitrate trade-off
BitrateDetailFile size
HigherMore faithfulLarger
LowerLess faithfulSmaller

The Compression Revolution

Raw digital audio is data-heavy, which was a real problem when storage and internet connections were limited. The breakthrough that made digital music portable and shareable was compression that dramatically shrinks audio files with little audible loss. The clever trick is to discard information the human ear cannot actually perceive: sounds masked by louder ones, frequencies beyond our sensitivity, subtle details we would never notice missing. By throwing away only the imperceptible, compression achieves large size reductions while the music still sounds essentially the same to a listener.

Why Perceptual Coding Changed Music

This kind of compression, exploiting the limits of human hearing, made music files small enough to store thousands on a device and send across the internet in seconds, which transformed how music is distributed and consumed, ushering in the era of digital downloads and, eventually, streaming. The calculator's estimate is most straightforward for uncompressed or fixed-rate audio, and it notes that smarter, variable compression can shrink files further by spending data only where it is needed. Behind the simple size figure lies the remarkable achievement of turning a physical wave into numbers and then discarding just the parts no one can hear, the technology that put a music library in everyone's pocket.

For the analog storage counterpart, see the Vinyl Record Playback Time Calculator; to plan a track's length, the Song Length Calculator.

Ready to Put This Into Practice?

Now that you understand how it works, plug in your own numbers and get an instant, accurate result.

Use the Song File Size Calculator Now →