Calculator

Storage Estimation Calculator

Estimate total storage from records per day, record size, index overhead, replication and retention, with optional yearly growth.

Inputs

The payload as stored, after compression if any.

Indexes, headers and free space; 20 to 50% is typical for a relational table.

Results

Total storage

68.44 TB

With overhead and every replica, at the end of retention.

Raw data over retention
18.25 TB
Storage added per day (year 1)
37.5 GB
Raw data per day (year 1)
10 GB
Raw data in year 1
3.65 TB

How it works

Storage estimates compound several multipliers, and each one is easy to forget. Start with the raw bytes written per day, then add what the database stores on top of your payload: indexes, row and page headers, and free space left by updates and deletes. Then multiply by the number of copies kept for durability and by how long data is retained.

Replication is the multiplier people most often leave out. Three replicas triple the disk you pay for even though the application sees one copy. Backups and snapshots are a separate budget again.

Traffic rarely stays flat for years, so the calculator can grow daily writes by a fixed percentage each year. With 30% yearly growth, five years of retention holds about 9 years of today's write volume rather than 5. Use the result to choose between one large database, sharding, or moving cold data to cheaper object storage.

Formula

  1. raw per day = records per day × record size
  2. stored per day = raw per day × (1 + overhead) × replication factor
  3. year multiplier = 1 + (1 + g) + (1 + g)² + … over the retention years (= years when g = 0)
  4. raw total = raw per day × 365 × year multiplier
  5. total storage = raw total × (1 + overhead) × replication factor

Inputs

Every input with its unit, allowed range and default.
InputUnitRangeDefault
New records per dayrecords0 – 1,000,000,000,0005,000,000
Average record sizeThe payload as stored, after compression if any.KB0 – 1,000,000,0002
Index and storage overheadIndexes, headers and free space; 20 to 50% is typical for a relational table.%0 – 50025
Replication factorcopies1 – 103
Retentionyears0.1 – 505
Yearly growth in writes%0 – 1,0000

Assumptions

  • Decimal units: 1 KB = 1,000 bytes, 1 TB = 10¹² bytes. A drive or volume sold as 1 TB holds that many bytes.
  • A year has 365 days. Growth applies once a year, compounding; a fractional final year counts pro rata.
  • Records are kept for the whole retention period and then deleted. Updates in place are covered by the overhead figure.
  • Backups, snapshots, write-ahead logs and free disk headroom (keep disks below roughly 70 to 80% full) are not included.

Worked example

An event store writes 5 million records a day at about 2 KB each. Indexes and storage overhead add 25%, data is kept on 3 replicas for 5 years, and the write volume is flat.

Inputs
New records per day5,000,000 records
Average record size2 KB
Index and storage overhead25 %
Replication factor3 copies
Retention5 years
Yearly growth in writes0 %
Results
Total storage68.44 TB
Raw data over retention18.25 TB
Storage added per day (year 1)37.5 GB
Raw data per day (year 1)10 GB
Raw data in year 13.65 TB

10 GB of raw data a day becomes 37.5 GB of disk a day once overhead and replicas are counted. Over five years that is 18.25 TB of raw data and about 68.4 TB of provisioned storage, too much for one comfortable database node, so plan for sharding or tiering old data to object storage.

Load this example into the calculator