Understanding Lens Distortion: Barrel, Pincushion, and Perspective

A chain-link fence seen through a fisheye lens, its straight top rail bent into a long curve that sweeps around the round edge of the frame
Photo: Lomo Fence by Duncan Rawlinson. The top rail of this fence is a straight pipe, but it sits well off center, so the fisheye records it as a long arc: the outward bowing that barrel distortion produces in a far milder way, here made obvious.

Lens distortion is when a lens draws straight lines as curves, so a door frame near the edge of a photo bows or a horizon sags at both ends. It is only one of five different things people call “distortion”, and only this one is fixed by a lens profile. Name the cause first and the right fix is usually obvious.

The reason this page exists is that the word does too much work. Big noses in close-ups, buildings that lean backward, wide faces at the end of a group shot and curved horizons all get called distortion, and each has a different cause. Some are the lens, some are where you stood, some are where you pointed the camera and some are simply what a wide picture looks like. You will get the five sorted below, with the numbers, so you can look at any odd frame and say which one it is.

What lens distortion is: magnification that changes from center to edge

An ideal ordinary lens is rectilinear: every straight line in the scene stays straight in the picture. A real lens gets close, but its magnification usually changes a little with distance from the center of the frame. If the picture is magnified slightly less toward the edges, everything out there is pulled inward and straight lines bow outward. If it is magnified slightly more, they bow inward.

Two consequences follow from that one idea, and they are the quickest way to recognize it in a photo:

  • Lines through the center stay straight. Only lines that run off-center curve, and the farther from the center they run, the more they curve. Put a horizon through the middle of the frame and it stays flat. Put it near the top and it bends.
  • Shape changes, sharpness does not. Distortion moves detail to the wrong place. It does not blur it, fringe it or darken it. Soft corners, color fringes and dark corners are different faults, covered on the chromatic aberration and vignetting pages.
Barreledges bow outwardPincushionedges bow inwardMustachebows out, then in
How a lens with each kind of distortion would record a flat, square grid photographed straight on. The two thick lines through the center stay straight in every case; everything else curves more the farther it sits from the center.

Barrel distortion

Barrel distortion bows straight lines outward, as if the picture were printed on the side of a barrel. It is the common kind in wide-angle lenses and in zoom lenses at their shortest focal length. It puffs out a wall of tiles and makes a horizon near the top or bottom of the frame sag or hump.

Pincushion distortion

Pincushion distortion bows lines inward, so the middle of each edge looks pinched toward the center and the corners look pulled out. It is typical of telephoto lenses and of zooms at their longest setting. It is easy to miss because long-lens pictures have fewer straight lines near the edges, but a window frame or a fence at long focal lengths can show it.

Mustache distortion

Mustache (or wavy) distortion is a mix: barrel near the center turning into pincushion toward the edges, so a straight line near the top of the frame rises, dips and flicks up again like a handlebar mustache. It is the awkward one, because a single distortion slider pushes the whole frame one way and cannot straighten a line that bends both ways. A lens profile can.

Why lenses distort, and what does not change it

Distortion is a design trade-off, not a flaw of wide angles as such. It comes mostly from how lopsided the lens design is around its aperture. Designs that are close to symmetrical front to back can be almost free of it, even at wide angles. Most wide lenses for interchangeable-lens cameras, and almost all zooms, are strongly asymmetrical so that they sit far enough from the sensor and stay a sensible size, and they distort more. A typical zoom shows barrel at the wide end, pincushion at the long end and a nearly clean point in between. Prime lenses are not automatically free of it: plenty of wide primes show plain barrel.

Some things do not change it at all. Stopping down does not reduce distortion: the lines are as bent at f/11 as at f/2.8. Stopping down changes sharpness and vignetting. Distortion is set by the lens design, the focal length on a zoom, and to a lesser degree the focus distance.

Looking straight up into a mall skylight: nested octagonal frames of gray steel and glass panels with blue sky, every edge and glazing bar running dead straight to the borders of the frame
Photo: Nostalgic Mall Skylight Evoking Memories of Youth by Duncan Rawlinson. 7mm, f/1.8, 1/2200, ISO 100. Shot at 7 mm pointing straight up and square to the ceiling, and every glazing bar runs straight right to the frame edges: a wide lens, after any correction the camera applied, can record straight lines as straight.

Lens reviews often give distortion as a percentage measured from a test chart: how far the edge of the picture is pulled in or pushed out compared with a perfect rectilinear image. By the usual convention a negative figure means barrel and a positive one pincushion. As a rough guide, about 1 percent or less is hard to see outside architecture and product shots, while 3 percent or more visibly bends a straight horizon. Different test methods report on different scales, so compare figures only within one source.

