🔍

Focal Length Calculator

Calculate the focal length of lenses and mirrors

Distance from object to lens (u)
Distance from lens to image (v)

Enter object and image distances to calculate focal length

About Focal Length Calculator

The Heart of the Image: The Ultimate Guide to Our Focal Length Calculator

Every lens and curved mirror, from the simplest magnifying glass to the complex optics in a satellite telescope, possesses a single, defining characteristic that dictates its fundamental power to shape light. This intrinsic property is its **Focal Length**.

The focal length is the invisible measure of a lens's or mirror's ability to converge or diverge light rays. It determines the magnification, the field of view, and the very nature of the image that will be formed—whether it will be real or virtual, enlarged or reduced. In photography, it's the primary factor that distinguishes a wide-angle lens from a telephoto lens. In astronomy, it defines the power of a telescope.

Welcome to the definitive guide to this cornerstone of optics. Our Focal Length Calculator is a tool built upon the fundamental equations of image formation, designed to help you determine this crucial property. This comprehensive article will not only guide you through the calculator's use but will also explore the physics of lenses and mirrors, the importance of sign conventions, and how focal length shapes our ability to see the world.

What is Focal Length? The Point of Convergence

The **Focal Length (f)** of an optical system is the distance over which initially collimated (parallel) light rays are brought to a focus.

Imagine parallel rays of light coming from a very distant object, like the Sun.

For a Converging System

A **converging** or **convex** lens will bend these parallel rays inwards, causing them to meet at a single point. A **converging** or **concave** mirror will reflect them inwards to a single point. The distance from the center of the lens/mirror to this point of convergence is the focal length. By convention, converging systems have a **positive (+)** focal length.

For a Diverging System

A **diverging** or **concave** lens will spread the parallel rays outwards. They will never actually meet. However, if you trace these diverging rays backward, they will appear to originate from a single point *behind* the lens. A **diverging** or **convex** mirror will also spread the rays out, and they will appear to originate from a point behind the mirror. The distance to this virtual point of origin is the focal length. By convention, diverging systems have a **negative (-)** focal length.

The shorter the focal length, the more "powerful" the lens or mirror is—it bends light more sharply.

The Lens/Mirror Equation: The Heart of the Calculator

The relationship between focal length, the position of an object, and the position of the resulting image is described by one of the most important formulas in geometric optics: the **Thin Lens Equation** (which, conveniently, is identical for spherical mirrors).

1/f = 1/dₒ + 1/dᵢ

Let's break down each component:

  • f is the **focal length** of the lens or mirror. This is what our calculator solves for.
  • dₒ is the **object distance**: the distance from the optical center of the lens/mirror to the object.
  • dᵢ is the **image distance**: the distance from the optical center to the location where the focused image is formed.

If you can measure the object and image distances for a given setup, you can precisely calculate the focal length of the optical element. This is a common method used in physics labs.

How to Use the Focal Length Calculator

Step 1: Enter the Object Distance (dₒ)

Input the distance from the center of your lens or mirror to the object. Ensure you use consistent units (e.g., cm or m) for all your measurements. By convention, the object distance is almost always a **positive** value.

Step 2: Enter the Image Distance (dᵢ)

Input the distance from the center of your lens or mirror to the sharply focused image. This is where the sign becomes critically important.

Step 3: Adhere to the Sign Conventions!

To get a meaningful result, you must correctly identify the sign of the image distance based on the type of image formed:

  • Use a **positive (+)** image distance for a **REAL image**. A real image is formed where light rays actually converge. It can be projected onto a screen. For a lens, this is on the opposite side from the object. For a mirror, it's on the same side as the object.
  • Use a **negative (-)** image distance for a **VIRTUAL image**. A virtual image is formed where light rays only *appear* to diverge from. It cannot be projected onto a screen. For a lens, this is on the same side as the object. For a mirror, it's "behind" the mirror surface.

Step 4: Analyze the Result

The calculator will compute the focal length `f`. The sign of the result will tell you the nature of your lens or mirror. A positive `f` indicates a converging system, while a negative `f` indicates a diverging system.

Worked Example: A Simple Camera

You are building a simple camera. You place an object 50 cm away from a lens. You find that a sharp, inverted image is formed on a sensor placed 15 cm behind the lens. What is the focal length of the lens, and what type of lens is it?

  • Object Distance (dₒ): +50 cm.
  • Image Distance (dᵢ): The image is sharp and formed on a sensor, which means it is a **real image**. Therefore, `dᵢ` is positive. `dᵢ = +15 cm`.
  • Formula: `1/f = 1/dₒ + 1/dᵢ`
  • Calculation: `1/f = 1/50 + 1/15 = 3/150 + 10/150 = 13/150`.
    `f = 150 / 13 ≈ +11.54 cm`.
  • Result: The focal length is approximately +11.54 cm. Since the focal length is positive, it is a **converging (convex) lens**.

