Find the Focal Length You Need
Result
- Focal length
- Nearest common prime
- Frame height
- Horizontal angle
- Vertical / diagonal angle
f = 5.0 × 36 ÷ 2.0 = 90.0 mm.
Find the focal length that fits your subject. Enter the angle or frame width, pick a sensor, and get the exact focal length plus the nearest common lens.
What focal length fits your subject?
The focal length you need is the one that fits your subject width at your distance on your sensor. A 2.0 m wide group at 5.0 m on a full frame sensor needs a 90 mm lens, because 5.0 x 36 / 2.0 = 90.0 mm. That single division answers the whole question, and every other case on this page works the same way.
You start from the shot, not from the lens. Measure the width you must fit, measure how far back you can stand, and pick your sensor. The calculator then gives one number in millimeters. If that number falls between two lenses you own, the nearer prime is listed beside it.
How the angle version works
A target angle gives a focal length through f = d / (2 x tan(AOV / 2)). A 90 degree horizontal angle on a full frame sensor needs 18.0 mm, because 36 / (2 x tan 45 degrees) = 36 / 2 = 18.0 mm. A 90 degree diagonal angle needs 21.6 mm, because 43.27 / 2 = 21.64 mm, rounded to 21.6 mm.
The angle and the frame width are two doors into the same room. Photographers who think in degrees use the angle mode, and photographers who think in meters use the frame mode. Both modes use the same sensor dimension, so both modes must give the same focal length for the same shot.
Why your sensor changes the answer
A smaller sensor needs a shorter focal length for the same shot. A 2.0 m group at 10.0 m needs 118.0 mm on a Nikon APS-C sensor, because 10.0 x 23.6 / 2.0 = 118.0 mm, but 180.0 mm on full frame at the same distance, because 10.0 x 36 / 2.0 = 180.0 mm. The sensor width sits in the numerator, so a narrower sensor needs the shorter focal length at the same distance.
This is why a lens number means nothing without a sensor. A 50 mm lens is wide on full frame and tight on a 1-inch sensor. Always enter the sensor first, then read the focal length, or the answer will belong to a different camera.
The nearest prime lens
The nearest common prime is the lens you can actually buy or mount. A calculated 37.5 mm for a 60 degree diagonal field on full frame points to a 35 mm prime, because 35 mm is the closest standard prime below the exact value. A calculated 38.6 mm for a 50 degree horizontal field points to a 35 mm or 40 mm prime.
Exact values rarely match a lens on the shelf. Standard primes run 14, 20, 24, 28, 35, 40, 50, 85, 105, 135, and 200 mm. The calculator lists the closest one and the gap in millimeters, so you can judge whether to step closer or accept a small crop.
Fitting a person, a group, or a building
A person, a group, and a building each need their own width, and the formula treats them the same. A 1.8 m person at 3.0 m on full frame needs 60.0 mm, because 3.0 x 36 / 1.8 = 60.0 mm. A 6.0 m building front at 10.0 m needs the same 60.0 mm, because 10.0 x 36 / 6.0 = 60.0 mm.
The coincidence is useful, not confusing. Width and distance scale together, so any subject that is one third of its distance needs about 60 mm on full frame. Learn that one ratio and you can estimate most shots before you open the calculator.
Distance matters as much as width
Doubling the distance doubles the focal length for the same frame. A 2.0 m group at 5.0 m needs 90.0 mm on full frame, and the same group at 10.0 m needs 180.0 mm, because 10.0 x 36 / 2.0 = 180.0 mm. You cannot change one without changing the other.
This is the fact that saves a shoot. If the longest lens you own is 85 mm and the calculation says 118.0 mm, you do not need a new lens. You need to move closer, from 10.0 m to about 7.2 m, or accept a wider frame and crop later.
Wide, normal, and telephoto boundaries
A focal length below about 35 mm is wide, 40 to 60 mm is normal, and above 85 mm is telephoto on full frame. A 24 mm lens gives a 73.74 degree horizontal angle, a 50 mm lens gives 39.60 degrees, and an 85 mm lens gives 23.91 degrees. Those three numbers mark the three kinds of shot.
The boundaries shift on smaller sensors, but the angles do not. A 35 mm lens on Nikon APS-C gives 37.26 degrees, close to a 50 mm lens on full frame at 39.60 degrees. Compare angles, not millimeters, when you move between camera bodies.
When the formula stops working
The formula assumes a rectilinear lens focused far away, and it fails for fisheye lenses and extreme close-ups. A fisheye lens bends straight lines, so its 180 degree field cannot come from 2 x arctan(d / (2f)). A lens focused at 0.3 m also behaves longer than its marked focal length, because focus breathing changes the effective value.
If your result looks wrong, check three things first. Confirm the sensor width is the real sensor, not the 35 mm equivalent focal length printed on a phone. Confirm the distance is to the subject, not to the background. Confirm the lens is rectilinear, not a fisheye.
Practice
Fit a 3.0 m wide banner at 6.0 m on a Canon APS-C sensor.
<strong>Answer:</strong> f = 6.0 x 22.3 / 3.0 = 44.6 mm. Nearest prime: 40 mm or 50 mm; 40 mm gives a slightly wider frame, 50 mm crops the edges.
Find the focal length for a 50 degree horizontal field on full frame.
<strong>Answer:</strong> f = 36 / (2 x tan 25 degrees) = 36 / 0.9326 = 38.6 mm. Nearest prime: 35 mm or 40 mm.
Fit a 1.2 m wide product at 4.0 m on a 1-inch sensor.
<strong>Answer:</strong> f = 4.0 x 13.2 / 1.2 = 44.0 mm. Horizontal angle: 2 x arctan(13.2 / 88) = 17.06 degrees.
Tap a question to see its answer.
All calculators
- Focal lengthf = D · d / W
- DistanceD = W · f / d
- Crop factorCF = 43.27 / diagonal
- CompareAOV = 2 · arctan(d / (2f))
- CCTVD = (f · px) / (PPM · sensor width)
- TelescopeTFOV = AFOV / M
- BinocularsExit pupil = D / M
- Gaming FOVH = 2 · arctan(tan(V / 2) × aspect ratio)
- TV distanceDistance = width / (2 · tan(θ / 2))
- From a photoW = D · d / f
- Projector throwThrow distance = throw ratio × screen width
- MicroscopeField diameter = FN / objective magnification
No calculator matches your search.
Frequently asked questions
You need 18.0 mm on a full frame camera for a 90 degree horizontal field. The arithmetic is 36 / (2 x tan 45 degrees) = 36 / 2 = 18.0 mm. For a 90 degree diagonal field you need 21.6 mm, because 43.27 / 2 = 21.64 mm.
You need 90 mm on full frame. The arithmetic is 5.0 x 36 / 2.0 = 90.0 mm. On a Nikon APS-C sensor the same shot needs 59.0 mm at 5.0 m, because 5.0 x 23.6 / 2.0 = 59.0 mm, and the angle is 22.62 degrees in both cases.
Divide distance times sensor width by frame width: f = D x d / W. A 4.0 m wide scene at 8.0 m on a Micro Four Thirds sensor needs 34.6 mm, because 8.0 x 17.3 / 4.0 = 34.6 mm. Use meters for D and W and millimeters for d and f.
A smaller sensor needs a shorter focal length for the same angle, and the same focal length looks longer on it. A 50 mm lens gives 39.60 degrees on full frame but only 26.56 degrees on Nikon APS-C, because 2 x arctan(23.6 / 100) = 26.56 degrees. To match the full frame angle on Nikon APS-C you need about 33 mm.
The nearest common prime is 35 mm. A 60 degree diagonal field on full frame needs 37.5 mm, because 43.27 / (2 x tan 30 degrees) = 43.27 / 1.1547 = 37.47 mm, rounded to 37.5 mm. A 35 mm lens gives a slightly wider 63.44 degree diagonal field, so the whole subject still fits.