The rectangle behind the lens

The sharp band is a decision

One 50 mm lens at f/2.8 focused at three metres has a sharp band half a metre deep or an unbounded one, and nothing about the optics changes between them — only how large a blur disc a reader is prepared to ignore. Every quantity usually quoted about depth of field is that acceptance restated, including the rule that a third of the band lies in front, which is true at one distance and nowhere else.

Worth reading first: The centre has an area.

The centre has an area established that a world point images as a disc of diameter

c=f2NZZfZ(Zff)c = \frac{f^2}{N}\cdot\frac{|Z - Z_f|}{Z\,(Z_f - f)}

and that its centre is exactly where a pinhole would have put it. Depth of field is one question about that formula: where is c under some number? A frame is an interval asks the same shape of question about time, and gets the same shape of answer.

The number is not supplied by the optics. It is supplied by a reader.

The band, five times over

A 50 mm lens at f/2.8, focused at three metres, with the criterion swept over a factor of sixteen:

  • half a pixel: the band runs 2.76 to 3.28 metres — half a metre deep;
  • one pixel: 2.56 to 3.63;
  • two pixels: 2.23 to 4.58;
  • four pixels: 1.78 to 9.66;
  • eight pixels: 1.26 metres to infinity.

Same lens, same aperture, same focus setting, same discs. The band goes from half a metre to unbounded, and the only thing that moved is what a reader will accept — which makes it a member of the same family as the sixty-degree cone of vision, a rule about a reader dressed as a rule about a picture.

The band is one number's arithmetic: at 2 px it runs 2.23–4.58 mA 50 mm lens at f/2.8 focused at 3 metres. The two curves are the near and far limits of the interval inside which the blur disc stays under the criterion on the horizontal axis, and the shaded region between them is the band itself. Nothing about the optics changes across this figure — the same lens, the same focus, the same discs — and the band goes from 0.52 metres deep to unbounded. Depth of field is a statement about what a reader will accept, and every number quoted about it is that acceptance restated.00.50011.50-0.25000.2500.5000.750the blur a reader is prepared to call sharp, in pixels (powers of ten)near and far limits of the band, in metres (powers of ten)the focus distance2 pxone lens, one focus setting, five criteria5 bands
Fig. 1 The near and far limits against the criterion, with the band shaded between them. Nothing about the optics changes across this figure.

Why the criterion is quoted in pixels here

The usual unit is a “circle of confusion” in millimetres of sensor — 0.03 mm for full frame, 0.02 for APS-C — and those numbers come from a chain of assumptions that is almost never stated: a print of a given size, viewed from a given distance, by an eye of a given acuity.

This collection computes viewing distances for a living. The point to stand at is the whole premise: a picture is correct from one place, and the place is arithmetic. So the criterion is quoted where a reader can check it — as a diameter in the pixels of the figure in front of them — and the millimetres of sensor follow from the format rather than preceding it.

The traditional 0.03 mm on full frame corresponds to about 0.6 pixels here. That is a strict criterion by the standards of this figure, and the bands it produces are correspondingly narrow.

The hyperfocal distance is one number’s arithmetic

Set the far limit to infinity and solve for the focus distance. What comes out is

H=f2Nc+fH = \frac{f^2}{N c} + f

and two exact consequences fall out of it that are usually quoted as rules.

Focus at H and everything from H/2 to infinity is inside the band. Exactly half, checked here against the closed form to a part in a million rather than asserted.

And H is the whole of the depth-of-field story. Near and far limits at any focus distance are Z_f(H−f)/(H−f ± (Z_f−f)), so a photographer who knows H for their lens, aperture and criterion knows the band at every focus setting without further arithmetic.

On the 50 mm at f/2.8 with a two-pixel criterion, H is 8.61 metres. At f/1.4 it is 17.2, at f/5.6 it is 4.33, at f/11 it is 2.23 — halving with each stop, because H goes as 1/N.

