Audio File Size Calculator

Audio File Size Calculator lets you uncompressed PCM bytes equal duration × sample rate × channels × bit depth / 8. Enter your own values or load the worked example.

Method and calculation

Uncompressed PCM bytes equal duration × sample rate × channels × bit depth / 8.

Inputs and settings

Audio File Size Calculator accepts Duration (seconds) (minimum 0.000001); Sample rate (Hz) (minimum 0.000001); Bits per sample (minimum 8, maximum 64); Channels (minimum 1, maximum 32).

Worked example

Audio File Size Calculator example — Duration (seconds): 60; Sample rate (Hz): 44100; Bits per sample: 16; Channels: 2. Computed output: { "bytes": 10584000, "megabytes": 10.584 }

Output and limitations

Audio File Size Calculator: Use finite inputs. Results use double-precision arithmetic.

Technical references: JavaScript numerical operations

Audio File Size Calculator FAQs

Audio File Size Calculator applies the following rule to your input: Uncompressed PCM bytes equal duration × sample rate × channels × bit depth / 8. The worked example on this page uses the same processor as the result button.
Audio File Size Calculator has these boundaries: Use finite inputs. Results use double-precision arithmetic. Start by checking the duration (seconds) field against the units or format shown.
Audio File Size Calculator provides this sample: { "bytes": 10584000, "megabytes": 10.584 }. Use the sample button to reproduce it, then replace the inputs with your own values.