Skip to content
fieldofviewcalculator.com

Focal Length From a Photo

Focal length from a photo

Length unit
Distance was…
Sensor

Result

Frame width at the object
8.0 m
Focal length
16.2 mm
35 mm equivalent
24.8 mm
Horizontal angle
72.1°

Frame 1.8 × 4,000 ÷ 900 = 8.0 m; f = 5.5 × 23.6 ÷ 8.0 = 16.2 mm.

Good confidence (±10%) — the distance was measured.

Find the focal length of a photo from a known object in it. Measure the object in pixels, enter its real size and distance, and get the focal length now.

How a photo reveals its focal length

A photo records the focal length in its geometry: the wider the frame at the subject, the shorter the lens. If a 1.8 m person at 5.5 m covers 900 px of a 4,000 px photo, the frame at 5.5 m is 1.8 × 4,000 / 900 = 8.0 m wide, and the lens is 5.5 × 23.6 / 8.0 = 16.2 mm on an APS-C sensor. The pixels do the measuring.

Every photo is a measurement waiting to happen, as long as one object in it has a known size. Doors, people, cars, and windows all work, because their real widths are standard enough to trust. The method needs no camera data at all, which is why it works on old scans and screenshots too.

  • Frame width at the object–
  • Focal length–
  • 35 mm equivalent–

1.8 m person at 5.5 m, Nikon APS-C: 900 px → 16.2 mm; 100 px → 1.8 mm. A wider object means a longer lens.

The two measurements you need

You need the object's pixel width and the full photo width, both counted in the same image. Open the photo in any editor, measure the person from head to toe in pixels, and read the image width from the file. The ratio between them is what matters, not the absolute pixel count.

A 900 px person in a 4,000 px photo covers just over a fifth of the frame. That ratio turns the known 1.8 m person into an 8.0 m frame at the subject distance. Count carefully at the object's widest point, and measure twice if the edges are soft or shadowed.

  1. Mark the object edges — the 1.8 m person spans 900 px in the photo.
  2. Read the photo width — 4,000 px from the file, uncropped.
  3. Enter the distance — 5.5 m from the camera to the person. Then frame width = 1.8 × 4,000 ÷ 900 = 8.0 m.

The formula step by step

Step one finds the frame width: object width times photo width divided by object pixels. Step two finds the focal length: distance times sensor width divided by frame width. For the person photo that is 1.8 × 4,000 / 900 = 8.0 m, then 5.5 × 23.6 / 8.0 = 16.2 mm on a 23.6 mm APS-C sensor.

The formula is the field-of-view formula run backwards. Normally focal length and sensor give the frame width; here the frame width and sensor give the focal length. Nothing new is invented, which is why the answer is trustworthy when the measurements are good.

f = × ÷

f = 5.5 × 23.6 ÷ 8.0 = 16.2 mm

  • D — Distance to the object — 5.5 m for the person photo
  • d — Sensor width — 23.6 mm for Nikon APS-C
  • W — Frame width at the object — 8.0 m, from 1.8 × 4,000 ÷ 900

Tap a symbol to see what it means.

Sensor size matters

The same photo gives a different focal length on each sensor, because the formula uses the sensor width. The person photo gives 16.2 mm on APS-C (23.6 mm wide) but 5.5 × 36 / 8.0 = 24.8 mm on full frame (36 mm wide). Pick the wrong sensor and the answer is wrong by the crop factor.

The 35 mm equivalent removes that confusion. The APS-C result of 16.2 mm equals 16.2 × 1.53 = 24.8 mm on full frame, and its horizontal angle is 2·arctan(23.6 / (2 × 16.2)) = 72.1°. Report the equivalent alongside the real focal length so any reader can compare lenses.

Sensor

  • Focal length–
  • 35 mm equivalent–
  • Horizontal angle–

Same photo, same 8.0 m frame: the focal length changes with the sensor, but the horizontal angle stays near 72.1°. The 35 mm equivalent is 24.8 mm on full frame and Nikon APS-C, 24.7 mm on Canon APS-C and 23.8 mm on Micro Four Thirds — the small gaps come from rounding the published crop factors.

Why your answer is approximate

Distance error is the biggest error source, because the focal length scales directly with it. If the person is really 6 m away and you guessed 5.5 m, the answer is about 8% short: 6 × 23.6 / 8.0 = 17.7 mm instead of 16.2 mm. Measure the distance with a tape or a laser when the answer matters.

Pixel error matters most for small objects. A 10 px mistake on a 900 px object shifts the answer by 1.1%, but the same 10 px on a 100 px object shifts it by 10%. Use the largest clear object in the photo, and measure at full zoom rather than on a thumbnail.

  • Low end of the range–
  • High end of the range–