The band is one number's arithmetic: at 8 px it runs 1.26–∞ mA 50 mm lens at f/2.8 focused at 3 metres. The two curves are the near and far limits of the interval inside which the blur disc stays under the criterion on the horizontal axis, and the shaded region between them is the band itself. Nothing about the optics changes across this figure — the same lens, the same focus, the same discs — and the band goes from 0.52 metres deep to unbounded. Depth of field is a statement about what a reader will accept, and every number quoted about it is that acceptance restated.00.50011.50-0.25000.2500.5000.750the blur a reader is prepared to call sharp, in pixels (powers of ten)near and far limits of the band, in metres (powers of ten)the focus distance8 pxone lens, one focus setting, five criteria5 bands
Fig. 2 The loosest criterion in the sweep, where the far limit has left the figure and the band is unbounded.

The one-third rule, measured

“A third of the depth of field lies in front of the subject and two thirds behind” is taught, printed on lens barrels, and true at exactly one distance.

Swept across focus distances on the same lens with a two-pixel criterion, the share in front is 0.468 at 0.6 metres, 0.433 at 1.2, 0.328 at 3, 0.035 at 8, and 0.000 at 20 — where the far limit has gone to infinity and the share is meaningless.

So the curve passes through a third at about three metres for this lens and this aperture, and it is a different distance for every lens and every aperture. Close up the share approaches a half, because the band is short and nearly symmetric; approaching the hyperfocal distance it approaches zero, because the far limit runs away.

The rule is a reading of a curve at one point, presented as a property of lenses.

The "one third in front" is a value the curve passes through, at 2.8 mThe fraction of the sharp band that lies nearer than the focus distance, against the focus distance, for a 50 mm lens at f/2.8 with a two-pixel criterion. Close up it approaches a half, because the band is short and nearly symmetric. It falls monotonically, passes through a third at 2.8 metres, and reaches zero at the hyperfocal distance of 8.6 metres, beyond which the far limit is infinite and the share is meaningless. The rule of thumb is a reading of this curve at one point, and it is a different point for every lens and every aperture.00.2000.40000.5001the focus distance, in metres (powers of ten)the share of the sharp band that lies in front of itone thirdthe rule of thumb, as a point on a curve41 focus distances
Fig. 3 The share in front against the focus distance, with the one-third line drawn across it and the crossing marked.

Why the band is asymmetric at all

The formula makes it look like arithmetic; the geometry makes it obvious.

The disc’s diameter depends on 1/Z rather than on Z — it is the reciprocal of the distance that enters linearly, which is the same reciprocal depth is a reciprocal is about in the stereo field. So the band is symmetric in 1/Z, and a symmetric interval in the reciprocal is an asymmetric one in the distance, stretched at the far end.

That single observation explains the whole family of quoted rules: the near limit approaches the focal length and never reaches it, the far limit runs to infinity at a finite focus setting, and the share in front falls monotonically. All four are the same statement about a reciprocal.

It also connects two fields that look unrelated. A stereo pair’s depth uncertainty is symmetric in disparity and asymmetric in depth for exactly the same reason, and the two asymmetries have the same shape — which is why the range a pair cannot see past and the hyperfocal distance are the same calculation.

What the criterion actually is

Worth pinning down, because “how large a blur a reader will accept” sounds unmeasurable and is not.

It is the angle the blur disc subtends at the reader’s eye, compared with the angle at which they can resolve detail — about one arcminute for a person with good sight. Everything else is arithmetic: the disc’s size on the sensor, times the enlargement from sensor to print, divided by the viewing distance.

Which means the criterion depends on how the picture will be shown, not on how it was taken. The same negative has a different depth of field on a contact print and on a billboard, and this is not a figure of speech — the interval in metres genuinely changes, because the number in the formula does.

This collection has the machinery to make that concrete. The point to stand at computes the distance a picture is correct from; a reader at that distance sees the picture at the camera’s own field of view, and the criterion in pixels is then fixed by their eye alone. That is the one viewing arrangement in which depth of field is a property of the photograph.