Which distortion is it? Five causes and their fixes

Most pictures people call “distorted” have nothing wrong with the lens. Match what you see to one of these before reaching for any fix.

  1. Straight lines curve, more so near the edges, and lines through the center stay straight. This is true lens distortion (barrel, pincushion, mustache). A lens profile fixes it, or a distortion slider.
  2. Almost every line curves strongly, often inside a round picture. This is a fisheye lens, which uses a different projection on purpose. A lens profile will not help, because the lens is doing its job. A defish tool can flatten it at the cost of a large crop.
  3. Lines stay straight but lean together, like a building tapering toward the sky. This is converging verticals from a tilted camera. Hold the camera level, step back, use a shift lens, or straighten with a transform tool.
  4. Lines stay straight but round things near the edges look stretched, such as wide faces and oval wheels. This is rectilinear projection at a wide angle. A lens profile does not help, and correcting barrel makes it slightly worse. Keep people away from the edges, use a longer lens, or change the projection.
  5. Near things look huge and far things tiny, or the background looks stacked close behind the subject. This is perspective, set by camera-to-subject distance. Nothing in a lens profile touches it. Change where you stand, then choose the focal length that frames the shot.

Only the first is lens distortion in the strict sense. The rest are about geometry and where you put the camera, and the sections below take them one at a time.

Fisheye: curved lines on purpose

A fisheye lens is not a badly corrected wide angle. It squeezes a huge angle of view, often 180 degrees across the diagonal or the whole circle, into the frame by letting straight lines curve. A rectilinear lens cannot do that: as its angle of view approaches 180 degrees, the edges would have to stretch without limit. So a fisheye bends lines instead. Like ordinary distortion, a line through the center of the picture stays straight.

You can “defish” a fisheye picture in software into a rectilinear one, but you lose a lot of the frame and the edges stretch heavily, which is the price of the wide view. Most people who use a fisheye want the curve. The fisheye lens page covers the circular and full-frame types and what each sees.

A fisheye picture of a rectangular red sign in a plain green frame, its edges bowed outward and a black circular border around the image
Photo: all business girls bringing sailors into the hotel must register at the front desk by Duncan Rawlinson. Straight edges bow outward and the picture is a circle in the frame: a fisheye bends lines on purpose to fit a huge angle of view, and the sign’s frame shows it.

Stretched edges: the wide-angle effect a lens profile cannot fix

This is the one most often blamed on the lens. In a wide group photo, the people at the ends look wider and their heads look oval, even though the walls and door frames behind them are perfectly straight. That is not barrel distortion. It is what a perfect rectilinear lens does. To keep straight lines straight on a flat sensor, it has to spread anything at a steep angle from the center across more of the frame, and a round object out there comes out longer in the direction pointing away from the center.

The stretch is easy to compute. For a small round object, its length along the line from the center divided by its width across it is 1 divided by the cosine of the angle between the object and the lens axis. The corners of a full frame sensor are 21.6 mm from its center (half of the 43.3 mm diagonal), so the angle at a corner is the arctangent of 21.6 divided by the focal length. The middle of the long edge is 18 mm out, so use 18 there.

Focal length (full frame)Angle at the cornerRound object stretched by, in the cornerAt the middle of the long edge
14 mm57 degrees1.84x1.63x
20 mm47 degrees1.47x1.35x
24 mm42 degrees1.35x1.25x
35 mm32 degrees1.18x1.12x
50 mm23 degrees1.09x1.06x
85 mm14 degrees1.03x1.02x

On a smaller sensor, use the full frame equivalent focal length: a 16 mm lens on a camera with a 1.5x crop factor behaves like the 24 mm row. A face in the corner of a 24 mm frame is about a third wider than it should be, and in the corner of a 14 mm frame close to twice as wide. At 50 mm it barely registers.

1.00x1.21x1.59x1.41x1.17x14 mm lens, full frame, no lens distortion
Five identical balls photographed with a perfect, distortion-free 14 mm lens on full frame. Each is stretched along the line pointing away from the center, by the factor shown. Every straight line in the same picture would still be straight.

Two things follow. First, applying a lens profile does nothing for stretched faces. Removing barrel actually pushes the edges outward and stretches them a little more, because mild barrel was partly cancelling the effect. Second, the effect depends on viewing distance. A wide picture looks natural when you view it from the distance at which it covers the same angle the lens saw: the focal length times the enlargement. A 14 mm frame printed 36 cm wide is enlarged 10 times, so it looks right from 14 cm away, which nobody does. A 50 mm frame at the same size looks right from 50 cm, about where you would hold it.

