CCTV Storage Calculator
Computing
- Add up the streams: 8 cameras at a bitrate of 4.00 Mbps each record 32 Mbps combined.
- Over 24 hours a day that stream writes 345.60 GB of footage (using decimal drive capacity).
- Divide the recorder capacity by the daily usage: 4 TB holds 4,000 GB / 345.60 GB per day.
- The retention time is 11.57 days before the recorder starts overwriting the oldest footage.
'How many days will it keep?' is the only storage question CCTV buyers actually ask, and the honest answer is a division: the recorder's capacity divided by what the cameras write per day. This calculator performs it transparently — combined bitrate first, then gigabytes per day, then days of retention — so you can see which lever to pull when the answer is not the number you needed.
The daily write follows from the stream: bitrate in megabits per second, times cameras, times recording hours, converted to gigabytes. Storage is taken in decimal terabytes as drive makers sell them, 1000 GB to the TB. Motion-only recording enters through the hours figure: a camera that records six effective hours a day writes a quarter of its continuous total.
The examples bracket the market: eight 4 Mbps cameras filling 4 TB in 11.57 days, a light four-camera system stretching 2 TB to 46.30 days, and a sixteen-camera 6 Mbps installation burning through 16 TB in 15.43 days. Retention requirements — thirty days is a common contractual figure — are met by moving one of the four inputs, and the sections below price each move.
Worked examples
8 cameras, 4 TB recorder
(4 Mbps · 8 · 24 h · 4 TB)
| Retention time | 11.57 days |
| Storage used per day | 345.60 GB |
| Combined camera bitrate | 32 Mbps |
| Footage kept | 277.78 camera-hours per camera |
4 cameras, 12 h recording
(2 Mbps · 4 · 12 h · 2 TB)
| Retention time | 46.30 days |
| Storage used per day | 43.20 GB |
| Combined camera bitrate | 8 Mbps |
| Footage kept | 555.56 camera-hours per camera |
16 cameras, 16 TB recorder
(6 Mbps · 16 · 24 h · 16 TB)
| Retention time | 15.43 days |
| Storage used per day | 1,036.80 GB |
| Combined camera bitrate | 96 Mbps |
| Footage kept | 370.37 camera-hours per camera |
From bitrate to gigabytes per day
A megabit per second is an eighth of a megabyte per second, so one camera at 4 Mbps writes 0.5 MB every second, 1.8 GB every hour, 43.2 GB in a 24-hour day. Multiply by the camera count before anything else: eight such cameras write 345.60 GB a day, the first example's pivotal figure. Every retention surprise in CCTV history is hidden in that multiplication being skipped.
The formula the calculator runs is daily GB = bitrate x cameras x hours x 3600 / 8 / 1000, and then days = storage GB / daily GB. Two honest conventions sit inside it: bits to bytes divides by 8, and the decimal gigabyte keeps the estimate aligned with the drive's label. Using binary units instead flatters the answer by several percent — in the unsafe direction.
- Daily GB = Mbps x cameras x hours x 0.45.
- Days of retention = storage (GB) / daily GB.
- Halving any of bitrate, cameras or hours doubles the days.
- Decimal units throughout: 1 TB = 1000 GB, as drives are sold.
Worked example: 8 cameras, 4 TB, 11.57 days
Eight cameras at 4 Mbps combine to 32 Mbps. Over 24 hours that is 345.60 GB a day, and 4 TB — 4000 GB — divided by 345.60 gives 11.57 days. For a small business required to keep a fortnight, this system as specified fails its requirement, and the calculator's value is in showing it before installation rather than at the first incident review.
The remedies price out cleanly from the same arithmetic: H.265 at half the bitrate doubles retention to about 23 days; motion-based recording at a realistic 60 % duty cycle reaches about 19; 8 TB of storage doubles it outright. Most real designs combine two modest moves rather than one heroic one.
Recording hours and motion detection: the retention multipliers
Continuous recording is the conservative default and the retention-expensive one. The second example shows the other end: four 2 Mbps cameras recording 12 hours a day write only 43.20 GB daily, and 2 TB stretches to 46.30 days. Halving the hours exactly doubled the days — the relationship is linear and unforgiving in both directions.
Motion detection pushes the same lever further, but its effective hours are a property of the scene, not the setting: a camera watching a busy pavement may record 20 hours a day whatever the sensitivity, while one watching a store room records minutes. Estimate motion duty from the scene's honest activity, and keep a margin — the incident you most need is the one that makes the cameras record all day.
| System | Daily write | Storage | Retention |
|---|---|---|---|
| 8 cams x 4 Mbps, 24 h | 345.60 GB | 4 TB | 11.57 days |
| 4 cams x 2 Mbps, 12 h | 43.20 GB | 2 TB | 46.30 days |
| 16 cams x 6 Mbps, 24 h | 1,036.80 GB | 16 TB | 15.43 days |
| 8 cams x 4 Mbps, H.265 (~2 Mbps) | 172.80 GB | 4 TB | About 23 days |
Scaling up: 16 cameras at 6 Mbps
The third example is the enterprise end: sixteen cameras at 6 Mbps — a bitrate that buys good 4 MP or 5 MP quality — combine to 96 Mbps and write 1,036.80 GB a day, a terabyte a day, emptying 16 TB in 15.43 days. At this scale retention is bought in drive bays, and the conversation changes from 'a bigger disk' to array sizing, RAID overhead and recorder chassis limits.
It is also where per-camera bitrate discipline pays compound interest: trimming 6 Mbps to 5 across sixteen cameras saves about 173 GB a day and buys nearly three extra days on the same drives. Variable bitrate with a sensible cap, tuned per scene, is the professional's version of the same lever.
Codec, resolution and frame rate: the bitrate levers
Bitrate is not a law of nature; it is the output of choices. H.265 (and H.264+ / Smart Codec variants) typically delivers the same perceived quality at roughly half the H.264 bitrate, which is a doubling of retention for a settings change. Resolution and frame rate trade directly: 4 MP at 15 fps usually serves identification as well as 25 fps at a materially lower bitrate, because faces do not move at 25 frames a second.
The discipline is to set bitrate per scene, not per fleet. A camera staring at a blank wall needs a fraction of the bitrate of one covering a till. The calculator takes the average you arrive at; arriving at it scene by scene is the installer's craft, and it is worth more days than any drive upgrade at the same money.
Variable bitrate and why averages lie politely
Most cameras now run variable bitrate: quiet scenes compress to a trickle, busy ones surge toward the cap. The bitrate this calculator wants is the honest average over a representative day, which for VBR means measuring, not reading the cap off the datasheet. A system sized on cap values is over-bought; one sized on a quiet Tuesday's average is under-bought for the busy Saturday that produces the incident.
Where the recorder reports actual daily consumption per camera after a week of operation, believe it over every estimate including this one, and resize from evidence. The calculator's role is the design stage, when no evidence exists yet; its conventions are deliberately plain so the design can be argued with.
Audio, metadata and other small appetites
The video stream is nearly all of the storage, but not quite all: audio adds a small constant per camera where recorded, metadata and thumbnails add a little more, and some recorders reserve system and index space on the array. None of these moves the answer by more than a few percent, which is inside the margin any sane design keeps — but a design computed to land exactly on a contractual 30.00 days has no room for them, or for anything else.
Keep a design margin of at least 10-15 % between computed retention and required retention. Drives also lose a slice to formatting, and requirements have a way of being audited on the worst month, not the average one.
When the answer is not enough: the decision order
Faced with a shortfall, work the levers in order of cost per day gained. First the free ones: codec upgrade to H.265, frame-rate sanity, per-scene bitrate caps, recording schedules matched to opening hours. Then the cheap ones: motion duty tuned honestly. Then storage: another drive, a larger recorder, or network storage for overflow.
Cutting camera count or resolution to hit a retention figure is the last resort, because it spends the system's actual purpose — seeing what happened — to buy days of seeing it. A retention requirement and a coverage requirement are both real; the arithmetic on this page exists so they can be negotiated with numbers instead of discovered in conflict after an incident.
FAQs
How long will 4 TB last with 8 cameras at 4 Mbps?
The cameras write 345.60 GB per day recording 24 hours, so the retention time is 11.57 days. If a requirement says a fortnight or a month, this configuration as specified does not meet it — the levers are bitrate, recording hours and storage, in that order of cheapness.
How much do 4 cameras at 2 Mbps write per day?
43.20 GB over 12 recording hours, which is why 2 TB stretches to 46.30 days in that example. Halving the recording hours exactly halves the daily write; motion detection pushes the same lever further where the scene allows.
What bitrate do 16 cameras at 6 Mbps produce together?
96 Mbps combined, writing 1,036.80 GB a day and filling 16 TB in 15.43 days. At a terabyte a day, retention is an array-sizing exercise, and small per-camera bitrate savings compound into whole extra days.
Does recording fewer hours help?
Proportionally: halving the 24 hours to 12 halves the daily gigabytes and doubles the days of storage. Schedules matched to a premises' actual hours are the single cheapest retention upgrade available.
Why does the calculator treat drive capacity as decimal?
Recorder drives are sold in decimal terabytes, and the daily figure of 345.60 GB is decimal too, so the estimate stays consistent and slightly conservative. Binary accounting would flatter the retention by several percent in the unsafe direction.
What is the quickest way to double retention?
Halve the bitrate: retention is capacity over daily usage, so any halving of the 345.60 GB day doubles the 11.57 days. In practice the halving usually comes from switching the fleet to H.265, which also survives scrutiny of picture quality.