Macro Lens Calculator

We recommend trying our new Machine Vision Lens Calculator. It is easier to use, and will suggest specific lenses to consider.

Complete the fields below to calculate the magnification of the ideal lens.

Complete the fields below to calculate the aproximate field of view.

These lens calculators are for macro machine vision lenses. Our calculators support both area scan and line scan cameras of any resolution, any format, any pixel size, and any aspect ratio. Furthermore, you can specify an area-of-interest smaller than the camera's full resolution.

All dimensional values are in millimeters.
First enter your application parameters in Calculator #1. This will help you determine the ideal lens magnification.
You're not likely to find a lens having the exact magnification suggested by Calculator #1. Typically, you'll want to select the first available lens having a lower magnification. This will result in a slightly larger field of view.
You can use Calculator #2 to determine the field of view provided by a lens having a particular magnification.
If you enter an area-of-interest ("AOI") smaller than the full sensor size, the calculator will assume the AOI is centered on the sensor, and that vignetting is acceptable outside the AOI.
Calculators assume field of view width is in direction of the camera sensor's width. If your field of view's height is greater than it's width, consider rotating the camera 90 degress.
For a line scan camera, enter a vertical pixel resolution of 1 to 3 pixels. You may then enter a vertical field of view of zero.
Having trouble finding a lens with a small enough magnification? Try our Entocentric Lens Calculator.
There are many other factors to consider beyond lens magnification. We'd be glad to help you select a lens appropriate for your project.