The practical fixes: keep faces and round objects out of the edges and corners of a wide frame, step back and use a longer focal length when people matter, and for wide group shots or tall interiors use your editor’s cylindrical or similar projection, which trades a little line curvature for rounder heads.

Lining up a big group? How to photograph groups covers lens choice and where to put people so nobody ends up at the stretched edge.

Perspective distortion: set by where you stand

Perspective distortion is the change in relative size between near and far things, and it depends only on where the camera is. Photograph a face from 30 cm and the nose, about 12 cm closer to you than the ears, is recorded about 1.4 times larger relative to them than it would be from far away. The lens has nothing to do with it. Distance does. The table assumes head-and-shoulders framing on full frame (about 50 cm of subject across the long side of the frame) and shows the lens that gives that framing at each distance.

Camera to noseLens for head-and-shoulders framingNose size relative to ears
30 cmabout 20 mm1.40x (ears at 42 cm)
60 cmabout 40 mm1.20x
1.5 mabout 100 mm1.08x
3 mabout 200 mm1.04x

That is why portrait photographers favor 85 to 135 mm on full frame (about 55 to 90 mm on a 1.5x crop camera): those lenses fill the frame with a head and shoulders from roughly 1.3 to 2 m away, where the face keeps its usual proportions. A wide lens used from close up gives the big-nose look. The same wide lens used from 2 m gives a normal-looking face, small in a big frame. Crop that frame to head and shoulders and you get the proportions of a 135 mm shot from the same spot, with fewer pixels.

The same rule runs in reverse at a distance. A long lens seems to compress a scene, with a mountain stacked right behind a nearby building, because you had to stand far back to frame them, and from far back the two are similar distances from you. Going close with a wide lens stretches space instead: a rock 50 cm from the lens towers over hills a kilometer away. Neither can be fixed in software, because how much each thing should grow or shrink depends on how far away it was, which a flat photo does not record.

Move the camera and change the focal length yourself in the tool below. Choose “Keep the person the same size”, change the focal length, and watch the background grow or shrink while the person stays put. Then choose “Stand still” and see that zooming alone only crops.

Want the whole idea of perspective, not just faces? Perspective distortion covers extension, compression and how to use each, and lens compression goes deeper on the background effect.

Converging verticals: the camera is tilted

Point a camera up at a tall building and its sides lean toward each other, as if it were falling backward. This is often called keystone distortion, and the lens does not cause it. Any lens does it, because the sensor is no longer parallel to the face of the building, so the top is farther away and comes out smaller. Point the camera down from a high window and the verticals converge toward the bottom of the frame instead. Barrel distortion bends lines. Tilt keeps them straight and makes them lean.

A two storey weathered house under an overcast sky, its roof edges, windows and walls shown with straight lines
Photo: Scary Looking House by Duncan Rawlinson. 55mm, f/8, 1/400, ISO 400. At 55 mm, f/8, the roof lines and walls stay straight, a baseline for what a low-distortion lens looks like.

Fixes, in order of how much picture they keep:

  • Hold the camera level and step back, then crop away the empty foreground.
  • Use a shift lens, which slides the lens up so the top of the building fits while the sensor stays parallel to it.
  • Straighten the lines afterward with your editor’s perspective transform. It crops the frame and stretches the top, so leave room around the building when you shoot.

Correcting verticals fully can make a tall building look top-heavy, and many architectural photographers leave a slight lean in.

Verticals leaning because you tilted the camera up? The Transform tool walks through straightening them step by step.

Correcting lens distortion in software

Real lens distortion is the easy one to fix, because for a given lens and focal length it is the same in every picture.

  • Lens profiles. Most editors, and many phone and camera apps, hold correction profiles for thousands of lenses. Turn on profile correction and the editor reads the lens and focal length from the EXIF data and undoes that lens’s measured distortion, mustache included. This is the most accurate method and the one to try first.
  • A distortion slider. With no profile (an adapted old lens, for example), drag the slider while watching a straight line near the edge, with a grid overlay on. It works well for simple barrel or pincushion and poorly for mustache.
  • In-camera correction. Many cameras correct distortion in JPEGs automatically, and many mirrorless lenses are designed to rely on it, which keeps them small. In raw files the correction is often stored as an instruction that the editor applies, sometimes with no option to turn it off.

Correction is not free. Straightening barrel stretches the edges outward, so the corners are cropped away and the edges lose a little resolution. Correct lens distortion before you straighten perspective, because the transform needs straight lines to work from, and leave a little room around the edges when you shoot anything that will need both.

