Depth of field (DOF) is the distance between the nearest and furthest elements in a scene that appear to be "acceptably sharp" in an image. The distance between the camera and the first element that is considered to be acceptably sharp is called DOF near limit.
• Aperture
• Focal length
• Subject to distance
The aperture is the opening made by the diaphragm, a group of overlapping metal blades, inside a camera lens. The quantity of light that enters the lens is managed by this opening. Less depth of field is captured when the aperture is bigger. The depth of field increases as the aperture decreases.
The focal length of the lens determines the image magnification. The wider the lens, the shorter the focal length. This allows you to capture a wider depth of field. The longer or more zoomed in the camera lens, the less depth of field you capture.
Distance to subject refers to the length between the camera and the focus of the image. The closer the camera is to the subject it is focusing on, the narrower the depth of field will be. Inversely, the farther away the subject is from the camera, the wider the depth of field will be.