Focal Length Calculator
The thin lens equation relates the focal length (f), object distance (u), and image distance (v):
1/f = 1/u + 1/v
Sign conventions vary; we use the Cartesian sign convention: distances are positive if measured in the direction of incident light, negative otherwise. For simplicity, this calculator assumes:
- Object distance u is always positive (real object).
- For converging lenses, f > 0; for diverging, f < 0.
- Image distance v is positive for real images (opposite side), negative for virtual images (same side as object).
m = v / u. The image height h' = m × h. Negative m means inverted image.
Select what you want to find: focal length, object distance, or image distance. Enter the known values, choose units, and click Calculate. The calculator will display the result, magnification, and lens power in diopters.
Note: Ensure you select the correct lens type (converging/diverging) as it affects the sign of focal length. For diverging lenses, enter negative focal length if you know it.
| Lens Type | Typical Focal Length | Application |
|---|---|---|
| Eyeglass (hyperopia) | +20 to +40 cm | Correct farsightedness |
| Eyeglass (myopia) | -20 to -40 cm | Correct nearsightedness |
| Magnifying glass | +5 to +15 cm | Reading, inspection |
| Camera lens (standard) | 50 mm (full frame) | General photography |
| Camera lens (telephoto) | 200 mm | Sports, wildlife |
| Microscope objective | 2 to 10 mm | High magnification |
| Telescope objective | 500 to 2000 mm | Astronomy |