Calculate RAID array usable capacity, redundancy, efficiency, and fault tolerance, plus memory and file-storage estimates for arrays.

Estimate capacity before formatting. TB/GB are decimal; TiB/GiB are binary. RAID is not a backup.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
RAID — equal drivesEstimates the usable capacity of a RAID 0, 1, 5, 6 or 10 array, JBOD or spanned set of identical drivesRequires the RAID level, the number of drives and the capacity per drive
RAID — mixed drivesEstimates usable capacity when the drives differ in sizeRequires the RAID level and a list of every drive size with its unit, up to 200 drives
RAID 50 / 60 — equal drivesEstimates the usable capacity of RAID 5 or RAID 6 groups striped togetherRequires the RAID level, the number of groups, the drives per group and the capacity per drive
RAID 50 / 60 — mixed drivesEstimates RAID 50 or RAID 60 capacity when the drives differ in sizeRequires the RAID level, the number of groups, the drives per group and a list with one size for every drive
Memory for an arrayFinds the memory taken by an array of fixed-size elementsRequires the number of elements and the element data size. Per-element overhead, fixed overhead and alignment in bytes are optional
Elements that fit in memoryFinds how many whole elements fit in a given amount of memoryRequires the available capacity and the element data size. Per-element overhead, fixed overhead and alignment in bytes are optional
Files that fit in storageEstimates how many files of an average size fit in a storage capacityRequires the available capacity and the average file size. Reserved capacity in percent, 10 when blank, and per-file overhead in bytes are optional

TB, GB, MB and kB are decimal units and TiB, GiB, MiB and KiB are binary units: 1 GB is 1,000,000,000 bytes and 1 GiB is 2³⁰ = 1,073,741,824 bytes [2]. RAID results are shown in both, with the raw capacity, the space given to redundancy and the drive failures the array survives.

Array Capacity Formulas

U = D × s
UUsable capacity before formatting
DNumber of drives’ worth of space left for data at the chosen RAID level
sCapacity of the smallest drive

RAID — equal drives

D depends on the level. RAID 0 stripes data with no parity, RAID 1 mirrors it, RAID 5 gives up one drive’s worth of space to rotating parity, and RAID 6 uses dual parity and survives two drive failures [1].

LevelD for n drivesFewest drivesFailures survived
RAID 0n2None
RAID 112n − 1
RAID 5n − 13Any 1
RAID 6n − 24Any 2
RAID 10n ÷ 24, even1 in each mirrored pair
JBOD or SpanningSum of all drives1None

Four 8 TB drives in RAID 5 give 3 × 8 = 24 TB, and six 4 TB drives in RAID 6 give 4 × 4 = 16 TB. JBOD and spanning join the drives end to end [1], so the usable capacity is simply their total.

RAID — mixed drives

Each member of a RAID 0, 1, 5, 6 or 10 set contributes only as much as the smallest drive. Drives of 8, 10 and 12 TB in RAID 5 give 2 × 8 = 16 TB: 8 TB goes to redundancy and 6 TB on the two larger drives is left unused. In JBOD the same three drives give 30 TB.

RAID 50 / 60 — equal drives

D = g × (d − 1) for RAID 50
D = g × (d − 2) for RAID 60

g is the number of groups and d the drives in each group. Each group is a RAID 5 or RAID 6 set, and the groups are striped together [1]. Two groups of four 4 TB drives give 2 × 3 × 4 = 24 TB in RAID 50 and 2 × 2 × 4 = 16 TB in RAID 60. RAID 50 needs at least 3 drives per group and RAID 60 at least 4, with at least 2 groups.

RAID 50 / 60 — mixed drives

The same count of data drives is multiplied by the smallest drive anywhere in the array. Two groups of three drives, with three 4 TB and three 6 TB drives, give 2 × 2 × 4 = 16 TB in RAID 50. The list must hold exactly g × d sizes.

Memory for an array

stride = ceil((S + o) ÷ a) × a
total = N × stride + fixed

S is the element data size, o the per-element overhead, a the alignment and N the number of elements, all in bytes. With no overhead and an alignment of 1, the total is N × S: 100 elements of 4 bytes take 400 B. With 5-byte elements, 2 bytes of overhead each and 8-byte alignment, the stride is 8 B, so 1,000 elements plus 16 B of fixed overhead take 8,016 B.

Elements that fit in memory

N = floor((C − fixed) ÷
stride)

C is the available capacity in bytes. With 1 GiB and 4-byte elements, 1,073,741,824 ÷ 4 = 268,435,456 elements fit.

Files that fit in storage

files = floor(C ×
(1 − r ÷ 100) ÷ (F + o))

r is the reserved capacity in percent, F the average file size and o the per-file overhead. With 1 GiB, a 10% reserve and 4 MiB files, 966,367,641 bytes are available and 230 files fit.

Limits of This Estimate

  • RAID capacity is given before the filesystem is created. Controller metadata, hot spares and filesystem overhead reduce it further, and RAID is not a backup.
  • The mixed-drive result uses the smallest drive for every member. Some controllers and software arrays can use part of the extra space on larger drives.
  • The memory functions describe a contiguous array with a fixed stride. Object headers and allocator overhead in a given language or runtime have to be entered as overhead.
  • The file count uses one average file size. Real files vary, and filesystems allocate space in whole blocks.

Sources

  1. SNIA, Common RAID Disk Data Format Specification, Revision 1.2: definitions of the RAID levels, concatenation and striped groups
  2. NIST, Prefixes for binary multiples: decimal GB and binary GiB