Focal Length in Photography: The Creative Tool

In photography, the focal length of a lens is perhaps its most important creative characteristic.

Wide-Angle Lenses (e.g., 14-35mm)

A short focal length results in a wide field of view. These lenses capture a broad scene, making them ideal for landscapes, architecture, and interior shots. They can also create a sense of dramatic perspective, exaggerating the distance between near and far objects.

"Normal" Lenses (e.g., 50mm)

A focal length of around 50mm (on a full-frame camera) produces a field of view and perspective that closely mimics that of the human eye. This makes them versatile for portraits, street photography, and general use.

Telephoto Lenses (e.g., 70-200mm and up)

A long focal length results in a narrow field of view and high magnification. These lenses are used to bring distant subjects closer, making them essential for wildlife, sports, and astrophotography. They also have the effect of compressing perspective, making distant objects appear closer together.

Frequently Asked Questions (FAQ)

Q: What is the "power" of a lens?

The optical power of a lens is another way to describe its ability to bend light. It is defined as the reciprocal of the focal length, `P = 1/f`. The unit for optical power is the **diopter (D)**, where `1 D = 1 m⁻¹`. A lens with a short focal length has a high power, while a long focal length lens has a low power. Eyeglass prescriptions are given in diopters.

Q: How is focal length related to the curvature of the lens/mirror?

They are directly related via the **Lensmaker's Equation**. For a lens, the focal length depends on the refractive index of the glass and the radii of curvature of its two surfaces. For a spherical mirror, the focal length is simply half of its radius of curvature (`f = R/2`). A more highly curved surface will have a shorter radius of curvature and thus a shorter focal length.

The Defining Property of Optical Systems

Focal length is more than just a specification; it is the very soul of a lens or mirror. It dictates how an image will be formed, how much of the world will be captured, and how we can manipulate light to extend the reach of our own eyes.

Use our calculator to master the fundamental equation that connects focal length to the world of images. Practice with different setups, become an expert in the sign conventions, and build a powerful, quantitative understanding of the principles that make all of optics possible.

Frequently Asked Questions

