Compression ratio calculator

Ratio and percentage saved are two ways of saying the same thing, and people mix them up constantly.

Compression ratio
4.0000
= Exact Compression ratio
Space saved
75.000 %
Bits per original byte
2.0000
Corpus after compression
2.500
Storage saved
7.500
Show the working
  1. Original size = 1000
  2. Compressed size = 250
  3. Total data to store = 10
  4. Compression ratio = 1000 / 250 = 4
  5. Space saved = (1 - 250/1000) * 100 = 75
  6. Bits per original byte = 4 > 0 ? 8 / 4 : 0 = 2
  7. Corpus after compression = 4 > 0 ? 10 / 4 : 0 = 2.5
  8. Storage saved = 10 - 2.5 = 7.5

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • ratio = original / compressed
    • saving = 1 - compressed / original

    A 4:1 ratio is a 75% saving. A 75% ratio is not a thing — check which one a vendor means.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library