Depth of Field & Hyperfocal Calculator

See how much of a scene will come out sharp at a given aperture and focus distance, and where to focus so everything from halfway out to the horizon stays acceptable. Those figures assume a print size, which is why most of that sharpness disappears when you look at the same shot on screen.

How to use it

Four settings go in, sensor size, focal length, f-number and focus distance, and back come the hyperfocal distance, the nearest and furthest points that will look sharp, and the depth between them.

  1. Pick the sensor or film size first It decides how much blur counts as sharp, so it changes every number below. If your camera is not listed, choose "something else" and type the sensor measurements.
  2. Put in the lens, the f-number and where you focused Distances can be in metres, centimetres, feet or inches, and the answers come back in metres or feet as you prefer.
  3. Compare the apertures in the table Every standard f-stop is worked out for the same lens and subject, so you can see what one more stop actually buys you — and where the table stops being worth it.
Full instructions
In depth

Understanding depth of field, hyperfocal distance, and diffraction limits

Every depth of field table is really an opinion dressed up as arithmetic. It depends on how big you print, how far away you stand, and what you call sharp. This article explains the concepts behind the calculator, walks through every control, works out a landscape and a portrait scenario, and explains why the numbers on screen may not match the sharpness you see in your photograph. All the maths runs on your own device.

Screenshot: Sharp enough for what, exactly?
Sharp enough for what, exactly? as it appears when the page opens.

What depth of field actually means

Only one distance in a photograph is truly in focus. Everything in front of it and behind it is at least slightly blurred. Depth of field is the range within which that blur is small enough that a viewer calls it sharp. The key phrase is small enough: it is a judgement about acceptable sharpness, not a physical boundary. Move the goalposts and the depth changes, which is why every number this calculator gives is conditional on one hidden assumption.

That assumption is the circle of confusion. It is the largest blurred dot that still looks like a point to the viewer. The standard figure for full frame 35 mm film is 0.03 mm, which assumes a print about 20 by 25 centimetres seen from about 25 centimetres away. View the same photograph full screen on a 27 inch monitor and the standard is far too generous. Half the circle of confusion and the depth of field roughly halves too.

The controls on the panel

The dropdown labelled Sensor or film size sets both the crop factor and the default circle of confusion. Options include full frame, two APS-C sizes, Four Thirds, one inch, a phone or compact sensor, medium format, 645 roll film, large format, and a custom choice. Picking Something else reveals two extra fields, Sensor width and Sensor height, where you enter your sensor dimensions in millimetres.

Focal length is the lens length in millimetres. The f-number field takes the number after the f slash on your lens barrel. Focused at is the distance to your subject, and the dropdown labelled measured in lets you enter it in metres, centimetres, feet, or inches. Show answers in switches the output between metres and feet.

Circle of confusion (optional) overrides the standard figure when you want a stricter or looser definition of sharp. Leave it empty to use the standard for your sensor size, or type a smaller value when you plan to view the image at high magnification.

Reading the output

The calculator returns several figures at once. The hyperfocal distance is the closest focus point at which the horizon still falls inside the depth of field. The near limit is the closest point that counts as sharp, and the far limit is the furthest. The total depth of field is the distance between those two limits. The horizontal and vertical angles of view tell you how much of the scene fits in the frame.

It also shows the equivalent full-frame focal length and equivalent full-frame f-number. These let you compare cameras with different sensor sizes on an equal footing. A phone shooting at f/1.8 with its tiny sensor might give the same depth as a full-frame camera at f/11, and the equivalent f-number makes that comparison honest.

Below the main result, a table lists the depth of field at every standard f-stop for the same lens and subject distance. This table is the quickest way to see how much one more stop buys you, and where the gains start to shrink.

Worked example: a landscape on full frame

You are shooting a landscape with a full-frame camera, a 24 mm lens, and you focus at 3 metres. At f/8, the near limit is about 1.5 metres and the far limit stretches to infinity. The hyperfocal distance for this combination is about 2.9 metres, and since you focused at 3 metres you are essentially at the hyperfocal point. Everything from roughly 1.5 metres to the horizon is acceptably sharp.

Now open up to f/2.8. The hyperfocal distance jumps to roughly 8.2 metres, well beyond your 3 metre focus point. The near limit moves out to about 2.1 metres and the far limit drops to about 5.6 metres. You have gone from infinite depth to a zone barely 3.5 metres deep by opening three stops. The f-stop table on the page shows this progression at a glance.

Worked example: a portrait on APS-C

A portrait photographer using an APS-C camera with an 85 mm lens focuses on a subject 2.5 metres away at f/2. The near limit is about 2.47 metres and the far limit is about 2.53 metres, giving a depth of roughly 6 centimetres. That is thin enough that one eye can be sharp while the other is not, which is why portrait photographers focus on the nearest eye.

Stopping down to f/5.6 widens the depth to about 17 centimetres, enough to hold both eyes and the tip of the nose. The trade-off is a slower shutter speed or a higher ISO, so the decision is a balance between sharpness depth and exposure. The table at the bottom of the result lets you read off every standard f-stop without changing the input.

The diffraction limit and why stopping down stops helping

Light bends as it passes through a narrow opening, and that bending softens the image. At wide apertures the softening is tiny compared to the circle of confusion, so stopping down improves sharpness by deepening the field. Past a certain aperture the diffraction softening grows larger than the circle of confusion, and the whole image gets softer even though the nominal depth of field keeps growing.

