Depth of Field Calculator
From focal length, f-stop, subject distance, and circle of confusion, calculate the front, rear, and total in-focus range plus the hyperfocal distance.
Input
Calculate the in-focus range (depth of field) and hyperfocal distance from focal length, f-stop, subject distance, and circle of confusion. Use the results as a guide when planning a shot.
Result
Depth of field (total)
60.1 cm
Front depth of field
27.1 cm
Rear depth of field
33.0 cm
Hyperfocal distance
29.81 m
In-focus range details (circle of confusion 0.03 mm)
| Item | Distance |
|---|---|
| Near focus limit (near point) | 2.73 m |
| Far focus limit (far point) | 3.33 m |
| Depth of field (total) | 60.1 cm |
How it works
- Enter the focal length (mm), f-stop (aperture), distance to the subject (m), and circle of confusion (mm) to calculate the range that appears in focus. The circle of confusion defaults to about 0.03 mm for full frame and can be chosen by sensor size.
- The hyperfocal distance is H = f² ÷ (N × c) + f (f: focal length, N: f-stop, c: circle of confusion, all in mm). Focusing at this distance keeps everything from there to infinity within the depth of field.
- The near focus limit is Dn = s(H − f) ÷ (H + s − 2f) and the far focus limit is Df = s(H − f) ÷ (H − s), where s is the subject distance. The total depth of field is Df − Dn.
- When the subject distance reaches or exceeds the hyperfocal distance, the far point becomes infinity and the rear depth of field is shown as theoretically infinite.
- Stopping down (a larger f-stop), using a shorter focal length, or moving farther from the subject deepens the depth of field; the opposite makes it shallower and easier to blur the background.
- The displayed values are calculated estimates that assume an ideal lens. Real results vary with lens aberrations and sensor characteristics, so treat them as a reference.
Related calculators
Flash Shooting Distance
HobbyCalculate the ideal shooting distance to your subject from a flash unit's guide number, aperture and ISO.
Open calculator →Flash Aperture Calculator
HobbyCalculate the correct f-stop for flash photography from guide number, distance, and ISO. Instantly see the nearest standard f-stop and the correct distance for each aperture.
Open calculator →Lens Focal Length Calculator
HobbyEstimate the lens focal length (mm) and 35mm equivalent you need from your subject distance, real size, and sensor width.
Open calculator →Camera Angle of View Calculator
HobbyEnter a lens focal length and image sensor size to instantly calculate how wide a scene the camera captures: the horizontal, vertical, and diagonal angle of view. Includes presets for full frame, APS-C, Micro Four Thirds and more (plus custom sensor sizes) and shows the 35mm equivalent focal length too.
Open calculator →