Sizing the hard disks for a CCTV recorder is one of the most common questions on security projects. Too little storage and you lose footage before the retention period ends; too much and the bid is not competitive. Here is the method I use on ELV designs.
The formula
Storage (TB) = cameras x bitrate (Mbps) x 3600 x recording hours per day x retention days / 8 / 1,000,000
- Bitrate is in megabits per second, so dividing by 8 converts to megabytes.
- 3600 x hours gives the seconds recorded per day.
- Dividing by 1,000,000 converts MB to TB (decimal, as disk vendors use).
Worked example
16 cameras, 4 Mbps each (typical 4MP H.265), 24 h/day, 30 days retention:
- Per camera per day: 4 x 3600 x 24 / 8 / 1000 = 43.2 GB
- Total: 16 x 43.2 GB x 30 days = 20.7 TB raw
- Add about 15% for file system overhead and growth: about 23.8 TB
So you would specify, for example, 4 x 8 TB surveillance disks (32 TB) or more if RAID is used, because RAID 5 loses one disk of capacity and RAID 6 loses two.
Typical bitrates (always confirm with the camera datasheet)
- 2MP H.265: about 1-2 Mbps
- 4MP H.265: about 2-4 Mbps
- 4MP H.264: about 6-8 Mbps
- 8MP (4K) H.265: about 6-8 Mbps
Do not forget bandwidth
The recorder must accept the total incoming stream: 16 x 4 Mbps = 64 Mbps. Check the NVR's rated incoming bandwidth, and for PoE cameras also check the switch power budget.
Free calculator
I put this formula, a PoE switch budget check and a 12/24 V DC cable voltage drop calculator into a free Excel file. Fill the yellow cells and the results update automatically:
For full project work (BoQ templates, structured cabling estimator, motion-recording and RAID storage checks, UPS sizing, access control, fire alarm battery and PA calculators), see the Complete ELV Excel Library:
Chen Yu - ELV / low-voltage systems design engineer
Related guides: PoE switch power budget | CCTV pixel density and DORI | UPS sizing for an ELV rack