ZFS Storage Pool Capacity Calculator
Input Parameters
Computed Results
The ZFS storage pool capacity calculator determines the effective usable space and fault tolerance of your storage array. By accounting for disk count, drive size, redundancy levels (such as RAIDZ or mirroring), and file system overhead, it helps you accurately plan your storage architecture and understand the difference between raw and usable capacity.
Practical Use Cases
When designing a ZFS storage pool (zpool), the advertised size of your hard drives does not equal the amount of data you can actually store. System administrators and home lab enthusiasts use a zfs calculator to plan their storage arrays. Common applications include:
- Home NAS Planning: Determining how much usable space remains after configuring a RAIDZ1 or mirrored setup for media storage.
- Enterprise Storage Provisioning: Calculating the exact effective capacity in base-2 tebibytes (TiB) for RAIDZ2 or RAIDZ3 arrays to ensure sufficient space for virtual machines and databases.
- Overhead Estimation: Accounting for the built-in ZFS slop allocation and metadata overhead before purchasing hardware.
How to Use the Calculator
Follow these steps to estimate your storage pool's capacity:
- Number of Disks in Pool: Enter the total number of physical drives you plan to allocate to the storage pool or vdev.
- Disk Size (Decimal TB): Input the manufacturer's advertised size of a single disk in terabytes (e.g., 4, 8, 12).
- Redundancy Level: Select your desired fault tolerance configuration (None, Single/RAIDZ1, Double/RAIDZ2, Triple/RAIDZ3, or Mirror).
The calculator will output your raw capacity, usable capacity before overhead, effective capacity in both TB and TiB, and a description of your array's fault tolerance.
Formula & Calculation Explanation
The calculator determines your effective capacity through a multi-step process that accounts for redundancy and file system overhead.
1. Usable Disks Based on Redundancy
First, the system calculates how many disks actually contribute to storage capacity based on your chosen redundancy level:
- None (Stripe): All disks are usable.
- Single (RAIDZ1): Total Disks − 1
- Double (RAIDZ2): Total Disks − 2
- Triple (RAIDZ3): Total Disks − 3
- Mirror: Total Disks ÷ 2 (rounded down to the nearest whole pair)
2. Effective Capacity Calculation
Once the usable disks are determined, the calculator applies a standard ZFS overhead rate. This overhead accounts for slop allocation (typically 1/32 of the pool) and metadata, modeled here as approximately 3.61%.
3. TB to TiB Conversion
Operating systems often display storage in base-2 tebibytes (TiB) rather than base-10 terabytes (TB). The calculator converts the effective TB capacity to TiB using the following formula:
Verified Scenario Walkthroughs
Here are four verified examples demonstrating how different configurations impact usable capacity and fault tolerance:
Small home media server setup
A basic entry-level setup using 2 disks of 8 TB each with single redundancy (RAIDZ1):
- Raw Capacity: 16 TB
- Usable Capacity Pre-Overhead: 8 TB
- Effective Capacity: 7.71 TB (7.01 TiB)
- Fault Tolerance: Can tolerate failure of any 1 disk.
Standard enterprise RAIDZ2 array
A mid-range configuration using 8 disks of 12 TB each with double redundancy (RAIDZ2):
- Raw Capacity: 96 TB
- Usable Capacity Pre-Overhead: 72 TB
- Effective Capacity: 69.4 TB (63.12 TiB)
- Fault Tolerance: Can tolerate failure of any 2 disks simultaneously.
High-capacity archival storage pool
A high-value setup using 24 disks of 20 TB each with triple redundancy (RAIDZ3):
- Raw Capacity: 480 TB
- Usable Capacity Pre-Overhead: 420 TB
- Effective Capacity: 404.84 TB (368.2 TiB)
- Fault Tolerance: Can tolerate failure of any 3 disks simultaneously.
Performance-focused stripe configuration
An alternate mode using 6 disks of 4 TB each with no redundancy:
- Raw Capacity: 24 TB
- Usable Capacity Pre-Overhead: 24 TB
- Effective Capacity: 23.13 TB (21.04 TiB)
- Fault Tolerance: No disk redundancy. Any single disk failure results in complete data loss.
Inputs & Outputs Reference
| Field | Type | Description |
|---|---|---|
| Number of Disks in Pool | Input | Total number of physical drives allocated to the storage pool or vdev. |
| Disk Size (Decimal TB) | Input | Manufacturer advertised size of each disk in decimal terabytes (1 TB = 10^12 bytes). |
| Redundancy Level | Input | The fault tolerance configuration (e.g., mirror, single, double). |
| Raw Storage Capacity (TB) | Output | The total advertised capacity of all disks combined, ignoring redundancy. |
| Usable Capacity Pre-Overhead (TB) | Output | The capacity available after accounting for redundancy, but before ZFS formatting overhead. |
| Effective Capacity (TB) | Output | The final usable capacity in base-10 terabytes after ZFS overhead is deducted. |
| Effective Capacity (TiB) | Output | The final usable capacity in base-2 tebibytes, which is how most operating systems display storage space. |
| Calculated ZFS Overhead (%) | Output | The percentage of space reserved for ZFS slop allocation and metadata (calculated at 3.61%). |
| Fault Tolerance | Output | A description of how many disk failures the array can survive without data loss. |
Frequently Asked Questions
What is the difference between TB and TiB in ZFS?
Hard drive manufacturers measure capacity in base-10 terabytes (TB), where 1 TB equals 1,000,000,000,000 bytes. However, operating systems typically display storage in base-2 tebibytes (TiB), where 1 TiB equals 1,099,511,627,776 bytes. This conversion is why a drive always appears smaller in your operating system than on the physical label.
What is ZFS overhead?
ZFS overhead consists of space reserved by the file system to function properly. This includes 'slop allocation' (typically 1/32 of the pool size) to prevent the pool from becoming completely full and unmanageable, plus additional space for metadata. This calculator models the combined overhead at approximately 3.61%.
Why does mirroring reduce my capacity by half?
In a mirrored configuration, every piece of data is written identically to two disks to ensure high performance and fast rebuild times. Because every disk has an exact copy, the total usable capacity is exactly half of the raw capacity of the paired disks.