RAID Calculator: Capacity, Fault Tolerance and Rebuild Risk
By FindMySum · Last reviewed
A RAID calculator tells you how much space an array of drives gives you, how many drive failures it survives, and what happens when one fails. RAID (a redundant array of independent disks) spreads data across several drives, trading some capacity for speed, safety or both. This page covers RAID 0, 1, 5, 6, 10, 50, 60 and the ZFS layouts RAIDZ1, RAIDZ2, RAIDZ3 and mirrors. It shows usable capacity in TB and TiB, efficiency, fault tolerance and relative performance, compares every level on your drives, and estimates the rebuild time and the chance of hitting an unreadable sector during a rebuild.
Capacity by RAID level
With n drives of size s (the smallest, if they differ):
| Level | Usable | Survives | Notes |
|---|---|---|---|
| RAID 0 | n × s | 0 | striping only; fastest, no protection |
| RAID 1 | s | n − 1 | every drive is a full copy |
| RAID 5 | (n − 1) × s | 1 | one drive of distributed parity |
| RAID 6 | (n − 2) × s | 2 | two parity blocks per stripe |
| RAID 10 | n/2 × s | 1 (up to n/2) | mirrored pairs, striped |
| RAID 50 | (n − g) × s | 1 (one per group) | g RAID 5 groups, striped |
| RAID 60 | (n − 2g) × s | 2 (two per group) | g RAID 6 groups, striped |
| RAIDZ1/2/3 | (n − p) × s | p | ZFS parity, p = 1, 2, 3 |
Worked example: four 8 TB drives in RAID 5
- Raw space: 4 × 8 = 32 TB.
- Usable: (4 − 1) × 8 = 24 TB, 75% efficiency.
- In binary units: 24 × 10¹² ÷ 2⁴⁰ = 21.83 TiB, which is what Windows will report as "21.8 TB".
- Fault tolerance: any one drive.
The same four drives give 32 TB in RAID 0 (no protection), 16 TB in RAID 6 or RAID 10, and 8 TB in a four-way RAID 1.
TB versus TiB
Drives are sold in decimal terabytes, 10¹² bytes. Operating systems often measure in tebibytes, 2⁴⁰ = 1,099,511,627,776 bytes, while still writing "TB". A tebibyte is about 10% bigger, so every array looks about 9% smaller once installed. The data storage converter does the conversion for any size.
Rebuild time
When a drive fails, the array runs degraded until a replacement is rebuilt. The rebuild writes one drive's worth of data, so the minimum time is the drive size divided by the rebuild rate. For an 8 TB drive at 100 MB/s:
8 × 10¹² bytes ÷ 100 × 10⁶ bytes/s = 80,000 s ≈ 22 hours.
Under normal load, rebuilds often run at a fraction of the drive's top speed and take longer. During that time a RAID 5 array has no redundancy left.
The unrecoverable read error problem
To rebuild a RAID 5 drive, the controller must read every bit on every surviving drive. Datasheets for desktop and NAS drives typically quote fewer than one unrecoverable read error (URE) per 10¹⁴ bits read; enterprise drives quote 10¹⁵ or 10¹⁶. For the default array, the rebuild reads three 8 TB drives: 24 × 10¹² × 8 = 1.92 × 10¹⁴ bits. At the 10¹⁴ spec,
P(at least one URE) = 1 − (1 − 10⁻¹⁴)^(1.92 × 10¹⁴) ≈ 1 − e^(−1.92) ≈ 85%.
At 10¹⁵ the same rebuild has about a 17% chance. These are worst cases built from the spec ceiling, and real drives usually do much better, but they explain why storage engineers moved from RAID 5 to RAID 6 and RAIDZ2 as drives grew. With double parity, a read error during a single-drive rebuild can be repaired from the second parity, so it is not data loss.
Mirrors are kinder: a RAID 10 rebuild reads only the failed drive's partner, so the default drives in RAID 10 would read one 8 TB drive instead of three.
Performance in brief
- Reads scale with the number of drives holding data: RAID 0 and mirrors read from every drive; parity levels read from the data drives.
- Small random writes cost extra disk operations: 2 for mirrors, 4 for RAID 5 (read data and parity, write both) and 6 for RAID 6.
- RAIDZ writes whole stripes, avoiding the read-modify-write penalty and the RAID 5 "write hole", but each vdev delivers roughly the random IOPS of a single drive, so ZFS pools for databases often use mirrors.
RAID is not a backup
RAID keeps data available through a drive failure. It does not protect against deleting the wrong folder, ransomware, a corrupted file system, a failing controller, theft or fire, and any change is written to every drive at once. Keep at least one separate backup, ideally off-site.
More questions
Can I mix drive sizes in a RAID array?
Usually, but every drive is treated as the size of the smallest. A RAID 5 of 4, 4, 8 and 8 TB drives gives 3 × 4 = 12 TB, leaving 8 TB on the larger drives unused. Some systems (Synology SHR, Unraid, ZFS after replacing every drive) can use more of the extra space, but standard RAID levels can't.
How many drives do I need for each RAID level?
RAID 0 and RAID 1 need two, RAID 5 three, RAID 6 and RAID 10 four (RAID 10 in even numbers). RAID 50 needs at least two RAID 5 groups of three (six drives) and RAID 60 two RAID 6 groups of four (eight). ZFS RAIDZ1, Z2 and Z3 are usually built with at least three, four and five drives.
What is a hot spare?
An installed drive that holds no data until another drive fails, when the controller starts rebuilding onto it automatically. It shortens the time the array runs degraded, which matters most at night or in remote sites, but it adds no capacity and no extra fault tolerance while the array is healthy.
Which RAID level is best for a home NAS?
For two drives, RAID 1. For three or four drives up to about 8 TB each, RAID 5 or RAIDZ1 is common; with larger drives, RAID 6 or RAIDZ2 is safer because rebuilds take a day or more. Whatever the level, keep a separate backup.
How long does a RAID rebuild take?
Roughly the drive size divided by the rebuild speed, if nothing else is using the array. An 8 TB drive at 100 MB/s takes about 22 hours; a 20 TB drive takes over two days. Busy arrays rebuild more slowly, and ZFS resilvers only copy the space actually used, which can be much faster on a half-empty pool.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.