Thin Lens Equation Calculator
Solve for a lens's focal length, object distance, or image distance using 1/f = 1/do + 1/di, plus magnification and whether the image is real or virtual.
- Focal length
- 10 cm
- Object distance
- 30 cm
- Image distance
- 15 cm
- Magnification
- -0.5×
- Image type
- Real (light actually converges here — can be projected on a screen)
- Orientation
- Inverted
How it works
The thin lens equation, 1/f = 1/do + 1/di, relates a lens's focal length (f) to the distance from the lens to the object (do) and the distance from the lens to the image it forms (di). Pick which one to solve for; the calculator rearranges the same identity to find it from the other two.
This uses the standard real-is-positive sign convention: a positive image distance means a real image (light actually converges there — it could be projected on a screen), while a negative image distance means a virtual image (light only appears to diverge from there, the way a magnifying glass works when the object is closer than the focal length). Magnification is m = −di/do — negative means the image is upside down (inverted), and |m| greater than 1 means it's enlarged.
Because every term in the equation is 1/length, the formula only cares that focal length, object distance, and image distance all share the same unit — it works out identically whether that unit is centimeters or inches, so no internal metric/imperial conversion happens before the formula runs.
FAQ
Why did the image distance come out negative?
A negative image distance means the image is virtual — it forms on the same side of the lens as the object, which happens whenever the object is placed closer to the lens than its focal length. You can't project a virtual image on a screen; it's what you see when you look through the lens, the way a magnifying glass or a camera's viewfinder works.
What does a magnification greater than 1 mean?
The image is larger than the object — a magnification of 2× means the image is twice the object's height. A magnification between 0 and 1 means the image is smaller than the object, and the sign (positive or negative) separately tells you whether it's upright or inverted.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Birthday Paradox Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator