Home/Optics & Photonics/Geometric Optics/f-number (Focal Ratio) of a Lens

Formula & Calculator

f-number (Focal Ratio) of a Lens

Calculates a lens's f-number, the ratio of focal length to aperture diameter, which determines light-gathering power and depth of field.

OpticsGeometric OpticsPhotography

f-number (Focal Ratio) CalculatorN = f / D

N = f / D
N = f‑number  ·  f = focal length (mm)  ·  D = aperture diameter (mm)
⟹ SolveN, f, D
mm
mm
Please fix the errors above.
Solve for:
Presets:
f‑number
N: f: D:
✓ Copied!
f‑number Gauge
Fast (< 2.8) Moderate (2.8–8) Slow (> 8)
N = f / D  ·  A smaller f‑number means a larger aperture and faster lens.

Interpretation

N = f/D. Ratio of focal length to aperture diameter. Determines light‑gathering power and depth of field. Used in photography and optical design.

N = f / D
f-number (Focal Ratio) of a Lens

Variables

SymbolQuantityUnit
Nf-number
fFocal lengthmm
DAperture (entrance pupil) diametermm

What it means

The f‑number (f/#) is the ratio of the focal length of a lens to the diameter of its aperture. A smaller f/# means a faster lens, collecting more light and allowing shorter exposures, but with shallower depth of field. It is a fundamental parameter in photography and optical design. It affects image brightness, diffraction limit, and depth of field. Understanding f‑number is essential for photographers and optical designers to control exposure and image quality.

Worked example

f‑number (Focal Ratio) – Two Detailed Examples

Real‑World
Scenario: A lens has a focal length f = 50 mm and an aperture diameter D = 25 mm. The f‑number N = f/D = 50/25 = 2. This "f/2" lens is considered fast, allowing large amounts of light to reach the sensor, which is beneficial for low‑light photography. The photographer uses this to set exposure parameters and to understand depth‑of‑field characteristics.
ParameterValue
f (mm)50
D (mm)25
1N = 50 / 25 = 2
Result f/2 ✓ Fast lens
Scenario: A telescope objective has a focal length of 1000 mm and aperture diameter of 200 mm. The f‑number is N = 1000/200 = 5. This "f/5" telescope provides a good balance between light gathering and field of view for astrophotography. The amateur astronomer uses this to calculate exposure times for deep‑sky objects and to compare with other telescopes.
ParameterValue
f1000
D200
1N = 1000 / 200 = 5
Result f/5 ✓ Moderate focal ratio
Insight: The f‑number is the ratio of focal length to aperture diameter. Smaller numbers mean faster optics (more light), while larger numbers mean slower optics but greater depth of field and diffraction‑limited resolution.

Common mistakes

  • f‑number (focal ratio): N = f / D – where f is focal length and D is aperture diameter.
  • Units: f and D must be in the same units – N is dimensionless.
  • Smaller N: Means a faster lens (more light) – e.g., f/2.8 is faster than f/5.6.
  • Photography: The f‑number affects depth of field and exposure – lower N gives shallower depth of field.
  • Effective aperture: For macro photography, the effective f‑number changes with magnification – use corrected values.

Applications

The f‑number (focal ratio) of a lens, N = f/D, is the ratio of the focal length to the aperture diameter. This determines the brightness of an image; lower N means a faster lens (more light). Photographers, cinematographers, and optical designers use it to control exposure, depth of field, and image quality. By adjusting the aperture (f‑stop), they balance light gathering and diffraction effects. In microscopy, the numerical aperture is often preferred. This concept is also used in telescope design to determine image brightness and resolution. Understanding the f‑number is essential for selecting and using optical systems effectively.

  • Camera exposure and depth‑of‑field control
  • Lens performance evaluation and comparison
  • Design of optical systems for specific light gathering
  • Astronomy – comparing telescopes by speed
  • Education on photographic optics

Frequently Asked Questions

Q01What is the f‑number (Focal Ratio) of a Lens used for?
A01

It calculates the f‑number (N) as the ratio of focal length to aperture diameter: N = f / D. This determines light‑gathering power and depth of field.

Q02What do the variables N, f, and D represent?
A02

N = f‑number (dimensionless).
f = focal length of the lens.
D = aperture diameter (entrance pupil).

Q03What is the significance of a lower f‑number?
A03

A lower f‑number means a larger aperture relative to focal length, allowing more light to reach the sensor (faster lens) and shallower depth of field.

Q04How is the f‑number derived?
A04

It is defined as the ratio of focal length to the effective aperture; it is a geometric measure of the lens's light‑collecting ability.

Q05What is the difference between f‑number and numerical aperture?
A05

NA is defined as n sinθ and is related to f‑number by NA ≈ 1/(2N) for small angles. NA is used in microscopy; f‑number is common in photography.

Q06Give a worked example using the f‑number formula.
A06

A lens has f = 50 mm and aperture diameter D = 25 mm. N = 50/25 = 2, so it is an f/2 lens.

Q07What are the common pitfalls when applying the f‑number formula?
A07

  • Confusing f‑number with focal length.
  • Forgetting that f‑number is a ratio, so a smaller number means a larger aperture.
  • Using the physical aperture diameter instead of the entrance pupil.

Q08How does the f‑number affect depth of field?
A08

Smaller f‑numbers (larger apertures) give shallower depth of field; larger f‑numbers give deeper depth of field.

Q09What is the exposure relationship with f‑number?
A09

Each full stop change in f‑number (e.g., from f/2 to f/2.8) halves the light reaching the sensor, requiring compensation in shutter speed or ISO.

Q10How is f‑number used in lens specifications?
A10

It is a standard specification; for example, a 50mm f/1.4 lens indicates a fast lens with a large maximum aperture.