Focal Length Calculator
The focal length calculator is a simple tool that facilitates the process of computing the magnification, focal length, and angle of view. Taking a picture of an object from a distance might be challenging — we'll help you find the right focal length to create an image that perfectly fits your camera's sensor size. 📷
In the article below, we'll teach you how to find the focal length, discover the lens equation, and talk about a few essential principles of photography and lens choice.
What's the focal length?
Focal length is one of the primary values of a photographic lens. Manufacturers usually give it in millimeters (mm).
Focal length describes the distance between the rear principal point and the sensor — in other words, it's the space starting from the center of the lens to the point where the light rays converge in the focal point, to form a sharp picture on the surface of a digital sensor or 35 mm film.
💡 Strictly speaking, focal length is determined only when the lens is focused at infinity. For subjects at ordinary distances, the lens-to-sensor distance (the image distance) is slightly longer than the focal length — our calculator takes this into account with the thin lens equation.
🖼️ Thanks to the focal length, we're able to calculate the angle of view — this variable informs us of the amount of the scene that will be captured. The wider the angle, the more of the scene can be transferred to the sensor and be visible in the photograph.
🔍 The calculator also finds the magnification — it allows us to measure how the size of an object changes when transferred to a photograph.
How to use the focal length calculator
- Choose your unit system — American (feet and inches) or metric (meters and centimeters).
- Enter the distance to your subject — how far the object is from the camera lens.
- Enter the subject size — the height (or width) of the object you want to photograph.
- Decide whether the subject should fill the frame vertically (frame height) or horizontally (frame width).
- Pick your camera sensor from the list — Full Frame, APS-C, Micro Four Thirds and more — or enter custom sensor dimensions in millimeters.
- The calculator instantly returns the required focal length, the magnification, the image distance, and the angle of view (horizontal, vertical, and diagonal), plus the crop factor and the 35 mm-equivalent focal length of the suggested lens.
How to calculate focal length — the lens equation
Three simple formulas power this tool. First, the magnification compares the image size on the sensor to the real size of the object:
magnification = image height ÷ object height
Second, the magnification also links the two distances: the image distance v (lens to sensor) and the object distance u (lens to subject):
image distance = magnification × object distance
Finally, the famous thin lens equation ties everything to the focal length f:
1/f = 1/u + 1/v → f = u·v ÷ (u + v)
Example: you photograph a person 6 ft (183 cm) tall standing 15 ft (4.6 m) away, and you want them to fill the frame of a full-frame camera vertically (24 mm). The magnification is 24 ÷ 1829 ≈ 0.0131, the image distance is 0.0131 × 4572 ≈ 60 mm, and the required focal length is about 59 mm — a classic 50 mm prime gets you very close.
Angle of view
Once the focal length is known, the angle of view follows from the sensor dimensions (with the lens focused at infinity):
AOV = 2 × arctan(sensor size ÷ 2f)
Use the sensor width for the horizontal angle, the height for the vertical angle, and the diagonal for the diagonal angle of view. A 24 mm wide-angle lens on full frame sees about 84° diagonally, a 50 mm "normal" lens about 47°, and a 200 mm telephoto only about 12°.
Focal length and lens choice
| Focal length (full frame) | Lens type | Typical use |
|---|---|---|
| 8–16 mm | Fisheye / ultra-wide | Creative, architecture, astro |
| 16–35 mm | Wide-angle | Landscapes, interiors |
| 35–70 mm | Standard | Street, documentary, everyday |
| 70–135 mm | Short telephoto | Portraits |
| 135–400 mm | Telephoto | Sports, wildlife |
| 400+ mm | Super telephoto | Birds, distant wildlife |
Frequently Asked Questions
Does the sensor size change the required focal length?
Yes. A smaller sensor captures a smaller image, so filling the frame with the same subject from the same distance requires a proportionally shorter focal length. That's exactly why the calculator asks for your sensor — and why it also reports the crop factor and the 35 mm-equivalent focal length.
What is magnification in photography?
Magnification is the ratio of the image size on the sensor to the real object size. Everyday photography works at tiny magnifications (1:50 or less); a macro lens reaches 1:1, where the image on the sensor is as large as the object itself.
Why is the image distance longer than the focal length?
The focal length is the image distance for an object at infinity. For any closer subject, the lens must move slightly farther from the sensor to focus — that's what the thin lens equation describes, and why macro lenses extend so far.
Is a zoom lens or a prime lens better for a given focal length?
A zoom covers a range of focal lengths, so one lens can match many subject distances. A prime (fixed) lens must be matched to the situation — the calculator suggests the nearest standard prime — but typically rewards you with a wider maximum aperture and sharper images.