Lens equation calculator

The thin lens equation covers cameras, projectors, magnifiers and eyes. A negative image distance means a virtual image.

Image distance
52.631 579mm
= Exact Thin lens
Magnification Negative means the image is inverted.
-0.052 63
Image height
5.263 157 9
Optical power
20.0000 dioptres
Real image 0 means virtual: on the same side as the object.
1
Show the working
  1. Focal length = 50
  2. Object distance = 1000
  3. Object height = 100
  4. Image distance = (1000 - 50) != 0 ? 1000 * 50 / (1000 - 50) : 0 = 52.6316
  5. Magnification = 1000 != 0 ? -52.6316 / 1000 : 0 = -0.052 631 6
  6. Image height = abs(-0.052 631 6) * 100 = 5.263 16
  7. Optical power = 50 != 0 ? 1000/50 : 0 = 20
  8. Real image = 52.6316 > 0 ? 1 : 0 = 1

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • 1/f = 1/do + 1/di
    • magnification = -di/do
    • power in dioptres = 1 / f in metres

    A negative focal length is a diverging lens and always gives a virtual, upright, reduced image.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library