The other cosine: what the corner receives

A note toward the next rung, because the band is computed on the axis and the frame has corners.

The pupil seen from off the axis is foreshortened, so the patch a corner receives is an ellipse rather than a disc — axis ratio 0.920 at the corner of a full-frame picture with a 50 mm lens — and its area is smaller by the same factor. A criterion stated as a diameter is therefore satisfied slightly earlier in the corner along one axis and at the same place along the other.

The effect is small compared with everything else going on in a corner, and it is worth naming only because it is geometry rather than aberration: it happens to a perfect lens, and no design removes it.

The pupil is an ellipse off the axis: 0.920 at the corner, 0.48 stops downAbove, the light lost against field angle, in stops. Below, the pupil as the corner of the frame sees it, at four angles: a circle on the axis and an ellipse of axis ratio 0.920 at 23.0 degrees, which is the corner of a full frame frame with a 50 mm lens. One cosine is that foreshortening, one is the tilt of the sensor relative to the ray, and two are the extra distance — so the illumination goes as the fourth power of the cosine, and the blur patch a corner receives is not a disc but an ellipse pointing at the centre of the frame.00.2000.40005101520field angle, in degrees from the axislight lost, in stops10°17°23°one foreshortening, one tilt, two of distance0.48 stops at the corner
Fig. 4 The pupil at four field angles, and the light it passes — one cosine of which is the foreshortening above.

The closed form, checked against the discs

Every number above comes from a closed form, and this collection does not quote closed forms unchecked.

So the near and far limits are computed from the algebra and then handed back to the disc calculation: at the near limit the diameter comes out 2.000000 pixels against a two-pixel criterion, and at the far limit the same. Six figures of agreement between an algebraic solution and the geometry it was solved from.

That is a small check and it has caught things elsewhere on this site — the four-centre ellipse’s own assertion is written the same way, against an exact value rather than a tolerance, precisely because a bound on the size of an error holds where the effect is small, which is where the control lives.

The hyperfocal claim gets the same treatment. Focused at H, the far limit is not merely large: the arithmetic returns infinity, because the denominator is exactly zero. And the near limit is asserted at exactly half of H to a part in a million rather than “about half”.

The band is one number's arithmetic: at 1 px it runs 2.56–3.62 mA 50 mm lens at f/2.8 focused at 3 metres. The two curves are the near and far limits of the interval inside which the blur disc stays under the criterion on the horizontal axis, and the shaded region between them is the band itself. Nothing about the optics changes across this figure — the same lens, the same focus, the same discs — and the band goes from 0.52 metres deep to unbounded. Depth of field is a statement about what a reader will accept, and every number quoted about it is that acceptance restated.00.50011.50-0.25000.2500.5000.750the blur a reader is prepared to call sharp, in pixels (powers of ten)near and far limits of the band, in metres (powers of ten)the focus distance1 pxone lens, one focus setting, five criteria5 bands
Fig. 5 The band at one pixel, between the strict and the ordinary, where both limits are comfortably finite.

Why the band moves with the aperture and not with the focal length

A source of confusion worth clearing, because the formula has both in it.

H = f²/(N·c) grows as the square of the focal length, which suggests a long lens has much less depth of field than a short one. It does — at the same subject distance. At the same framing, the subject distance grows with the focal length, and the two effects nearly cancel: a 100 mm lens at six metres and a 50 mm at three, both at f/2.8, give bands whose depths differ by a few per cent rather than by a factor of four.

What does not cancel is the aperture. Halving N halves H and halves the band at any framing, which is why the f-number is the control a photographer actually reaches for.

The residual difference between focal lengths at fixed framing shows up in the background, not in the band: a long lens magnifies the out-of-focus background more, so the same disc diameter covers more of the picture. That is a statement about what the blur looks like rather than about how deep the sharp region is, and conflating the two is the usual mistake.

The hyperfocal distance is the pupil’s diameter in disguise

