Storage Tools
RAID Calculator
Usable storage capacity for RAID and NAS arrays.
Usable capacity
12 TB
Shown as about 10.91 TiB in Windows/Linux
- Array
- 4 × 4 TB
- Efficiency
- 75.0%
RAID 5 with 4 × 4 TB
| Raw capacity | 16 TB |
|---|---|
| Usable capacity | 12 TB (10.91 TiB) |
| Used for parity or mirroring | 4 TB |
| Storage efficiency | 75.0% |
| Fault tolerance | Survives any 1 disk failure. |
| Hot spares | 0 |
| Total disks required | 4 |
| Read performance | up to ~4× single-disk reads |
| Write performance | up to ~3× single-disk writes, write penalty 4 |
| Minimum disks for RAID 5 | 3 |
Performance figures are approximations for sequential work on healthy disks. Real throughput depends on the controller, the cache, the workload and whether the array is rebuilding.
Disk layout
Capacity given up to redundancy, one block per disk. Parity is spread across all disks in a real array.
- Data
- Data
- Data
- Parity
- D
- Data
- P
- Parity
- M
- Mirror
- S
- Hot spare
What to watch for
Single parity on 4 TB disks
Rebuilding one 4 TB disk reads every other disk in the array from end to end, and the array has no redundancy left until it finishes. A second failure or an unrecoverable read error during that window loses everything. RAID 6 keeps a second parity disk for exactly this.
Needs a GPT partition table
At 12 TB the volume is past the 2 TiB an MBR partition table can address. Use GPT when you partition it, or the usable space will stop at 2 TiB.
Rebuild time, roughly
Replacing one failed 4 TB disk takes about 11 hours at a sustained 100 MB/s. This is an estimate: a rebuild on an array that is still serving work is routinely slower, sometimes by several times.
RAID is not a backup
Redundancy protects against a disk failing. It does nothing about deletion, corruption, ransomware, theft or fire, all of which are written faithfully to every disk at once. Keep a separate copy of anything you would miss.
Recommended file system
XFS or ext4 on Linux, NTFS on Windows
Pick the default for the operating system that will mount it. Choose an intended use above for something more specific.
Compare RAID levels
The same 4 disks of 4 TB across every level they are valid for.
| Level | Usable | Efficiency | Survives |
|---|---|---|---|
| RAID 0 | 16 TB | 100.0% | None |
| RAID 1 | 4 TB | 25.0% | 3 disks |
| RAID 5 Selected | 12 TB | 75.0% | 1 disk |
| RAID 6 | 8 TB | 50.0% | 2 disks |
| RAID 10 | 8 TB | 50.0% | 1 disk |
| RAID 50 | RAID 50 needs at least 6 disks. | ||
| RAID 60 | RAID 60 needs at least 8 disks. | ||
| RAID-Z1 | 12 TB | 75.0% | 1 disk |
| RAID-Z2 | 8 TB | 50.0% | 2 disks |
| RAID-Z3 | RAID-Z3 needs at least 5 disks. | ||
How much usable storage do I get with RAID?
Less than the disks add up to, and how much less depends entirely on the RAID level. Redundancy has to be stored somewhere, so some of the raw capacity goes to parity or to a second copy of the data. Striping alone keeps everything and protects nothing; mirroring halves the total; parity levels give up one, two or three disks' worth whatever the array size, which is why wider arrays are more efficient.
Two things catch people out. Traditional RAID treats every disk as if it were the size of the smallest one, so a single larger disk contributes only as much as its smallest neighbour. And the number your operating system reports is smaller than the number on the box, because the two count in different units. The TB and TiB section below covers that.
RAID 5 capacity
RAID 5 stripes data across every disk and spreads one disk's worth of parity among them. Any one disk can fail and its contents are rebuilt from the others.
usable = (n − 1) × size of the smallest disk
Four 4 TB disks give (4 − 1) × 4 TB = 12 TB usable, 75% efficiency. Eight 8 TB disks give (8 − 1) × 8 TB = 56 TB, 87.5% efficiency — the same single disk of parity, spread thinner.
The minimum is three disks. The caution is rebuild time: with large disks the array runs with no redundancy for many hours while it recovers, and a second failure in that window loses everything.
RAID 6 capacity
RAID 6 keeps a second, independent parity calculation, so any two disks can fail together. That second parity disk is what makes it the usual recommendation for arrays of large disks.
usable = (n − 2) × size of the smallest disk
Six 8 TB disks give (6 − 2) × 8 TB = 32 TB usable, 66.7% efficiency. Twelve 12 TB disks give (12 − 2) × 12 TB = 120 TB, 83.3% — again, a fixed cost spread wider.
The minimum is four disks, but at four you are giving up half the capacity for two-disk redundancy, and RAID 10 writes much faster at the same efficiency. RAID 6 starts to earn its place at six disks and up.
RAID 10 capacity
RAID 10 mirrors disks in pairs and stripes across the pairs. Half the raw capacity is the second copy, and there is no parity to compute, which is why it writes faster than any other redundant level.
usable = (n ÷ 2) × size of the smallest disk
Eight 2 TB disks give (8 ÷ 2) × 2 TB = 8 TB usable. Four 16 TB disks give 32 TB. Efficiency is 50% whatever the array size.
It needs an even number of disks, minimum four. One failure is always survivable; several are, provided no two land in the same mirror pair. Rebuilds are a straight copy from the surviving half, so they finish far sooner than a parity rebuild and put much less strain on the rest of the array.
RAID-Z (ZFS) capacity
RAID-Z1, Z2 and Z3 hold one, two and three disks' worth of parity, so the capacity arithmetic matches RAID 5, RAID 6 and a hypothetical triple-parity RAID. What differs is everything underneath: ZFS checksums every block and repairs silent corruption it finds, and it writes full stripes, which avoids the read-modify-write cycle that gives conventional parity RAID its write penalty.
Five 10 TB disks in RAID-Z2 give (5 − 2) × 10 TB = 30 TB raw usable. Expect somewhat less in practice: ZFS reserves a slice of the pool, and its own metadata and padding take a share that varies with the record size and the width of the group.
Give ZFS the disks directly through an HBA in IT mode. Presenting it a hardware RAID volume hides the individual disks and stops it repairing what it detects, which gives up the main reason to run it.
Why does my NAS show less storage than expected? (TB vs TiB)
Three separate things each take a bite, and only the first is large.
Decimal against binary. Drive makers count in powers of ten: 1 TB is 1,000,000,000,000 bytes. Operating systems count in powers of two: 1 TiB is 1,099,511,627,776 bytes, about 10% more. Worse, Windows and many NAS interfaces print "TB" while showing TiB. A 4 TB disk is 3.64 TiB, and a 12 TB array is 10.91 TiB. Nothing has gone missing.
Redundancy. Parity and mirroring are the subject of this page: a four-disk RAID 5 array of 4 TB disks has 16 TB of disks and 12 TB of usable space.
File system overhead. Formatting consumes a few percent for metadata, inodes, journals and
reserved blocks. ext4 traditionally reserves 5% for root, adjustable with tune2fs.
ZFS keeps a reserve of its own and stores extra metadata. Expect a small further reduction from the figure
this calculator gives, which is the capacity before any file system is laid down.
Which RAID level should I choose?
- RAID 0
- All capacity, all speed, no protection. Scratch space and caches only, where losing everything costs an afternoon.
- RAID 1
- Two disks, one copy each. Simple, easy to recover by hand, and the right answer for a boot pair or a small server.
- RAID 5
- Good efficiency, one disk of protection. Fine on disks up to about 4 TB; past that the rebuild window is long enough to be a real risk.
- RAID 6
- The default for bulk storage on large disks. Survives two failures, including one during a rebuild, at the cost of a heavy write penalty.
- RAID 10
- Half the capacity, the best write performance and the fastest rebuilds. Databases, virtual machines, anything latency-sensitive.
- RAID 50 and 60
- Parity groups striped together, for large enclosures. Shorter rebuilds than one wide array, at the cost of parity per group.
- RAID-Z1, Z2, Z3
- The same capacity arithmetic with checksumming and self-healing underneath. Z2 for most pools of large disks, Z3 for very wide groups.
The guide to choosing a RAID level works through these trade-offs in more depth, including when to stop widening one array and start a second.
Which file system should I use on a RAID array?
Mostly the default for whatever will mount it. On Linux, XFS suits large volumes and large files and is the default on several server distributions; ext4 is the dependable general-purpose choice. On Windows, NTFS is what everything expects, with ReFS worth considering for Hyper-V virtual disks and large data volumes.
ZFS is different in kind, because it is the volume manager and the RAID layer as well as the file system. If you are running RAID-Z you are already running ZFS, and it wants the disks directly rather than behind a controller's array.
On a NAS, Btrfs layered over Linux md RAID is the Synology arrangement and gives you snapshots with conventional RAID underneath; TrueNAS uses ZFS. Btrfs's own RAID 5 and 6 modes are still marked as unstable in its documentation, so use md RAID or ZFS for parity rather than Btrfs's.
Common mistakes
Mixing disk sizes. Traditional RAID uses the smallest disk's capacity for every disk. Put one 8 TB disk in an array of 4 TB disks and you have bought 4 TB of nothing. Some NAS firmware, such as Synology Hybrid RAID and unRAID, can use the difference; a plain controller or md RAID cannot.
Treating RAID as a backup. Every disk in the array faithfully records the file you deleted by mistake, the corruption, the ransomware. Redundancy covers one failure mode — a disk dying — and no others.
RAID 5 on large disks. The capacity is tempting and the rebuild window is the problem. Past about 4 TB per disk, use RAID 6 or RAID-Z2.
Buying every disk from one batch. Disks from the same production run tend to fail at similar ages, which is exactly the correlation redundancy assumes away. Mixing manufacturing batches costs nothing.
Never testing the rebuild. A spare that has not been proven, or an array nobody has ever recovered, is a plan rather than a capability. Pull a disk on purpose, once, before it matters.
Usable capacity for common arrays
Decimal terabytes, before any file system is laid down. A dash marks a level that needs more disks than the row has.
| Array | RAID 1 | RAID 5 | RAID 6 | RAID 10 |
|---|---|---|---|---|
| 2 × 2 TB | 2 TB | — | — | — |
| 2 × 4 TB | 4 TB | — | — | — |
| 2 × 8 TB | 8 TB | — | — | — |
| 2 × 12 TB | 12 TB | — | — | — |
| 2 × 16 TB | 16 TB | — | — | — |
| 2 × 20 TB | 20 TB | — | — | — |
| 4 × 2 TB | 2 TB | 6 TB | 4 TB | 4 TB |
| 4 × 4 TB | 4 TB | 12 TB | 8 TB | 8 TB |
| 4 × 8 TB | 8 TB | 24 TB | 16 TB | 16 TB |
| 4 × 12 TB | 12 TB | 36 TB | 24 TB | 24 TB |
| 4 × 16 TB | 16 TB | 48 TB | 32 TB | 32 TB |
| 4 × 20 TB | 20 TB | 60 TB | 40 TB | 40 TB |
| 6 × 2 TB | 2 TB | 10 TB | 8 TB | 6 TB |
| 6 × 4 TB | 4 TB | 20 TB | 16 TB | 12 TB |
| 6 × 8 TB | 8 TB | 40 TB | 32 TB | 24 TB |
| 6 × 12 TB | 12 TB | 60 TB | 48 TB | 36 TB |
| 6 × 16 TB | 16 TB | 80 TB | 64 TB | 48 TB |
| 6 × 20 TB | 20 TB | 100 TB | 80 TB | 60 TB |
| 8 × 2 TB | 2 TB | 14 TB | 12 TB | 8 TB |
| 8 × 4 TB | 4 TB | 28 TB | 24 TB | 16 TB |
| 8 × 8 TB | 8 TB | 56 TB | 48 TB | 32 TB |
| 8 × 12 TB | 12 TB | 84 TB | 72 TB | 48 TB |
| 8 × 16 TB | 16 TB | 112 TB | 96 TB | 64 TB |
| 8 × 20 TB | 20 TB | 140 TB | 120 TB | 80 TB |
Frequently asked questions
- How much space do I lose with RAID 5?
- Exactly one disk's worth, whatever the array size. Four 4 TB disks give 12 TB usable and five give 16 TB, because the parity is spread across every disk rather than sitting on one. The wider the array, the smaller that loss is as a proportion: 25% across four disks, 10% across ten.
- Is RAID 5 safe with large drives?
- It is a real risk past about 4 TB per disk. Rebuilding after a failure reads every remaining disk from end to end, which takes many hours and leaves the array with no redundancy for all of it. A second failure or a single unrecoverable read error in that window loses everything. RAID 6 or RAID-Z2 keeps a second parity disk for exactly this case.
- RAID 6 vs RAID 10: which is better?
- RAID 6 gives more usable capacity on arrays wider than about six disks and survives any two failures. RAID 10 writes far faster, because it has no parity to recompute, and rebuilds quickly by copying one disk rather than reading them all. Choose RAID 6 for bulk storage and RAID 10 for databases, virtual machines and anything write-heavy.
- Can I mix different size drives in a RAID array?
- You can, but traditional RAID treats every disk as if it were the size of the smallest one, so a 4 TB disk in an array of 2 TB disks contributes 2 TB and the rest is wasted. Some NAS systems, such as Synology Hybrid RAID and unRAID, can use the difference. ZFS cannot grow a vdev into larger disks until every disk in it has been replaced.
- How many drives do I need for RAID 6?
- Four at minimum, which gives two usable disks and 50% efficiency. Six or more makes it worthwhile: at six you keep 66.7%, and at eight 75%. Below six disks, RAID 10 gives similar efficiency with much better write performance.
- Why is a 4 TB drive shown as 3.63 TB?
- Nothing is missing. Drive makers count in decimal, where 1 TB is 1,000,000,000,000 bytes. Windows and Linux count in binary, where the same unit is 1,099,511,627,776 bytes, about 10% larger, and most tools still label it TB when they mean TiB. A 4 TB disk is 3.64 TiB, and formatting takes a little more.
- What does a hot spare do?
- It sits in the enclosure doing nothing until a disk fails, then the controller rebuilds onto it automatically without waiting for someone to notice. It shortens the window in which the array is degraded; it does not increase how many failures the array survives, and it adds no usable capacity.
- Is RAID a backup?
- No. RAID protects against a disk failing. It does nothing about a file deleted by mistake, silent corruption, ransomware, a failed controller writing garbage to every disk, theft or fire — all of which reach every disk in the array at once. Keep a separate copy, ideally one that is offline or offsite.