Skip to content
Get a quote

Surveillance

How to calculate CCTV storage: cameras, bitrate, retention

The formula behind every CCTV storage estimate, with worked examples, the variables that swing the answer, and how to turn raw terabytes into a NAS configuration.

Panaro Tech · · 7 min read

Every CCTV project eventually reaches the same question: how much storage do we need? Undersize it and the system silently overwrites footage before the retention period ends, which is usually discovered the day someone asks for a recording. Oversize it and the budget goes on disks that sit empty for years.

A CCTV storage calculation is simple arithmetic once you know the inputs. This article gives the formula, works through realistic examples, explains which inputs move the answer most, and shows how to convert the result into a NAS or storage server configuration.

The CCTV storage calculation formula

Storage for continuous recording is the total bitrate multiplied by the time recorded:

TB = cameras × Mbps per camera × 86,400 × days ÷ 8 ÷ 1,000,000

  • Mbps per camera: the average bitrate of the recorded stream, in megabits per second.
  • 86,400: seconds in a day.
  • ÷ 8: converts megabits to megabytes.
  • ÷ 1,000,000: converts megabytes to terabytes (decimal, as drive makers use).

A handy shortcut: one camera at 1 Mbps recording continuously uses about 0.0108 TB, or 10.8 GB, per day.

Worked examples

Example 1: an office building

32 cameras at 4 Mbps, 30 days retention:

32 × 4 × 86,400 × 30 ÷ 8 ÷ 1,000,000 = 41.5 TB

That is about 1.38 TB written every day.

Example 2: a college campus

150 cameras at 3 Mbps, 45 days retention:

150 × 3 × 86,400 × 45 ÷ 8 ÷ 1,000,000 = 218.7 TB

Example 3: mixed cameras at a factory

Not every camera runs at the same bitrate. Calculate each group, then add:

GroupCamerasMbps eachDaysTB
Perimeter, 4 MP4063077.8
Production floor, 2 MP6033058.3
Gates, 8 MP with number-plate view8129093.3
Total108229.4

Note how eight gate cameras kept for 90 days need more storage than 60 floor cameras kept for 30. Retention and bitrate for small, important groups often dominate the total. All figures here are hypothetical; use your own camera settings.

Where the bitrate figure comes from

Bitrate is the input most often guessed and the one that swings the answer most. It depends on:

  • Resolution: 2 MP, 4 MP, 8 MP and so on.
  • Frame rate: 25 fps doubles the data of 12.5 fps at similar quality.
  • Codec: H.265 typically needs noticeably less bitrate than H.264 for similar quality, though the saving varies with the scene and the encoder.
  • Scene complexity: trees, traffic, rain and night-time noise increase bitrate in variable-bitrate (VBR) mode.
  • Bitrate mode: constant bitrate (CBR) is predictable; VBR averages lower but peaks higher.

The most reliable method is to measure. Run a few representative cameras for a week with the intended settings, read the average recorded bitrate from the VMS or NVR, and use that. Daytime-only tests underestimate: night scenes with infrared often produce more noise and higher bitrate.

Continuous vs motion-based recording

Motion or event recording reduces storage by recording only when something happens. The saving depends entirely on the scene: a server-room camera may record a few minutes a day, while a lobby camera records almost all day. To estimate, multiply the continuous figure by the expected fraction of time with activity, then add margin, because motion settings are often changed later and activity grows. Many organisations record continuously at a lower bitrate and use events only to mark footage for search.

From recorded terabytes to a storage configuration

The formula gives the space footage occupies. The storage system needs more than that:

  1. Headroom: keep the volume below roughly 80% full. Many file systems, including ZFS, slow down as they fill. Divide by 0.8.
  2. Growth: add the cameras you expect to install in the next two or three years.
  3. RAID overhead: RAID 6 on 12 drives uses two drives for parity; on 24 drives you might use two RAID 6 groups. ZFS raidz2 usable is somewhat below (n−2)/n because of padding and a pool reserve.
  4. Units: drive capacities are decimal; OS tools often report binary TiB.

