HOPA Request a project

How to calculate CCTV storage (with examples)

Security & video surveillance · 5 min read · October 2026

One of the most common mistakes in video surveillance projects is too little storage: the recorder overwrites old footage sooner than expected, and just when a recording is needed it no longer exists. Fortunately, the calculation is simple.

The basic formula

Recording size depends on the video bitrate (the amount of data per second), not directly on megapixels:

Daily size per camera (GB) = bitrate (Mbps) × 86,400 ÷ 8 ÷ 1000

86,400 is the number of seconds in a day, and dividing by 8 converts megabits to megabytes. Then multiply the result by the number of retention days and the number of cameras.

Example

Suppose 16 four-megapixel cameras using H.265 compression with an average bitrate of 4 Mbps record continuously, and footage must be kept for 30 days:

With a safety margin of about 10 to 20 percent, a capacity of around 24 TB is appropriate.

What changes the bitrate?

A few recommendations

Use surveillance-grade hard drives for 24-hour recording. In critical projects, a RAID array or a separate storage server protects against a single drive failure. Check the real bitrate in the recorder settings after installation and update the calculation if needed.

Hand this project to HOPA

Security & video surveillance: Protecting your premises and assets. Site surveys and cost estimates follow the official trade tariff.

Submit a project requestSecurity & video surveillance services

More guides

Choosing CCTV cameras: analog or IP?Analog vs IP cameras, resolution, lenses, night vision, PoE and weatherproofing: what to decide before you buy.Network cabling: Cat6 or fiber optic?The 100 m copper limit, Cat6 vs Cat6A, fiber types, and which to use where in a building or campus.Setting up a small server room: power, UPS, earthing and coolingRecommended temperatures, how to size a UPS, why earthing matters, and practical tips for reliable small server rooms.