focal distance calculator

Thin Lens Focal Distance Solver

Use the lens equation 1/f = 1/do + 1/di to solve for focal distance, object distance, or image distance.

Enter two known values, choose what to solve for, then click Calculate.

Hyperfocal Distance Calculator

For photography, hyperfocal distance is estimated with H = (f² / (N·c)) + f, where f = focal length, N = f-number, and c = circle of confusion.

Enter focal length, aperture, and circle of confusion to compute hyperfocal distance.

Tip: When focused at hyperfocal distance, acceptable sharpness extends roughly from half that distance to infinity.

What is focal distance?

Focal distance is a core concept in optics and photography. In simple terms, it describes how strongly a lens bends light and where that light comes to focus. A short focal distance gives a wider view, while a longer focal distance gives a narrower, magnified view. Understanding this one number helps you choose a lens, estimate perspective, and predict how your camera will render a scene.

Two practical ways to use focal distance calculations

1) Thin lens problem solving

In physics classes, labs, and basic optical design, focal distance is often solved with the thin lens equation:

1/f = 1/do + 1/di

  • f = focal distance
  • do = object distance (lens to object)
  • di = image distance (lens to sensor/screen)

If you know any two of these values, you can calculate the third. This is useful for lens experiments, projection setups, and educational demonstrations.

2) Hyperfocal planning for photography

Landscape and travel photographers often care less about a single focus point and more about maximizing depth of field. That is where hyperfocal distance helps. When focused at the hyperfocal distance, your near limit of acceptable focus is approximately half that distance, and the far limit reaches infinity.

The equation used above is:

H = (f² / (N·c)) + f

  • H = hyperfocal distance
  • f = focal length (mm)
  • N = aperture f-number
  • c = circle of confusion (mm)

How to use this focal distance calculator

Thin lens solver steps

  • Select what you want to solve for: focal distance, object distance, or image distance.
  • Choose a unit (mm, cm, or m). Use one unit consistently for all lens-equation fields.
  • Enter the other two known distances.
  • Click Calculate to get the result instantly.

Hyperfocal tool steps

  • Enter focal length and aperture.
  • Pick a sensor preset or type a custom circle of confusion.
  • Click Calculate Hyperfocal Distance.
  • Use the result to choose a focus point in the field.

Example scenarios

Example A: Solving focal distance from measured distances

Suppose your object is 300 mm from a lens and a sharp image forms 60 mm behind the lens. Plugging those into the thin lens equation gives a focal distance near 50 mm. This is a common result in optics labs and confirms the lens behaves roughly like a 50 mm lens.

Example B: Planning a wide landscape shot

If you shoot at 24 mm and f/8 on a full-frame camera using c = 0.03 mm, the hyperfocal distance is only a few meters. Focus near that value and you can keep foreground and distant background acceptably sharp without guessing.

Common mistakes to avoid

  • Mixing units: If one value is in cm and another in mm, results will be wrong. Keep units consistent.
  • Ignoring sign conventions: Advanced optics can use negative distances for virtual objects/images. This calculator is aimed at common positive-distance use cases.
  • Using the wrong circle of confusion: Hyperfocal results depend heavily on c. Choose a realistic value for your sensor and output expectations.
  • Expecting perfection from formulas: Real lenses have design complexity. These equations are excellent approximations but not full optical simulations.

When this calculator is most useful

This focal distance calculator is ideal for students, hobby photographers, educators, and creators who want fast, practical numbers without digging through manual algebra each time. It is especially handy when testing lenses, setting up projection demonstrations, or choosing focus distances on location.

Final takeaway

Focal distance is one of the most important numbers in imaging. With the thin lens solver and hyperfocal calculator together, you can move from theory to real-world decisions quickly: measure, calculate, and shoot with confidence.

🔗 Related Calculators