A lens works by refracting (bending) light as it passes from one transparent medium into another with a different refractive index, using curved surfaces to converge or diverge the light rays and form an image. The shape of the lens and the material it is made from determine exactly how the light is bent, which is why different lenses serve different purposes—from magnifying a page to capturing a photograph or correcting vision.
The Basic Physics: Refraction and Refractive Index
Refraction occurs because light travels at different speeds in different materials. In a vacuum, light moves at about 299,792 kilometers per second; in glass or water, it slows down. When light crosses a boundary between two materials at an angle, the change in speed causes the light ray to bend. This bending is described by Snell's law, which relates the angles of incidence and refraction to the refractive indices of the two materials.
The refractive index of a material is a measure of how much it slows light compared to a vacuum. Air has a refractive index very close to 1, water is about 1.33, and common glass types range from about 1.45 to 1.9. A higher refractive index means light bends more sharply at the surface, which allows lenses to be made thinner for the same optical power.
A lens uses two curved surfaces (or one curved and one flat) to bend light in a controlled way. The curvature and the refractive index together determine the lens's focal length—the distance at which parallel light rays converge to a point.
Converging and Diverging Lenses
There are two fundamental types of lenses:
- Converging (convex) lenses are thicker in the middle than at the edges. They bend parallel light rays inward so they meet at a focal point. These are used in magnifying glasses, camera lenses, and to correct farsightedness.
- Diverging (concave) lenses are thinner in the middle than at the edges. They spread parallel light rays outward, making them appear to come from a focal point in front of the lens. These are used in peepholes, some camera attachments, and to correct nearsightedness.
The focal length of a lens is the distance from the lens to the point where parallel rays converge (for a converging lens) or appear to diverge from (for a diverging lens). A shorter focal length means stronger bending power—the lens is more powerful.
How a Lens Forms an Image
When light from an object passes through a converging lens, the lens bends the rays so that they converge on the opposite side. If the object is farther from the lens than its focal length, a real image is formed—one that can be projected onto a screen. This is how a camera lens focuses light onto a sensor or film, and how the lens in your eye projects an image onto the retina.
The image can be larger or smaller than the object, depending on the distances involved. The thin-lens equation, 1/f = 1/do + 1/di (where f is focal length, do is object distance, and di is image distance), describes this relationship. A magnifying glass works when the object is closer to the lens than its focal length, producing a virtual, upright, enlarged image that the eye can see.
Diverging lenses always produce virtual, upright, reduced images, which is why they are used in applications where a wide field of view is needed without projecting a real image.
Lens Aberrations and How They Are Corrected
No simple lens is perfect. Several types of aberrations can blur or distort the image:
- Spherical aberration: Rays passing through the edges of a spherical lens focus at a slightly different point than rays through the center, causing blur. Using aspheric surfaces or combining lenses can reduce this.
- Chromatic aberration: Different colors of light bend by different amounts (dispersion), so they focus at different distances. This produces color fringing. Achromatic doublets—two lenses of different glass types cemented together—largely correct it.
- Coma: Off-axis points appear comet-shaped because rays from different zones of the lens focus at different heights.
- Astigmatism: The lens focuses vertical and horizontal lines at different distances, distorting the image.
Camera lenses and eyeglasses use multiple lens elements to balance these aberrations. A typical camera lens may contain a dozen or more elements, each with a specific shape and glass type, to produce a sharp image across the frame.
Lenses in Everyday Life
Lenses are everywhere. In eyeglasses, they correct refractive errors: myopia (nearsightedness) is corrected with diverging lenses, hyperopia (farsightedness) with converging lenses, and astigmatism with toric lenses that have different curvatures in different directions. In cameras, smartphones, and telescopes, lenses gather and focus light. In microscopes, combinations of lenses magnify tiny objects. Even the human eye contains a flexible lens that changes shape to focus on near or far objects—a process called accommodation.
Fresnel lenses, which are flat with concentric rings of prisms, are used in lighthouses, overhead projectors, and some solar concentrators. They achieve the bending power of a thick lens with much less material and weight.
Frequently Asked Questions
What is the difference between a lens and a mirror?
A lens transmits and refracts light, while a mirror reflects it. Lenses are used to focus light by bending it through the material; mirrors focus light by reflecting it off a surface. Both can form images, but the physics and applications differ.
Why does a magnifying glass make things look bigger?
When you hold a magnifying glass close to an object, the object is within the lens's focal length. The lens bends light rays so they appear to come from a larger, virtual image behind the lens. Your eye perceives this as a magnified view.
Can a lens focus all colors of light to the same point?
No single simple lens can do this perfectly because of dispersion—different wavelengths bend by different amounts. This is called chromatic aberration. Achromatic lenses, made of two different glass types, bring two colors (usually red and blue) to a common focus, greatly reducing the effect.
How does a camera lens change focus?
Camera lenses change focus by moving lens elements closer to or farther from the image sensor. This changes the distance between the lens and the sensor, adjusting the point where the image is sharpest. Autofocus systems use sensors and motors to make this adjustment automatically.
What does 'focal length' mean in photography?
Focal length is the distance from the lens to the image sensor when the lens is focused at infinity. It determines the field of view: shorter focal lengths (e.g., 24mm) give a wide view, while longer focal lengths (e.g., 200mm) magnify distant subjects. It also affects perspective and depth of field.
Are all lenses made of glass?
Many lenses are made of optical glass, but plastics such as acrylic and polycarbonate are also common, especially in eyeglasses and inexpensive camera lenses. Plastic lenses are lighter and more impact-resistant but can scratch more easily and may have different optical properties. High-quality camera lenses often use glass for its stability and optical clarity.