ForHosting KIT · Home, food & hobbies

Audio file size from sample rate

One minute of CD-quality stereo, 44,100 Hz at 16 bits, fills 10,584,044 bytes as a WAV file. Enter your sample rate, bit depth, channels and length to budget the disk for a session, a podcast or a field recording. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Sample rate
44,100
Bit depth
16
Channels
2
Duration
60
You get
Duration seconds
60
Duration minutes
1
Samples per channel
2,646,000
Total samples
5,292,000

An audio file size from sample rate calculator estimates how many bytes an uncompressed PCM recording will occupy before you press record. Engineers, podcasters, and field recordists pick a sample rate, a bit depth, a channel count, and a duration, then need a reliable disk budget for WAV or raw PCM.

Why uncompressed audio size is a simple product

An uncompressed recording stores every sample at a fixed size, with nothing squeezed out. The sample rate says how many snapshots each channel takes per second, the bit depth says how many bits each snapshot uses, and the channel count says how many tracks run side by side: one for mono, two for stereo. Multiply those three and you have the bits recorded every second. Multiply again by the length in seconds and divide by eight to turn bits into bytes. For one minute of CD-quality stereo that gives 10,584,000 bytes of sound, and the WAV file adds a small 44-byte header on top. Because it is a straight product, doubling any one setting doubles the size.

When to check it and the usual mistakes

Run the numbers before a long session, a live concert or a field trip, when running out of card space would cost you the take. The most common slip is forgetting the channel count, because a stereo file is twice the size of the same take in mono. Another is mixing bits and bytes, which puts the answer off by a factor of eight. People also confuse megabytes of one million bytes with the slightly larger binary units some systems display, so the same file can look smaller on screen. Finally, this is for uncompressed audio only: an MP3 or AAC file of the same length is far smaller and follows different rules.

How sample rate, bit depth, channels and duration become a file size

Linear pulse-code modulation stores every sample as a fixed-width integer or float with no compression, so the byte count is a product, not a guess. Sample rate is how many amplitude snapshots each channel takes per second: forty-four thousand one hundred hertz is Red Book compact disc, forty-eight thousand hertz is the video and broadcast studio default, and ninety-six thousand or one hundred ninety-two thousand hertz are high-resolution masters. Channel count is one for mono, two for stereo, six for five-point-one, and eight for seven-point-one.

Duration is the length of the take in seconds. One minute of compact-disc stereo is therefore forty-four thousand one hundred times sixteen times two times sixty divided by eight, which is ten million five hundred eighty-four thousand PCM bytes, or ten million five hundred eighty-four thousand forty-four bytes once the header is attached. Rejecting a zero or negative rate, a bit depth outside the closed set, a channel count outside one through thirty-two, or a non-positive duration keeps the product physical and finite.

Quote upload and archive costs

Podcast and field-recording teams convert a take list into WAV byte counts so they can size object storage, SD cards, and overnight backups.

Which bit depths are allowed?

Only the closed uncompressed PCM widths 8, 16, 24 and 32 bits per sample.

Is this the same as an MP3 or AAC size calculator?

No. Compressed formats depend on a chosen bitrate, not on sample rate times bit depth. This tool estimates uncompressed PCM and WAV only.

Is the audio file size from sample rate calculator free?

The browser tool is free and runs locally.

How big is one minute of CD-quality stereo audio?

10,584,044 bytes as a WAV file: 10,584,000 bytes of sound plus a 44-byte header. That comes from 44,100 samples per second, 16 bits and two channels over 60 seconds.

What bit rate does CD-quality audio use?

