| title | Estimate the Size of a Table | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Use this procedure to estimate the amount of space that is required to store data in a table in SQL Server. | ||||||||||||||
| author | WilliamDAssafMSFT | ||||||||||||||
| ms.author | wiassaf | ||||||||||||||
| ms.reviewer | randolphwest | ||||||||||||||
| ms.date | 09/22/2025 | ||||||||||||||
| ms.service | sql | ||||||||||||||
| ms.subservice | supportability | ||||||||||||||
| ms.topic | how-to | ||||||||||||||
| ms.custom |
|
||||||||||||||
| helpviewer_keywords |
|
||||||||||||||
| monikerRange | >=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDE SQL Server Azure SQL Database Synapse Analytics PDW FabricSQLDB]
You can use the following steps to estimate the amount of space required to store data in a table:
-
Calculate the space required for the heap or clustered index following the instructions in Estimate the size of a heap or Estimate the size of a clustered index.
-
For each nonclustered index, calculate the space required for it by following the instructions in Estimate the size of a nonclustered index.
-
Add the values calculated in steps 1 and 2.