camera lens calculator cctv

CCTV Camera Lens Calculator

Use this tool to estimate focal length, field of view, and pixel density for surveillance planning.

Required for all calculations.
Enter to compute recommended focal length.
Enter to compute actual scene coverage and angle of view.
Used for pixels-per-meter estimate (DORI planning aid).

How to use this camera lens calculator for CCTV planning

Picking the right CCTV lens is one of the most important decisions in security design. Too wide, and faces become tiny. Too narrow, and you miss key zones. This camera lens calculator helps you quickly estimate the lens size needed for your scene, based on sensor dimensions and working distance.

The calculator supports two common workflows:

  • Design workflow: Enter target distance and required scene width to get a recommended focal length.
  • Verification workflow: Enter target distance and known focal length to estimate scene coverage and field of view.

Core formulas used in CCTV focal length calculation

1) Focal length from required scene width

When distance and desired horizontal coverage are known:

focal length (mm) = sensor width (mm) × distance (m) ÷ scene width (m)

2) Scene width from known focal length

When distance and lens are known:

scene width (m) = distance (m) × sensor width (mm) ÷ focal length (mm)

3) Horizontal angle of view

HFOV = 2 × arctan(sensor width ÷ (2 × focal length))

This gives an angle in degrees and helps compare lens behavior across different sensors.

Why sensor size matters more than many installers expect

Two cameras can both say “4 mm lens” but show very different coverage if their sensor sizes differ. A larger sensor sees wider coverage at the same focal length, while a smaller sensor crops tighter. That is why this calculator asks for sensor width and height first.

In real projects, common sensor sizes include 1/3", 1/2.8", and 1/2.7". Always verify the actual active sensor dimensions from your camera datasheet for best accuracy.

Practical examples

Example A: Entrance monitoring

You need to watch an 8-meter wide doorway area from 20 meters away using a 1/3" sensor camera:

  • Sensor width: 4.8 mm
  • Distance: 20 m
  • Scene width needed: 8 m

Recommended focal length is about 12 mm. This provides tighter framing for face-level detail compared with a short wide-angle lens.

Example B: Parking lot overview

You have a fixed 4 mm lens at 25 meters with a 1/2.8" sensor. The calculator estimates a broad scene width. That can be great for situational awareness, but pixel density may be too low for positive identification at long range.

Pixel density (PPM) and DORI-style planning

Lens selection is not just about fitting the scene; it is also about detail quality. A helpful metric is pixels per meter (PPM):

PPM = horizontal pixels ÷ scene width (m)

As a rough guide:

  • ~25 PPM: detection
  • ~62.5 PPM: recognition
  • ~125 PPM: identification
  • Higher values: stronger forensic potential (scene and compression dependent)

This calculator provides a quick PPM estimate so you can decide whether to increase focal length, reduce coverage width, or upgrade resolution.

Choosing fixed, varifocal, and motorized lenses

Fixed lens

Simple and budget-friendly. Best when the installation distance and coverage zone are stable and well defined.

Varifocal lens

Flexible during setup. Ideal for projects where final framing is not fully known before installation.

Motorized zoom lens

Useful for remote adjustment and fine tuning in multi-scene environments, especially in larger facilities.

Common mistakes to avoid in CCTV lens calculations

  • Mixing units: Keep sensor size in mm and distance/scene in the same unit (meters in this calculator).
  • Ignoring aspect ratio: A 16:9 sensor frames vertically differently than 4:3 at the same horizontal width.
  • Using nominal sensor fractions only: Always prefer real active dimensions from datasheets.
  • Forgetting mounting height and tilt: Scene geometry changes with camera angle.
  • Not validating at night: IR performance, noise, and shutter settings affect usable detail.

Installation tips for better real-world results

  • Test framing on-site using temporary mount points before final drilling.
  • Set focus in real lighting conditions, especially for long corridors and gates.
  • Use scene-specific exposure profiles to preserve faces and plates.
  • Balance wide overview cameras with tighter detail cameras.
  • Document final focal length, distance, and expected PPM per camera channel.

Frequently asked questions

Can this calculator replace a full CCTV design package?

No. It is a fast planning aid. Full designs should also consider lens distortion, depth of field, mounting angle, lighting, bitrate, compression, and legal/privacy constraints.

Does focal length change the camera resolution?

No. Resolution stays the same, but focal length changes how those pixels are spread across the scene. A narrower lens typically increases detail on target.

Should I design by field of view or by PPM?

Use both. Field of view ensures coverage; PPM ensures usable detail for detection, recognition, or identification goals.

Final takeaway

A reliable camera lens calculator for CCTV should help you answer three questions quickly: what lens do I need, how much scene will I cover, and whether detail is sufficient. Start with sensor dimensions, target distance, and required scene width, then validate with pixel density targets. That process will give you cleaner, more actionable surveillance footage and fewer costly re-installations.

🔗 Related Calculators