Database index storage estimate calculator

A user-supplied per-row model.

Your inputs

Use the units shown.

Raw index bytes
24,000,000
Estimated index bytes
30,000,000
Estimated index (MiB)
28.61022949

Your calculation
How is this calculated?

Rows × (key bytes + pointer bytes).

Raw bytes × (1 + overhead percentage/100).

Estimated bytes ÷ 1,048,576.

A user-supplied per-row model. Overhead is added to raw key-plus-pointer storage; it is not a fill factor. Excludes compression, variable-length keys, engine-specific headers, replicas and write-ahead logs.

OpenStax: percentages and proportions ↗

Try an example

Worked example

Raw index bytes: 24,000,000

Inputs
  • Indexed rows: 1000000
  • Key bytes per row: 16
  • Pointer bytes per row: 8
  • Additional storage overhead (%): 25

Compare inputs

Raw index bytes: 16,000

Inputs
  • Indexed rows: 1000
  • Key bytes per row: 10
  • Pointer bytes per row: 6
  • Additional storage overhead (%): 0
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.