One compression result can be written as 5:1, as 80% saved or as 0.2. All three describe the same file, and mixing them up is an easy way to misread a compression claim. Which number is which, and which direction does each one point?

This guide gives the formulas, a conversion table you can keep, and the situations where the numbers mislead. After reading, you will be able to take any two file sizes, state the result in the form someone else expects, and spot when a quoted figure is ambiguous.

One result, four ways to write it

Every form starts from two sizes in the same unit: the original size and the compressed size.

Form Formula Example: 10 MB becomes 2 MB
Compression ratio original ÷ compressed 10 ÷ 2 = 5, written 5:1
Percent saved (1 − compressed ÷ original) × 100 (1 − 0.2) × 100 = 80%
Space saved original − compressed 10 − 2 = 8 MB
Fraction remaining compressed ÷ original 2 ÷ 10 = 0.2

Here MB means 1,000,000 bytes. The compression ratio calculator returns the first three from the two sizes you enter.

Each form answers a different question. The ratio is handy for comparing two methods on the same file. Percent saved is easy to grasp at a glance. Space saved tells you how much room you gain, which matters when you are filling a drive or a transfer quota. The fraction remaining is handy for planning: multiply it by the size of a new batch of similar files to estimate the result. Example: a further 40 MB of similar material at 0.2 would come to about 8 MB. That estimate only holds when the new files resemble the old ones.

Worked example. Example: a folder of 250 MB compresses to 180 MB. Ratio: 250 ÷ 180 = 1.39, so about 1.39:1. Percent saved: (1 − 180 ÷ 250) × 100 = 28%. Space saved: 250 − 180 = 70 MB. Fraction remaining: 180 ÷ 250 = 0.72. The ratio sounds modest because it is: 28% saved is a small win next to the 80% in the first table.

Converting between ratio and percent saved

The two forms are linked by percent saved = (1 − 1 ÷ ratio) × 100 and ratio = 1 ÷ (1 − percent saved ÷ 100). This table applies the first formula:

Ratio Percent saved
1.25:1 20%
2:1 50%
4:1 75%
5:1 80%
10:1 90%
20:1 95%
100:1 99%

The table shows diminishing returns. Going from 2:1 to 4:1 removes another 25 percentage points of the original size. Going from 10:1 to 20:1 removes only 5 more. A bigger ratio is always better in this direction, but the gain in space shrinks as the ratio grows.

Which way around? Two conventions

Not everyone divides the same way. A university algorithms course defines the compression ratio as the bits in the compressed version divided by the bits in the original, so a smaller number is better. This site, and the calculator, divide original by compressed, so a bigger number is better. Neither is wrong. They are reciprocals: 2 ÷ 10 = 0.2 in one, 10 ÷ 2 = 5 in the other.

Percentages add a second layer. A web-media guide to audio codecs says lossless compression is unlikely to get more than 40 to 50 percent compression, and its FLAC entry reads "up to 40-50% size reduction." There, the percentage is the share of the size removed, which is percent saved.

Whenever you quote a result, say which one you mean. "Saved 80%" and "5:1" are clear. A bare "80% compression" is not.

Reading the number sensibly

A ratio of 1:1 means nothing changed. A ratio below 1:1 means the output grew. Example: 1,000 bytes that become 1,003 bytes give 1,000 ÷ 1,003 = 0.997:1, or −0.3% saved. The DEFLATE specification states that a simple counting argument shows no lossless method can compress every input, so ratios below 1:1 are possible in principle.

Be clear about what counts as the compressed size. A finished file carries framing as well as data. The gzip format, for instance, puts a 10-byte header and an 8-byte trailer around the compressed blocks, as described in how DEFLATE works. Example: a 100-byte input whose compressed data takes 60 bytes becomes 78 bytes once the 18 bytes of framing are added. The ratio is 100 ÷ 78 = 1.28:1, against 100 ÷ 60 = 1.67:1 if you ignore the framing. On large files the difference is invisible. On tiny ones it matters.

The ratio also depends on the data. The same specification says English text usually compresses by a factor of 2.5 to 3 with DEFLATE. In this guide's terms that is 2.5:1 to 3:1, or 60% to 66.7% saved. It is a statement about one format and one kind of data, so do not carry it over to photos or music.

For streams, compare rates instead of sizes. Example: uncompressed stereo audio at 44,100 samples per second and 16 bits runs at 44,100 × 16 × 2 = 1,411,200 bit/s. If an encoded copy runs at 128,000 bit/s, the ratio is 1,411,200 ÷ 128,000 = 11.025:1. The 128,000 is an assumed figure for the example. For bitrate basics, see what bitrate means.

Common mistakes

  • Mixing decimal and binary units. A MB is 1,000,000 bytes and a MiB is 1,048,576 bytes, a distinction NIST sets out in its binary prefix standard. Example: 100 MiB is 104,857,600 bytes. Compared with a 50 MB result (50,000,000 bytes), the true ratio is 2.097:1, not the 2:1 you get from 100 ÷ 50. See GB vs. GiB.
  • Flipping the division. Original ÷ compressed gives 5; compressed ÷ original gives 0.2. Check which one a source uses before comparing numbers.
  • Averaging ratios across files. Example: file A goes from 10 MB to 5 MB (2:1) and file B from 90 MB to 80 MB (1.125:1). The average of the two ratios is 1.56, but the total is 100 MB to 85 MB, a ratio of 1.18:1. Add the sizes first, then divide.
  • Treating a high ratio as high quality. The ratio measures size only. A lossy method can reach a large ratio and still look or sound worse. See lossless vs. lossy compression.
  • Quoting a ratio without the data. A ratio of 3:1 on text says little about what a photo will do.

FAQ

What is the compression ratio formula?

Divide the original size by the compressed size: ratio = original ÷ compressed. A 10 MB file that becomes 2 MB has a ratio of 5:1. Some sources divide the other way, so check the direction.

What is a good compression ratio?

There is no universal answer. It depends on the data and the method. The same method can give very different ratios on text, programs and photos, and lossy methods can go further than lossless ones.

Can the compression ratio be less than 1?

Yes. If the output is larger than the input, the ratio falls below 1:1 and the percent saved turns negative. This can happen with data that has no pattern to remove.

How do I turn a ratio into a percentage?

Use (1 − 1 ÷ ratio) × 100. For 4:1 that is (1 − 0.25) × 100 = 75% saved. Going back, ratio = 1 ÷ (1 − percent saved ÷ 100) turns 75% into 4:1.

Sources

  1. Princeton University, Sedgewick and Wayne, 5.5 Data Compression (Algorithms lecture slides). Accessed November 6, 2026.
  2. MDN Web Docs, Web audio codec guide. Accessed November 6, 2026.
  3. IETF, RFC 1951: DEFLATE Compressed Data Format Specification version 1.3. Accessed November 6, 2026.
  4. IETF, RFC 1952: GZIP File Format Specification version 4.3. Accessed November 6, 2026.
  5. NIST, Definitions of the SI units: The binary prefixes. Accessed November 6, 2026.