Calculator

Lens Equation Calculator

Solve focal length, object distance, image distance, and magnification using the thin-lens equation.

AnswerCanvas Calculator

Lens Equation Calculator

Enter your informationLive validation
Thin lens equation
Your resultUpdates instantly

Image distance

20.00 cm

Real, inverted image, magnification -0.667x.

Object distance
30.0 cm
Focal length
12.0 cm
Image distance
20.00 cm
Magnification
-0.667x (Real, inverted)
Deterministic Formula-backed No stored data

Result chart

Formula

Thin lens equation: 1/f = 1/do + 1/di, solved for image distance: di = (f × do) ÷ (do − f). Magnification = −di ÷ do. A positive image distance indicates a REAL image (light actually converges there, can be projected on a screen); negative indicates a VIRTUAL image (light appears to come from there, but doesn't actually converge - like in a magnifying glass held close to an object).

Worked example

Object at 30 cm from a lens with 12 cm focal length: image distance = (12×30)÷(30−12) ≈ 20 cm, magnification -0.667x (real, inverted, reduced image).

Money-page insight

When the object is placed WITHIN the focal length (do < f), the denominator (do−f) becomes negative, flipping the image distance sign to negative - producing a VIRTUAL, upright, magnified image, which is exactly the principle behind how a magnifying glass works when held close to what you're examining.

Calculation history

Stored locally on this device

    How the lens equation calculator works

    How to use this calculator

    Adjust the assumptions on the left and the result updates instantly. Use the summary as a planning estimate, then compare it with quotes, local rules, lender disclosures, or professional guidance for decisions involving taxes, loans, construction, or health.

    Learn more

    Stage 1 - Inputs

    Collect the required thin lens equation values and confirm that each value is physically and logically possible.

    Stage 2 - Formula

    Thin lens equation: 1/f = 1/do + 1/di, solved for image distance: di = (f × do) ÷ (do − f). Magnification = −di ÷ do. A positive image distance indicates a REAL image (light actually converges there, can be projected on a screen); negative indicates a VIRTUAL image (light appears to come from there, but doesn't actually converge - like in a magnifying glass held close to an object).

    Stage 3 - Substitute values

    Replace each variable in the formula with the current input value. This keeps the calculation transparent and easy to audit.

    Stage 4 - Intermediate calculations

    Calculate the supporting values first, such as totals, rates, balances, volumes, or ratios, before producing the final result.

    Common mistakes

    • Mixing units, such as monthly and annual rates, inches and feet, or gross and net income
    • Entering rounded guesses when exact quotes or measurements are available
    • Ignoring fees, taxes, risk factors, local rules, or physical constraints
    • Treating an estimate as a final professional decision

    Tips

    • Change one input at a time to understand sensitivity
    • Use conservative assumptions when the result affects safety, debt, taxes, or health
    • Save or print the result with assumptions before comparing alternatives
    • Recheck units whenever a result looks surprisingly large or small

    Lens Equation Calculator mastery

    Solve focal length, object distance, image distance, and magnification using the thin-lens equation.

    Use this science calculator as a working model: enter realistic inputs, read the primary answer first, then use the supporting rows to understand what changed and why.

    01

    Read the result correctly

    Treat the primary answer as the headline result and the supporting values as the evidence trail behind it.

    02

    Improve accuracy

    Small input changes can shift the output. Recheck units, time periods, percentages, and any assumptions before using the result.

    03

    Use it professionally

    Save or print the result with the inputs visible so the calculation can be reviewed, repeated, or compared later.

    Expert suggestions

    Professional perspective

    How to get more value from the lens equation calculator

    A strong calculation is not only a final number. It is a repeatable way to compare choices, understand assumptions, and see which inputs deserve the most attention.

    Best next moveRun the calculator once with realistic inputs, then change only one input at a time so you can see which variable has the biggest effect.
    01

    Start with a baseline

    Use the most realistic inputs you have today before testing optimistic or conservative cases.

    02

    Change one variable

    Adjust one assumption at a time. This makes cause and effect easier to understand.

    03

    Keep the evidence visible

    Save or export the result with inputs included so the answer can be checked later.

    Learning path

    What to understand next

    1. Understand the main formula
    2. Review the assumptions
    3. Compare alternate scenarios
    4. Decide what information would improve accuracy

    Science insight guide

    Understand the answer

    Use the lens equation calculator as a decision aid, not just a number.

    A calculator is most useful when the result, assumptions, and practical meaning are read together. Use the output as a structured estimate and review the inputs before making a decision.

    What it tells you

    The primary answer summarizes the model. Supporting values explain the path from inputs to output and reveal which assumptions matter most.

    What changes the result

    The result usually changes when units, rates, time periods, quantities, prices, thresholds, or rounding assumptions change.

    What to double-check

    Confirm that each input uses the intended unit, time period, percentage basis, and sign. A correct formula can still produce a poor estimate from inconsistent inputs.

    When to be careful

    Use extra care when the answer affects money, health, safety, legal exposure, construction quantities, or long-term planning.

    Accuracy checklist

    • Confirm every unit before comparing outputs.
    • Use current inputs rather than outdated estimates.
    • Test at least one conservative and one optimistic scenario.
    • Review whether rounding changes the practical decision.

    How professionals use this

    • Document the inputs beside the result.
    • Compare scenarios instead of relying on a single run.
    • Share the assumptions when asking for review.
    • Use expert review for high-stakes decisions.
    Trust note: This calculator is designed for transparent estimation. Keep the input assumptions visible when sharing, exporting, or comparing results so another person can reproduce the same answer.

    Frequently asked questions

    What does a negative image distance mean?
    It indicates a VIRTUAL image - light rays don't actually converge at that point, but appear to an observer as if they originate from there (like the enlarged image you see through a magnifying glass) - virtual images can't be projected onto a screen the way real images can.
    What does negative magnification mean?
    Negative magnification indicates an INVERTED image (upside down relative to the object) - positive magnification indicates an upright image, which is why virtual images (common with objects inside the focal length) are typically upright while many real images are inverted.
    Does this equation work for both converging and diverging lenses?
    Yes, with sign convention - converging lenses have positive focal length, diverging lenses have negative focal length, and the same equation applies correctly to both types when you use the appropriate sign for f.
    What does the Lens Equation Calculator calculate?
    Solve focal length, object distance, image distance, and magnification using the thin-lens equation.
    How should I read the Lens Equation Calculator result?
    Read the primary answer first, then review the supporting values, formula notes, assumptions, and expert suggestions. The supporting values explain why the answer moved and which inputs deserve more attention.
    Which input matters most in the Lens Equation Calculator?
    The most important input depends on the calculator, but the highest-impact variables are usually rates, time periods, quantities, income, balance, measurements, or unit choices. Change one input at a time to see which variable drives the result.
    Why might my Lens Equation Calculator result differ from another website?
    Different calculators may use different assumptions, rounding rules, formulas, default values, tax years, unit conversions, or included costs. Compare the formula and assumptions before comparing final answers.
    Can I use this science result for an important decision?
    Use the result as a structured estimate and learning tool. For financial, tax, medical, legal, construction, or safety-sensitive decisions, verify the inputs and review the output with a qualified professional.
    How often should I update the inputs in the Lens Equation Calculator?
    Update the inputs whenever the underlying facts change: rates, prices, measurements, dates, balances, income, rules, or goals. Outdated inputs create outdated answers.
    What is the safest way to compare scenarios?
    Keep all inputs the same except one variable. That makes it clear whether the difference came from rate, time, quantity, price, measurement, or another assumption.