Lens distortion (barrel and pincushion)
Lens distortion is an optical flaw that curves lines that should be straight. Barrel bulges them outward and pincushion pulls them inward.
Also known as: optical distortion, barrel distortion, pincushion distortion
Lens distortion is an optical flaw that curves lines that should be straight. Barrel distortion curves lines outward (like a barrel), is typical of wide-angle lenses and is very visible on the horizon or building edges. Pincushion distortion curves lines inward and is more common in telephoto lenses.
Barrel bulges the sides outward; pincushion sinks them inward. The center is untouched in both.
Why do lines curve?
Because the lens's magnification is not identical across the whole image circle. If the edge is magnified less than the center, lines bulge outward and barrel appears; if the edge is magnified more, they sink and pincushion appears. The deformation grows with distance from the optical axis, which is why a line crossing the center of the frame comes out straight and the same line moved to the edge comes out curved.
This has an immediate practical consequence: you can reduce visible distortion without changing lenses, simply by placing the critical line (the horizon, the building's cornice) near the center of the frame instead of next to the edge.
How much distortion does each focal length have?
The values depend on the specific optical design and there is no universal figure, but the behavior by lens type is predictable. Focal lengths are given as 35 mm equivalents; on APS-C, multiply your focal length by the crop factor.
Equivalent focal length: 14 – 24 mm; Typical distortion: Pronounced barrel; Where you notice it: Horizon, cornices, heads at the edges
Equivalent focal length: 24 – 35 mm; Typical distortion: Mild barrel; Where you notice it: Only in the outer third of the frame
Equivalent focal length: 50 mm; Typical distortion: Almost none; Where you notice it: Practically invisible
Equivalent focal length: 85 – 200 mm; Typical distortion: Mild pincushion; Where you notice it: Door frames, masts, backgrounds with railings
Equivalent focal length: 24 – 200 mm zoom; Typical distortion: Barrel at the short end, pincushion at the long end; Where you notice it: Changes depending on where you stop the zoom
Equivalent focal length: Fisheye; Typical distortion: Extreme, deliberate barrel; Where you notice it: The whole frame, and that is the point
A zoom's distortion is not a fixed value: it changes along its range and usually crosses zero at some intermediate point. If you need straight lines with a zoom, find that zone instead of shooting at the extreme.
How do you correct it without losing framing?
Most raw developers apply the lens profile and stretch the image to straighten the lines. That stretching crops a few percent off the edge, so it pays to frame with some air around the subject when you know you will correct. Many cameras apply the correction in the JPEG and leave it as an optional instruction in the RAW.
In architecture and panoramas, correction stops being optional: a building with curved cornices reads as an error, and in a panorama the barrel in each shot keeps the seams from matching.
Common mistakes
Confusing it with perspective. A building narrowing toward the top is not barrel distortion: it is converging verticals, and it happens because you tilted the camera. It is fixed by leveling the camera and cropping, or with the perspective correction in your editor, not with the lens profile.
Always correcting out of habit. In a forest, a portrait or a scene with no geometry, barrel is not visible and the correction just crops pixels. Turn it on when there are straight lines to defend.
Putting the subject's head in the corner with a wide-angle lens. There distortion and projection stretching add up, and the face comes out widened. Center people or switch to a longer focal length.
To work with straight lines from start to finish, see the guide to panoramas and architectural photography, the article on panoramas without stitching errors and the guide to lens selection and creative use.