FREE Lens Equation Calculator & Mirror Formula Calculator - Interactive Ray Diagram Tool

Lens Equation Calculator & Mirror Formula Calculator

Calculate focal length, image distance, magnification with interactive ray diagram visualization. Supports converging/diverging lenses and concave/convex mirrors.

Inputs
Positive for converging, negative for diverging
Negative as per sign convention (object on left)
Step-by-Step Calculation
Ray Diagram
Results
About Lens & Mirror Equations
Thin Lens Equation: 1/f = 1/u + 1/v relates focal length (f), object distance (u), and image distance (v). This equation applies to both thin lenses and spherical mirrors.
Magnification: m = v/u = h'/h where h' is image height and h is object height. Negative magnification indicates inverted image; |m| > 1 means enlarged image.
Lens Power: P = 1/f (in diopters when f is in meters). Used in optometry for prescribing corrective lenses. Positive power converges light (farsightedness correction); negative power diverges light (nearsightedness correction).
Real vs Virtual Images: Real images form where light rays actually converge (can be projected on screen), with positive v. Virtual images form where rays appear to diverge from (cannot be projected), with negative v.
Sign Convention (New Cartesian): Distances measured from lens/mirror center. Direction of incident light is positive. Object distance usually negative (left side). Real image v is positive (right side); virtual image v is negative (left side).
Applications: Cameras, telescopes, microscopes, eyeglasses, contact lenses, magnifying glasses, projectors, binoculars, and all optical instruments rely on lens equations for design and analysis.
Related Physics Tools
Explore light refraction, critical angles, and prism deviation. Complements lens calculations by understanding how light bends through different media before entering optical systems.

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.

About This Tool & Methodology

Uses the thin lens and mirror equations (1/f = 1/do + 1/di) with SI units to solve image distance and magnification given object distance and focal length.

Learning Outcomes

  • Apply lens/mirror formulas and magnification.
  • Understand real/virtual, upright/inverted image cases.
  • Practice sign conventions and units.

Authorship

  • Author: Anish Nath — Follow on X
  • Last updated: 2025-11-19

Trust & Privacy

  • Runs locally in your browser.