FLAC and MP3 are not two brands of the same thing. A FLAC file keeps every sample of the recording. An MP3 file gives up some of the information to reach a size you choose. That difference decides how their file sizes behave, and it is why you can calculate one size from settings but have to measure the other.

This guide sorts WAV, FLAC, MP3 and AAC into three groups, shows what sets each file's size, sizes one example track in every format, and explains how to use the compression ratio calculator on a file you measured.

Lossless and lossy in plain terms

RFC 9639, the FLAC specification, defines lossless compression as reducing the storage space needed without removing or irreversibly altering any of the data. Decompressing returns exactly the original. It defines lossy compression as the same goal reached by removing, irreversibly altering or only approximating information.

The two compressed groups are therefore different in kind. MDN's codec guide adds that lossy codecs nearly always produce significantly smaller audio than lossless ones, because lossless codecs have to be much more conservative.

A third group needs no compression at all. MDN's container guide describes WAV as containing uncompressed PCM audio. The same guide adds that nearly all WAV files use linear PCM. The formats fall into three groups:

  • Uncompressed: WAV with PCM audio.
  • Lossless: FLAC.
  • Lossy: MP3 and AAC.

The four formats side by side

Format Group What sets the file size Size from settings alone?
WAV (PCM) Uncompressed Sample rate, bit depth, channels and duration Yes, exactly
FLAC Lossless The audio itself No, measure the file
MP3 Lossy The bitrate setting (MDN lists 32 to 320 kbps in its MPEG-1 mode) Yes, as an estimate
AAC Lossy The bitrate setting (MDN lists it as arbitrary, up to 512 kbps) Yes, as an estimate

The WAV size comes from the PCM formula in sample rate and bit depth. The lossy sizes come from bitrate × seconds ÷ 8, an average when the encoder varies the rate. Both ignore the small amount of metadata a file carries. The audio file size calculator covers the uncompressed case.

Read the last column as the practical difference. For WAV, MP3 and AAC you can plan storage before you encode anything. For FLAC you can only plan after you have a real file to measure.

One track, four ways

Worked example. Example: a 4-minute (240-second) stereo track at 44,100 Hz and 16 bits.

  • WAV: 44,100 × 16 × 2 = 1,411,200 bit/s. Then 1,411,200 × 240 ÷ 8 = 42,336,000 bytes.
  • Lossy at 128 kbps: 128,000 × 240 ÷ 8 = 3,840,000 bytes.
  • Lossy at 320 kbps: 320,000 × 240 ÷ 8 = 9,600,000 bytes.

The compression ratio is the original size divided by the compressed size. The percent saved is (1 − compressed ÷ original) × 100. The table applies both to the settings above, plus two more. These are bitrate settings, so the sizes are calculations and not measurements of any encoder's output.

Stored as Bytes Ratio to WAV Percent saved
WAV (PCM) 42,336,000 1:1 0%
Lossy at 320 kbps 9,600,000 4.41:1 77.32%
Lossy at 256 kbps 7,680,000 5.51:1 81.86%
Lossy at 192 kbps 5,760,000 7.35:1 86.39%
Lossy at 128 kbps 3,840,000 11.03:1 90.93%

The same figures hold whether the lossy file is MP3 or AAC, because the formula uses only the bitrate. The FLAC row is missing on purpose. The next section explains why.

Why a lossless size is measured and a lossy size is chosen

FLAC works by prediction. The specification says each block of audio gets a predictor, and the difference between the prediction and the real signal is coded losslessly. If the predictor is effective, that difference needs fewer bits per sample than the original. If no usable predictor can be found for a block, the signal is stored uncompressed.

So the size of a FLAC file is an outcome of the audio. MDN notes that hiss, static and background noise add complexity, which generally reduces the compression that is possible. A lossy encoder works the other way around. You set the bitrate first, and the encoder decides what to discard to fit.

To find a lossless ratio, measure both files and put them in the compression ratio calculator. Suppose, purely to show the steps, that the WAV above is 42,336,000 bytes and the FLAC file you made from it is 25,000,000 bytes. The ratio is 42,336,000 ÷ 25,000,000 = 1.69:1, and 40.95% is saved. That 25,000,000 is an invented input. Your own file will give its own number, which is the point.

What the documentation says about choosing

MDN's codec guide gives a few plain rules. Choose lossless when you need archival-quality storage or when the audio will be remixed and compressed again, because recompressing lossy audio compounds the loss. For music in MP3 it suggests a bit rate of at least 192 kbps if possible. It describes AAC as designed to give more compression with higher fidelity than MP3.

Those are the documentation's statements about quality, and this guide does not add to them. For the general idea behind the two families, see lossless vs. lossy compression. For how a codec relates to the file that holds it, see codec vs. container.

Common mistakes

  • Assuming FLAC is a fixed fraction of WAV. Its size follows the audio. Measure the file instead of applying a rule of thumb.
  • Converting a lossy file to a lossless one and expecting a restoration. A lossless encoder preserves the samples it is given exactly. The detail the lossy step removed stays removed, and the file grows.
  • Comparing sizes across different settings. A 48,000 Hz, 24-bit master and a 44,100 Hz, 16-bit track are different sources. Compare like with like.
  • Treating the same bitrate as the same quality. Equal bitrates give equal sizes in MP3 and AAC. They do not guarantee equal results, since the codecs spend the bits differently.
  • Re-encoding lossy files several times. Each pass can add loss. Keep a lossless or uncompressed original for editing.

FAQ

Is FLAC better than MP3?

It depends on the job. FLAC returns the exact samples it was given, which suits archives and editing. MP3 reaches a much smaller size by discarding information, which suits storage and transfer. Neither is better in every case.

Does FLAC lose quality?

No. RFC 9639 defines the format as lossless, so decoding a FLAC file returns exactly the original data.

Which is smaller, MP3 or AAC?

The format does not decide it. Both are sized by the bitrate they were set to, so the same setting gives the same estimated size. The format affects how much of the original sound survives at that size.

Is every WAV file uncompressed?

Nearly all of them are. MDN says nearly all WAV files use linear PCM, and it lists other codecs that WAV can hold, with sparse support. Check the settings before you rely on the PCM formula.

Sources

  1. IETF, RFC 9639: Free Lossless Audio Codec (FLAC). Accessed November 6, 2026.
  2. Xiph.Org, FLAC - Format. Accessed November 6, 2026.
  3. MDN Web Docs, Web audio codec guide. Accessed November 6, 2026.
  4. MDN Web Docs, Media container formats (file types). Accessed November 6, 2026.
  5. MDN Web Docs, Digital audio concepts. Accessed November 6, 2026.