Home › Optics & camera tech

Lens distortion explained

6 min read · Updated

Lens distortion is when a lens renders straight lines as curves because magnification changes from the centre to the edges of the frame. Barrel distortion bows lines outward, pincushion pulls them inward and mustache mixes both. Most of it can be corrected with lens profiles in camera or in editing software.

Lens distortion explained
Image: WolfWings, Public domain · Wikimedia Commons

In short

  • Distortion bends straight lines because magnification varies across the frame; it does not blur the image.
  • Barrel is common in wide-angle lenses and zooms at the wide end; pincushion at the long end of zooms.
  • Mustache distortion changes direction across the frame and is harder to fix by hand.
  • Lens profile correction fixes most of it, at the cost of a slight crop and some edge softening.

What lens distortion is

A perfect lens would keep every straight line in the scene straight in the picture. Real lenses bend some of them because the magnification is not quite the same at the centre and at the edges of the frame. Lines through the centre stay straight; lines near the edges curve.

This is a geometric error, not a sharpness problem. A strongly distorted image can still be very sharp. It simply puts details in slightly the wrong place.

Barrel distortion

In barrel distortion, magnification falls towards the edges, so straight lines bow outward like the sides of a barrel. It is typical of wide-angle lenses and of zooms at their widest setting.

Fisheye lenses are an extreme case. They accept very strong barrel distortion on purpose so they can fit a very wide view, around 180 degrees on some designs, into the frame.

Pincushion and mustache distortion

In pincushion distortion, magnification rises towards the edges, so lines curve inward towards the centre, like a cushion pinned at its corners. It often appears at the long end of zoom lenses.

Mustache, or wavy, distortion starts as barrel near the centre and turns into pincushion towards the corners. A horizon near the top of the frame may look like a gentle moustache. It is common in compact wide-angle designs and is hard to correct with a single slider.

Distortion vs perspective

Lens distortion is easy to confuse with perspective effects. Tall buildings that lean backwards when you tilt the camera up, or a big nose in a close-up portrait, come from where the camera stands and where it points, not from the lens design.

A well-corrected wide-angle lens, often called rectilinear, still stretches objects near the corners. That stretching is a property of projecting a wide view onto a flat sensor. To reduce it, step back, keep important subjects away from the corners, or keep the camera level.

When it matters

Distortion shows most in architecture, interiors, products, documents and any scene with straight lines near the edges, especially a horizon or doorframe close to the frame edge.

In landscapes with no straight lines, portraits or street photos, a small amount of distortion usually goes unnoticed.

How to correct it

Many cameras apply a distortion correction to JPEGs and to the preview automatically. Raw editors offer lens profiles that store the measured distortion of a specific lens and undo it with one click.

Without a profile, a manual distortion slider handles simple barrel or pincushion; mustache needs a profile or a grid-based tool. Correction stretches parts of the image, so the edges are cropped slightly and corners can lose a little sharpness.

For important straight lines, compose with a little extra space around the subject so the crop after correction does not cut anything you need.

Frequently asked questions

Is distortion a sign of a bad lens?

Not necessarily. Many modern lenses are designed to rely on software correction, which lets them be smaller or lighter. What matters is how clean the result is after correction.

Why do my raw files look more distorted than the JPEGs?

The camera often corrects JPEGs automatically. Some raw editors apply the same correction by default; others need you to turn on the lens profile.

Can I correct a fisheye image to look normal?

Partly. Defishing straightens lines but stretches the edges heavily and crops the frame. The result looks like a wide rectilinear shot with softer corners.

Does distortion change with focus distance?

Yes, slightly with many lenses. Lens profiles sometimes account for focus distance as well as focal length.

Sources

Keep reading