On full frame with the standard circle of confusion, that crossover is around f/22. On a phone sensor it is around f/11. The calculator warns you when you cross this line. Any depth of field gained beyond it is fictional: the table says the zone is deeper, but the picture is visibly worse. Landscape photographers who habitually shoot at f/22 on crop sensors are often disappointed by the results, and diffraction is the reason.

Why your photograph looks less sharp than the numbers promise

The most common complaint is that a photograph looks softer than the calculated depth of field suggests. The reason is almost always the viewing conditions. The standard circle of confusion assumes a modest print seen at arm's length. Pixel-peeping a 50 megapixel file at full zoom on a 4K screen is nothing like that. The sharp zone you see on screen will be a small fraction of the figure the calculator gives.

If you want numbers that match your screen viewing, type a smaller circle of confusion in the optional field. Half the standard value is a reasonable starting point for screen work. Some photographers use a third of the standard, which gives conservative figures but rarely disappoints in practice.

Lens quality also matters. The depth of field formula assumes a perfect lens. Real lenses have aberrations that are worst at the widest and narrowest apertures. The sharpest results tend to come two or three stops down from wide open, which is another reason to check the f-stop table rather than just shooting wide open or fully stopped down.

The old one-third rule and when it fails

A well-known rule of thumb says one third of the depth of field falls in front of the focus point and two thirds behind it. This is roughly true at middling distances, but it breaks down at the extremes. Close up, the split approaches fifty-fifty. At distances near the hyperfocal point, almost all the depth extends behind the subject. The calculator shows the actual near and far limits so you do not need the rule of thumb at all.

When this calculator is not enough

It covers single-frame stills with standard lenses. It does not model tilt-shift lenses, which can angle the plane of focus and make a whole table top sharp at f/4. It does not account for focus stacking, where multiple frames at different focus distances are merged in software to produce a depth that no single aperture could achieve. And it does not model the shape of the blur in the out-of-focus areas, which is what photographers mean by bokeh.

Privacy

All calculations happen in your browser. No camera settings, lens data, or focus distances are sent to any server. You can disconnect from the internet and the page keeps working.

Help

Sharp enough for what, exactly?

Four settings go in, sensor size, focal length, f-number and focus distance, and back come the hyperfocal distance, the nearest and furthest points that will look sharp, and the depth between them. It also gives how much of the scene fits the frame, the full-frame equivalents, and the f-number past which diffraction softens more than stopping down deepens.

Pick the sensor or film size first

It decides how much blur counts as sharp, so it changes every number below. If your camera is not listed, choose "something else" and type the sensor measurements.

Put in the lens, the f-number and where you focused

Distances can be in metres, centimetres, feet or inches, and the answers come back in metres or feet as you prefer.

Compare the apertures in the table

Every standard f-stop is worked out for the same lens and subject, so you can see what one more stop actually buys you — and where the table stops being worth it.

A smaller sensor is not deeper by magic

A phone seems to hold everything in focus, and people put it down to the tiny sensor. What actually does it is the very short lens: a phone uses about 5 mm where a full-frame camera would use 25 mm for the same view, and depth grows enormously as focal length shrinks. Frame the same scene from the same spot and the phone at f/1.8 gives about the same depth as a full-frame camera at f/11 — which is why the equivalent f-number is shown here.

Good to know

The sharpness limit is a decision, not a measurement

These figures assume a print about 20 by 25 centimetres seen from a quarter of a metre. Look at the same photograph at full size on a screen and the truly sharp zone is a fraction of the figure any table gives.

Stopping down stops helping

Past roughly f/22 on full frame, or f/11 on a small sensor, the softening that a narrow aperture causes spreads further than the amount you are calling sharp. The zone keeps growing on paper while the whole picture gets worse. You are warned when you cross that line.

Focus on the hyperfocal distance for landscapes

Focus there and everything from half that distance to the horizon comes out acceptably sharp. It is the deepest result any aperture can give, and focusing further away than it gains nothing at the back while losing ground at the front.

A third in front is only true sometimes

The old rule of one third in front and two thirds behind holds at middling distances. Close up it approaches half and half, and far away almost all the depth is behind the subject. The real split is worked out for you.

Common questions

What is the hyperfocal distance?
The closest you can focus while the horizon still looks sharp. Focus there and everything from half that distance onwards is acceptably sharp, which is the deepest result that aperture can give.
What is the circle of confusion?
The largest a blurred point can be before a viewer calls it blurred. It is a judgement about print size and viewing distance rather than anything about the lens, and it is the reason every depth-of-field figure is an opinion with arithmetic attached.
Does a smaller sensor really give more depth of field?
For the same view from the same place, yes, because the lens is much shorter. The tool shows the full-frame f-number that would match, so you can compare two cameras honestly.
Why does my photograph look less sharp than the numbers promise?
Almost always because you are looking at it much larger than the standard print these figures assume. Type a smaller circle of confusion — half the standard one is a reasonable start — and you will get figures that match what you see on screen.
Where is the focus distance measured from?
From the lens. Cameras mark it from the sensor plane, which differs by the length of the lens itself. It makes no practical difference at normal distances and matters a great deal in close-up work.