The claim below that two formats with the same field of view and the same entrance pupil diameter have identical depth of field is worth deriving rather than asserting, because the derivation collapses the whole subject to one physical length.

Write the criterion as a fraction ε\varepsilon of the frame’s width — which is what quoting it in pixels does — so c=εwc = \varepsilon w. Fix the field of view, which fixes f/w=1/(2tan(θ/2))f/w = 1/(2\tan(\theta/2)). And write the entrance pupil’s diameter as D=f/ND = f/N. Then

Hf2Nc=fDεw=D2εtan(θ/2).H \approx \frac{f^{2}}{Nc} = \frac{fD}{\varepsilon w} = \frac{D}{2\,\varepsilon\,\tan(\theta/2)}.

Every trace of the format and of the focal length has gone. The hyperfocal distance depends on the pupil’s diameter in millimetres, on how much blur the reader accepts as a fraction of the frame, and on the field of view. Nothing else.

Checked against this essay’s own numbers: the 50 mm at f/2.8 has a pupil 17.86 mm across, the two-pixel criterion on a 690 px frame is ε=0.0029\varepsilon = 0.0029, and the field is 39.6°, giving H=8.56H = 8.56 m against the 8.61 quoted. One expression, three inputs, none of them a focal length.

Three readings follow, and the third is the one that settles a long argument.

The pupil is the only thing about the equipment that enters. A photographer who wants a shallower band is choosing a larger hole, measured in millimetres, and there is no other way to get one. That is why fast long lenses are large physical objects — an 85 mm at f/1.4 has a 61 mm pupil and the glass in front of it has to be at least that wide — and why the size is not a manufacturing inconvenience but the specification itself.

“Equivalent aperture” becomes exact rather than approximate. Matching a full-frame 50 mm f/2.8 on a format half as wide at the same field of view needs a 25 mm lens at f/1.4, because D=f/ND = f/N must be held and ff has halved. The crop factor applies to the ff-number for depth of field for exactly the reason it applies to the focal length for field of view, and both are the same statement about f/wf/w.

And it prices the small sensor honestly. A phone’s 4 mm lens at f/1.8 has a 2.2 mm pupil, so at the same field and the same acceptance its hyperfocal distance is 1.06 m against the 50 mm’s 8.6 — eight times nearer, which is exactly the ratio of the two pupils. Everything from that focus setting outward is inside the band, which is why a phone photograph is sharp from the near foreground to the horizon and why producing background blur on one requires either a different lens or a computation.

What this is not

Three things, because depth of field attracts more folklore than any other quantity in photography.

It is not a property of a format. Two formats with the same field of view and the same entrance pupil diameter have the same depth of field, exactly, because the formula depends on f²/N and on the enlargement, and those two changes cancel. Quoting a format as “having more depth of field” is quoting a habit about which apertures people use on it — the same conflation a focal length is not an angle unpicks for field of view.

It is not diffraction. Stopping down narrows the disc and widens the band without limit in this model; in a real lens diffraction eventually widens the spot again. That is optics rather than geometry and this collection does not compute it, which is a limit worth stating rather than a gap to be embarrassed by — and it sits beside the honest limit wide-angle is not distortion draws between what a projection does and what a viewer perceives.

And it is not focus. There is exactly one distance at which the disc is a point. Everything else is a disc, and the band is the interval where a reader has agreed not to mind.

Seven distances, seven discs, every centre on the pinhole's mark to 1.3e-17 mmThe patch a point on the axis images as, at seven distances from 0.9 to 16 metres, drawn to a scale that is the same at every aperture. The lens is focused at 3 metres, where the patch collapses to a point; either side of it the disc grows, and it grows faster toward the camera than away from it, which is the asymmetry the depth of field inherits. Every disc is centred on the mark a pinhole at the pupil's centre would have made — worst departure 1.3e-17 millimetres across all seven, which is the floor of the arithmetic rather than a tolerance. The number over each disc is its diameter in the pixels of this collection's figures.4.70.9 m2.31.4 m0.92.1 m0.03.0 m0.64.4 m1.27.0 m1.616.0 mf/8, focused at 3 mcentres to 1.3e-17 mm
Fig. 6 A narrow aperture, where the discs are small everywhere and the band is wide — and where nothing has become sharp.

