LISTEN · MEASURE · UNDERSTAND

PCM Payload vs MP3 Size: What You Can Calculate

PCM payload size follows duration, sample rate, channel count and bits per channel sample.

PCM payload size follows duration, sample rate, channel count and bits per channel sample. A compressed MP3 or AAC file needs codec and bitrate information instead. One arithmetic estimate cannot predict every encoded file or all browser working memory.

State the encoding assumptions

The recording-size helper estimates uncompressed payload. For one second at 48 kHz, stereo 16-bit PCM needs 192,000 bytes before a container header. Report those assumptions rather than calling the result the exact size of an arbitrary MP3.

Keep duration in frames

The frame-duration helper gives the time relationship. Whole-frame rounding can matter for a duration that does not align with the selected rate. A header, metadata chunk or compressed packet is separate from the basic sample payload calculation.

Distinguish Float32 processing memory

A browser can decode a compressed source into float samples regardless of the source's stored bit depth. At four bytes per channel sample, the sample buffer can exceed the compressed file size substantially. Additional FFT, display and playback buffers also need memory; payload arithmetic is not an availability guarantee.

Do not confuse frequency labels with sample format

The note-conversion tool maps a supplied signal frequency, not its file encoding. The note chart and equal-temperament explanation describe musical references. They do not establish codec support, sample rate or a decoded-memory bound for a file.

Frequently asked questions

Is one megabyte always one mebibyte?

No. Decimal MB uses one million bytes, while MiB uses1,048,576 bytes. Keep the displayed unit when comparing storage values. A unit mismatch can explain a difference without implying that either arithmetic result was calculated incorrectly.

Does doubling channels change pitch or duration?

It changes the count of stored channel samples at each time position under the same format. It does not inherently double elapsed time or musical frequency. Keep channel count, frame rate and signal frequency as separate properties of the task.