1,411.2 kbps for 44,100 Hz, 16-bit stereo. Multiply sample rate, bit depth and channel count to get bits per second; multiply by the length to get the whole recording.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/hobby/music-audio-size-sample-rate

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/hobby/music-audio-size-sample-rate \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sample_rate":44100,"bit_depth":16,"channels":2,"duration":60}'
{
  "sample_rate": 44100,
  "bit_depth": 16,
  "channels": 2,
  "duration": 60
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "hobby.music_audio_size_sample_rate",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

This tool multiplies those four numbers with the closed relation file_bytes equals sample_rate times bit_depth times channels times duration divided by eight, then adds the forty-four-byte standard WAV header so the published file_bytes matches a canonical PCM WAV. Non-positive rates, unknown bit depths, illegal channel counts, and non-positive durations fail with invalid_input and are never billed.

How sample rate, bit depth, channels and duration become a file size

Bit depth is the number of bits stored per sample on each channel: eight, sixteen, twenty-four, or thirty-two for the widths this calculator accepts. Multiply sample rate by bit depth by channel count to obtain the bit rate in bits per second; divide by eight and multiply by duration to obtain the PCM payload in bytes. A canonical RIFF WAVE header for uncompressed PCM is forty-four bytes, so file_bytes equals that payload plus forty-four.

How to call the API and what the response contains

Send a JSON body with four required fields. sample_rate is a finite number of hertz from one to three hundred eighty-four thousand and also accepts the aliases sample_rate_hz, rate, sr, and hz. bit_depth is an integer from the closed set eight, sixteen, twenty-four, or thirty-two, also accepted as bits, bit_depth_bits, depth, or bits_per_sample. channels is an integer from one to thirty-two, also accepted as channel_count, num_channels, ch, or channel. duration is a strictly positive length in seconds at most eighty-six thousand four hundred (twenty-four hours), also accepted as duration_s, seconds, length, time, or duration_seconds. Missing fields, non-numeric strings, non-finite values, unknown bit depths, and out-of-range numbers return invalid_input and are never charged. On success the body echoes the rounded sample_rate, integer bit_depth and channels, duration_seconds and duration_minutes, samples_per_channel and total_samples, bytes_per_sample, bit_rate_bps and bit_rate_kbps, pcm_bytes, wav_header_bytes (always forty-four), file_bytes, IEC sizes size_kib and size_mib, SI sizes size_kb and size_mb, a size_human string, the formula, a short English message, and an ordered steps array you can recompute by hand. Pricing is a flat $0.002 per successful request with unit item.

Studio checkpoints, limits, and what this calculator is not

Studio checkpoints are easy to memorize: one minute of compact-disc stereo is about ten point zero nine mebibytes as a WAV; three minutes of forty-eight kilohertz twenty-four-bit stereo is fifty-one million eight hundred forty thousand PCM bytes; one hour of ninety-six kilohertz twenty-four-bit stereo is about one point nine three gibibytes. Prefer this capability when you already know the four PCM parameters and only need the byte count; if you need to convert hertz to kilohertz or samples per second, use a dedicated sample-rate unit converter instead. Keep the sample rate inside the published band so the product stays finite in IEEE double precision on the Worker and in the browser. Prefer sending JSON numbers rather than pre-formatted strings when you control the client; string numbers are accepted only when they match a strict finite numeric pattern. When teaching, pair a compact-disc happy path with a deliberate zero sample rate or a twelve-bit depth to demonstrate the hard invalid_input path. This landing targets people searching for an audio file size calculator from sample rate, an uncompressed WAV size estimator, or a PCM disk-budget tool. It is not a compressed MP3 or AAC bitrate calculator, not a sample-rate converter, not a real-time recorder, and not a container muxer for BWF, RF64, or CAF extras. Failed tasks that return invalid_input do not consume prepaid balance. Round-trip checks are straightforward: recompute sample_rate times bit_depth times channels times duration over eight, add forty-four, and confirm it equals file_bytes after nearest-byte rounding.

Budget disk space before a session

Engineers enter session sample rate, bit depth, channel count and planned length, then reserve file_bytes on the recorder or DAW drive before tracking.

Unit tests for audio pipeline helpers

Developers feed known CD and studio vectors and assert pcm_bytes and file_bytes against golden fixtures without opening a real WAV writer.

How do you calculate uncompressed audio file size from sample rate?

Multiply sample rate in hertz by bit depth, channel count, and duration in seconds, then divide by eight for the PCM payload in bytes. Add 44 bytes for a standard PCM WAV header: file_bytes = sample_rate × bit_depth × channels × duration / 8 + 44.

Does the result include the WAV header?

Yes. pcm_bytes is the raw payload. wav_header_bytes is 44. file_bytes is the sum and matches a canonical RIFF WAVE file with no extra chunks.

Read the full KIT documentation →