Taking Example 1: 41.5 TB ÷ 0.8 = 52 TB needed usable. A 12-bay system with 8 TB drives in RAID 6 gives 10 × 8 = 80 TB before file-system overhead, leaving room for growth; 6 TB drives would give 60 TB, which is tight once ZFS overhead is included. Check your exact layout with the capacity calculator. For choosing the RAID level, see RAID 5 vs RAID 6 vs RAID 10 for surveillance.

Do not forget write throughput

Capacity is only half the sizing. The storage must absorb every camera's stream continuously, plus playback and export. Example 2 writes 150 × 3 = 450 Mbps, about 56 MB/s, all day. That is comfortable for a 10GbE-connected NAS with a sensible number of drives, but several hundred high-resolution cameras on one 1GbE port is not. Size the network links and drive count for peak write plus playback, not just average.

Common sizing mistakes

  1. Using the camera datasheet's maximum bitrate or, worse, its minimum. Measure the average under your scenes.
  2. Forgetting substreams. Some systems record a low-resolution substream as well as the main stream; add both if both are recorded.
  3. Treating retention as one number when different camera groups have different requirements.
  4. Sizing on raw capacity, then discovering RAID and file-system overhead consume a fifth or more.
  5. Filling to 100%, which slows recording on many file systems just when the system is busiest.

Each of these errors is small on its own; together they can leave a system several weeks short of its intended retention.

A quick reference table

For continuous recording at 30 days, footage per camera works out as follows: 2 Mbps needs about 0.65 TB, 4 Mbps about 1.30 TB, 6 Mbps about 1.94 TB, 8 Mbps about 2.59 TB and 12 Mbps about 3.89 TB. Multiply by camera count, then scale linearly for other retention periods: 60 days doubles the figure, 15 days halves it.

Checklist for a CCTV storage calculation

  • Camera count by group, including planned additions.
  • Measured average bitrate per group, day and night.
  • Recording mode per group: continuous, motion or scheduled.
  • Retention days per group, as set by your policy, contract or regulator.
  • 80% fill headroom applied.
  • RAID level and usable capacity checked, not raw.
  • Aggregate write bandwidth compared with network and disk capability.
  • A plan for growth: free bays or an expansion path.

Closing

A sound CCTV storage calculation is formula plus honest inputs: measured bitrates, real retention requirements and headroom. Once you have the number, match it to a system with the right RAID level, network capacity and room to grow. Panaro's D4X24 CL with 24 hot-swap bays is a common fit for larger camera counts. Send your requirement with your camera list and retention policy, and Panaro's engineers will size it with you.

Frequently asked questions

What is the formula for CCTV storage?

Storage in TB equals cameras × average Mbps per camera × 86,400 seconds × retention days ÷ 8 ÷ 1,000,000. For example, 32 cameras at 4 Mbps for 30 days need about 41.5 TB of space for footage. Add headroom, growth and RAID overhead to get the usable capacity the storage system must provide.

How much storage does one CCTV camera use per day?

A camera recording continuously at 1 Mbps uses about 10.8 GB per day. Multiply by the camera's actual average bitrate: a 4 Mbps camera uses about 43 GB per day, and a 12 Mbps camera about 130 GB per day. Measure real bitrates, including at night, rather than relying on datasheet figures.

Does H.265 reduce CCTV storage?

Generally yes. H.265 typically needs less bitrate than H.264 for similar image quality, so the same retention needs less storage. The saving varies with scene complexity, encoder implementation and settings, so measure bitrates on your own cameras with H.265 enabled before finalising storage size.

Why add headroom to a CCTV storage estimate?

Many file systems, including ZFS, lose performance as they approach full, and real bitrates drift upwards with scene changes, night noise and new cameras. Keeping the volume below about 80% full protects recording performance and gives margin. Divide the calculated footage size by 0.8 as a starting point.