Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Why 5 hard drives give you the space of 4

RAID trades one disk's worth of space for the ability to survive a failure.

Combine drives in a RAID 5 array and the usable space is less than the total — one disk's capacity goes to parity. That sacrifice is what lets the array rebuild if a single drive dies.

One disk pays for safety

In RAID 5, usable capacity is (number of disks minus one) times the size of one disk; the missing disk stores parity.

usable=(n−1)×disk size\text{usable} = (n - 1) \times \text{disk size}

RAID 5 capacity

Five 4 TB drives

Find the usable space.

Usable capacity

  1. 1

    Apply the formula

    (5−1)×4=16 TB(5 - 1) \times 4 = 16\text{ TB}
  2. 2

    The trade

    You lose 4 TB of raw space but can survive any one drive failing.

Answer

16 TB usable from 20 TB raw — the cost of redundancy.

The formula behind it

RAID 5 Capacity

(n−1)×disk(n-1) \times \text{disk}

The takeaway

RAID 5 usable space is (n-1) times disk size: one disk funds parity so the array survives a single failure.

Back to all stories