UK’s trusted IT infrastructure partner since 2003
Servnet
ConfiguratorGet in Touch
How RAID parity works (RAID 5 & 6 explained) — analysisHow RAID parity works (RAID 5 & 6 explained) — analysis — reach
Storage · RAID

How RAID parity works (RAID 5 & 6 explained)

Servnet Storage Team · Storage & Data Protection6 min read

Parity is the clever maths that lets RAID 5 and RAID 6 rebuild a failed drive without keeping a whole second copy. Here's how it works — then see the capacity and rebuild trade-offs in the RAID calculator.

Single vs dual vs triple parity
SingleDualTripleExampleRAID 5 / Z1RAID 6 / Z2RAID-TEC / Z3Failures survived123Usable(n−1)/n(n−2)/n(n−3)/nURE on rebuildData lossRecoverableRecoverable

Parity in one sentence

Parity is a checksum, computed across the data blocks in a stripe, that lets you reconstruct any one missing block from the others. RAID 5 stores one parity block per stripe; RAID 6 stores two independent ones. The classic single-parity calculation is an XOR: if you know all the data blocks but one, plus the parity, you can recover the missing block.

Because parity is one block per stripe rather than a full copy, it is far more space-efficient than mirroring — RAID 5 keeps (n−1)/n of your raw capacity usable. That efficiency is why parity RAID dominates capacity storage.

Single vs dual parity

RAID 5's single parity survives one drive failure. RAID 6 adds a second, mathematically independent parity (using Reed-Solomon / Galois-field maths, not just XOR), so it survives any two failures — and, crucially, a read error during a single-drive rebuild. That rebuild safety is the main reason RAID 6 replaced RAID 5 on large drives (see RAID 5 vs RAID 6).

Triple parity (RAIDZ3, RAID-TEC) extends the idea to three checksums for very wide arrays of huge drives.

A parity stripe
4Data block Aon drive 13Data block Bon drive 22Data block Con drive 31Parity (A⊕B⊕C)rebuilds any one block

The cost: the write penalty

Parity isn't free to maintain. Every write must update the parity too, which means extra back-end I/O — a ×4 write penalty for RAID 5 and ×6 for RAID 6. That's why mirror-based RAID 10 (×2) is preferred for write-heavy databases. See the write penalty explained.

The calculator shows the write penalty and resulting IOPS for any level so you can weigh space efficiency against write performance.

Key takeaways
  • Parity is a checksum that rebuilds any one missing block from the rest of the stripe.
  • RAID 5 = one parity (survives 1 failure); RAID 6 = two (survives 2 + a URE during rebuild).
  • Parity is far more space-efficient than mirroring — (n−1)/n or (n−2)/n usable.
  • The cost is a write penalty (×4 RAID 5, ×6 RAID 6) from updating parity on every write.
Frequently asked

FAQs — How RAID parity works (RAID 5 & 6 explained)

RAID parity

How does parity rebuild a failed drive?

By recomputing the missing block from the surviving data blocks and the parity. For single parity it's an XOR: the parity plus all-but-one data block yields the missing block. RAID 6's second parity uses independent maths so it can solve for two unknowns (two failed drives).

Why does RAID 6 survive two failures but RAID 5 only one?

RAID 6 stores two mathematically independent parity blocks per stripe, giving two equations for two unknowns — so it can reconstruct any two missing blocks. RAID 5 has one, so it can only solve for one.

Is parity slower than mirroring?

For writes, yes — parity must be recomputed and written on every change (a ×4–×6 penalty), whereas mirroring just writes a copy (×2). Reads are comparable. Mirroring trades capacity for write speed.

Related

Continue reading

More in Storage

Got a question this article didn't answer?

One conversation with an engineer who's done this before. No sales script.

Talk to Servnet →