Security Camera Storage Calculator
Introduction
A security camera system is only as useful as the footage it can still retrieve when an incident is discovered. Storage planning is where many CCTV and NVR projects go wrong: the camera image looks fine on day one, but the recorder starts overwriting clips too soon because the drive sizing was based on a rough guess. This Security Camera Storage Calculator turns the core surveillance settings into a practical capacity estimate so you can size hard drives, cloud retention, or recorder bays before buying equipment.
The calculator uses bitrate because bitrate is the direct bridge between camera settings and disk usage. Resolution, frame rate, codec, scene motion, and compression quality all flow into the average megabits per second produced by each camera. A quiet hallway camera may average far less than a busy parking lot camera, even at the same resolution. When exact bitrate is unknown, start with the camera's configured stream bitrate or a short test recording from the NVR, then add overhead so the drive plan is not too tight.
How to Use
- Enter the number of cameras that will record to the same storage pool.
- Enter the average bitrate per camera in Mbps. Use the main recording stream, not the low-resolution preview stream.
- Set the hours recorded per day. Use 24 for continuous recording, business hours for scheduled recording, or an expected active time for motion-only recording.
- Choose the retention target in days. This is how long clips should remain before normal overwrite begins.
- Add overhead for file system reserve, exports, drive formatting loss, and future camera growth.
- Use the redundancy factor for mirroring, RAID reserve, or another storage multiplier. Leave it at 1 for a raw single-copy estimate.
- Enter the nominal drive size you plan to buy so the calculator can estimate how many drives are needed.
Storage Formula
The raw footage estimate is:
Formula: Storage bytes = (Cameras * Mbps * 1000000 * Hours/day * 3600 * Days) / 8
The displayed raw total is converted to binary GiB and TiB, because operating systems and many NVR interfaces report capacity in powers of 1024. The protected planning target then multiplies the raw footage by the overhead percentage and the redundancy factor. For example, a 20% overhead setting multiplies by 1.20, and a mirror-style redundancy factor of 2 doubles the required provisioned capacity.
Understanding Bitrate and Compression
Bitrate is the amount of data produced each second by the video stream. It is usually configured in megabits per second. Higher bitrate can preserve more detail, but it also consumes storage faster. H.265 can often deliver similar visual quality at a lower bitrate than H.264, while a camera aimed at moving traffic may need more bitrate than one watching a quiet stockroom. Treat the bitrate field as an average over the recording period, not the maximum shown on a spec sheet.
Motion-triggered recording changes the storage question from "how many hours is the site open" to "how many hours does the camera actually write usable footage." If a camera records only when motion is detected and you expect six active hours per day, entering six hours gives a better planning baseline than using 24 hours. For high-risk locations, size storage with a more conservative active-hour estimate so busy days do not erase important footage early.
Example Calculation
Suppose four cameras record at 4 Mbps each for 12 hours per day and the site needs 14 days of retention. One camera creates about 21.1 GiB per day. Across four cameras and 14 days, the raw retention pool is about 1.10 TiB. With a 20% overhead reserve, the planning target becomes about 1.32 TiB. If the installation uses a mirror or another redundancy plan that effectively requires two copies, the provisioned target is about 2.64 TiB.
This corrected estimate is much larger than a simple megabit multiplication that forgets seconds per hour or counts the retention period twice. The seconds-per-hour and bits-to-bytes conversions are what turn a bitrate setting into a realistic disk requirement.
Comparison Table
These scenarios show why camera count, bitrate, recording hours, and retention days must be considered together.
| Cameras | Bitrate | Hours/Day | Retention | Raw Storage |
|---|---|---|---|---|
| 2 | 2 Mbps | 8 | 7 days | About 94 GiB |
| 4 | 4 Mbps | 12 | 14 days | About 1.10 TiB |
| 8 | 8 Mbps | 24 | 30 days | About 18.86 TiB |
Choosing Drives and Retention Policy
After estimating raw footage, add capacity for the real storage environment. Hard drive labels use decimal terabytes, while operating systems often display binary TiB, so a "4 TB" drive appears as roughly 3.64 TiB before recorder overhead. NVRs also need free space to manage indexes, thumbnails, file rotation, exports, and firmware operations. Running a recorder at the edge of full capacity can shorten the practical retention window and increase operational friction.
For small installations, one larger surveillance-rated drive may be enough. Larger systems often need multiple bays, RAID, hot spares, or a separate archival policy. If you must retain footage for compliance, insurance, or workplace policy, use the calculator's protected target rather than the raw target. For cloud storage, the same raw footage estimate helps you compare upload bandwidth, storage tiers, and monthly cost caps.
Limitations and Assumptions
The calculator assumes all cameras use the same average bitrate and recording schedule. Real camera streams vary by scene, codec settings, night vision noise, frame rate, and motion level. It does not model separate main and substreams, event bookmarks, audio tracks, metadata indexes, or vendor-specific file packing. The drive recommendation is a planning approximation that converts nominal decimal TB drives into binary TiB before rounding up.
Use the result as a capacity baseline, then validate with an actual NVR test when the system is installed. Record for a representative day, check how much disk was consumed, and adjust bitrate or retention settings before the recorder is left unattended.
Retention Run
Keep the NVR from filling up by collecting compression, schedule, and drive-bay boosts while dodging bitrate spikes.
