POST · PHYSICS

How Does a Lens Work?

Convex and concave lenses, explained visually — refraction, focal length, and real vs virtual images.

8 MIN READ · INTERACTIVE RAY DIAGRAM INSIDE

Look through a magnifying glass, a camera lens, or a pair of glasses, and you're watching light bend on command. Here's exactly how a lens pulls that off — with the diagrams to prove it.

A lens is a piece of transparent material — usually glass or plastic — with at least one curved surface. Its entire job is to refract light: to bend light rays as they pass through, steering them toward or away from a single point. That simple trick is what lets a lens magnify, focus, and form images.

CONVEX

Converging Lens

Thicker in the middle, thinner at the edges. Bends parallel light rays inward to a focal point.

CONCAVE

Diverging Lens

Thinner in the middle, thicker at the edges. Bends parallel light rays outward, away from a focal point.

FOCAL LENGTH

The Key Number

The distance from the lens to its focal point. Shorter focal length = stronger bending.

Why Lenses Bend Light: Refraction

REFRACTION

Light travels at different speeds in different materials. In air, it's almost at its maximum speed; in glass or water, it slows down. When a light ray passes from one material into another at an angle, that change in speed makes the ray bend. This bending is called refraction.

A lens takes advantage of refraction on both of its curved surfaces. Because the surface is curved, light hitting different parts of the lens enters at different angles and bends by different amounts. The result is that rays that were traveling parallel can be brought together — or pushed apart.

Think of it like this

Imagine a line of people walking side-by-side into soft sand from pavement. If they hit the sand at an angle, the first foot to hit the sand slows down, and the whole line pivots. Light does exactly this when it enters glass.

Convex Lenses: Converging Light

CONVERGING

A convex lens is thicker in the middle and thinner at the edges. When parallel rays of light pass through it, they are bent inward and meet at a single point on the other side, called the focal point. Because it brings rays together, a convex lens is also called a converging lens.

The distance from the center of the lens to the focal point is the focal length (f). A convex lens with a short focal length is thicker and bends light more sharply; a longer focal length means gentler bending.

1/f = 1/v − 1/u The lens formula · f = focal length · v = image distance · u = object distance

Ray diagrams for a convex lens

Three standard rays tell you everything about where an image will form:

  1. A ray parallel to the principal axis bends through the focal point on the far side.
  2. A ray through the center of the lens passes straight through without bending.
  3. A ray through the near focal point emerges parallel to the principal axis.

Where these three rays meet is where the image forms. Depending on how far the object is from the lens, that image can be real or virtual, upright or inverted, larger or smaller.

Image type Real, inverted

Move the sliders: when the object sits inside the focal length, the image flips to virtual and upright — the magnifying-glass case.

Concave Lenses: Diverging Light

DIVERGING

A concave lens is thinner in the middle and thicker at the edges. Parallel rays passing through it are bent outward, away from the principal axis. They spread apart as if they were coming from a single point behind the lens — the focal point on the same side as the object.

Because it spreads light out, a concave lens is called a diverging lens. It always produces a virtual, upright, and smaller image, no matter where the object is placed.

Real-world use

Concave lenses are used in eyeglasses for nearsightedness (myopia), peepholes, and some camera viewfinders. They can't project an image onto a screen, but they can correct the way light enters the eye.

Convex vs Concave: Side by Side

Here's the whole picture in one table — shape, behavior, image type, and common uses.

FeatureConvex lensConcave lens
ShapeThicker in the middleThinner in the middle
Effect on lightConverges (brings together)Diverges (spreads apart)
Focal pointReal, on the opposite sideVirtual, on the same side
Image typeReal or virtual (depends on distance)Always virtual
Image orientationInverted (real) or upright (virtual)Always upright
Common usesMagnifying glass, camera, farsighted glassesNearsighted glasses, peepholes

Where You'll Find Lenses in Action

Lenses are everywhere once you start noticing them. Here are a few everyday examples where the physics shows up directly.

  • Eyeglasses: convex lenses correct farsightedness (hyperopia); concave lenses correct nearsightedness (myopia).
  • Cameras: a convex lens focuses light onto a sensor, forming a real, inverted image that the camera records.
  • Magnifying glass: a convex lens held close to an object creates a virtual, upright, magnified image.
  • Microscopes and telescopes: multiple lenses work together, some convex, some concave, to produce highly magnified or far-reaching views.
  • Human eye: the eye's natural lens is a flexible convex lens that changes shape to focus on near or far objects.
A quick way to remember

Convex = converge (both start with "con-"). Concave = cave in, so it spreads light outward. The middle of a convex lens bulges like a hill; the middle of a concave lens dips like a cave.

FAQ

Questions people actually ask.

The short answers — with the long ones one tap away.

What is the difference between a convex and a concave lens?+

A convex lens is thicker in the middle and thinner at the edges, so it converges parallel light rays to a focal point. A concave lens is thinner in the middle and thicker at the edges, so it diverges parallel light rays outward as if they came from a focal point behind the lens.

What is the lens formula?+

The lens formula is 1/f = 1/v − 1/u, where f is the focal length, v is the image distance, and u is the object distance. It works for both convex and concave lenses when the correct sign conventions are used.

What is the difference between a real image and a virtual image?+

A real image is formed when light rays actually converge at a point, and it can be projected onto a screen. A virtual image is formed where light rays only appear to come from, so it cannot be projected onto a screen and is seen only by looking through the lens.

Why does a convex lens magnify?+

When an object is placed closer to a convex lens than its focal length, the lens forms an upright, virtual image that is larger than the object. This is exactly how a magnifying glass works.

What is focal length?+

Focal length is the distance from the center of a lens to its focal point, where parallel rays either converge (convex) or appear to diverge from (concave). A shorter focal length means a stronger, more sharply bending lens.

Where are convex and concave lenses used in real life?+

Convex lenses are used in magnifying glasses, cameras, eyeglasses for farsightedness, and microscopes. Concave lenses are used in eyeglasses for nearsightedness, peepholes, and some telescope eyepieces.