Database Storage, IOPS & WAL Growth Calculator

Estimate PostgreSQL heap and index size, retention-limited growth, hot data, disk I/O, and WAL generation from table and traffic assumptions.

Jump to results

Inputs

Table and indexes
bytes
bytes
%
%
bytes
%
Growth and cache
months
%
GB
Disk and WAL workload
queries/s
queries/s
%
bytes

Results

Runs in your browser
Heap and indexes now
46.208GB
12-month storage
115.52GB
36-month storage
138.624GB

The modeled hot working set fits in the supplied RAM budget.

Table and index growth
Table and index growthHeap and indexes now 46.208 GB. 12-month storage 115.52 GB. 36-month storage 138.624 GB0 GB69.312 GB138.624 GBNow12 mo36 moHeap + indexesHeap alone
Detailed results
Current heap35.84 GB
Current indexes10.368 GB
12-month rows150,000,000
36-month rows180,000,000
Hot working set6.931 GB
Working set / available RAM40.345 %
Read IOPS400 IOPS
Write IOPS1,200 IOPS
Data page I/O1,600 IOPS
WAL write throughput0.72 MB/s
Data and WAL throughput13.827 MB/s
WAL generated per day62.208 GB

How the estimate works

Heap bytes ≈ rows × (payload + tuple overhead) ÷ fillfactor × (1 + bloat)

The heap estimate includes row overhead, free space from fillfactor, and extra bloat. Index size uses an average entry size, a B-tree overhead factor, and the same bloat factor. Use measured relation sizes to calibrate these estimates when available.

A forecast month is 30 days. When a retention period and a positive arrival rate are set, future rows are capped at arrivals within that retention horizon. The current size uses the supplied row count. Forecast points assume pruning is effective by that point.

Read IOPS comes from uncached page touches. Page I/O assumes 8 KiB pages and a steady write rate. WAL bandwidth uses bytes generated per write. Data page throughput and WAL throughput are added. A WAL segment retention policy, TOAST, maintenance spikes, and replica amplification need separate sizing.

Frequently asked questions

How does PostgreSQL fillfactor affect the storage estimate?

Lower fillfactor reserves free space on data pages. At a 90% fillfactor the model divides heap bytes by 0.9, adding roughly 11% before applying bloat.

How should I choose a PostgreSQL WAL bytes-per-write value?

Measure the change in WAL bytes across a representative busy interval and divide by writes in that interval. Include a checkpoint-heavy interval if full-page images affect the peak.

Can PostgreSQL cache-hit rate alone tell me how many IOPS I need?

Combine misses with the number of pages each query touches. A small miss percentage can still cause significant I/O on statements that scan many pages.