Lens Focal Length Calculator
Calculate the required focal length from subject distance, sensor size, and desired framing. Enter values for instant results with step-by-step formulas.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Lens Focal Length Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: Focal Length = (Sensor Dimension x Distance) / Subject Size
Worked example โ Required: 53.3mm | Nearest lens: 50mm | FOV: 37.3 degrees horizontal
Formula
Focal Length = (Sensor Dimension x Distance) / Subject Size
The required focal length equals the sensor dimension (width or height in mm) multiplied by the distance to subject, divided by the subject dimension. Frame fill percentage adjusts the effective sensor dimension used in the calculation.
Worked Examples
Example 1: Full-Body Portrait at 5 Meters
Problem:You want to photograph a 1.8m tall person standing 5 meters away, filling 80% of the frame vertically on a full-frame camera (36x24mm sensor).
Solution:Desired image height = 24mm x 0.80 = 19.2mm Subject distance = 5,000mm Subject height = 1,800mm Focal length = (19.2 x 5,000) / 1,800 = 53.3mm Nearest common lens = 50mm Horizontal FOV = 2 x atan(36 / (2 x 53.3)) = 37.3 degrees Crop factor = 1.00 (full frame)
Result:Required: 53.3mm | Nearest lens: 50mm | FOV: 37.3 degrees horizontal
Example 2: Filming a Car at 20 Meters on APS-C
Problem:Film a 4.5m long car from 20 meters away, filling 70% of the horizontal frame on an APS-C camera (23.5 x 15.6mm sensor).
Solution:Desired image width = 23.5mm x 0.70 = 16.45mm Subject distance = 20,000mm Subject width = 4,500mm Focal length = (16.45 x 20,000) / 4,500 = 73.1mm Crop factor = 1.53 Full-frame equivalent = 73.1 x 1.53 = 111.8mm Nearest common lens = 70-200mm zoom at ~73mm
Result:Required: 73.1mm (111.8mm FF equiv) | Use 70-200mm zoom at 73mm
Frequently Asked Questions
What is focal length and how does it affect my image?
Focal length is the distance in millimeters between the optical center of a lens and the camera sensor when the lens is focused at infinity. It determines two key properties: magnification and angle of view. Shorter focal lengths (wide-angle lenses like 14mm to 35mm) capture a wider field of view, making subjects appear smaller but including more of the scene. Longer focal lengths (telephoto lenses like 85mm to 600mm) narrow the field of view and magnify distant subjects. Focal length also affects perspective rendering: wide lenses exaggerate the apparent distance between near and far objects, while telephoto lenses compress perspective, making objects at different distances appear closer together. This is why portraits typically use 85mm to 135mm lenses to produce flattering facial proportions.
What is crop factor and how does it change effective focal length?
Crop factor, also called focal length multiplier, describes how a camera sensor size compares to a full-frame 35mm sensor (36mm x 24mm). A smaller sensor captures a narrower portion of the image circle projected by the lens, producing a tighter crop that mimics a longer focal length. APS-C sensors have a crop factor of 1.5x (Nikon, Sony) or 1.6x (Canon), so a 50mm lens produces framing equivalent to a 75mm or 80mm lens on full-frame. Micro Four Thirds sensors have a 2.0x crop factor, making a 25mm lens equivalent to 50mm. The actual focal length does not change, but the field of view and magnification match the equivalent full-frame focal length. This affects lens selection: a 35mm lens on APS-C gives normal perspective similar to 50mm on full-frame.
How do I choose the right focal length for portraits?
Portrait focal length selection depends on the type of portrait and desired background compression. For tight headshots, 85mm to 135mm on full-frame is ideal, providing natural facial proportions without geometric distortion. The longer the focal length, the more the background is compressed and blurred, which isolates the subject effectively. For environmental portraits showing the subject in context, 35mm to 50mm works well, though you must be careful not to get too close with wide lenses as they distort facial features. Half-body and three-quarter portraits work beautifully at 50mm to 85mm. Group portraits benefit from 35mm to 50mm to include everyone without requiring excessive distance from the group. Wide-angle lenses below 35mm should generally be avoided for portraits as they elongate noses and distort features near the frame edges.
What is the relationship between focal length and depth of field?
Longer focal lengths produce shallower depth of field at the same aperture and subject distance, which is why telephoto lenses are prized for their ability to blur backgrounds. However, this relationship is nuanced. If you maintain the same subject magnification (same framing) while changing focal length, you must also change your distance to the subject, which partially offsets the depth of field change. A 200mm lens at f/2.8 from 10 meters and a 100mm lens at f/2.8 from 5 meters producing the same framing will have nearly identical depth of field. The practical difference is that the 200mm lens compresses the background more, making the out-of-focus areas appear larger and smoother. For maximum background blur, use the longest focal length available at the widest aperture while maintaining your desired framing.
How does sensor size affect the focal length I need?
Sensor size directly determines the focal length required to achieve a specific field of view and framing. A full-frame camera with a 50mm lens captures the same field of view as an APS-C camera with a 33mm lens or a Micro Four Thirds camera with a 25mm lens. When planning a shoot, you must factor in your camera sensor size to select the appropriate lens. This is especially important when following focal length recommendations from tutorials or guides that may assume full-frame cameras. The sensor width and height determine how much of the lens image circle is captured. Larger sensors also provide shallower depth of field at equivalent fields of view, which is why medium format cameras produce such distinctive shallow-focus images even at moderate apertures.
What focal length should I use for landscape photography?
Landscape photography most commonly uses focal lengths between 14mm and 35mm on full-frame cameras, though compelling landscapes can be created at any focal length. Ultra-wide lenses (14mm to 20mm) are popular for expansive vistas with dramatic foreground elements, as they exaggerate the sense of depth and scale. Standard wide-angle (24mm to 35mm) provides a natural field of view that closely matches human perception while still including a broad scene. Telephoto landscapes at 70mm to 200mm are underutilized but create stunning images by isolating specific features, compressing layers of mountains or dunes, and eliminating distracting elements. Many professional landscape photographers carry a 16-35mm wide zoom and a 70-200mm telephoto to cover both approaches and switch between expansive and compressed perspectives.
How do I calculate the focal length needed to fill the frame with a specific subject?
To calculate the required focal length, you need three pieces of information: the distance to your subject, the size of your subject, and your camera sensor dimensions. The formula is focal length equals sensor dimension times distance divided by subject dimension. Use the sensor height for vertically framed subjects and sensor width for horizontally framed subjects. For example, to fill the frame vertically with a 1.8-meter-tall person standing 5 meters away using a full-frame camera (24mm sensor height), the calculation is 24 times 5000 divided by 1800, equaling approximately 67mm. Adding a frame-fill percentage accounts for compositional breathing room: at 80 percent fill, multiply the sensor dimension by 0.8 before calculating, yielding a slightly longer focal length for comfortable framing.
What is perspective distortion and how does focal length cause it?
Perspective distortion is the apparent stretching or compression of spatial relationships between objects at different distances from the camera. It is actually caused by camera-to-subject distance, not focal length directly, but focal length determines the working distance needed for a given framing. Wide-angle lenses used close to a subject exaggerate the relative size differences between near and far elements, making closer objects appear disproportionately large. This is why noses appear oversized in selfies taken with phone cameras at arm length. Telephoto lenses used from far away compress these distance relationships, making objects at different depths appear similar in size and closer together. This compression effect is used creatively in urban photography to make traffic appear densely packed or to make a distant moon appear enormous relative to foreground buildings.
Should I buy prime lenses or zoom lenses?
Prime lenses have a fixed focal length and offer several advantages: they are typically sharper, have wider maximum apertures for better low-light performance and shallower depth of field, are smaller and lighter, and cost less at equivalent quality levels. A 50mm f/1.8 prime is one of the best value investments in photography. Zoom lenses provide versatility by covering a range of focal lengths in a single lens, reducing the need to carry and swap multiple lenses. Professional zooms like 24-70mm f/2.8 and 70-200mm f/2.8 approach prime lens quality but at significantly higher cost and weight. For beginners, starting with one or two quality primes teaches composition skills because you must physically move to change framing. For event and documentary work, zooms are often essential for adapting quickly to changing situations.
How does focal length affect video and cinema work differently than photography?
In video and cinema, focal length choices carry additional considerations beyond framing. Longer focal lengths amplify camera shake, making stabilization critical for handheld telephoto shots. Many cinematographers prefer moderate focal lengths of 35mm to 50mm for narrative work because they closely match human visual perspective, creating an immersive feel. Wide-angle lenses below 24mm are used sparingly in narrative cinema because they create noticeable geometric distortion at frame edges that draws viewer attention. The breathing characteristic of a lens, where the field of view shifts slightly as focus changes, is more noticeable in video. Cinema-specific lenses are designed to minimize focus breathing. Focal length also affects the parallax effect during camera movement: wider lenses create more dramatic parallax between foreground and background elements during dolly or tracking shots.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎPanorama Calculator
Calculate the number of shots needed for a panorama based on focal length and overlap.
๐งฎCrop Factor Calculator
Calculate equivalent focal length and field of view from sensor crop factor.
๐งฎLens Diffraction Calculator
Find the diffraction-limited aperture for your sensor to maintain optimal sharpness.
๐งฎSpeaker Wire Gauge Calculator
Calculate the right speaker wire gauge based on speaker impedance, power, and cable length.
๐งฎVideo Storage Calculator โ Resolution, Codec & Length
Calculate storage needs from video resolution, frame rate, codec, and recording duration.
๐งฎDepth of Field Calculator
Calculate depth of field with interactive inputs and clear steps.
๐งฎHyperfocal Distance Calculator
Calculate hyperfocal distance with interactive inputs and clear steps.
๐งฎField of View Calculator (camera)
Calculate field of view (camera) with interactive inputs and clear steps.