The headline answer is 16.2 mm. At ±25% it spreads from about 12 mm to about 20 mm — measure the distance with a tape when it matters.

Checking against a known lens

Test the method on a photo taken with a lens you already know. Photograph a 1.8 m car at 10 m with a 16 mm lens on full frame: the car should cover 480 px of a 6,000 px frame, and the calculator should return 10 × 36 / 22.5 = 16.0 mm. If it returns 14 mm or 18 mm, one of the measurements is off.

The check catches the two classic mistakes: a cropped photo and the wrong sensor. A photo cropped to half its width reports half the frame width, so the focal length doubles. A full-frame photo read as APS-C reports a focal length 1.53 times too short. Run the check once and the method is trusted.

  • Expected pixel width–
  • Frame width at 10 m–

A 16 mm lens on full frame should show the 1.8 m car as 480 px of a 6,000 px frame. If you measure far fewer pixels, the lens is longer than you thought — or the photo is cropped.

Focal length from a photo vs EXIF

EXIF data gives the focal length directly, when the photo still has it. Most phone and camera photos store the real focal length in the file, so this calculator is for the cases where EXIF is gone: screenshots, scans, social-media downloads, and old prints. Check EXIF first and calculate second.

EXIF reports the real focal length, not the 35 mm equivalent, on most cameras. A phone that claims 26 mm in its marketing may store about 7 mm in EXIF (a 1/1.3-inch main sensor), because its tiny sensor needs only about 7 mm for the same view. This calculator also returns the real focal length, so the two answers compare directly.

  • Measured from the photo–
  • Gap between EXIF and measured–
  • Gap under 10% — measurements agree
  • Gap over 10% — check for a crop or a wrong sensor

The headline photo measures 16.2 mm on APS-C. Compare your EXIF value: a gap over 10% flags a crop or a wrong sensor.

What this cannot tell you

The method cannot tell you the aperture, the camera model, or whether the photo was cropped after the fact. A cropped photo looks exactly like a longer lens, because cropping narrows the frame the same way a telephoto does. If the photo may be cropped, the answer is a lower bound, not a fact.

It also cannot separate focal length from digital zoom. A phone photo at 2× digital zoom behaves like a lens twice as long, and the calculator will report that doubled value. Ask whether the shot used optical or digital zoom before trusting the number for a lens purchase.

  • Effective photo width–
  • Frame width at the object–
  • Recovered focal length–

Cropping to half the width doubles the reported focal length, from 16.2 mm to 32.5 mm.

Practice

  • Person photo on APS-C (the headline case) — A 1.8 m person at 5.5 m covers 900 px of a 4,000 px photo taken on an APS-C camera with a 23.6 mm sensor width. Find the frame width, the focal length, the 35 mm equivalent, and the horizontal angle.

    <strong>Answer:</strong> Frame width = 1.8 × 4,000 / 900 = 8.0 m. Focal length = 5.5 × 23.6 / 8.0 = 16.2 mm. Equivalent = 16.2 × 1.53 = 24.8 mm. Horizontal angle = 2·arctan(23.6 / (2 × 16.2)) = 2·arctan(0.728) = 72.1°.

  • Building on full frame — A 12 m wide building at 30 m covers 1,500 px of a 6,000 px photo taken on a full-frame camera (36 mm sensor). Find the frame width and the focal length.

    <strong>Answer:</strong> Frame width = 12 × 6,000 / 1,500 = 48.0 m. Focal length = 30 × 36 / 48.0 = 22.5 mm. Horizontal angle = 2·arctan(36 / (2 × 22.5)) = 2·arctan(0.8) = 77.3°. The building fills 1,500 / 6,000 = 25% of the frame width.

  • Shop sign on Micro Four Thirds — A 2 m wide shop sign at 8 m covers 800 px of a 4,000 px photo taken on a Micro Four Thirds camera (17.3 mm sensor width). Find the frame width, the focal length, and the 35 mm equivalent.

    <strong>Answer:</strong> Frame width = 2 × 4,000 / 800 = 10.0 m. Focal length = 8 × 17.3 / 10.0 = 13.84 mm ≈ 13.8 mm. Equivalent = 13.84 × 2.0 = 27.68 → 27.7 mm. Horizontal angle = 2·arctan(17.3 / 27.68) = 2·arctan(0.625) = 64.0°.

Tap a question to see its answer.

All calculators

Frequently asked questions

Yes, if the photo shows one object of known size at a known distance, uncropped. A 1.8 m person at 5.5 m covering 900 px of 4,000 px gives an 8.0 m frame and 16.2 mm on APS-C. Without a known object or a known distance, the geometry has two unknowns and no unique answer.