DESIGN VIEW · VIDEO

CCTV Storage Calculator

Calculate disk capacity from camera count, bitrate, recording hours, retention and storage overhead.

INPUT / 01

RESULT / 02

Recent history

Method and formulas

Data equals aggregate bits per second multiplied by recording seconds and days, converted to decimal TB, then divided by the usable-capacity fraction after reserve.

Use sustained or worst-case values for critical designs. Decimal storage units are shown unless the result says otherwise.

Use measured average and peak bitrates; VBR scenes can vary substantially.

GUIDE

What this tool does and when to use it

The CCTV Storage Calculator computes the total disk capacity required for a surveillance deployment by combining the number of cameras, sustained bitrate per camera, daily recording duration, retention period, and filesystem or RAID overhead. It is intended for system integrators and security planners who must size storage arrays before procurement or when expanding existing NVR installations. The tool applies the methodology of aggregating bits per second across all cameras, multiplying by total recording seconds, converting the result to decimal terabytes, and then adjusting upward by the reserve percentage to reflect usable capacity. Users should invoke the calculator during initial design phases, before hardware purchase, or when reviewing whether current storage will support policy changes such as longer retention or higher-resolution streams. Because calculations rely on user-supplied sustained or worst-case bitrates, the results represent conservative estimates suitable for critical installations where under-provisioning is unacceptable. The calculator supports both continuous and scheduled recording patterns and can incorporate modest headroom for network jitter or minor firmware updates that alter stream parameters.

Worked example with realistic numbers

Consider a retail site requiring 16 cameras each configured for a constant 4 Mb/s stream, recording continuously for 24 hours per day over a 30-day retention window with 15 percent overhead reserved for filesystem metadata and RAID parity. The aggregate bitrate reaches 64 Mb/s. Over 30 days this produces 1.65888 × 10^14 total bits. Division by eight yields 20.736 TB of raw data. After applying the 15 percent reserve the required array capacity becomes approximately 24.4 TB. A table comparing raw versus adjusted figures appears below.

MetricValueUnit
Aggregate bitrate64Mb/s
Recording seconds2 592 000s
Raw storage20.736TB decimal
Usable fraction0.85—
Final capacity24.395TB decimal

Repeating the same inputs with a measured average bitrate of 3.2 Mb/s instead of the worst-case 4 Mb/s lowers the final figure to roughly 19.5 TB, illustrating the sensitivity of results to bitrate selection.

Second worked example: Office building deployment

An office building uses 24 cameras averaging 2.5 Mb/s each with motion-triggered recording active 12 hours daily and 90-day retention. Overhead is set at 20 percent for a RAID-6 array. Aggregate bitrate equals 60 Mb/s. Daily recording seconds total 1 296 000, producing 5.832 × 10^14 bits over 90 days. Conversion yields 72.9 TB raw. After the 20 percent adjustment the required capacity reaches 91.125 TB. The table below summarizes the calculation steps.

MetricValueUnit
Aggregate bitrate60Mb/s
Daily recording seconds1 296 000s
Retention days90days
Raw storage72.9TB decimal
Usable fraction0.80—
Final capacity91.125TB decimal

Formula and method table

InputSymbolUnitOperationOutput
Camera countCintegerC × bitrateaggregate bps
Bitrate per cameraBMb/saggregate bps × 86 400 × daystotal bits
Hours per dayHhourstotal bits ÷ 8bytes
Retention daysDdaysbytes ÷ 1 000 000 000 000decimal TB
Overhead percentO%decimal TB ÷ (1 − O/100)usable TB

Units and conversions

QuantityCommon unitConversion factorNotes
BitrateMb/s1 Mb/s = 1 000 000 bits/sDecimal prefix used throughout
Timehours or days1 day = 86 400 secondsApplies only to active recording windows
StorageTB decimal1 TB = 10^12 bytesMatches drive manufacturer labeling
Binary alternativeTiB1 TiB = 1 099 511 627 776 bytesDisplayed only when explicitly selected
OverheadpercentUsable = raw ÷ (1 − O/100)Includes RAID parity and formatting

