How RAID capacity is calculated
Every level below treats each drive as the size of the smallest drive in the array (s), with n drives in total.
| Level | Usable space | Minimum drives | Drives that can fail |
|---|---|---|---|
| RAID 0 | n × s | 2 | 0 |
| RAID 1 | s | 2 | All but one |
| RAID 5 | (n − 1) × s | 3 | 1 |
| RAID 6 | (n − 2) × s | 4 | 2 |
| RAID 10 | n × s ÷ 2 | 4 (even) | 1 per mirror pair |
| RAIDZ1 | ≈ (n − 1) × s | 2 | 1 |
| RAIDZ2 | ≈ (n − 2) × s | 3 | 2 |
| RAIDZ3 | ≈ (n − 3) × s | 4 | 3 |
Example: four 4 TB drives in RAID 5 give 12 TB of usable space, shown as about 10.91 TiB by Windows. One drive's worth of space holds parity, so any one drive can fail and the array rebuilds onto a replacement.
The RAID levels in plain English
- RAID 0 joins drives into one fast, large volume with no protection. One failed drive loses everything.
- RAID 1 (mirror) keeps a full copy on every drive. Safe and simple, but you get only one drive's worth of space.
- RAID 5 and RAIDZ1 spend one drive's worth of space on parity and survive one failure. If a second drive fails before the rebuild finishes, the data is lost.
- RAID 6 and RAIDZ2 spend two drives' worth and survive any two failures, which is why they are the common choice for arrays of large drives.
- RAIDZ3 spends three drives' worth and survives three failures.
- RAID 10 mirrors pairs of drives and joins the pairs. Only half the raw space is usable.
RAIDZ is ZFS's own version of parity RAID, used by TrueNAS and available in Proxmox. The OpenZFS manual describes its capacity as approximate, because ZFS also stores its own metadata. For choosing between storage-first and virtual-machine-first systems, see Proxmox vs Unraid.
Sources
- Dell: What are the different RAID levels and their specifications (minimum drives and fault tolerance for RAID 0, 1, 5, 6 and 10)
- OpenZFS zpoolconcepts(7) manual (RAIDZ parity, minimum devices and approximate capacity)
Frequently asked questions
Which RAID level is best for a home NAS?
For four or more drives, RAID 6 or RAIDZ2 is the safer choice because it survives two failed drives. RAID 5 or RAIDZ1 gives more space but survives only one. For two drives, a mirror (RAID 1) is the usual choice.
Why does my array show less space than this calculator?
Two reasons. Drive makers count 1 TB as 1,000,000,000,000 bytes, while Windows counts in TiB, which is about 9% smaller: that is why the calculator shows both. File systems also reserve some space for their own use. ZFS RAIDZ in particular holds approximately, not exactly, the amount shown.
Can I mix drive sizes?
Yes, but standard RAID and RAIDZ use only as much of each drive as the smallest one. Three drives of 4, 4 and 8 TB in RAID 5 give 8 TB of usable space, and 4 TB of the 8 TB drive goes unused. Unraid's array works differently and can use mixed sizes fully.
Is RAID a backup?
No. RAID protects against a drive failing. It does not protect against deleting a file by mistake, ransomware, fire or theft, because those affect every drive at once. Keep a separate backup of anything important.