Microscope Depth of Field vs Depth of Focus Explained
Table of Contents
- What Are Depth of Field and Depth of Focus in Microscopy?
- How Numerical Aperture and Wavelength Govern Axial Sharpness
- The Trade-offs: Resolution, Brightness, and Depth of Field
- Practical Ways to Increase or Decrease Depth of Field
- How Depth of Field Differs Across Microscope Modalities
- Sample, Coverslip, and Mounting Effects on Apparent Depth
- Estimating, Measuring, and Interpreting Depth of Field
- Frequently Asked Questions
- Final Thoughts on Choosing the Right Depth-of-Field Strategy
What Are Depth of Field and Depth of Focus in Microscopy?
In everyday photography, “depth of field” (DoF) is the distance in front of and behind the point of best focus that appears acceptably sharp. Microscopy uses the same basic idea, but with important twists introduced by high magnifications, high numerical apertures (NA), and the physics of diffraction. Closely related—but different—is “depth of focus,” which describes how much tolerance there is for the image plane (sensor or eyepiece focal plane) to move while the image still appears sharp.
To build a clear mental model, it helps to separate the object side and the image side:
- Depth of field (object side): A range along the specimen’s axial (z) direction, centered near the best focus, within which structures are imaged with an acceptable blur. It is governed primarily by the objective’s NA, the wavelength of light, and the criteria for acceptable blur (which can depend on the detector, magnification, and viewing conditions).
- Depth of focus (image side): The axial tolerance of the detection plane (camera sensor or eyepiece focal plane). If the sensor is moved slightly forward or backward, depth of focus indicates how far it can move before the image becomes unacceptably blurred. It depends on the system’s effective f-number (which is tied to NA and magnification) and the wavelength.

In microscopy, both quantities matter. Depth of field largely determines how thick a volume of the specimen appears sharp at once, affecting how much structure you can see in a single focal plane. Depth of focus tells you how sensitive the system is to small defocus errors at the camera or tube lens position. For instance, a camera placed slightly off the ideal image plane may still record sharp images if the depth of focus is generous, but will lose sharpness if that tolerance is very small.
It’s also useful to distinguish these from axial resolution, the ability to separate two features along the z-axis. Axial resolution shares dependencies with depth of field (both tighten with higher NA and shorter wavelengths), but they are not interchangeable. A system can have a particular axial resolution but a different “acceptable sharpness range” depending on your blur criteria.
Key idea: At the specimen, depth of field is dominated by NA and wavelength. At the camera, depth of focus reflects the tolerance of the image plane position, tied to the effective f-number and wavelength. These are different but related concepts.
Two additional points help avoid common misconceptions:
- Magnification alone does not set depth of field. For the same objective NA, simply increasing magnification downstream (for instance, using a different relay or camera pixel size) does not change the physical DoF in the specimen. It may change the perceived or measured DoF depending on sampling and the blur criterion, but the optical DoF fundamentally scales with NA and wavelength.
- Apparent sharpness differs from physical sharpness. Contrast-enhancing techniques (e.g., phase contrast, DIC) and image processing can make features appear crisper without truly increasing the optical DoF. We discuss this nuance in How Depth of Field Differs Across Microscope Modalities.
How Numerical Aperture and Wavelength Govern Axial Sharpness
Numerical aperture (NA) encapsulates how widely the objective collects light. It is defined as NA = n sin(θ), where n is the refractive index of the immersion medium and θ is the half-angle of the objective’s light cone. For a given wavelength, a higher NA collects higher-angle rays and yields finer detail (higher lateral resolution) and thinner optical sections (tighter axial confinement), but it also reduces depth of field.
Qualitatively, the diffraction-limited contribution to depth of field in the specimen scales roughly as:
- Inversely with the square of NA. Doubling NA strongly reduces DoF. This reflects the three-dimensional nature of the diffraction pattern, where a wider pupil (higher NA) creates a more confined focal volume.
- Proportionally with wavelength. Using longer wavelengths (e.g., red light) increases DoF compared with shorter wavelengths (e.g., blue light), all else equal.
- With immersion medium refractive index. Changing n (e.g., air, water, oil) shifts the geometry of light collection. This change impacts the effective NA and, by extension, the axial confinement and DoF.
Meanwhile, the image-side depth of focus grows with the square of the effective f-number. In microscopy, the effective f-number is tied to NA and magnification, so depth of focus decreases as NA increases. This is one reason high-NA systems are more sensitive to small focus drifts and require mechanically stable stands and careful focusing, especially for time-lapse imaging or when the microscope is subject to thermal changes.
The illumination configuration also matters. In transmitted-light brightfield under Köhler illumination, the condenser NA contributes to the system’s overall coherence. Reducing condenser NA (narrowing the illumination cone) generally increases contrast and can increase the apparent DoF, but it also limits the finest spatial frequencies that are excited and transferred. Conversely, setting the condenser NA to approach the objective NA allows higher spatial frequencies to be imaged (better resolution), with the trade-off of shallower DoF. We revisit this in Practical Ways to Increase or Decrease Depth of Field.
To summarize the dependencies:
- Higher NA: better lateral and axial resolution; brighter images (for a given irradiance); shallower DoF; smaller depth of focus.
- Longer wavelength: lower resolution; deeper DoF; larger depth of focus.
- Immersion media with higher n: enable higher NA; thus tend to improve resolution and reduce DoF when the objective design supports it.
- Illumination NA and partial coherence: influence the effective transfer of spatial frequencies and perceived DoF/contrast in transmitted-light modalities.
These relationships ensure consistency with standard optical microscopy theory: the same physics that sets the point spread function (PSF) laterally also sets its axial extent, and both are bounded by diffraction, NA, and wavelength.

