Skip to main content
Calcimator

Database Sizing Calculator

Estimate database storage, IOPS, and RAM requirements from row count and query patterns.

Inputs

%
%

Results

Total storage needed (GB)

12.4

Required IOPS

1,450

Recommended RAM (GB)

5

Raw data size (GB)2.38
Index overhead (GB)3.58
Single instance storage (GB)6.2
Connection pool size67
Storage in 12 months (GB)22.26
How to Use This Calculator
  1. Enter the Total Row Count and Average Row Size (bytes) for your primary table.
  2. Input the number of Indexes and their Index Size % of data overhead.
  3. Set Reads per Second and Writes per Second from your application metrics.
  4. Enter Monthly Growth Rate % and Replication Factor.
  5. Review Total Storage Needed (GB) and Total IOPS to select the right database instance size.

How the result changes with Total row count

Total row countTotal storage needed (GB)Required IOPSRecommended RAM (GB)
100,000,000,000123,977.661,45044,585
350,000,000,000433,921.811,450156,045
650,000,000,000805,854.81,450289,798
900,000,000,0001,115,798.951,450401,259

What each input means

Total row count
Total number of rows across primary tables.
Avg row size (bytes)
Average size of a single row including all columns (typically 100-1000 bytes).
Number of indexes
Total secondary indexes across tables.
Index size % of data
Each index adds this percentage of the data size (B-tree ~20-40%).
Reads per second
Average read queries per second hitting the database.
Writes per second
Average INSERT/UPDATE/DELETE operations per second.
Monthly growth rate %
Expected monthly data growth rate.
Replication factor
Number of data copies (1 = no replication, 2 = primary + 1 replica).

What each result means

Total storage needed (GB)
Total disk space including data, indexes, WAL, and replication.
Required IOPS
Estimated IOPS needed to handle read + write load.
Recommended RAM (GB)
RAM needed to keep working set and indexes in memory.
Raw data size (GB)
Data size before indexes and overhead.
Index overhead (GB)
Space consumed by all secondary indexes.
Single instance storage (GB)
Total per-instance storage (data + indexes + WAL).
Connection pool size
Recommended database connection pool size.
Storage in 12 months (GB)
Projected total storage after 12 months of growth.

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    4 parameters
    Total row count = 10000000, Avg row size (bytes) = 256, Number of indexes = 5, Index size % of data = 30 = 8 input(s) provided
  2. Calculate Total storage needed
    Total storage needed = singleInstanceGB * replicationFactor
    12.4 = 12.4
  3. Calculate Required IOPS
    Required IOPS = readIOPS + writeIOPS
    1450 = 1450
  4. Calculate Recommended RAM
    Recommended RAM = max(1
    5 = 5
  5. Calculate Raw data size
    Raw data size = (rowCount * avgRowSizeBytes) / (1024 * 1024 * 1024)
    2.38 = 2.38
  6. Calculate Index overhead
    Index overhead = rawDataGB * (indexCount * (indexOverheadPct / 100))
    3.58 = 3.58

Engine last updated .

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Technology & Computing.