Not every picture needs it. A landscape of trees and rocks has no straight lines to betray mild barrel, and correction only costs pixels. Correct when a straight line in the picture looks wrong.

Want the full set of fixes, including vignetting and color fringes, in the order an editor applies them? Lens corrections covers each panel.

Using distortion on purpose

Each of these effects can serve a picture. Going close with a wide lens makes a foreground flower or rock dominate the frame, which is why landscape photographers put strong shapes a step from the lens. In street photography, working close with a wide lens gives the feeling of standing inside the scene. A long lens from far away stacks hills, streets and crowds into flat layers. A fisheye curve makes a skate ramp or a small room feel enormous. Converging verticals, pushed hard from the foot of a tower, make it soar. The wide-angle lens page covers working close. The only rule is to decide: lean all the way in, or keep the lines straight.

Where straight lines are the job, as in real estate and architecture, bowed door frames and leaning walls read as careless, so correct the lens first and the verticals second, every time.

Common mistakes with lens distortion

  • Blaming the lens for stretched faces. Edge stretching comes from rectilinear projection, not barrel distortion. A profile will not round a stretched head. Moving the person toward the center, or stepping back with a longer lens, will.
  • Calling a leaning building barrel distortion. If the lines are straight but converge, the camera was tilted. A distortion slider will just bend them.
  • Thinking wide lenses distort faces. Distance does that. A wide lens only tempts you to stand too close to fill the frame.
  • Stopping down to reduce distortion. Aperture has no effect on how straight lines bend. Pick a different focal length on a zoom, or correct it afterward.
  • Assuming a prime is distortion-free. Many wide primes show plain barrel. Test yours on a straight line.
  • Judging a lens with in-camera correction on. A JPEG that looks clean may already have been corrected. Check the camera’s correction setting, or look at the raw file with correction off.
  • Putting the horizon at the top or bottom of a wide frame. Barrel bends it into a dome or a dip. Keep straight horizons near the middle, then crop.

Try this: a ten-minute distortion hunt

You need a flat wall with straight lines (tiles, bricks, a bookcase or a window grid), a zoom lens or a phone with more than one camera, and a friend or a ball.

  1. Turn off in-camera distortion correction if your camera has the setting, or shoot raw. Stand square to the wall with the camera level so the wall fills the frame.
  2. Take one frame at your widest setting with a line of the wall along the top edge, and a second with that line through the center. Repeat at your longest setting.
  3. Without moving your feet, tilt the camera up so the verticals lean. Take one frame.
  4. Put your friend’s face or the ball in a corner of the widest frame, then in the center. Take both.
  5. At the widest setting take a head-and-shoulders frame from close up, then step back until a long setting gives the same framing, and take another.

How to judge it. Lay a ruler on the screen. The line along the top edge at the wide end should hump outward (barrel), at the long end it may pinch inward (pincushion), and the same line through the center should be straight. If both are straight, your lens is well corrected or the correction is baked in. Now turn on the lens profile: the curve should vanish, while the leaning verticals, the oval face in the corner and the big nose in the close frame stay as they were. If you can name which of the five causes produced each, you have it.

Want to measure more than distortion while you are at it? How to test a lens checks sharpness, decentering and focus accuracy with a flat target.

Want to check you can tell barrel, pincushion and perspective distortion apart? Try the lens distortion quiz.

Lens distortion questions

Is lens distortion a sign of a bad lens?

No. Most lenses have some, and many good modern lenses are deliberately designed with more of it because software removes it cleanly and the lens can be smaller. What matters is whether it is corrected, by a profile or by the camera, before you look at the picture.

Does a phone camera have lens distortion?

Yes, especially the ultra-wide camera, but the phone corrects it before you see the picture. What you still see in ultra-wide shots is edge stretching from the wide projection, which is why people at the ends of a group selfie look wider. Some phones add a separate face correction for that.

Why do the stretched edges of a wide photo look normal when I put my eye close to it?

Viewing distance. A wide frame looks natural only from the focal length times the enlargement, which for a 14 mm frame printed 36 cm wide is 14 cm. Bring your eye that close and the edge stretch fades. Step back and it returns.

Which focal length has no distortion?

None is guaranteed. On many zooms the cleanest point is somewhere in the middle of the range, and longer primes usually show very little. Test your own lens on a straight line with correction off to find out.

Can I fix a big nose from a close-up portrait in software?

Not properly. The nose is too big because it was closer than the rest of the face, and the photo does not record how much closer, so no profile can undo it. Some editors can warp faces to hide it, but the real fix is to step back and use a longer focal length.