The Trade-offs: Resolution, Brightness, and Depth of Field
Microscopy is a game of trade-offs. For a fixed detector and a given specimen, you typically need to balance at least three linked attributes:
- Resolution (lateral and axial detail)
- Brightness / signal-to-noise
- Depth of field (how much thickness appears sharp at once)
Here is how these attributes interact:
- Resolution vs. DoF: Increasing NA improves both lateral and axial resolution but reduces DoF. For thick, three-dimensional specimens, a high-NA objective reveals crisp detail in a thin plane but blurs out-of-plane structures more strongly. A low-NA objective does the opposite—less detail but more of the sample appears in focus simultaneously.
- Brightness vs. DoF: Under matched illumination, increasing NA increases light collection approximately with NA squared. The brighter image can support shorter exposures or lower illumination intensity, but the DoF will be shallower.
- Resolution vs. brightness: While higher NA increases light collection, the system still needs sufficient contrast at the targeted spatial frequencies. Reducing condenser NA (in transmitted light) can increase contrast for some specimens but may limit the highest spatial frequencies that are transferred, affecting detailed resolution.
A few practical consequences of these trade-offs:
- For flat, thin specimens (e.g., printed sections on a slide), high NA is often beneficial; DoF can be shallow without losing context, and high resolution is rewarding.
- For thick specimens (e.g., small organisms, plant tissues), low-to-moderate NA can make navigation and interpretation easier, because more of the structure appears in focus in a single image. When fine detail is required, selective refocusing or optical sectioning methods help.
- For digital imaging, adequate sampling at the camera (Nyquist criteria) is necessary to capitalize on the resolution offered by a given NA. Oversampling does not create more detail, and undersampling can mask fine features and distort your impression of DoF.
Note how the physics linking NA, wavelength, and axial sharpness governs much of this. Understanding these relationships lets you predict what will happen if you change objectives, immersion media, or illumination conditions.
Practical Ways to Increase or Decrease Depth of Field
Because depth of field stems from diffraction and the imaging geometry, there is no free lunch. However, you do have several levers to tune DoF for your purpose. The methods below are optical or computational ways to adjust DoF while acknowledging their consequences.
Optical strategies to increase depth of field
- Use a lower-NA objective. This is the most direct way. A lower NA increases DoF and reduces sensitivity to small focus errors. The trade-off is lower resolution and potentially reduced light collection.
- Select a longer wavelength for imaging. In transmitted light, using a red filter increases DoF compared to blue. In fluorescence, choosing longer-emission fluorophores increases DoF but reduces resolution for a given NA.

