# CCTV storage calculator

> Work out how much disk a camera system needs for a retention period, and how many days a given array will hold, in both decimal TB and binary TiB.

Enter the cameras, the bitrate each one actually records at, and how long you need to keep the footage. Read the bitrate off your recorder rather than guessing it.

*The calculator on this page runs in the browser: https://meridianalarm.com/tools/cctv-storage/*

## Where to get the bitrate

This is the only number that matters and the only one worth getting right. There is no preset for it on this page, deliberately, because a camera's bitrate depends on its codec, resolution, frame rate, compression setting and how much its scene moves. Two identical cameras differ if one watches a parking lot and the other a stairwell. Any figure published here would be wrong for most readers while looking authoritative.

Two places to find the real one:

- **The recorder.** Most NVR and VMS software reports a live per-camera bitrate. That figure already reflects this site, these scenes and these settings, so it beats anything from a data sheet.
- **The camera's data sheet**, which states a bitrate at a given resolution and frame rate. Use it when the cameras are not installed yet, and treat it as a starting point rather than a measurement.

The 4 Mbit/s in the form is an example to replace, not a recommendation. It is a round number chosen so the arithmetic below is easy to follow.

Choosing a resolution in the first place is a different question, and a measurable one: see [1080p or 4K? Do the pixel math first](https://meridianalarm.com/1080p-vs-4k-a-practical-guide-for-office-facilities/), which works out pixels per foot and what each DORI level actually requires.

## A worked example

Sixteen cameras, each recording continuously at 4 Mbit/s. A 4 Mbit/s stream is 500,000 bytes a second, which over a day is 43.2 GB per camera and 0.691 TB of footage across all sixteen, before overhead.

Thirty days of that, with 10% overhead, is **22.81 TB** — which is **20.75 TiB** once a recorder reports it. Those are the same quantity of footage described in two different units, and confusing them is how a system ends up a tenth short.

Turned around: a 10 TB array carrying those same sixteen cameras fills up in **13.2 days**. If the requirement was thirty, that array is less than half the size it needs to be.

## How it is worked out

```
bytes per second = bitrate Mbit/s x 1e6 / 8
bytes per day    = bytes per second x 3600 x hours recorded
total            = sum over groups(cameras x bytes per day)
                   x retention days
                   x (1 + overhead / 100)
```

Overhead is applied once, to the total. The hours figure is a duty cycle: continuous recording is 24, and motion or schedule recording is the number of hours actually written on an average day. Guess that generously — an underestimate shortens the retention you actually get, which is the error that matters.

## TB and TiB are not the same number

Drives are sold in decimal terabytes, where 1 TB is 10^12 bytes. Operating systems and most recorders report binary tebibytes, where 1 TiB is 2^40 bytes, about 10% more. So the number a file manager shows is about a tenth smaller the moment you look at it, without anything being wrong.

Nothing is lost. Subtracting the tebibyte figure from the terabyte one and calling the difference "lost space" is the common mistake: 4 TB and 3.64 TiB are the same capacity written twice. What changes is the number, by the same 9.1% at every size, because it is always the same two units.

**Common drive sizes in decimal and binary units**

| Sold as | Reported as | The number shrinks by |
| --- | --- | --- |
| 4 TB | 3.64 TiB | 9.1% |
| 8 TB | 7.28 TiB | 9.1% |
| 12 TB | 10.91 TiB | 9.1% |
| 16 TB | 14.55 TiB | 9.1% |
| 20 TB | 18.19 TiB | 9.1% |

## What this does not tell you

- Results are estimates. Variable bitrate is the normal case, so recorded size moves with how much the scenes actually move. Treat the figure as a planning number.
- It says nothing about whether the array can keep up. Sustained write throughput, recorder channel limits and simultaneous-stream limits are properties of the hardware, not of the arithmetic.
- No RAID. Enter the capacity the array actually presents; parity is already taken out of that figure. The [RAID capacity calculator](https://meridianalarm.com/tools/raid-capacity/) works out what that figure is for a given set of disks.
- No audio, which adds a small constant bitrate per channel.
- Nothing about how long you are required to keep footage. That depends on your jurisdiction, your insurer and your own policy, and is not a question this page can answer.

## Sources

The calculation is arithmetic over unit definitions, so there is no standard behind it. The prefix definitions are worth citing because mixing them up is the common error:

- [Prefixes for binary multiples](https://physics.nist.gov/cuu/Units/binary.html) — NIST

Rather not size it yourself?

We design and install camera systems across Illinois, and sizing the recorder is part of that rather than an afterthought.

[Video surveillance](https://meridianalarm.com/video-surveillance/) [Talk to us](https://meridianalarm.com/contact-us/)

## More in video and storage

- [CCTV bandwidth: What the cameras ask of the switch, recording and while being watched.](https://meridianalarm.com/tools/cctv-bandwidth/)
- [RAID capacity: What an array really gives you, and how many disks can fail.](https://meridianalarm.com/tools/raid-capacity/)
- [Camera coverage: How wide the shot is, and whether the pixels left are enough to be worth anything.](https://meridianalarm.com/tools/camera-coverage/)
- [Dew point: Why an outdoor camera fogs overnight, and what a housing heater is for.](https://meridianalarm.com/tools/dew-point/)

Or jump to [power and wiring](https://meridianalarm.com/tools/#power), [electronics and components](https://meridianalarm.com/tools/#electronics), [networking](https://meridianalarm.com/tools/#networking), [cable, conduit and site](https://meridianalarm.com/tools/#site) and [general calculators](https://meridianalarm.com/tools/#general). Every calculator is on [one page](https://meridianalarm.com/tools/), with a search box.

---

Meridian Alarm Systems Inc. · 224-500-4670 · info@meridianalarm.com
1 Overlook Point Ste 524, Lincolnshire, IL 60069
3700 N Cicero Ave Unit 3, Chicago, IL 60641
Illinois License # 127.001891

Web page: https://meridianalarm.com/tools/cctv-storage/
