Lenses work by refracting light as it passes through transparent material with curved surfaces, causing light rays to change direction in ways that can produce convergence or divergence. Refraction occurs because the speed of light in a material differs from its speed in vacuum, and the direction of propagation changes when light crosses an interface at an angle.
The relationship between the incident and refracted directions is described by Snell's law, which connects the angles to the refractive indices of the two media. A lens is normally made from glass or plastic whose refractive index differs from that of the surrounding air. Because the surfaces of a lens are curved, different portions of the wavefront encounter the material at different angles.
The resulting changes in direction can transform an approximately parallel bundle of rays into a converging bundle or cause rays to spread apart. The ability to control these paths allows lenses to form images, magnify objects, focus light onto detectors, correct vision, and manipulate optical beams.
The shape and refractive index of a lens determine its optical power. A converging lens is generally thicker near its centre than at its edges and can cause parallel rays entering the lens to approach a common focal region after refraction. A diverging lens is generally thinner near its centre and causes parallel rays to spread apart after passing through it, with the rays appearing to originate from a virtual focal point.
The focal length is the distance between the principal plane of the lens and its focal point under the relevant approximation. Optical power is commonly expressed in dioptres and is equal to the reciprocal of focal length when the focal length is expressed in metres. A shorter focal length corresponds to greater optical power. The sign convention distinguishes converging and diverging systems. Real lenses have finite thickness, curvature, material dispersion, and imperfections, so simple thin lens models are approximations that work most effectively when the lens is sufficiently thin and the rays remain close to the optical axis.
Image formation occurs because each point on an illuminated object sends or reflects light in many directions, and the lens redirects portions of that light so that corresponding rays can converge or appear to diverge from particular image locations. When a converging lens forms a real image, rays from an object point actually meet at the corresponding image point on the opposite side of the lens. A real image can be projected onto a screen.
When the object is inside the focal length of a converging lens, the emerging rays diverge and appear to originate from an upright enlarged virtual image on the same side as the object. A diverging lens generally produces an upright, reduced virtual image for a real object. These relationships can be calculated using the thin lens equation, which relates focal length, object distance, and image distance. Magnification describes the ratio between image size and object size and depends on the geometry of the object and image positions.
Lenses can be understood not only through individual rays but also through wave optics. Light is an electromagnetic wave, and a lens changes the phase and direction of the wavefront as light travels through regions of different optical path length. A well designed converging lens transforms an approximately planar incoming wavefront into a converging wavefront, while a diverging lens produces a wavefront that spreads outward.
The focal point is therefore a consequence of the coordinated modification of the wavefront rather than simply a mechanical bending of independent rays. This wave description becomes especially important when analysing diffraction, interference, resolution, laser beams, microscopy, and very small optical structures. Geometric ray diagrams remain extremely useful for many ordinary lens problems, but they are an approximation to the fuller electromagnetic description. The two descriptions are complementary rather than contradictory, with geometric optics becoming especially useful when the wavelength is much smaller than the relevant dimensions of the optical system.
Real lenses do not focus every wavelength at exactly the same location because refractive index usually varies with wavelength. This phenomenon is called dispersion and can produce chromatic aberration, in which different colours are focused at different positions. Lenses can also suffer spherical aberration because rays passing through different distances from the optical axis may not converge at exactly the same point when simple spherical surfaces are used.
Coma, astigmatism, field curvature, distortion, and other aberrations can affect image quality in more complex systems. Optical designers use combinations of lens elements, specialised glass or plastic materials, aspheric surfaces, coatings, and computer optimisation to reduce these effects. Achromatic doublets combine materials with different dispersive properties to reduce chromatic aberration over selected wavelength ranges. Modern photographic and scientific lenses may contain many elements carefully positioned to balance image quality, size, cost, transmission, and manufacturing complexity.
Lenses are used in spectacles and contact lenses to correct refractive errors of the human eye. They are also fundamental components of cameras, microscopes, telescopes, binoculars, projectors, magnifiers, optical sensors, laboratory instruments, medical endoscopes, laser systems, fibre optic equipment, and machine vision systems. In a camera, the lens gathers light from a scene and forms an image on a sensor. In a microscope, combinations of objective and eyepiece lenses provide angular magnification and allow small structures to be resolved.
In a telescope, an objective lens gathers light and forms an image of a distant object, although large astronomical telescopes commonly use mirrors because large lenses are difficult to manufacture and support. In optical communication systems, lenses can collimate or focus beams. In medical equipment, specialised lenses help form images of internal structures or manipulate illumination.
Lens systems can contain multiple elements because a single lens often cannot simultaneously provide the required focal length, field of view, brightness, correction, and compactness. Compound lenses allow optical designers to distribute refractive power across several surfaces and materials. Zoom lenses change effective focal length while maintaining approximate focus over a range of viewing angles. Telephoto designs use multiple elements to produce a long effective focal length within a physically shorter body.
Wide angle systems provide a large field of view but require careful control of distortion and aberrations. Fresnel lenses replace a conventional thick curved profile with concentric stepped sections that preserve much of the desired refractive effect while reducing thickness and mass. Graded index lenses change refractive index gradually through the material rather than relying solely on curved surfaces. These variations show that the essential function of a lens is not defined by one particular shape but by controlled modification of optical wave propagation.
The practical operation of lenses depends on factors including refractive index, curvature, thickness, wavelength, aperture, alignment, surface quality, surrounding medium, and object distance. A lens immersed in water, for example, behaves differently from the same lens in air because the difference between the refractive index of the lens and its surroundings is reduced. A lens also cannot create information that was never captured by the incoming light, so magnification does not automatically produce additional detail.
Increasing magnification can make an image larger without increasing its resolving power. Resolution is limited by diffraction, aberrations, aperture, detector properties, and other factors. Lenses therefore work by controlling the propagation of existing electromagnetic radiation. Their extraordinary usefulness comes from the fact that carefully engineered transparent surfaces can transform the direction and phase of light with high precision, allowing complex optical instruments to convert light from physical objects into measurable or perceptible images.