- Reduce illumination NA in transmitted light. Narrowing the condenser aperture increases contrast for many specimens and can increase the apparent DoF by limiting high-angle illumination. However, this reduces the ability to transfer the finest spatial frequencies, lowering ultimate resolution.
- Stop down the objective pupil (if your system allows it). Some macroscope or zoom systems provide an iris at the objective or relay lens. Stopping down effectively reduces NA, increasing DoF with the expected resolution and brightness penalties.
- Choose a stereomicroscope or macro objective for large subjects. These systems are designed for low NA over larger fields and thus offer substantially larger DoF for inspection tasks. See How Depth of Field Differs Across Microscope Modalities.
Optical strategies to decrease depth of field (for thinner optical sections)
- Use a higher-NA objective. This tightens the axial confinement and increases resolution. It is essential for resolving fine structures but makes focusing more demanding.
- Use shorter wavelengths. Blue or near-UV illumination (where appropriate for the specimen and optics) reduces DoF and improves resolution compared with longer wavelengths. Ensure your optics are corrected for the chosen wavelengths.
- Match high condenser NA to the objective NA in brightfield. Maximizing the illumination NA excites higher spatial frequencies and yields thin optical sections, at the cost of contrast for low-contrast specimens.
- Adopt optical sectioning modalities. Confocal and multiphoton techniques restrict detection or excitation to a thin plane, dramatically reducing out-of-focus blur. Though they change the mechanism of axial rejection rather than purely altering DoF, the practical result is a thin section with high axial discriminability.
Computational strategies
- Focus stacking (extended depth of field). Acquire a z-series of images at different focal planes and combine the sharp regions computationally. This does not change the optical DoF but produces an image where more of the specimen appears sharp. It is common in macrophotography, stereomicroscopy, and documentation of thick specimens.
- Deconvolution. With an estimate of the PSF, deconvolution can reduce blur and improve contrast, effectively sharpening images within noise limits. It can increase perceived DoF in some contexts by clarifying in-focus planes and suppressing out-of-focus haze, particularly in fluorescence microscopy.
- Sampling-aware display. Viewing data at appropriate scales (not excessively zoomed or downsampled) helps avoid misjudging DoF. For example, judging sharpness on a heavily downscaled image can overstate DoF.
Each approach carries a cost: less resolution, less light, more noise sensitivity, longer acquisition times, or more computation. Successful imaging reflects a deliberate balance of these consequences based on your goals, as underscored in The Trade-offs: Resolution, Brightness, and Depth of Field.
How Depth of Field Differs Across Microscope Modalities
Different microscope designs and contrast methods shape the appearance of depth and sharpness. While the underlying diffraction limits remain, the illumination pathway, detection pathway, and contrast mechanism alter how DoF is perceived and used.
Brightfield (transmitted light)
In classical brightfield with Köhler illumination, the effective resolution and DoF depend on both the objective NA and the condenser NA. A wide-open condenser (illumination NA approaching the objective NA) supports high resolution and a shallow DoF. Stopping down the condenser increases contrast for low-contrast specimens and makes the DoF appear deeper, but reduces the highest spatial frequencies transmitted. Because brightfield images often contain substantial out-of-focus background from thick samples, the shallow DoF of high-NA objectives can cause strong blur outside the focal plane.
Phase contrast
Phase contrast translates phase gradients in transparent specimens into intensity variations. It does not fundamentally change the physical DoF set by NA and wavelength. However, by enhancing edge contrast, it can make slightly out-of-focus structures look more distinct, sometimes creating the impression of a deeper DoF. The underlying axial resolution and true DoF still follow the rules discussed in How Numerical Aperture and Wavelength Govern Axial Sharpness.
Differential interference contrast (DIC)
DIC converts optical path length gradients into intensity through interference. Like phase contrast, it does not alter the diffraction-limited DoF but increases perceived crispness of features. It emphasizes edges and slopes, which can help recognize structures within a limited DoF. Careful focus control is important, as small defocus can alter the apparent relief.
Fluorescence (widefield)
Widefield fluorescence collects emitted light from the entire illuminated volume. As a result, out-of-focus planes contribute background that reduces contrast. High-NA objectives enhance resolution but also isolate a thinner axial region where structures are sharp, while out-of-focus emission from other planes remains. Thus, widefield fluorescence often benefits from either thin samples, selective excitation, deconvolution, or moving to optical sectioning techniques when thick samples need to be visualized.
Confocal laser scanning microscopy
Confocal systems use a pinhole to reject out-of-focus light. Although the term “depth of field” still applies in the sense of the axial region that produces acceptably sharp signal, the mechanism is different: out-of-focus light is actively excluded by the pinhole. Smaller pinholes thin the optical section but increase noise and reduce signal. The axial response becomes primarily a function of NA, wavelength, and pinhole size. Confocal imaging is preferred for 3D samples where isolation of a thin plane is essential.
Multiphoton excitation
Two-photon and multiphoton microscopes confine excitation to the focus due to the nonlinear dependence of absorption on intensity. As a result, out-of-focus regions are not significantly excited, providing intrinsic optical sectioning and deeper tissue penetration at longer wavelengths. The effective axial confinement is still influenced by NA and wavelength, but the out-of-focus background is dramatically reduced compared with widefield fluorescence.
Stereomicroscopes and macroscopes
Stereomicroscopes, often used for dissection or inspection, operate at low NA and moderate magnifications. Low NA yields large DoF, which is ideal for viewing three-dimensional specimens. Even within stereomicroscopes, introducing an iris to limit NA can further increase DoF at the expense of resolution and brightness. Macroscopes and zoom systems used for imaging larger fields follow similar trade-offs.
Sample, Coverslip, and Mounting Effects on Apparent Depth
Depth of field is not only a property of the optics. Sample preparation, refractive index matching, and coverslip usage influence how sharp an image appears, particularly for thick or refractive specimens.
- Refractive index mismatch: Imaging deep into a specimen with a refractive index substantially different from the immersion medium or the objective’s design assumptions introduces spherical aberration. This aberration broadens the PSF, reducing contrast and perceived sharpness near and away from focus. The result can mimic a reduced DoF or uneven focus through the volume.
- Coverslip thickness and flatness: Objectives designed for a specific coverslip thickness expect that geometry for optimal correction. Deviating from the intended thickness can introduce aberrations that reduce image quality and alter the apparent DoF. Maintaining clean, flat coverslips of the correct specification helps preserve predictable axial performance.
- Mounting medium properties: The refractive index of the mounting medium and its uniformity influence aberrations when imaging into the specimen. An appropriate medium can reduce index mismatch and maintain better axial confinement compared to air gaps or unsuitable media.
- Specimen topography and scattering: Highly scattering or uneven specimens reduce contrast from deeper planes. Even with low NA, the increased background can make deeper regions appear less sharp. Gentle flattening (when appropriate to the specimen) and minimizing particulate contamination can help.
- Thermal and mechanical stability: High-NA imaging has a small depth of focus on the image side, making it sensitive to drift. Temperature fluctuations, vibration, or loose mechanical couplings cause defocus, which is particularly visible in time-lapse sequences.
In short, even when the optical design promises a certain DoF, practical factors can degrade what you observe. Controlling aberrations and maintaining stability protect the axial performance discussed in How Numerical Aperture and Wavelength Govern Axial Sharpness.
Estimating, Measuring, and Interpreting Depth of Field
How can you estimate or verify depth of field for your microscope? There are theoretical approximations and empirical methods. Both can be useful as long as you interpret them with care.
Theoretical intuition without over-precision
For an incoherent, diffraction-limited imaging system, the DoF in object space has two main contributions: a diffraction term that scales approximately with wavelength divided by NA squared, and a geometric term that depends on the acceptable blur at the image plane, magnification, and NA. Together, these predict that increasing NA reduces DoF strongly, and longer wavelengths increase it. Precise formulas vary with the definition of “acceptable blur,” which might be chosen based on the camera pixel size, the intended display scale, or a chosen circle-of-confusion criterion.

