Advertisement
Advertisement
PHYSICS

Diopter Calculator — lens power and focal length, either direction

Convert a focal length in millimetres, centimetres, metres or inches into optical power in diopters, convert back the other way, and add a second lens power to see what the combination does.

The two directions are the same reciprocal relation read backwards. Pick whichever quantity you actually have on the lens barrel or the label.
Negative focal lengths describe diverging lenses and give negative powers. The unit is converted to metres before anything else happens, because the diopter is defined against the metre and nothing else.
Only read when the mode above is set to power → focal length. One diopter is one reciprocal metre.
Powers of thin lenses held against each other add. Leave this at zero for a single lens, or enter a value to model a two-element stack.
Used only for the image-distance figure in the grid. Enter 0 to treat the object as infinitely far away.
Optical power of the lens system
 
 
0
Primary lens power
0
System focal length (mm)
0
System focal length (in)
0
Image distance (cm)
Tip: the diopter is defined against the metre, so a 250 mm lens is 0.25 m and therefore 4.00 D. Feeding millimetres straight into the reciprocal is the single most common error on this calculation and it lands the answer a thousand times off.
Advertisement

A diopter is not a mysterious optical unit. It is one divided by a length in metres, and nothing more. A lens whose focal length is half a metre has a power of two diopters. A lens whose focal length is a quarter of a metre has a power of four. The unit exists because optical power behaves more usefully than focal length does when lenses are combined, and because a number that grows as the lens gets stronger is easier to reason about than one that shrinks. This calculator does that reciprocal in both directions, handles the unit conversion that trips most people up, and adds a second lens power so you can see what a stack of two thin elements produces.

Arb Digital publishes free calculators that show their working rather than returning a bare number, and optics is a subject where that matters. The grid gives the focal length in millimetres and in inches, because lens hardware is labelled in both, and it gives where the lens actually forms an image of an object at the distance you enter — the figure that turns an abstract power into something checkable on a bench.

What This Diopter Calculator Does

Give it a focal length in any of four common units and it returns the optical power in diopters. Flip the mode and give it a power instead, and it returns the focal length in metres, millimetres and inches at once. In either direction it will also add a second lens power for you, on the assumption that the two elements are thin and held in contact, which is the case where powers simply add.

The headline number is the power of the whole system: the primary lens plus whatever you entered in the second-lens field. The four supporting figures are the primary lens power on its own, so you can see how much the second element changed things, the system focal length in millimetres, the same focal length in inches, and the image distance for an object at the distance you specified. Nothing in that grid restates the headline.

Signs are handled the way optics handles them. A converging lens has a positive focal length and a positive power. A diverging lens has a negative focal length and a negative power. If you enter a negative number the calculator carries the sign through the whole chain rather than quietly taking an absolute value, because the sign is the difference between a lens that forms a real image and one that never can.

How to Use It

  1. Choose the direction first. If the number printed on your lens is a focal length, leave the mode on focal length. If it is a power in diopters, switch to the second mode. The field that is not being read is ignored entirely, so you do not need to clear it.
  2. Set the unit before you type the number. Camera and microscope optics are labelled in millimetres, ophthalmic optics in metres or not at all, and a lot of older equipment in inches. The unit selector converts to metres internally, which is the only place the reciprocal is valid.
  3. Enter a second lens power only if there is one. Leave it at zero for a single element. Enter a positive value for an added converging element, or a negative one for an added diverging element.
  4. Set an object distance to get a real image position. The default of 40 cm is a typical near working distance. Enter 0 if the object is effectively at infinity, and the image distance figure will collapse onto the focal length, which is exactly what should happen.
  5. Read the primary-lens figure alongside the headline. The gap between them is the contribution of the second element, and seeing it separately is usually more informative than the combined number on its own.

The Formula: Power Is One Over Focal Length in Metres

The definition is P = 1 ÷ f, with f in metres and P in diopters. OpenStax University Physics Volume 3, section 2.5 on the eye, states it in exactly that form and notes that one diopter equals one reciprocal metre. It also gives the combination rule this tool uses: for two or more thin lenses close together, the total optical power is approximately the sum of the individual powers.

