Thin Lens Calculator
Find image distance and signed magnification for a thin lens.
Enter a finite value within the formula’s domain and supported numeric range.
Image height uses hᵢ=m·hₒ with the entered sign. Classification follows signed thin-lens distances and |m|; exactly |m|=1 gives the same size.
1/f = 1/o + 1/i; m = −i/o; hᵢ = m·hₒ; P = 1/f (m); o > 0; f ≠ 0; i ≠ 0; o − f ≠ 0. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
Method, assumptions and limits
Find image distance and signed magnification for a thin lens.
1/f = 1/o + 1/i; m = −i/o; hᵢ = m·hₒ; P = 1/f (m); o > 0; f ≠ 0; i ≠ 0; o − f ≠ 0.
Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
Frequently asked questions
How should I interpret this estimate?
1/f = 1/o + 1/i; m = −i/o; hᵢ = m·hₒ; P = 1/f (m); o > 0; f ≠ 0; i ≠ 0; o − f ≠ 0. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.
How we verified this calculator
The calculator is checked against 4 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Object distance = 5
|
Signed magnification: 2
1/f (D): 10
|
| 2 |
Solve for = Object distance
Signed image distance = 20
|
Signed magnification: -1
|
| 3 |
Solve for = Signed focal length
Object distance = 20
Signed image distance = 20
|
1/f (D): 10
|
| 4 |
Signed focal length = -10
|
Signed magnification: 0.25
1/f (D): -10
|