The criterion in a viewfinder, and why it is never the one used

A practical aside that also explains why so much of this is folklore.

A photographer judging sharpness through a viewfinder is looking at a small, dim, magnified image at a fixed apparent size, and the criterion their eye applies there has nothing to do with the criterion the final print will demand. So the band they see is not the band they get, and the discrepancy is in the pessimistic direction for a big print and the optimistic direction for a small one.

Depth-of-field scales on a lens barrel are engraved for one criterion, usually a strict one, chosen when the expected output was a modest print. Digital sensors out-resolve those scales, so the engraved marks are now generous by a stop or two — the scale has not changed and the acceptable disc has.

None of that is a defect in anything. It is what happens when a quantity that depends on the viewer is engraved into the instrument, and it is the same category of error as the sixty-degree cone: a decision about a reader, hardened into a property of a device, and then inherited by people who never saw the decision made.

What the sixty-degree cone is a rule aboutA 60° picture is correct from 0.866 of its own width — 13.9 cm at 160 mm wide. A reader at an ordinary 40 cm is 2.89× too far back and sees a scene 2.89× too deep. The rule cannot fix that; it only makes the error smaller by making the pictures narrower.02.5057.5010255075100125field of view of the picture (degrees)how much deeper the scene looks, read from 40 cmno error60° → × 2.89160 mm wide, read from 40 cm60° is correct from 13.9 cm
Fig. 7 The other rule of this kind in the collection, from the wrong field: a limit on the reader, presented as a limit on the picture.

One number, four ways of saying it

The hyperfocal distance is f²/(Nc) + f, and every quantity a photographer quotes about depth of field is a rearrangement of it. Worth listing them together once, because seeing that they are one expression is what makes the topic small.

The band at any focus setting is Z(H−f)/(H−f ± (Z−f)). The near limit at the hyperfocal distance is H/2. The share in front is (Z−near)/(far−near), which is a function of Z/H alone. And the depth of field at close range, where Z ≪ H, collapses to 2Z²c N/f² — symmetric, and proportional to the square of the distance.

Four rules, one number, and the number contains a choice.

The short version

Depth of field is the interval in which the blur disc stays under a diameter somebody chose. On one 50 mm lens at f/2.8 focused at three metres, that interval is 2.76–3.28 metres at half a pixel and 1.26 metres to infinity at eight, with nothing about the optics changing between them.

The hyperfocal distance is the focus setting whose far limit is infinity, its near limit is exactly half of it, and it is the single number the whole band arithmetic follows from — 8.61 metres for this lens and criterion. The one-third rule is a reading of one curve at one point: the share in front runs from 0.468 close up to 0.000 at the hyperfocal distance, and passes a third at about three metres here.

The band is one number's arithmetic: at 4 px it runs 1.78–9.66 mA 50 mm lens at f/2.8 focused at 3 metres. The two curves are the near and far limits of the interval inside which the blur disc stays under the criterion on the horizontal axis, and the shaded region between them is the band itself. Nothing about the optics changes across this figure — the same lens, the same focus, the same discs — and the band goes from 0.52 metres deep to unbounded. Depth of field is a statement about what a reader will accept, and every number quoted about it is that acceptance restated.00.50011.50-0.25000.2500.5000.750the blur a reader is prepared to call sharp, in pixels (powers of ten)near and far limits of the band, in metres (powers of ten)the focus distance4 pxone lens, one focus setting, five criteria5 bands
Fig. 8 The band at four pixels, which is where the far limit begins to run away and the share in front collapses.

What links here

Computed from the collection, not written here: the essays that point at this one.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

ApertureCircle of confusiondepth of fieldEntrance pupilExposureFocal lengthFree parameterHyperfocal distanceinstrument limitSensorViewing distance