Hardware

RAID 0 vs 1 vs 5 vs 10: RAID Levels Explained With Capacity Math

RAID 0 splits data across drives for speed and capacity but has no protection: if any one drive fails, the whole array is lost. RAID 1 writes identical copies to every drive, so you get the capacity of one drive and the array survives until only one drive is left.

RAID 5, 6 and 10 sit between those two extremes, trading some capacity for protection. This article compares all five with the same set of drives so the trade-offs are concrete numbers rather than adjectives.

RAID 0 vs RAID 1 at a glance

RAID 0 (striping)RAID 1 (mirroring)
How data is storedSplit into chunks, alternating across drivesEvery drive holds exactly the same data
Usable space, two 4 TB drives8 TB4 TB
Drives that can fail0 (one failure loses everything)1 of 2 (all but one in larger mirrors)
ReadsFaster than one driveFaster than one drive
WritesFaster than one driveAbout the same as one drive
Good forScratch space you can regenerateA boot drive or files you can't lose between backups

The Linux md driver documentation puts it plainly: RAID 0 has "zero redundancy", while in RAID 1 "each device in a RAID1 array contains exactly the same data" and the array survives the loss of all but one device. Synology's documentation adds the performance side: RAID 1 improves reads, but write performance is similar to a single drive, because every write has to land on every disk.

Why RAID 0 is riskier than one drive

RAID 0 does not just fail to protect you; it multiplies your exposure. The array is lost if any member fails. If a single drive had, say, a 3% chance of failing in a year (a made-up number for the arithmetic), two drives in RAID 0 would lose data with probability 1 - 0.97 × 0.97 = 5.9%, and four drives 1 - 0.974 = 11.5%. Plug in whatever failure rate you believe; the shape is the same. Each drive you add makes the whole array more likely to die.

All RAID levels compared

N is the number of drives, and every formula assumes equal-sized drives. With mixed sizes, standard RAID treats every drive as the size of the smallest.

LevelMinimum drivesUsable capacityDrives that can failHow it protects
RAID 02N × drive0Nothing
RAID 121 × driveN - 1Full copies
RAID 53(N - 1) × drive1One drive's worth of parity, spread across all drives
RAID 64(N - 2) × drive2Two independent parity blocks
RAID 104 (even number)N / 2 × drive1 guaranteed; up to N / 2 if each failure hits a different mirror pairMirrored pairs, striped together

The minimum drive counts and capacity formulas are the ones Synology lists for its NAS storage pools. Linux md is more flexible: it will build a RAID 10 from an odd number of drives (5 drives with 2 copies give the space of 2.5 drives), which is a property of that implementation, not of RAID 10 in general.

Worked example: four 4 TB drives

Same hardware, five different results:

LevelUsable spaceLost to protectionSurvives
RAID 016 TB0 TBNo failures
RAID 1 (4-way mirror)4 TB12 TBAny 3 failures
RAID 512 TB4 TBAny 1 failure
RAID 68 TB8 TBAny 2 failures
RAID 108 TB8 TBAny 1 failure; 2 if they are in different pairs

RAID 6 and RAID 10 give the same 8 TB here, but they fail differently. RAID 6 survives any two failures. RAID 10 survives two only if they are in different mirror pairs; lose both drives of one pair and the array is gone. In exchange, a RAID 10 rebuild only has to copy one drive's mirror, while a RAID 5 or 6 rebuild has to read every remaining drive to recalculate the missing data.

How parity works in RAID 5

RAID 5 stores, for each stripe, an extra block computed from the data blocks in that stripe. If one drive disappears, its block in every stripe can be recalculated from the others. The parity blocks rotate across all drives instead of sitting on one dedicated disk (that dedicated layout is RAID 4), so no single drive becomes the bottleneck for writes.