What is focal length?
Focal length is the distance between a lens's optical center and its focal point (where parallel light rays converge). It determines magnification and field of view.
How is focal length calculated for a single lens?
Use the lensmaker's equation: 1/f = (n-1)(1/R₁ - 1/R₂), where f is focal length, n is refractive index, R₁ and R₂ are radii of curvature.
What units are used for focal length?
Typically millimeters (mm) in photography, but any length unit works. Positive for converging lenses, negative for diverging lenses.
How does focal length affect field of view?
Shorter focal length = wider field of view. Longer focal length = narrower field of view (more 'zoomed in').
What is the difference between focal length and focus distance?
Focal length is a fixed property of the lens. Focus distance is the variable distance from lens to subject where the image appears sharp.
How do I calculate focal length from diopters?
f (in meters) = 1/D, where D is optical power in diopters. Example: 2 diopter lens has f = 0.5m = 500mm.
What is the effective focal length (EFL)?
EFL accounts for multiple lens elements in a system. It's the focal length of a single lens that would produce equivalent magnification.
How is focal length calculated for two combined lenses?
1/f_total = 1/f₁ + 1/f₂ - d/(f₁f₂), where d is separation distance. For thin lenses in contact: 1/f_total = 1/f₁ + 1/f₂.
What is the focal length of a plano-convex lens?
1/f = (n-1)/R, where R is the curved surface's radius (infinite radius for flat side).
How does aperture relate to focal length?
f-number = f/D, where D is aperture diameter. Same f-number gives same exposure regardless of focal length.
What is the focal length of the human eye?
Approximately 17mm when relaxed (focused at infinity), but varies during accommodation (about 14-16mm when focused near).
How do I calculate focal length from magnification?
For finite conjugate imaging: 1/f = 1/v + 1/u, where v is image distance, u is object distance. Magnification M = v/u.
What is the difference between focal length and back focal distance?
Focal length is measured from principal plane to focal point. Back focal distance is from last lens surface to focal point (differs for thick lenses).
How is focal length calculated for a concave mirror?
f = R/2, where R is the mirror's radius of curvature. Positive for concave, negative for convex mirrors.
What is the focal length of a standard smartphone camera?
Typically 4-6mm (equivalent to ~28-35mm on full frame due to small sensor crop factor).
How do I calculate focal length from image and object distances?
Thin lens equation: 1/f = 1/u + 1/v, where u is object distance, v is image distance (both positive for real images).
What is the focal length of a magnifying glass?
Common reading magnifiers are 100-200mm (5-10 diopters). Higher power = shorter focal length.
How does sensor size affect effective focal length?
Crop factor = (full frame diagonal)/your sensor diagonal. Effective focal length = actual focal length × crop factor.
What is the focal length of a telescope objective lens?
Typically 400-2000mm for amateur telescopes. Longer focal lengths provide higher magnification but narrower field of view.
How do I calculate focal length from a star image?
f = (star trail length)/(2π × exposure time × cos(declination)) for equatorial mounts. For alt-azimuth, corrections needed.
What is the focal length of a typical kit lens?
Common DSLR kit lenses are 18-55mm (APS-C) or 24-105mm (full frame). The range covers wide-angle to short telephoto.
How is focal length calculated for a thick lens?
Use modified lensmaker's equation accounting for thickness t: 1/f = (n-1)[1/R₁ - 1/R₂ + (n-1)t/(nR₁R₂)].
What is the focal length of a fisheye lens?
Extremely short, typically 8-16mm for full frame, creating 180°+ field of view with strong distortion.
How do I calculate focal length for a Barlow lens?
Effective focal length = original f × Barlow magnification (usually 2× or 3×). The Barlow increases the system's focal length.
What is the focal length of a microscope objective?
Typically 1.5-30mm. High power objectives have very short focal lengths (e.g., 1.8mm for 100× oil immersion).
How does focal length affect depth of field?
Longer focal lengths produce shallower depth of field at same f-number and subject distance (when framing is matched).
What is the focal length of a telephoto lens?
Generally 70mm+ on full frame. Common telephotos are 70-200mm, 100-400mm, etc. Super-telephotos reach 600mm+.
How do I calculate focal length from angular field of view?
f = (sensor dimension)/[2×tan(FOV/2)]. Example: For 35mm sensor (36mm wide) and 60° horizontal FOV: f ≈ 36/(2×tan30°) ≈ 31mm.
What is the focal length of a normal lens?
Approximates human eye perspective. For full frame: 50mm. For APS-C: 35mm. For Micro Four Thirds: 25mm.
How is focal length calculated for a zoom lens?
Complex as multiple elements move. Manufacturers determine focal lengths at extremes (e.g., 24-70mm) with continuous variation between.
What is the focal length of a pinhole camera?
Simply the distance from pinhole to image plane. Very short focal lengths produce wide-angle views with infinite depth of field.
How do I calculate focal length for a lens immersed in liquid?
Use modified lensmaker's equation with relative refractive index: n_lens/n_medium instead of absolute n_lens.
What is the focal length of a wide-angle lens?
For full frame: typically 14-35mm. APS-C: 10-24mm. Creates wider than normal field of view (60°+).
How does focal length affect perspective distortion?
Longer focal lengths compress perspective (distant objects appear closer). Shorter focal lengths exaggerate perspective (close objects dominate).
What is the focal length of a mirror lens?
Catadioptric designs typically have long focal lengths (500mm+) in compact packages by folding the optical path.
How do I calculate focal length from EXIF data?
EXIF records actual focal length used. For crop sensors, multiply by crop factor for full frame equivalent.
What is the focal length of a tilt-shift lens?
Common focal lengths are 24mm, 45mm, and 90mm (full frame equivalents). Provides perspective control for architecture/product photography.
How is focal length calculated for gradient-index lenses?
Complex calculation involving refractive index variation n(r). Ray tracing software typically required for precise determination.
What is the focal length of a macro lens?
Common macro focal lengths are 50-60mm (APS-C), 90-105mm (full frame), and 150-200mm (for greater working distance).
How do I calculate focal length for a lens with aspheric surfaces?
Complex - requires knowing the aspheric coefficients. Best determined experimentally or with optical design software.
What is the focal length of a theodolite telescope?
Typically 150-300mm, providing 20×-30× magnification for precise angle measurements in surveying.
How does focal length affect image stabilization requirements?
Longer focal lengths require more stabilization (rule of thumb: minimum shutter speed ≈ 1/focal_length for sharp handheld shots).
What is the focal length of a periscope lens in smartphones?
Typically 80-240mm equivalent, using folded optics to achieve long focal lengths in thin devices.
How do I calculate focal length from lens specifications?
For simple lenses, use lensmaker's equation. For complex lenses, manufacturers provide focal length - check product specs or markings on lens barrel.
What is the focal length of a Schmidt-Cassegrain telescope?
Typically 2000-4000mm, achieved by combining spherical primary mirror with corrector plate in compact tube.
How is focal length calculated for a diffractive optical element?
Depends on zone spacing. First-order focal length f = r₁²/λ, where r₁ is first zone radius, λ is design wavelength.
What is the focal length of a Fresnel lens?
Same as equivalent conventional lens but much thinner. Common in lighthouses (500-1000mm) and overhead projectors (200-400mm).
How do I calculate focal length for a zoom lens at intermediate positions?
Precise calculation requires complex optical formulas. In practice, check lens markings or EXIF data from sample images.