FullCalculator

Database Size Estimator

Table Size Estimation

Estimate the size of a database table

Growth Projection

Project database size growth over time

Formula

Total Size = (Row Size x Rows) + (Index Count x Index Size x Rows) + Overhead%

Frequently Asked Questions

How do I estimate row size?
Add up the storage for each column: INT = 4 bytes, BIGINT = 8, VARCHAR(n) = actual length + 1-2 bytes, TEXT = actual length + 2-4 bytes, DATETIME = 8 bytes, BOOLEAN = 1 byte. Then add 20-30% for row overhead (headers, null bitmaps, alignment).
Why are indexes so important for size estimation?
Indexes can be 20-50% of total database size. Each index stores a copy of the indexed columns plus row pointers. A table with 5 indexes may have indexes larger than the data itself. B-tree indexes also have page fill factor overhead (typically 70-90% full).

You may also need