The cost shows up when a drive fails. Synology notes that read and write performance is "severely impacted" while a RAID 5 array is degraded, because every read of the missing drive's data means reading all the other drives and recomputing. And until the replacement finishes rebuilding, a RAID 5 array has no redundancy left: a second failure, or an unreadable sector on a surviving drive, during the rebuild loses data. That window is the main argument for RAID 6 on arrays of large drives.

Windows Storage Spaces uses different names for the same ideas. Microsoft describes its two-way mirror as most closely resembling RAID 1, single parity as resembling RAID 5 and dual parity as resembling RAID 6, with two-way mirroring at 50% storage efficiency and three-way at 33.3%.

RAID is not a backup

RAID protects against one kind of problem: a drive dying. It copies everything else just as faithfully. Delete a folder, overwrite a file, or let ransomware encrypt your documents, and RAID 1 writes the damage to both drives at the same moment, because keeping them identical is its whole job. CISA's backup guidance makes the same point about any automatic copy that tracks the original: it "can silently propagate any corruption or malware in the primary files to the backup files." A fire, theft or power surge also takes out every drive in the box at once.

CISA recommends the 3-2-1 rule instead: 3 copies of important files (1 primary, 2 backups), on 2 different types of media, with 1 copy offsite. A RAID array counts as one copy, however many drives it has.

Creating and checking a RAID array on Linux

The mdadm tool manages Linux software RAID. Building a two-drive mirror looks like this (this erases both partitions, so double-check the device names first):

sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1

--level accepts 0, 1, 5, 6 or 10, and --raid-devices is the number of active drives. To check an existing array:

cat /proc/mdstat
sudo mdadm --detail /dev/md0

/proc/mdstat shows every array, its member drives and rebuild progress; --detail shows the state (clean, degraded, recovering) and which device has failed. On a NAS, the same information is in the storage manager's pool view. Check it occasionally: a degraded array keeps serving files normally, so a failed drive can go unnoticed until the second one goes. Drive health checks such as SMART help catch that earlier; see how to check SSD health, which also covers hard drives.

Which RAID level should you use?

  • Two drives, data matters: RAID 1. Half the space, simple, survives one failure.
  • Two drives, speed matters and everything is replaceable: RAID 0, with the risk above. On SSDs the speed gain is often not worth it; the article on SSD vs HDD vs NVMe explains why one NVMe drive is already fast.
  • Three or four drives, mostly reading (media, archives): RAID 5 for capacity, RAID 6 if the drives are large and a second failure during a rebuild worries you.
  • Four or more drives, many small writes (virtual machines, databases): RAID 10.

Whichever you pick, keep a separate backup. If you're choosing RAID for a home file server, what a NAS is covers the rest of that decision.

Frequently asked questions

Is RAID 0 or RAID 1 better for a gaming PC?
RAID 0 gives more space and faster sequential transfers, but either drive failing destroys the whole array, so the risk roughly doubles with two drives. RAID 1 halves your space to protect against one drive failing. Games can be downloaded again, so many people skip RAID entirely, keep the drives as separate volumes and back up only saves and personal files.
Can I mix drive sizes in RAID?
You can, but standard RAID levels treat every drive as the size of the smallest one. Four drives of 4, 4, 4 and 8 TB in RAID 5 give (4 minus 1) times 4 TB, which is 12 TB, and 4 TB of the larger drive goes unused. Some NAS systems, such as Synology Hybrid RAID, are designed to use mixed sizes more efficiently.
What happens when a drive fails in RAID 1 or RAID 5?
The array keeps working in a degraded state using the remaining drives. You replace the failed drive and the array rebuilds onto it by copying from the mirror (RAID 1) or recalculating from parity (RAID 5). Until the rebuild finishes there is no redundancy left in a RAID 1 pair or a RAID 5 array, so a second failure during that window loses data.
Do I need a RAID card?
No. Linux (mdadm), Windows (Storage Spaces) and NAS operating systems implement RAID in software, and many motherboards offer firmware RAID. With software RAID the array is described by metadata on the drives themselves, so you can move the drives to another machine running the same software instead of hunting for an identical controller.

Sources