Work through the defaults. A focal length of 250 mm is 0.250 m. The reciprocal of 0.250 is 4, so the power is 4.00 D. With the second lens set to zero the system power is also 4.00 D, and the system focal length converts back to 250 mm, or 9.84 inches. That round trip is worth watching, because a reciprocal that does not come back to where it started is a sign that a unit was dropped somewhere.

Now the image distance. The tool uses vergence arithmetic rather than the more familiar 1 ÷ v − 1 ÷ u = 1 ÷ f form, because vergence keeps everything in diopters and makes the addition obvious. Light leaving an object 40 cm in front of the lens arrives with a vergence of −1 ÷ 0.40 = −2.50 D. The lens adds its own 4.00 D, so the light leaves with a vergence of +1.50 D. The reciprocal of 1.50 is 0.667 m, so the image forms 66.7 cm behind the lens. That is the same answer the thin-lens equation gives, reached with one addition instead of three reciprocals — OpenStax section 2.4 on thin lenses derives the equation in its standard form if you want to check the equivalence.

Advertisement

Why Diopters Add and Focal Lengths Do Not

This is the whole reason the unit exists. Put a 4 D lens against a 2 D lens and you get 6 D. Put a 250 mm lens against a 500 mm lens and you get 166.7 mm, which is not a number anyone can produce in their head. Reciprocals do not add, so working in focal length forces a conversion at every step. Working in power lets you stack elements with arithmetic a person can do while holding the lens.

The addition rule has a condition attached, and it is worth stating plainly: the lenses must be thin and in contact. Once there is a real separation between them, the combined power becomes P1 + P2d × P1 × P2, where d is the separation in metres. At a separation of a centimetre or two between weak lenses that correction term is small enough to ignore. Between two strong elements a few centimetres apart it is not, and simple addition will be visibly wrong. This calculator models the in-contact case, which covers spectacle lenses, close-stacked magnifiers and most textbook problems.

Diopters in Vision, and What This Page Will Not Do

Spectacle and contact lens strengths are quoted in diopters, and the arithmetic on this page is the same arithmetic. A lens marked −2.00 D has a focal length of −0.50 m and diverges light. A reading addition marked +2.50 D placed with a −2.00 D distance lens gives a net +0.50 D for near work, which is exactly the addition the second-lens field performs.

What this page cannot do, and will not attempt, is tell you what lens power you need. A prescription is not a calculation from a single measurement. It comes from a refraction performed by an optometrist or ophthalmologist, accounts for each eye separately, includes cylinder and axis for astigmatism, prism where required, and the vertex distance between lens and cornea, which itself changes the effective power by a measurable amount at higher strengths. This calculator converts between two ways of writing an optical quantity. It does not assess an eye, and no number it produces should be treated as a prescription.

The vertex distance point deserves one more sentence, because it is where the naive arithmetic genuinely fails. A lens sitting 12 mm from the cornea does not deliver the same power at the cornea that it does at its own plane. At −2 D the difference is a few hundredths of a diopter and nobody cares. At −10 D it is more than a diopter, which is why spectacle and contact lens strengths for strongly myopic eyes are not the same number.

Reading the Image Distance Figure

The image distance in the grid is signed, and the sign carries real information. A positive value means the image forms behind the lens and is real: you could put a screen there and see it. A negative value means the image is on the same side as the object and is virtual: it can be looked at through the lens, but no screen will catch it.

Try it. With the 4 D default, an object at 40 cm gives a real image 66.7 cm behind the lens. Move the object to 20 cm and the vergence becomes −5 D, which the 4 D lens cannot overcome, so the output vergence is −1 D and the image is virtual at 100 cm on the object side. That transition happens exactly when the object crosses the focal point, and watching the number flip sign as you drag the object inward is a faster way to understand the focal point than any diagram.

Set the object distance to 0 and the tool treats the object as infinitely distant. Parallel light has zero vergence, so the image lands at the focal length — the definition of focal length, recovered as a special case rather than assumed.

Where This Sits Next to Our Other Optics Tools

Arb Digital has several optics calculators and they do genuinely different jobs, so it is worth being precise. This page converts between focal length and optical power and adds thin lenses in contact; it takes the focal length as a given. The thin lens equation calculator takes a focal length and an object distance and returns image position and magnification in full, which is the imaging problem rather than the unit problem. The lens maker equation calculator goes one step further back and derives the focal length itself from the two surface radii and the glass index, which is what you need if you are specifying a lens rather than using one.

