InputTestHub

Depth of Field Calculator

Works out the near and far limits of sharpness for any sensor, focal length, aperture and focus distance, with a table of every aperture.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Leave at 0 to use the standard for the sensor: its diagonal ÷ 1500.
Enter your figures and press Calculate.
In short Depth of field is the range of distances that look acceptably sharp, and it comes from four things: focal length, aperture, focus distance and how much blur you are willing to call sharp. That last one is the circle of confusion, and it is a convention rather than a measurement — the sensor diagonal divided by 1500, which is about 0.029 mm on full frame and works out to roughly what a person can resolve in a normal-sized print at a normal viewing distance. Every depth-of-field figure anywhere rests on it, which is why the same photograph has less depth of field the bigger you print it. A 50 mm lens at f/8 on full frame focused at 3 metres is sharp from 2.36 to 4.12 metres. Stop down to f/16 and it runs from 1.94 metres to 6.59. The rule that a third of the depth is in front of the subject and two thirds behind is only true near the hyperfocal distance and nowhere else: close up the split approaches half and half, and far away almost everything is behind. This tool prints the actual split rather than repeating the rule. Three things move depth of field far more than people expect. Focal length matters as its square, so a 100 mm lens has a quarter the depth of a 50 mm at the same aperture and distance. Distance matters as its square too. And sensor size enters twice — a smaller sensor has a smaller circle of confusion, but you also stand closer or use a shorter lens to get the same framing, and the second effect wins, which is why a phone struggles to blur a background and a medium-format camera cannot avoid it.

How to use the Depth of Field Calculator

  1. Pick the sensor and enter the focal length and aperture.
  2. Enter the distance you are focusing at.
  3. Read the near and far limits, and the table of what every other aperture would give.

About the Depth of Field Calculator

Near and far limits of sharpness for any camera, lens and distance, with the full aperture table.

What people use it for

  • Checking whether a group photo will be sharp front to back.
  • Choosing an aperture for a landscape or a portrait.
  • Seeing how much depth of field you lose moving to a larger sensor.

Details

Circle of confusionsensor diagonal ÷ 1500 — a convention, not a measurement
Full frame0.029 mm
50 mm f/8 at 3 m, full framesharp from 2.36 m to 4.12 m
Focal lengthmatters as its SQUARE
The one-third ruleonly true near the hyperfocal distance
Print biggerand the same photo has less depth of field
PrivacyEverything runs in your browser. Nothing you enter is sent anywhere
The near and far limits and the hyperfocal distance come from two formulas that must agree by definition — focusing at the hyperfocal distance has to give exactly half of it to infinity, and the hyperfocal page checks that live.

Where this tool stops

Depth of field is not a line between sharp and blurred. It is the zone where the blur is small enough to ignore at a normal viewing size, which means every figure here rests on an assumed circle of confusion — the sensor diagonal divided by 1500, a convention about human eyesight. Print bigger, crop harder or pixel-peep at 100% and the same photograph has less depth of field than this says. These are also ideal-lens calculations: they ignore diffraction, field curvature and focus breathing, all of which are real on a real lens.

Frequently asked questions

What is the circle of confusion?
The largest blur circle still read as a point. The usual convention is the sensor diagonal divided by 1500, giving 0.029 mm on full frame. It describes human eyesight at a normal viewing distance, so it is an assumption about the viewer rather than a property of the camera.
Is a third of the depth really in front of the subject?
Only near the hyperfocal distance. Close up the split approaches 50/50 and far away almost all of it is behind the subject. This tool shows the actual percentages for your settings instead of repeating the rule.
Why does a phone struggle to blur the background?
Because getting the same framing from a tiny sensor needs a very short focal length, and depth of field goes as the square of focal length. The smaller circle of confusion works the other way but does not come close to making up for it.
Does stopping down always help?
For depth of field, yes. For actual sharpness, no — past about f/11 on full frame diffraction starts softening the whole frame, so you trade sharpness everywhere for depth somewhere.
Why do two calculators give different answers?
Almost always because they assume different circles of confusion. Some use diagonal ÷ 1500, some ÷ 1730, some a fixed 0.03 mm. The field above lets you set your own.
Does depth of field change if I crop?
Effectively yes. Cropping enlarges the image, which is the same as printing bigger, and that shrinks the circle of confusion you should be using.
Are there any usage caps on the Depth of Field Calculator?
There is no cost and no cap. The Depth of Field Calculator is not a demo of a paid product, so nothing is held back or watermarked.
Is what I paste into the Depth of Field Calculator stored?
No. The Depth of Field Calculator runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
What do people use the Depth of Field Calculator for most?
Typical uses: checking whether a group photo will be sharp front to back. Choosing an aperture for a landscape or a portrait. Seeing how much depth of field you lose moving to a larger sensor. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Is there anything the Depth of Field Calculator cannot do?
Depth of field is not a line between sharp and blurred. It is the zone where the blur is small enough to ignore at a normal viewing size, which means every figure here rests on an assumed circle of confusion — the sensor diagonal divided by 1500, a convention about human eyesight. Print bigger, crop harder or pixel-peep at 100% and the same photograph has less depth of field than this says. These are also ideal-lens calculations: they ignore diffraction, field curvature and focus breathing, all of which are real on a real lens. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What figures does the Depth of Field Calculator work from?
Circle of confusion is sensor diagonal ÷ 1500 — a convention, not a measurement. Full frame is 0.029 mm. 50 mm f/8 at 3 m, full frame is sharp from 2.36 m to 4.12 m. These are printed on the page itself, so you do not have to take them on trust.
How precise is the result?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…