Skip to content
PictureToLink logoPictureToLink
Menu

Focal length calculator

To fill a full-frame sensor's 36 mm width with a 4 m wide scene from 10 m away, you need a 90 mm lens (36 × 10 ÷ 4). Enter your sensor, the subject size and the distance in this focal length calculator to get that figure for your own shot. Other modes solve the thin lens equation, combine two lenses and turn a zoom range into a ratio.

Change any value and the result updates as you type.

How wide (or tall) the scene you want to fill the frame is.

Focal length needed

90 mm

36 mm sensor side × 10 m (32.81 ft) ÷ 4 m (13.12 ft)

Full-frame lens for the same framing
90 mm
Frame height at that distance
2.67 m (8.75 ft)
Horizontal field of view
22.6°
Nearest common prime lens
85 mmSlightly wider: step closer or crop a little

Calculated in your browser; nothing you type is sent or stored. Spotted a wrong result? Tell us.

By Ahsan Khowaja (CEO) · Updated 10 November 2026

On this page

How to use the focal length calculator

There are five modes. Camera mode comes first, and it asks for three things:

  1. The sensor size. Pick one from the list, or choose Custom and type the width and height in millimeters.
  2. Whether the subject should fill the frame across its width (a building, a group, a driveway) or its height (a standing person, a doorway).
  3. The subject size and the distance to it, in meters, feet or centimeters.

You get the lens you need, the full-frame lens that gives the same framing, how much of the scene fits along the other side of the frame, and the nearest common prime. Use it as a camera focal length calculator when you plan a shoot, choose a CCTV lens, or want to know if a lens you already own is long enough.

Optics homework and lens kits get the other four modes. "Thin lens" finds a focal length from the object and image distances, and "Where the image forms" runs the same equation the other way. "Two lenses together" combines a pair of lenses or adds a close-up filter. "Zoom ratio" turns a range such as 24–70 mm into one number.

Focal length formula for framing a subject

Focal length = sensor side × distance ÷ subject size

Use the sensor's width in mm when the subject has to fill the width, and its height when the subject has to fill the height. Distance and subject size can be in any unit. Just keep it the same one, because only their ratio counts.

It comes from a pair of similar triangles: the subject and its distance form one, the sensor and the lens form the other. To fill the 36 mm width of a 35 mm sensor with a subject 2 m wide from 10 m away, you need 36 × 10 ÷ 2 = 180 mm. An APS-C sensor 23.5 mm wide takes 23.5 × 10 ÷ 2 = 117.5 mm for the same shot, since a smaller sensor needs a shorter lens for the same framing. Stand twice as far back and the lens has to be twice as long. Simple.

Three more examples follow. They're the cases the calculator is tested against.

  • A 4 m wide scene at 10 m, full frame (36 mm wide): 36 × 10 ÷ 4 = 90 mm. The nearest common prime is 85 mm, which is slightly wider, so take a step closer or crop a little. Don't go the other way and use a 100 mm: you can always crop a wider frame, but you can't add back what a longer lens left out. The frame is 2.67 m tall at that distance.
  • A 1.8 m person, head to toe, at 6 m, APS-C (about 15.6 mm tall): 15.6 × 6 ÷ 1.8 = 52 mm. On full frame the same framing takes 24 × 6 ÷ 1.8 = 80 mm.
  • An 8 m driveway at 12 m, 1/3-inch CCTV sensor (about 4.8 mm wide): 4.8 × 12 ÷ 8 = 7.2 mm. The view is 36.9° wide and 6 m tall at the gate.

Two limits apply. The formula assumes the subject is far away compared with the lens, which is true of almost everything except close-up and macro work. For those, the thin lens equation further down this page is the better method. Sensor sizes are also nominal and vary by a few tenths of a millimeter between models, so read the result as the lens to look for and don't trust it to two decimals.

Focal length calculator by sensor size: lenses to fill the frame at 10 m

Here is the lens that fills the frame's width with a subject 10 m away, on three common sensor sizes:

Subject widthFull frame (36 mm)APS-C (about 23.5 mm)Micro Four Thirds (about 17.3 mm)
20 m18 mm11.75 mm8.65 mm
10 m36 mm23.5 mm17.3 mm
5 m72 mm47 mm34.6 mm
4 m90 mm58.75 mm43.25 mm
2 m180 mm117.5 mm86.5 mm
1 m360 mm235 mm173 mm

Other distances scale in proportion: at 20 m every lens in the table doubles, and at 5 m it halves. To go the other way and see what angle a lens covers, use the field of view calculator.

Thin lens equation

In physics, the thin lens equation links a lens's strength to where the object sits and where its sharp image forms:

1/f = 1/do + 1/di