For curved mirrors the geometry differs and the mirror equation calculator is the right page. If your problem turns on the refractive index of the material rather than the shape of the surfaces, the index of refraction calculator handles Snell's law and critical angles. And when the question is about the light itself rather than the glass, the wavelength calculator covers the wave side, which matters here because focal length varies slightly with wavelength — that variation is chromatic aberration, and it is the reason a single number for focal length is always an approximation over a real spectrum.

Need a website that loads fast and actually works?

Arb Digital builds free tools like this one because useful pages earn attention. If you want tools, calculators or content built for your own audience, we can help.

Browse All Free Tools Talk to Arb Digital

Common Mistakes to Avoid

  • Taking the reciprocal of millimetres — 1 ÷ 250 is 0.004, not 4. The diopter is defined against the metre, so the length must be converted first. This is by far the most frequent error and it is always off by a factor of a thousand.
  • Adding focal lengths instead of powers — two 250 mm lenses in contact do not make a 500 mm lens. They make an 8 D lens, which is 125 mm. Convert to power, add, convert back.
  • Ignoring the separation between elements — powers add only for thin lenses in contact. Once they are centimetres apart, the term d × P1 × P2 has to be subtracted and simple addition overstates the result.
  • Dropping the sign on a diverging lens — a negative power is not a formatting quirk. It changes whether the lens can form a real image at all, and an absolute value silently converts one kind of lens into the other.
  • Treating a converted number as a prescription — converting a power to a focal length is arithmetic. Determining what power an eye needs is a clinical refraction, and the two are not interchangeable.

Related Free Tools From Arb Digital

Once you have a focal length, the thin lens equation calculator gives image position and magnification for any object distance, and the mirror equation calculator does the same for concave and convex mirrors. To derive a focal length from glass geometry rather than measure it, use the lens maker equation calculator, and pair it with the index of refraction calculator for the material side. The wavelength calculator covers the wave properties of the light passing through. The complete free online tools hub lists every calculator Arb Digital publishes.

Frequently Asked Questions

What exactly is a diopter?

A diopter is one reciprocal metre. It is the optical power of a lens whose focal length is one metre. A lens with a focal length of half a metre has a power of two diopters, and a lens with a focal length of a quarter of a metre has a power of four. The unit has no other content beyond that reciprocal.

How do I convert millimetres to diopters?

Divide the millimetre figure by 1000 to get metres, then take the reciprocal. A 250 millimetre lens is 0.250 metres, and one divided by 0.250 is 4.00 diopters. Taking the reciprocal of the millimetre number directly gives an answer that is a thousand times too small, which is the most common mistake on this calculation.

Why do lens powers add but focal lengths do not?

Because power is the reciprocal of focal length, and reciprocals do not add. Two thin lenses held in contact combine their powers by simple addition, so a 4 diopter lens against a 2 diopter lens gives 6 diopters. Doing the same in focal length requires converting to power, adding, and converting back.

What does a negative diopter value mean?

It means the lens diverges light rather than converging it. A negative power corresponds to a negative focal length, and such a lens cannot form a real image of a distant object on a screen. Converging lenses carry positive powers and negative ones are diverging, and the calculator carries that sign through every step.

Can this calculator tell me my eyeglass prescription?

No. It converts between focal length and optical power, which is arithmetic. A prescription comes from a refraction performed by an optometrist or ophthalmologist, covers each eye separately, and includes cylinder, axis, any prism, and the vertex distance between the lens and the cornea. None of that can be derived from a single number.

When does simple addition of lens powers stop working?

When the lenses are separated rather than in contact. The full expression subtracts a term equal to the separation in metres multiplied by both powers. For weak lenses a centimetre apart the correction is negligible, but for two strong elements several centimetres apart it is large enough to change the answer noticeably.

What is the image distance figure showing me?

Where the lens forms an image of an object placed at the distance you entered. A positive value means a real image behind the lens that a screen would catch. A negative value means a virtual image on the same side as the object, which happens whenever the object sits inside the focal length.

This tool is provided for educational and study use. It performs optical unit conversion and thin-lens arithmetic only. It does not assess vision and does not produce a prescription — an optometrist or ophthalmologist determines corrective lens power through a clinical eye examination.

Advertisement
Advertisement

Take it further