Convert between lens power (diopters) and focal length with correct plus and minus sign handling, and optionally combine two lens powers or estimate simple magnifier power.
Advanced options
How to use our Diopter Calculator
- Choose a task in "What do you want to calculate?" (this hides inputs you do not need).
- If you chose a focal-length-based task, pick the "Focal length unit" and enter "Focal length (selected unit)" (use a negative value if you are using the diverging-lens sign convention).
- If you chose a diopter-based task, enter "Lens power (diopters, D)" (positive for a converging/plus lens, negative for a diverging/minus lens).
- If you chose "Combine two lenses", enter the first lens power in "Lens power (diopters, D)" and the second in "Second lens power to combine (diopters, D)".
- Open "Advanced options" only if you need them.
- In Advanced options, set "Combine method" (the default assumes thin lenses very close together, where powers add).
- To see the magnifier estimate, set "Show simple magnifier estimate?" to Yes, then set "Near point assumption (mm)" (250 mm is a common default).
- Click "Calculate" and read the output cards. If you see "N/A", adjust the input to avoid dividing by zero.
Definitions
Diopter (D): Lens "strength". It is optical power measured in 1 per meter (1/m). A bigger absolute value means a stronger lens. [2]
Focal length: The distance where parallel light rays come to a focus (or appear to come from) for a lens. [4]
Converging (plus) lens: A lens with positive diopters and positive focal length in the common sign convention.
Diverging (minus) lens: A lens with negative diopters and negative focal length in the common sign convention.
Thin lenses close together: A common approximation where you can add lens powers (diopters) if lenses are thin and very near each other. [1]
Near point (assumption): An assumed closest comfortable viewing distance used in simple magnifier estimates (often 250 mm). [3]
Methodology
What the calculator is doing
All conversions are based on the standard optics idea that diopters are the reciprocal of focal length in meters, keeping the sign. [2]
Step 1: Convert the entered focal length to meters (when needed)
f_m = f_selected * factor_to_m
Conversion factors used:
m to m = 1, cm to m = 0.01, mm to m = 0.001. (These are exact unit conversions.) [3]
f_mm = f_m * 1000
Mode A: Diopters from focal length
D = 1 / f_m
If focal length equals 0, the calculator blocks the calculation with an error because division by zero is not allowed. Negative focal length produces negative diopters (diverging lens) and positive focal length produces positive diopters (converging lens). [4]
Mode B: Focal length from diopters
f_m = 1 / D
If diopters equals 0, focal length would be infinite (no focusing power). The calculator shows focal length as N/A, but it still reports lens type as "0 D (no optical power)". [2]
Mode C: Combine two lenses (thin, close together)
D_total = D1 + D2
f_total_m = 1 / D_total
If the combined power equals 0 D, the combined focal length is not defined (it would be infinite), so the calculator shows N/A for combined focal length but still shows D_total = 0. This simple adding rule is a thin-lens, close-together approximation. [1]
Optional: Simple magnifier estimate (only when enabled)
MP = near_point_mm / f_mm
This is an estimate that depends on the near point assumption (default 250 mm). Small focal lengths (or very large diopters) can make MP change a lot with tiny input changes, so the calculator may show a note when values are extreme. [3]