A camera lens works by refracting light through a series of glass elements to converge the rays into a sharp image on the camera's sensor or film. It also controls how much light enters and the field of view, using an aperture and a focusing mechanism to adjust for distance and brightness.
The Basic Optics: Refraction and Focal Length
At its core, a lens is a piece of glass (or plastic) shaped to bend light. When light passes from air into glass, it slows down and changes direction—a phenomenon called refraction. A convex lens, thicker in the middle, bends parallel rays inward so they meet at a point called the focal point. The distance from the lens center to that point is the focal length, usually measured in millimeters.
Focal length determines the field of view. A short focal length (e.g., 24mm) gives a wide view, capturing more of the scene. A long focal length (e.g., 200mm) narrows the view and magnifies distant subjects. This is why wide-angle lenses are used for landscapes and telephoto lenses for wildlife or sports.
A single lens element suffers from optical defects called aberrations—blurring, color fringing, distortion. To correct these, real camera lenses use multiple elements, often 6 to 20 or more, made of different types of glass with varying refractive properties. Some elements are cemented together; others have aspherical surfaces to reduce distortion. The combination is designed to bring different colors and angles of light to the same focus.
Inside the Lens: Elements, Groups, and Coatings
Lens elements are arranged in groups. A group is a set of elements cemented together; the total number of elements and groups is a common specification. For example, a typical 50mm prime lens might have 6 elements in 4 groups. More complex zooms can have 20 elements in 15 groups.
Each element has a role: some converge light, some diverge it to correct aberrations, and some are made of low-dispersion glass to reduce chromatic aberration (color fringing). Aspherical elements are molded or ground to non-spherical shapes, which helps correct spherical aberration and distortion while keeping the lens smaller.
Coatings are applied to glass surfaces to reduce reflections and increase light transmission. Without coatings, each air-glass surface reflects about 4% of light, causing flare and ghosting. Modern multi-coatings bring reflection down to a fraction of a percent per surface. Coatings also protect glass and can repel water and dust.
How the Aperture and Shutter Control Exposure
The aperture is an adjustable opening inside the lens, formed by overlapping blades. Its size is given as an f-number (f/2.8, f/8, etc.), which is the focal length divided by the effective aperture diameter. A smaller f-number means a larger opening and more light. Each full stop (e.g., f/2.8 to f/4) halves the light.
Aperture also affects depth of field—the range of distances that appear sharp. A large aperture (small f-number) gives a shallow depth of field, blurring the background; a small aperture (large f-number) keeps more of the scene in focus. This is why portrait photographers often use f/1.8 or f/2.8 to isolate the subject.
The shutter, usually in the camera body, controls how long the sensor is exposed. Together, aperture and shutter set the exposure, along with ISO sensitivity. The lens's maximum aperture is a key spec: a "fast" lens with f/1.4 or f/2.8 lets in more light, enabling faster shutter speeds in low light.
Focusing Mechanisms: From Manual to Autofocus
Focusing adjusts the distance between lens elements (or the whole lens) and the sensor so that light from the subject converges precisely on the sensor. In manual focus, you turn a ring that moves the lens groups. In autofocus, a motor inside the lens (or in the camera body) moves the elements based on signals from the camera's autofocus sensor or image sensor.
There are two main autofocus motor types: stepper motors (quiet, smooth, common in mirrorless lenses) and ultrasonic motors (fast, used in many DSLR lenses). Some lenses have a switch for manual focus override, allowing you to fine-tune after autofocus.
Focus breathing is a subtle effect where the field of view changes slightly as you focus. It's more noticeable in macro and cinema lenses, where it can be undesirable for video.
Zoom vs. Prime Lenses: Trade-offs
Prime lenses have a fixed focal length. They are typically simpler optically, often sharper, and can have larger maximum apertures. Zooms cover a range of focal lengths (e.g., 24-70mm) but involve more complex mechanics and optics, often with a smaller maximum aperture.
Zoom lenses move groups of elements to change focal length while keeping focus. This can introduce slight variations in sharpness across the zoom range. Primes avoid this but require you to change lenses or move to reframe. Many photographers use primes for low-light and portrait work, and zooms for convenience and travel.
Common Lens Problems and What They Mean
- Chromatic aberration: Color fringing at high-contrast edges, caused by different wavelengths focusing at different points. Low-dispersion glass and aspherical elements reduce it.
- Distortion: Straight lines appear curved (barrel distortion in wide lenses, pincushion in telephotos). Corrected in software or with lens design.
- Vignetting: Darkening at the corners, often wide open. Stopping down reduces it.
- Flare and ghosting: Unwanted light reflections, especially when shooting into the sun. Lens coatings and hoods help.
- Softness: Can be due to shooting wide open, diffraction at small apertures (e.g., f/16), or a poorly aligned element.
A common misconception is that a more expensive lens is always sharper. In reality, sample variation exists, and technique (focus accuracy, stability) often matters more than the lens itself.
Frequently Asked Questions
What does the f-number on a lens mean?
The f-number is the ratio of focal length to aperture diameter. A smaller number means a larger opening, letting in more light and reducing depth of field. It's written as f/2.8, for example.
Why do some lenses have a maximum aperture that changes when you zoom?
Variable-aperture zooms (e.g., f/3.5-5.6) are cheaper and smaller because the aperture opening stays physically similar while the focal length changes, so the f-number shifts. Constant-aperture zooms maintain the same f-number throughout the zoom range but are larger and more expensive.
Can I use a lens from one brand on a camera from another?
Usually not directly, because mounts differ. However, adapters exist for many combinations, though they may limit autofocus or aperture control. Some third-party manufacturers make lenses for multiple mounts.
What is a lens hood for?
A lens hood blocks stray light from entering the lens, reducing flare and improving contrast. It also offers some protection against bumps and rain.
Does a longer focal length always mean a larger lens?
Generally yes, because a longer focal length requires more distance between the lens and sensor, but design choices (e.g., telephoto designs that fold the light path) can shorten the physical length. A 400mm lens is typically much larger than a 50mm lens.
How does image stabilization work in a lens?
Lens-based stabilization uses gyroscopes to detect camera shake and moves a lens group to compensate, reducing blur at slow shutter speeds. It's especially useful for handheld shooting in low light.