Depth of Field Calculator (depth_of_field)
Calculate depth of field based on aperture, focal length, distance to subject, and image sensor size. Get near point, far point, and depth of field.
Depth of Field Calculator
Purpose
The Depth of Field Calculator helps photographers determine the range of distance within a photo that appears acceptably sharp and in focus.
Use Cases
This calculator can be used by photographers to understand how changing parameters like aperture, focal length, and distance to the subject can affect the depth of field in their photos.
How to Use
- Enter the values for Aperture, Focal Length, Distance to Subject, and Image Sensor.
- Click on the "Calculate" button to get the Depth of Field results.
Input Values
- Aperture: The size of the opening in the lens that allows light to pass through. (Default unit is F-stop)
- Focal Length: The distance between the lens and the image sensor. (Default unit is millimeter)
- Distance to Subject: The distance between the camera and the subject. (Default unit is meter)
- Image Sensor: The type of image sensor in the camera. (Choose from available options)
Output Values
- Near Point: The closest distance in focus. (Unit: meter)
- Far Point: The farthest distance in focus. (Unit: meter)
- Depth of Field: The range of distance that appears sharp. (Unit: meter)
Any other Instruction
Make sure to input the values accurately to get the correct Depth of Field results for your photography.
Steps of Calculation
- Calculate the Circle of Confusion based on the selected Image Sensor.
- Calculate the Hyperfocal Distance using the provided Aperture, Focal Length, and Circle of Confusion.
- Determine the Near Point, Far Point, and Depth of Field based on the calculated values.
Technical Parameters
aperture, focal_length, distance_to_subject, image_sensor
Return Values
near_point, far_point, depth_of_field
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eval():
depth_of_field(aperture=2.8, focal_length='50 mm', distance_to_subject='2 m', image_sensor='35 mm')
depth_of_field(aperture=4.0, focal_length='85 mm', distance_to_subject='3 m', image_sensor='APS-C')
Click on Help icon to open the help page on a separate window.