Personal email attachment storage calculator

Calculate stored attachment bytes and unique-content bytes with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use stored attachment bytes and unique-content bytes to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

JSON Attachments [message ID,content identifier,size bytes]
[["M1","X",1000],["M2","X",1000],["M3","Y",500]]
Stored attachment bytes
2500
Unique-content bytes
1500
Duplicate storage potential bytes
1000

Try another scenario

JSON Attachments [message ID,content identifier,size bytes]
[["M1","X",1000],["M2","X",1000],["M3","Y",500],["M4","Y",500]]
Stored attachment bytes
3000
Unique-content bytes
1500
Duplicate storage potential bytes
1500
Calculation method

Calculation method

Stored attachment bytes

sum(r[2] for r in a)

Unique-content bytes

sum(next(r[2] for r in a if r[1]==k) for k in sorted({r[1] for r in a}))

Duplicate storage potential bytes

sum(r[2] for r in a)-sum(next(r[2] for r in a if r[1]==k) for k in sorted({r[1] for r in a}))

Symbols and units
a
JSON Attachments [message ID,content identifier,size bytes]

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Calculation steps and notation

sum(list) adds all entries in the list.

Assumptions & limits

Assumptions & limits

  • Content identifiers supplied and same identifier must have same byte size. Potential deduplication assumes independent duplicate storage; provider-level compression/deduplication unknown. Supported limits: All numeric inputs must be finite. Only the explicitly described mathematical scenario is supported.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.