Depth of focus at the image plane, on the other hand, grows with the square of the effective f-number. Since the effective f-number in microscopy is tied to NA and magnification, increasing NA tends to reduce depth of focus, making the system more sensitive to camera position and focus drift.
These qualitative rules are sufficient to make sound comparative decisions: if you switch from a 0.25 NA to a 0.50 NA objective at similar wavelengths, you should expect roughly a fourfold reduction in DoF from the diffraction contribution alone, with the exact observable effect also influenced by your blur criterion and sampling.
Empirical assessment with test objects
Empirical assessment avoids over-relying on formulas with hidden assumptions. Common approaches include:
- Scanning through focus across a fine structure: Image a test slide with sub-resolution features (e.g., small reflective beads for reflected light or fluorescent beads for fluorescence). Record a z-stack through focus and examine how the intensity profile narrows around focus. The full-width at half-maximum (FWHM) of intensity or contrast vs. z can serve as a practical DoF indicator under your imaging conditions.
- Step height artifacts or staircase samples: If you have access to a calibrated stepped target, you can determine over what axial range the steps appear acceptably sharp according to your criterion. This directly ties DoF to the visual acceptability standard you use in practice.
- Edge sharpness vs. z-position: Track a knife-edge or similar high-contrast boundary through a z-scan and quantify how edge gradients change. Steeper gradients near focus correspond to thinner DoF; the z-extent where gradients remain above a chosen threshold estimates DoF.
When you report or compare DoF measurements, always state the criterion (e.g., FWHM, edge gradient threshold), the wavelength/illumination, the objective NA and immersion, the condenser NA for transmitted light, and the sampling (pixel size at the specimen). Without these, the numbers are hard to interpret or reproduce.
Interpreting apparent depth in digital images
Digital imaging introduces another layer: sampling and display. A few practical points prevent misinterpretation:
- Pixel size at the specimen: The effective pixel size in object space equals the camera pixel size divided by the total magnification to the sensor. If the effective pixel size is much larger than the optical resolution limit, images may appear unnaturally sharp, overstating DoF. Conversely, very fine sampling will reveal the true thinness of DoF in high-NA imaging.
- Sharpening and denoising: Image processing can alter perceived DoF. Sharpening emphasizes high spatial frequencies near focus, while denoising can suppress background haze. These are valuable tools but can mislead if you equate “looks sharp” with “optically in focus across a thick region.”
- Display scale and viewing distance: Perceived sharpness depends on viewing size. An image that looks well-focused on a smartphone display might reveal limited DoF when examined at 1:1 scale on a monitor.
Whenever possible, corroborate perceived improvements with objective measures, such as contrast metrics across z or reconstructed thickness from known targets.
Planning with simple rules of thumb
While precise formulas depend on definitions, a few rules of thumb aid planning:
- Expect DoF to shrink approximately with the square of NA increases; small increases in NA can markedly thin the focus region.
- Longer wavelengths give you more DoF but less resolution; shorter wavelengths do the opposite.
- Reducing illumination NA in brightfield tends to increase apparent DoF and contrast, but at the cost of limiting the finest detail.
- For thick, scattering samples, DoF alone doesn’t guarantee clarity; consider optical sectioning and aberration control.
These rules align with the principles covered in How Numerical Aperture and Wavelength Govern Axial Sharpness and help you make rational compromises without overreliance on exact numerical predictions.
Frequently Asked Questions
Does increasing magnification always reduce depth of field?
No. Depth of field in object space is governed primarily by NA and wavelength, not magnification alone. However, in practice, higher-magnification microscope objectives often also have higher NA, which does reduce DoF. This linkage can make it seem like magnification itself is the cause. If you could keep NA constant while changing only magnification downstream, the optical DoF in the specimen would remain essentially the same, though your perception of sharpness might change with sampling.
How do confocal and multiphoton systems relate to depth of field?
They reduce out-of-focus contributions by different mechanisms. Confocal microscopy uses a pinhole to reject out-of-focus light, while multiphoton microscopes confine excitation to the focal plane. In both cases, the axial response is much thinner than in widefield imaging of the same specimen. While you can still speak of an axial thickness over which structures are sharp, it is most accurate to describe these systems in terms of optical section thickness and axial resolution rather than classical DoF alone.
Final Thoughts on Choosing the Right Depth-of-Field Strategy

Depth of field and depth of focus are two sides of a single story: how a three-dimensional specimen becomes a two-dimensional image. By grounding your decisions in the physics of NA, wavelength, illumination geometry, and sampling, you can predict how your images will look and choose trade-offs that suit your goals.
- Need fine detail in a thin plane? Favor higher NA and, where appropriate, shorter wavelengths or optical sectioning methods.
- Need to see more of a thick specimen at once? Favor lower NA, longer wavelengths, and possibly contrast methods that aid interpretation; consider computational extended DoF when documentation requires it.
- Want stable imaging over time? Recognize that depth of focus at high NA is small; prioritize mechanical and thermal stability.
Ultimately, there is no universal best DoF—there is only the DoF that best answers your imaging question. If you enjoyed this deep dive into axial imaging fundamentals, consider exploring related topics like numerical aperture, resolution, and sampling theory. For weekly insights like this, subscribe to our newsletter and stay informed on the optics that power clearer, more reliable microscopy.