OpenStax University Physics, Thin Lenses derives it step by step. The terms are:

  • f is the focal length: positive for a converging (convex) lens, negative for a diverging (concave) one.
  • do is the object distance from the lens.
  • di is the image distance: positive for a real image on the far side, negative for a virtual image on the same side as the object.
  • Magnification is −di ÷ do. A negative value means the image is upside down.
  • Lens power in dioptres is 1 ÷ f, with f in meters.

Take an object 30 cm from a lens that forms a sharp image 15 cm behind it. Then 1/f = 1/30 + 1/15 = 3/30, so f = 10 cm (10 dioptres). The image is half size and inverted. Move the object to only 5 cm from the same 10 cm lens and 1/di = 1/10 − 1/5 = −1/10, so di = −10 cm. That is a virtual, upright image twice the size, which is what you see through a magnifying glass.

Some textbooks use a sign convention where distances on the object side are negative, and write the equation as 1/f = 1/v − 1/u. Same physics. Only the signs of the inputs change, so use the convention your course uses, or the marks won't match even when the answer does.

Two lens focal length calculator

Two thin lenses in contact add their powers: 1/f = 1/f1 + 1/f2. Power in dioptres is 1,000 ÷ the length in mm, so two 100 mm lenses (10 dioptres each) make 20 dioptres together, which is a 50 mm lens. When the lenses are a distance d apart, the formula gains a term:

1/f = 1/f1 + 1/f2 − d ÷ (f1 × f2)

The same two 100 mm lenses 50 mm apart give 1/f = 0.01 + 0.01 − 0.005 = 0.015, so f = 66.67 mm. For two converging lenses, a gap makes the combination longer than it is with the lenses touching. These formulas hold for thin lenses only. Real camera lenses are thick, multi-element designs, so treat the result as an estimate for them.

Close-up filters are labelled in dioptres. So +1 is a 1,000 mm lens, +2 is 500 mm and +4 is 250 mm. Put a +2 filter on a 100 mm lens and 1/f = 1/100 + 1/500, so 83.33 mm, which lets the lens focus much closer. Stacking filters works the same way, but each extra layer of glass softens the corners, so one stronger filter usually beats two weak ones.

Focal length to zoom calculator

Divide a zoom's longest setting by its shortest and you have its ratio. That makes a 24–70 mm lens 70 ÷ 24 = 2.92×, and on full frame its view narrows from 73.7° to 28.8° across. Take a 100–400 mm lens. It's 4×, yet at 400 mm it frames 1/16 of the area it frames at 100 mm, because both the width and the height shrink by four.

Phone cameras label their lenses the same way, as multiples of the main camera's equivalent. If the main camera is about 24 mm equivalent, a "3×" lens is about 72 mm equivalent. Their real lengths are only a few millimeters, so compare the equivalents. And "10×" on a phone often means digital zoom past the longest lens, which crops the picture instead of magnifying it.

Telescope focal length

Multiply a telescope's aperture by its focal ratio and you have its focal length, so a 200 mm f/6 telescope works out at 200 × 6 = 1,200 mm. Put that number into the telescope mode of the field of view calculator with an eyepiece to get magnification and true field, or use it as the lens in camera mode to see what a camera will capture.

How to estimate focal length from an image

Easiest of all: read it. Cameras and phones save it in each photo's EXIF metadata, often with a "35 mm equivalent" figure as well. Our guides to seeing photo metadata and what EXIF data is show where to find it.

If the metadata is gone, measure something of known size and distance in the picture. Expect an estimate, not an exact figure, since the distance is usually a guess. Say an object 2 m wide, 20 m away, spans 1,000 of the image's 6,000 pixels on a sensor about 23.5 mm wide. On the sensor it is 1,000 ÷ 6,000 × 23.5 = 3.92 mm wide, so the lens was about 3.92 × 20 ÷ 2 = 39 mm.

Questions and answers

What is the focal length of a lens?

It is the distance, usually in millimeters, from the lens's optical center to the point where it brings light from a distant object into focus. Longer lenses magnify more. They also cover a narrower view. Whatever camera it's fitted to, the number printed on the lens is its real value.

Does the focal length change with the sensor size?

No. 50 mm is 50 mm on any camera. What changes is how much of its image the sensor records, so a smaller sensor gives a tighter view. That is why APS-C and Micro Four Thirds lenses are often described with a "35 mm equivalent" figure, which the crop factor calculator works out.

What focal length is closest to the human eye?

About 50 mm on full frame is called a normal lens, because it is close to the 43 mm diagonal of the sensor and its perspective looks natural. On APS-C the equivalent is about 33 mm, and on Micro Four Thirds 25 mm. It matches the look of everyday perspective only: the eye's total field is far wider.

How do I find the focal length of a converging lens at home?

Hold the lens up to a window across the room and move a sheet of paper behind it until the window appears sharp. Measure from the lens to the paper. That's it. Because the window is far away compared with the lens, that distance is close to the answer. For more accuracy, enter the window's distance and the image distance in the thin lens mode.

All image, photo and design calculators