Free tool

Thin Lens Equation Calculator

Solve the thin lens equation for the focal length, the object distance or the image distance. Get the magnification, the image height, and whether the image is real or virtual, upright or inverted, magnified or reduced, with the working shown.

Works for mirrors too - same equation

The lens or mirror

Positive for a converging lens or concave mirror, negative for a diverging lens or convex mirror.

Use the same length unit for every distance (cm or m). The answer comes out in that unit.

Result

Enter the two known values.

The sign rules are what trip people up on optics problems. Encodr keeps them on a spaced-repetition schedule so they are automatic by the exam.

Get started free

The equations

Thin lens equation: 1/f = 1/do + 1/di, so di = f do / (do - f).

Magnification: m = hi/ho = -di/do. A negative m means the image is inverted; |m| greater than 1 means it is larger than the object.

Sign convention (OpenStax College Physics)

f is positive for a converging (convex) lens and negative for a diverging (concave) lens. do is positive for a real object. di is positive for a real image, which forms on the opposite side of a lens from the object, and negative for a virtual image on the same side as the object. The same equation works for spherical mirrors with f = R/2: f is positive for a concave mirror and negative for a convex one, and a real image forms in front of the mirror (di positive).

Worked example

An object sits 30.0 cm from a converging lens with f = 10.0 cm. 1/di = 1/10.0 - 1/30.0, so di = 15.0 cm and m = -15.0/30.0 = -0.500: a real, inverted image half the size of the object. Move the object to 5.00 cm, inside the focal length, and di = -10.0 cm with m = 2.00: a virtual, upright, magnified image, which is how a magnifying glass works. Put the object exactly at the focal point and the rays leave parallel, so no image forms at a finite distance (the image is at infinity). More in the thin lens equation guide.

From the blog

Thin lens equation and magnification, worked examples

How to use 1/f = 1/do + 1/di and m = -di/do, the sign rules that decide real vs virtual, and worked lens and mirror examples.

Read →

What's in College Physics II: the 15 units, in order

The 15 units of a second-semester algebra-based physics course, from Coulomb's law to particle physics, mapped to OpenStax College Physics 2e chapters 18-34.

Read →

Series vs parallel circuits, with worked examples

How current, voltage and resistance behave in series and parallel circuits, with the formulas and step-by-step examples including a mixed circuit.

Read →

First-year biology, chemistry and physics, compared

What General Biology I and II, General Chemistry I and II, and College Physics I and II each cover, how they fit together, and free flashcards for each.

Read →

More free tools

MCAT Score Predictor

Log your practice tests - score, breakdown, conditions, date - and get a weighted prediction of your real MCAT score.

Open tool →

Pre-Med GPA & BCPM Calculator

Calculate your cumulative GPA and BCPM science GPA on the AMCAS 4.0 scale.

Open tool →

Study Schedule Generator

Enter your exam date, hours needed, and difficulty to see how much less time targeted review actually takes.

Open tool →

CARS Timing Calculator

Enter passages completed and minutes elapsed to see your current pace and whether you are on track to finish the CARS section on time.

Open tool →

Retention Curve Simulator

See the Ebbinghaus forgetting curve for cramming vs. spaced review, and where each review session resets your retention.

Open tool →

Study Load Planner

Enter a course, its credit hours, and how memorization-heavy it is to get a recommended daily and weekly study load.

Open tool →

Final Grade Calculator

Enter your current grade, the final's weight, and your target grade to see the exact score you need on the final.

Open tool →

GPA Calculator

Calculate your unweighted and weighted GPA (honors +0.5, AP/IB +1.0) side by side - not just pre-med, works for any transcript.

Open tool →

Exam Pass Score Calculator

Enter total questions and the passing percentage to see exactly how many you can miss and still pass.

Open tool →

Flashcard Deck Time Estimator

Enter deck size and your new-cards-per-day pace to see when first exposure finishes and your steady-state daily review load.

Open tool →

Weighted Grade Calculator

Enter your grading categories and their weights to see your current overall grade, even with categories still outstanding.

Open tool →

Grade to GPA Converter

Convert instantly between letter grades, percentages, and 4.0-scale GPA points.

Open tool →

Engineering Unit Converter

Convert between metric and imperial units for length, mass, pressure/stress, torque, and volume flow rate - built for engineering coursework, not just everyday conversions.

Open tool →

Error Propagation Calculator

Enter two measurements with their uncertainties to see the propagated uncertainty in a sum, difference, product, or quotient.

Open tool →

NPV & IRR Calculator

Enter a discount rate and a series of cash flows to get both the net present value and the internal rate of return.

Open tool →

Break-Even Point Calculator

Enter fixed costs, price per unit, and variable cost per unit to see exactly how many units - and how much revenue - it takes to break even.

Open tool →

Case Study Grade Calculator

Enter your participation, case write-up, project, and exam weights to see your current grade in a case-method business course.

Open tool →

Portfolio & Critique Rubric Scorer

Score your own work against a weighted studio rubric - concept, execution, craft, presentation, and reflection - before a critique or portfolio review.

