Skip to content
Physics Medium #lens#optics

Lens Image Formation

Thin lens equation 1/f = 1/do + 1/di and the corresponding ray diagrams.

A free, animated lens image formation you can read here or embed on any website, from Scrollchart.

Lens Image Formation

Lens Image FormationThin lens equation: 1/f = 1/dₒ + 1/dᵢ — object at 2f gives real inverted image at 2fFFConvex lensObjectdₒ = 2fImagedᵢ = 2f, invertedRay 1: parallelRay 2: through centreRay 3: through Ff = 140f = 1401/f = 1/dₒ + 1/dᵢMagnification m = -dᵢ/dₒ = -1 (real, inverted, same size when object at 2f)

Object beyond focal point of converging lens with three principal rays converging to form a real, inverted image. Formula and magnification annotated.

Good for

  • Optics courses introducing the thin lens equation, principal rays, and real vs virtual images
  • Photography and camera-design articles explaining focal length, magnification, and depth of field
  • Vision science and ophthalmology explainers on accommodation, myopia correction, and lens design

Source & accuracy

This lens image formation is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

The thin lens equation relates object, image, and focal length

For a thin lens, the focal length f is a property determined by the lens shape and refractive index: 1/f = (n-1)(1/R1 - 1/R2), where R1 and R2 are the curvatures of the two surfaces. The lens equation 1/f = 1/d_o + 1/d_i connects the object distance d_o, image distance d_i, and focal length. A converging lens (positive f) brings parallel rays to a focus at the focal point. An object placed beyond 2f forms a real, inverted, reduced image between f and 2f on the opposite side (the basis of cameras and projectors). An object between f and 2f forms a real, inverted, magnified image beyond 2f (the basis of microscopes and telescopes). An object closer than f forms a virtual, upright, magnified image on the same side as the object (magnifying glass). Ray tracing through the principal planes and focal points provides a graphical method to find images without calculations.

Aberrations and practical design

Real lenses deviate from the thin-lens model. Spherical aberration occurs because outer rays through a spherical lens focus slightly closer than paraxial rays, blurring the image. Chromatic aberration arises because refractive index varies with wavelength, so different colors focus at different distances. Coma and astigmatism affect off-axis points. To minimize aberrations, sophisticated optical systems combine multiple lens elements with different shapes and materials. Achromatic doublets pair a high-index crown glass lens with a low-index flint glass lens to cancel chromatic aberration. Telescope and camera objectives use arrays of up to 10-15 elements to correct aberrations over a wide field and wavelength range. Computational optics now optimizes lens designs using algorithms, producing designs better than any hand-designed system.

Embed this diagram

Add this animated lens image formation to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated lens image formation for any website.
Who uses it
Physics educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="lens-image-formation" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Lens Image Formation" for my website?
Scrollchart provides "Lens Image Formation" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a lens image formation in WordPress or a static site?
Paste the HTML snippet from the Scrollchart diagram page into your WordPress post (in HTML/code view), your Webflow embed block, or directly into a static HTML file. No plugin is needed. The diagram loads from scrollchart.com and paints in as the reader scrolls.