# Why does depth of field occur?

I wonder why depth of field occur in the first place. This is not a question about what changes the effect/size of field. We all know that.

Aperture, Focal Length, Focus Length (distance to subject), sensor size.

But why it happens in the first place?

When we think of pinhole cameras (camera obscura), and when we widen the pinhole, the image that drops to surface will be blurred, and we all know that hole is replaced by aperture on lenses.

Yet this still does not give a proven, explained reason of it.

Any ideas?

There are a couple of concepts that you really need to understand to grasp depth of field.

First, lenses focus on a plane. You can envisage this as, basically, a razor thin slice of reality and everything in that slice will be perfectly in focus. Everything in front, or behind, will not be.

Second, there is a range out of the focal plane that we will perceive to be acceptably sharp. When we reach a point before or after the focal plane where a point is sufficiently blurry for us to perceive it (a circle of confusion), it is out of the depth of field. So the depth of field becomes where the circle confusion is from the front to behind the focal plane.

Cambridge in Colour has a tutorial on this subject with more depth to it, no pun intended, as does Wikipedia. Wiki even has the physics behind it.

Draw straight lines from the left and right sides of your lens front opening, both through a single point at the subject you are focused on, and then beyond there behind the subject. These lines will be extended inside the camera down to one point on the sensor (or film if it's one of those cameras). Both of these light rays, and every ray in between, converge at that point on the sensor. They all contribute to the accumulated light at that point. For the point at the subject where the rays cross (all in between ones will, too), that subject point fully contributes to the point on the sensor, and not to points nearby (so it will be in focus). But for subjects in front or behind the ray crossing point, the contribution is a mix of different light sources, and they are have light rays that end up at other points on the sensor.

Depth of field is defined as the range in front and behind the subject which is sufficiently in focus to be acceptable. It can actually vary just by enlarging or shrinking the already taken picture (it might look fine on your camera viewer, but look fuzzy as a background on your desktop if the focus was just slightly off).

Imagine you are a tiny microbe on the surface of the sensor, but have eyes and can see. You look at the rear lens opening and will see the subject, maybe inverted or maybe not. But the subjects that are in "perfect focus" will have a single point fill your entire view of the rear opening of the lens. Then as you walk around the sensor, you see different parts of the subject just as the sensor cells would.