The RAID calculator for system administrators
From a two-bay NAS to a 24-disk backup server: model RAID 0 to 60, RAID-Z1/Z2/Z3 and SHR, estimate rebuild time and the odds of a second failure, and export the result.
Set up the array with your disks
The calculator handles disks of different sizes, hot spares, nested levels and several ZFS vdevs. Results update as you type and the address of the page keeps the configuration.
Open the advanced settings to match your hardware: disk speed, IOPS, error rate, failure rate and rebuild priority.
Load an example
How to read the results
Each number answers a practical question: how much can I store, how many disks can fail, how fast is it and how exposed am I while it rebuilds.
Usable space
What is left for volumes, before the file system. Shown in decimal TB, as printed on the disk label, or in binary TiB, the unit used by Linux, ZFS and Windows.
Protection
Capacity taken by parity or mirror copies. It is the price of redundancy: one disk for RAID 5 and RAID-Z1, two for RAID 6, half the array for RAID 10.
Unused
Space the level cannot use when disks have different sizes. In classic RAID every member drops to the smallest disk; SHR and separate ZFS vdevs reduce the waste.
Reserved and spare
ZFS keeps about 1/32 of the pool free (slop space, capped at 128 GiB in recent OpenZFS). Hot spares hold no data until they replace a failed disk.
Failures tolerated
The first number holds for any disks, the second is the maximum when failures land in different groups. An 8-disk RAID 10 survives 4 failures only if no pair loses both disks.
Theoretical performance
Multiples of a single disk, without cache. Random writes include the write penalty: 2 I/O for mirrors, 4 for single parity, 6 for dual parity. RAID-Z gives about one disk of IOPS per vdev.
Choosing a RAID level by workload
Starting points we also use in consultancy. The calculator lets you check them against your own hardware: click “try” to load an example.
| Workload | Suggested level | Why | Example |
|---|---|---|---|
| Virtual machines, databases, mail | RAID 10 or ZFS mirrors | Many small random writes: low write penalty, and a rebuild reads back a single disk. | try |
| File server and shared folders | RAID 6 or RAID-Z2 | A good balance of space and protection; dual parity also covers a read error during the rebuild. | try |
| Backup repositories, large archives | RAID 60 or several RAID-Z2 vdevs | High capacity with smaller groups: shorter rebuilds and a spread risk. | try |
| Video surveillance (NVR) | RAID 5 with few disks, RAID 6 above 4 | Continuous sequential writes; with large disks single parity leaves the array exposed for too long. | try |
| Home or small office NAS with mixed disks | SHR or SHR-2 | Uses disks of different sizes and grows by replacing one disk at a time. | try |
| Scratch space, render cache, data you can regenerate | RAID 0 | Top speed and capacity, as long as losing the volume costs nothing. | try |
Whatever the level, keep a backup on separate storage: RAID does nothing against deletion, ransomware or a bad firmware update. Disks from the same batch also age together, so a second failure during a rebuild is more common than the datasheet suggests.
How the calculator works
We publish the formulas so you can check every result. They are deliberately simple: good enough to compare options, not a substitute for testing the real system.
Not modelled: controller and SSD caches, compression, deduplication, RAID-Z padding with small records and the space NAS systems reserve for their own partitions. Check the vendor documentation for model-specific limits.
- Capacity
- RAID 5/6: (n − p) × smallest disk. RAID-Z: sum over vdevs of (disks − p) × smallest disk of the vdev, minus slop space. SHR: for each capacity layer, (disks in the layer − p) × layer height.
- Rebuild time
- Member capacity ÷ (sequential speed × rebuild percentage). ZFS resilvers only allocated data, so pool fill counts too.
- Read errors (URE)
- P = 1 − e−bits read / URE rate, where bits read are the data on the surviving disks of the group. At 1014 bits that is on average one error every 12.5 TB read.
- Further failures during the rebuild
- Probability that enough disks in the group fail to exceed the remaining redundancy, assuming independent failures at a constant AFR during the rebuild window.
Sources and technical documentation
RAID calculator: questions and answers
Why does SHR give more space than RAID 5 with mixed disks?
Because it does not trim every disk to the smallest one. It cuts the disks into layers of equal size, protects each layer with its own array and combines them with LVM, so larger disks keep contributing as long as at least two of them share a layer.
Why does rebuilding a large RAID take so long?
The controller has to write the whole replacement disk, reading all the others at the same time, usually at reduced priority so the array stays usable. At 100 MB/s a 20 TB disk takes more than two days.
How does the URE rate affect a rebuild?
The more data you read back, the more likely you meet a sector that cannot be read. With no parity left, that error cannot be corrected and the rebuild may stop. Enterprise disks rated at 10^15 bits lower the risk tenfold compared with 10^14.
Hot spare or RAID 6?
They solve different problems: a hot spare shortens the time without redundancy, RAID 6 keeps a second level of protection during it. With large disks dual parity matters more; a spare is a useful extra where nobody can swap a disk quickly.
Why is RAID not enough to protect data?
Because it protects against one kind of fault, a failed disk. Accidental deletion, encryption by ransomware, a faulty controller or a fire hit every disk in the array. A separate, versioned backup is still needed.
TB or TiB: which number will my system show?
Most operating systems and ZFS report binary units (TiB), even when they label them TB. One TB is about 0.909 TiB, so a 64 TB volume appears as roughly 58 TiB. The calculator shows both.
Which RAID level is fastest for databases?
RAID 10, or striped ZFS mirrors, because small random writes dominate and mirrors have the lowest write penalty. Parity levels win on capacity, not on IOPS.
My RAID has more failed disks than it can tolerate: is the data gone?
Not necessarily. Disks marked as failed often still read most sectors. Power the system down, label the disks with their slot and avoid forced rebuilds or reinitialisation. We image every disk and reconstruct the array from the copies.
Has the array already failed?
Switch it off, do not force a rebuild and do not reinitialise the disks. Our laboratory clones every member and rebuilds the array virtually from the copies: RAID 0, 1, 5, 6, 10, 50, 60, RAID-Z and SHR, from servers and NAS units.