Open tool →

Citation Format Converter (APA/MLA/Chicago)

Enter one source once and get correctly formatted citations in APA, MLA, and Chicago side by side, for books, websites, and journal articles.

Open tool →

Reading Load Calculator

Enter total pages, days available, and how dense the reading is to see how many pages a night it actually takes to keep up.

Open tool →

Pomodoro Study Timer

A free, no-signup Pomodoro timer with customizable work and break lengths and a running count of completed sessions.

Open tool →

Credit Hour Study Time Estimator

Enter your total credit hours this term to see the weekly study time the standard "2-3 hours per credit hour" rule recommends.

Open tool →

Semester GPA Goal Planner

Enter your current GPA, credits earned, target GPA, and credits this semester to see the exact GPA you need this term.

Open tool →

Coinsurance Penalty Calculator

See whether a property policy met its coinsurance requirement and exactly what it pays on a loss - built for P&C license exam prep.

Open tool →

Health Insurance Cost Sharing Calculator

Split a medical bill between you and the plan through the deductible, coinsurance, copay, and out-of-pocket maximum, step by step.

Open tool →

Days Supply Calculator

Calculate days supply for tablets, oral liquids, and insulin, rounded down to whole days - built for pharmacy technician exam prep.

Open tool →

Alligation Calculator

Mix a higher and a lower strength to make a desired strength and quantity - get the parts and the amount of each.

Open tool →

IV Flow Rate Calculator

Calculate IV flow rate in mL/hr, drip rate in gtt/min for any drop factor, and infusion time, with the working shown.

Open tool →

Real Estate Commission Calculator

Split a real estate commission between the listing and buyer brokerages, then between each broker and agent, with the math shown.

Open tool →

Property Tax Proration Calculator

Prorate annual property taxes at closing on a 360 or 365-day year, with the day count and the seller's share credited to the buyer.

Open tool →

Order of Draw Quiz

Practice the standard phlebotomy order of draw: tap random sets of collection tubes into the correct sequence and see where you slipped.

Open tool →

Blood Draw Tube Color Guide

Look up a blood collection tube by color, additive or test, with its typical use and order-of-draw step.

Open tool →

Subnet and CIDR Calculator

Get the mask, network and broadcast address, host range and usable host count for any IPv4 address and prefix - built for Security+ exam prep.

Open tool →

Bond Yield Calculator

Current yield, an approximate yield to maturity and tax-equivalent yield with the formulas shown - built for Series 7 exam prep.

Open tool →

Options Profit Calculator

Profit or loss, breakeven, maximum gain and maximum loss for a long or short call or put at expiration - built for FINRA SIE exam prep.

Open tool →

Mutual Fund Sales Charge Calculator

Public offering price, shares bought, front-end load, your own breakpoint schedule and a back-end CDSC by year - built for FINRA SIE exam prep.

Open tool →

Margin Account Calculator

Debit or credit balance, equity, maintenance call and the trigger price for a long or short margin position - built for FINRA SIE exam prep.

Open tool →

Glasgow Coma Scale Calculator

Add eye, verbal and motor responses into a Glasgow Coma Scale total. A study aid for EMS students, not for patient care.

Open tool →

C1V1 = C2V2 Dilution Calculator

Solve C1V1 = C2V2 for any one value in M or mM and L or mL, and see how much solvent to add to reach the final volume.

Open tool →

Half-Life Calculator

First-order decay: find the amount remaining, the time elapsed or the half-life, plus the rate constant k, with the working shown.

Open tool →

Hardy-Weinberg Calculator

Get p, q, p^2, 2pq and q^2 from a recessive phenotype frequency, an allele frequency, or genotype counts, with a chi-square test.

Open tool →

Henderson-Hasselbalch Calculator

Find a buffer's pH from pKa (or Ka) and the base-to-acid ratio, or the ratio you need for a target pH, with a buffer-range check.

Open tool →

Ideal Gas Law Calculator

Solve PV = nRT for pressure, volume, moles or temperature in atm, kPa, mmHg, L, mL, K or degrees C, with the steps shown.

Open tool →

Kinematics Calculator (SUVAT Solver)

Enter any three of displacement, initial velocity, final velocity, acceleration and time to solve the other two, with the equation shown.

Open tool →

Molar Mass Calculator

Molar mass of any formula, including parentheses and hydrates, with each element's count, mass contribution and mass percent.

Open tool →

pH Calculator

Convert between [H3O+], [OH-], pH and pOH, or find the pH of a strong acid, strong base or weak acid with the exact quadratic shown.

Open tool →

Projectile Motion Calculator

Enter launch speed, angle and height to get time of flight, range, maximum height and impact velocity, with the working shown.

Open tool →

Punnett Square Calculator

Enter two parent genotypes for one or two genes to get the Punnett square, gametes, and genotype and phenotype ratios with percentages.

Open tool →

Series and Parallel Resistor Calculator

Equivalent resistance for 2 to 8 resistors in series or parallel, plus current, voltage drop and power for each one.

Open tool →