All storage results are expressed in decimal terabytes unless the final displayed value is explicitly marked binary. Bitrate entries are interpreted as megabits per second using the decimal million (10^6). Recording hours are converted to seconds by multiplying by 86 400. The overhead field represents the fraction of raw capacity rendered unavailable by RAID parity, journaling, or formatting; the calculator therefore divides the raw terabyte figure by the complement of this percentage. Users entering values in kibibytes or mebibytes must first convert to decimal equivalents before submission to maintain consistency with the displayed units.

Limitations

The calculator assumes constant bitrate streams; variable-bitrate cameras may produce peaks substantially higher than the entered average, requiring manual addition of headroom. It does not account for motion-detection duty cycles, audio tracks, or metadata overhead beyond the explicit reserve percentage. RAID rebuild times, drive wear-leveling, or future firmware upgrades that increase baseline consumption are outside its scope. Results become invalid if any input exceeds the validation limits of 1–128 cameras, 0.1–20 Mb/s, 1–24 hours, 1–365 days, or 0–50 percent overhead. The tool also omits network bandwidth constraints, power consumption of drives, and environmental factors such as temperature that may affect long-term reliability. Compression changes mid-deployment, multi-stream configurations, and cloud offload tiers are not modeled.

Common mistakes

  • Planners frequently underestimate bitrate by using manufacturer nominal figures instead of measured peak values obtained during high-motion periods.
  • Another error is neglecting to increase the overhead percentage when deploying RAID-6 or erasure-coded arrays that consume more than 15 percent.
  • Entering retention in weeks rather than days or confusing decimal and binary prefixes also produces incorrect sizing.
  • Omitting the effect of additional cameras added after initial deployment leads to undersized storage that must later be expanded at higher cost.
  • Failing to adjust daily recording hours when motion detection reduces active time below the assumed schedule overestimates required capacity.
  • Using the same overhead value across different RAID levels ignores that RAID-5 and RAID-6 impose distinctly different parity costs.
  • Ignoring seasonal variations in scene complexity, such as holiday crowds, can cause bitrate spikes that exceed the single-value input used in calculations.

Frequently asked questions

How should measured peak bitrate be substituted when a camera switches between day and night modes?

Enter the higher of the two sustained rates observed over a full 24-hour cycle; this ensures the calculation covers the worst-case continuous load rather than an optimistic average.

What adjustment is required when storage uses 4K sectors instead of 512-byte sectors?

Increase the overhead percentage by two to three points to accommodate the larger metadata footprint typical of modern enterprise drives formatted with 4K sectors.

Does the calculator include space for exported video clips or snapshot archives?

No; any anticipated export volume must be added manually to the final usable-TB figure before procurement because the tool only sizes the primary continuous-recording partition.

How does a change from H.264 to H.265 affect the required capacity for identical scene complexity?

Substitute the lower measured bitrate of the H.265 stream; the calculator will automatically scale the result downward, typically by 40–60 percent depending on the actual encoder efficiency achieved.

What validation prevents entry of retention periods exceeding drive warranty limits?

The interface caps retention at 365 days; longer periods require splitting the archive across multiple arrays whose capacities are summed outside the tool.

When RAID-5 is selected, how is the overhead percentage derived from the number of drives?

Calculate the parity fraction as one divided by the total number of drives and enter that value as a percentage; the tool then applies the complement to the raw data volume.

Why must audio streams be measured separately even when the camera datasheet lists combined bitrate?

Audio typically adds a fixed 64–128 kb/s per camera that is not scaled by resolution; adding this constant before submission prevents systematic underestimation on multi-camera systems.

How are leap-second or daylight-saving time shifts handled in the 86 400-second daily multiplier?

The calculator uses a fixed 86 400-second day; any single extra or missing second over a multi-year retention window is negligible and does not require manual correction.