Lens distortion

On this page 7

Lens distortion is a geometric aberration in which a lens maps points of the scene onto the sensor at slightly the wrong distance from the image center, so that straight lines are rendered as curves even though the image may be perfectly sharp. In image quality assessment within photography, it is treated separately from sharpness and noise because it changes where detail lands rather than how clearly it is recorded.

The effect varies with focal length, lens design and focus distance, and it is one of the most predictable and correctable lens flaws, which is why modern cameras and editors remove much of it automatically.

How lens distortion arises

Distortion arises because a real lens has magnification that varies with distance from the optical axis. An ideal rectilinear lens follows the mapping in which image height equals focal length times the tangent of the field angle. When the actual image height falls short of that ideal toward the edges, the corners are compressed and the frame bulges outward; when it overshoots, the corners are stretched and the frame pinches inward.

The position of the aperture stop relative to the lens groups is a major cause. A stop placed in front of the main optical power tends to produce barrel distortion, while a stop behind it tends to produce pincushion distortion. Symmetrical designs, common in classic wide-angle and copy lenses, cancel much of the effect, whereas zoom lenses move groups around the stop and therefore change the type of distortion across their focal range.

Mathematically, the radial error is usually modeled as a polynomial in the radius, with a few coefficients describing how displacement grows toward the corners. Lens correction software applies the inverse of that model to move each pixel back to its ideal position.

Types of lens distortion

Photographers and optical engineers distinguish three main radial patterns, plus a less common tangential component. The table below summarizes how each looks and where it typically appears.

TypeVisual effectTypical sourceMost visible on
Barrel distortionStraight lines bow outward from the centerWide-angle primes, short end of zoomsHorizons near frame edges
Pincushion distortionStraight lines bow inward toward the centerTelephoto lenses, long end of zoomsDoor frames and shelves
Mustache distortionBarrel near the center, pincushion near the edgesComplex retrofocus wide-anglesArchitecture and horizons
Tangential distortionAsymmetric skew across the frameDecentered or misaligned elementsGrids and test charts
Main forms of lens distortion

Mustache distortion, also called complex or wavy distortion, is the hardest to correct by eye because a single slider cannot straighten both zones. Accurate removal requires a lens-specific profile that encodes several coefficients.

Measuring and specifying distortion

Distortion is quantified as the percentage displacement of an image point from its ideal position, usually reported at the corner or as a maximum across the frame. Negative values indicate barrel and positive values indicate pincushion. Test laboratories also use TV distortion, which compares the bowing of a straight line near the frame edge with the height of the image.

The following ranges are typical of uncorrected optics and help set expectations; actual figures vary by individual design.

Lens categoryTypical distortion rangeVisibility in practice
Symmetrical normal or macro primeUnder 0.5%Practically invisible
Fast standard primeAbout 0.5-1.5% barrelSeen only on straight edges
Standard zoom at wide endAbout 2-5% barrelObvious on architecture
Telephoto zoom at long endAbout 1-3% pincushionNoticeable on frames and shelves
Compact or smartphone wide lensOften above 5% before correctionSevere without software
Typical uncorrected distortion by lens category

A practical threshold often cited by architectural photographers is that about 1% distortion becomes visible on a straight line running near the frame edge, while values below 0.3% are generally acceptable for reproduction and copy work.

Lens distortion is often confused with other effects that also change the shape of objects. Separating them matters because each one has a different cause and a different remedy.

EffectCauseCan a lens profile fix itRemedy
Lens distortionRadial magnification error in the lensYesProfile or manual correction
Perspective distortionCamera position and subject distanceNoChange position or apply keystone correction
Converging verticalsCamera tilted up or downNoLevel the camera, use shift lens
Fisheye projectionIntentional non-rectilinear mappingOnly by reprojectionDefish with large crop
Rolling shutter skewSequential sensor readoutNoFaster readout or global shutter
Effects often mistaken for lens distortion

Perspective distortion is the most common confusion. A wide-angle lens close to a face enlarges the nose relative to the ears, but that effect comes from viewpoint geometry, not from the lens design; a perfectly distortion-free lens at the same position produces the same result. Distortion also interacts with vignetting and purple fringing, since all three are typically handled together in a lens correction profile.

Correcting lens distortion in practice

Most distortion is now removed by software correction, either in camera for JPEG and video or in a RAW converter via a lens profile. Many mirrorless systems are deliberately designed with significant optical distortion that is corrected digitally, which allows smaller and lighter lenses with better sharpness elsewhere.

Correction is not free. Remapping pixels stretches the corners, which slightly reduces resolution there, and pulling in barrel distortion requires a crop of the frame edges, narrowing the effective field of view by a few percent. For that reason, critical work favors optically well-corrected lenses.

SituationRecommended approachReason
Architecture and interiorsProfile correction plus manual fine-tuningStraight lines are judged critically
Product and copy workLow-distortion prime at moderate distanceAvoids corner softening from remapping
LandscapesProfile correction, check the horizonCurved horizons look wrong near edges
PortraitsOften leave as isSlight barrel is rarely noticed on faces
Photogrammetry and measurementFull camera calibrationRequires sub-pixel geometric accuracy
Choosing a correction approach

A common mistake is applying two corrections at once, for example in-camera correction followed by a RAW profile that assumes uncorrected data. Another is placing a horizon near the frame edge with a strong barrel lens, where even small residual curvature is clearly visible; keeping critical lines near the center reduces the problem.

The simple explanation

A lens should draw straight lines as straight lines. Many lenses do not do this perfectly. Some make the picture bulge outward like a barrel, and others make it pinch inward like a cushion.

The picture can still be sharp; only the shape is slightly wrong. It is similar to a reflection in a slightly curved mirror. Because each lens bends lines in a very regular way, cameras and editing programs can measure that pattern once and straighten the lines automatically.

How it is used in practice

A real estate photographer shoots a narrow kitchen with a zoom at 16 mm on a full-frame camera. In the RAW file, the cabinet tops near the upper edge sag into a visible curve, a classic case of barrel distortion of roughly 3-4% at that focal length.

In the RAW editor, the photographer enables the matching lens profile, which straightens the cabinets and also lifts the darker corners caused by vignetting. A small manual adjustment then removes residual curvature near the window frame, and a vertical keystone correction fixes the slight upward tilt of the camera.

The final image shows straight cabinets and vertical walls, at the cost of a slight crop of the edges. Because the photographer left extra space around the composition during shooting, nothing important is lost, and the listing looks accurate rather than warped.