Quick answer: To use a Bahtinov mask, place it over the front of the telescope or lens, point at a bright star, and take short exposures (about 1-3 seconds) at high zoom. The mask creates three diffraction spikes. Adjust focus until the middle spike sits exactly centered between the two spikes that form the “X”, then remove the mask before imaging. For all-night precision, pair that with an electronic focuser and HFR-based autofocus that refocuses as the temperature drops.
As an Amazon Associate, Midwest Astronomy earns from qualifying purchases.
Focus is the cheapest image-quality upgrade in astrophotography and the one most often left on the table. Slightly soft stars look bigger, hide faint stars in the noise, and make every later step (star reduction, deconvolution, sharpening) harder. A Bahtinov mask costs little, needs no power or software, and gets most setups to accurate focus in a couple of minutes. Autofocus takes over where the mask runs out of precision or convenience: fast optics, long sessions and filter changes.

What a Bahtinov mask is and how it works
The mask pattern was invented by Russian amateur astrophotographer Pavel Bahtinov in 2005. It is a flat plate with three sets of slots. Two grids are angled slightly to each other and produce the two spikes that form an “X” around a bright star. The third grid produces a single spike that crosses between them.
The useful part is how the spikes move. As focus changes, the central spike slides from one side of the “X” to the other, while the two outer spikes move the opposite way. At best focus the central spike sits exactly in the middle. Because the eye is very good at judging whether a line is centered, small focus errors become obvious long before you could see them in the star itself.
Two practical details matter:
- Orientation stays consistent. Rotating the mask 180 degrees reverses the direction the spike moves. Mark the top of the mask so you learn which way to turn the focuser.
- It needs a bright star. Dim stars give faint spikes that disappear into the noise. Use a star bright enough to see clear spikes in a 1-3 second exposure.

What you need
- A mask sized for your optics. Masks are made for a given aperture, and the slot spacing is designed around a focal length range. Buy one that fits the dew shield or lens hood snugly. Bahtinov focus masks are sold in sizes from small camera lenses up to large SCTs, and adjustable masks fit a range of diameters.
- Live view or looping short exposures. A DSLR or mirrorless camera’s magnified live view works for bright stars; dedicated astro cameras use the capture software’s framing or focus loop.
- A steady way to adjust focus. A dual-speed (10:1 fine-focus) knob or an electronic focuser removes the shake that comes from touching the focuser during an exposure.
- Optional software help. SharpCap’s Focus Assistant includes a Bahtinov mask tool alongside FWHM-style focus scores, and several other capture programs can measure the spike offset numerically.
How to use a Bahtinov mask: step by step
- Rough-focus first. In daylight or at dusk, focus on a distant object or the Moon so stars appear as small blobs rather than huge donuts. If you use a field flattener or reducer, set its backfocus spacing before you start; focusing cannot fix wrong spacing.
- Let the optics cool. Focus shifts while a telescope reaches ambient temperature. Give a refractor at least 20-30 minutes and larger reflectors and SCTs longer.
- Point at a bright star near your target. Pick one at a similar altitude if possible, so you are not slewing across the sky afterward. Center it in the frame.
- Install the mask with your marked side up, fully covering the aperture.
- Set a short exposure and zoom in. Start at about 1-3 seconds with moderate gain or ISO, then zoom the display to 100-300% on the star so the spikes are large on screen.
- Turn the focuser slowly and watch the middle spike. Stop when it is centered between the two outer spikes, with equal gaps on each side.
- Fine-tune in both directions. Go slightly past focus, then come back. Finish moving in the same direction each time to take up any focuser backlash.
- Lock the focuser if it has a lock, check that the spike is still centered, and remove the mask.
- Confirm with a test frame. Take a normal sub and check star size or HFR. Many capture programs report it automatically.
- Refocus when conditions change. Temperature drops, filter changes and meridian flips can all shift focus.

How precise does focus need to be?
The tolerance for focus is called the critical focus zone (CFZ). A common approximation is:
CFZ (microns) ≈ 4.88 × wavelength (microns) × f-ratio²
Using green light at 0.55 microns, the zone shrinks quickly as optics get faster:
| Focal ratio | Approximate CFZ (total) | What it means in practice |
|---|---|---|
| f/10 | about 268 µm | Forgiving; a mask and careful manual focus usually hold well |
| f/7 | about 132 µm | Typical apo refractor territory; a mask works well |
| f/5 | about 67 µm | Fine-focus knob or motor recommended; refocus as temperature falls |
| f/4 | about 43 µm | Small knob movements matter; electronic focuser strongly recommended |
| f/2 | about 11 µm | Autofocus or precise motorized focus is close to essential |
The numbers are a guide, not a guarantee. Seeing blurs stars more than a tiny focus error on many nights, and slower optics hide small mistakes. But the table explains why a Bahtinov mask feels effortless on an f/10 SCT and fussy on a fast astrograph.
Why focus drifts during the night
Even perfect focus at dusk does not last. The main causes:
- Temperature. Telescope tubes and lens barrels contract as they cool, moving the focal point. Aluminum tubes shift more than carbon fiber. On Midwest nights where the temperature falls 10-20 °F after sunset, focus can drift noticeably within the first couple of hours. Our guide to cold-weather astrophotography covers the cold side of this problem.
- Filters. Filters are not always perfectly parfocal. Switching from luminance to narrowband can move best focus by a small but measurable amount.
- Gravity and slew position. Heavy cameras and filter wheels can sag focusers, and SCT primary mirrors can shift after a meridian flip.
- Dew. A fogging lens or corrector looks like soft focus. Keep optics clear with heaters, as covered in our guide to dew heaters and dew shields.
If stars look soft or bloated in only one corner, the problem is probably tilt or spacing rather than focus; see elongated stars: tilt, spacing and flexure.
How HFR autofocus works
Autofocus replaces the visual spike test with a measurement. The software measures star size, usually as half-flux radius (HFR, the radius containing half of a star’s light) or its double, half-flux diameter (HFD). Smaller numbers mean tighter stars.
A typical routine:
- Starts near focus (from your mask or last good position).
- Moves an electronic focuser out by several steps, takes a short exposure, and measures the average HFR of detected stars.
- Steps through a series of positions on both sides of focus, building a V-shaped or hyperbolic curve of HFR against position.
- Fits a curve to the points and moves to the calculated minimum.

N.I.N.A. autofocus settings that matter (as of November 2026)
N.I.N.A.’s documentation describes these key options:
- Autofocus Step Size and Initial Offset Steps. Step size is how far the focuser moves between points; the offset sets how many points are taken on each side of focus. Step size depends heavily on your telescope and focuser.
- AF Method. Star HFR is the default for deep sky; contrast detection is an alternative for planets or terrestrial targets.
- AF Curve Fitting. N.I.N.A. notes that a traditional autofocus curve follows a hyperbolic shape and recommends the Hyperbolic method.
- R² threshold. The fit quality score. N.I.N.A. treats runs below your threshold as failed and notes that an ideal run is easily beyond 0.95. Clouds and poor step sizes are common reasons for low values.
- Backlash compensation. The recommended Overshoot method overshoots and comes back so the final move is always in the same direction.
- Filter offsets. You can store per-filter focus offsets so N.I.N.A. moves the focuser when switching filters instead of running a full autofocus every time.
- AF disable Guiding. Recommended on with an off-axis guider, since defocus affects guide stars too.
Triggers in the advanced sequencer can run autofocus after a temperature change, a time interval, a filter change or a meridian flip. Our comparison of N.I.N.A. vs SharpCap vs ASIAIR covers the wider capture-software differences.
ASIAIR autofocus
ZWO’s ASIAIR drives a ZWO EAF electronic focuser. It steps the focuser through a series of positions, measures the size of the selected star at each, plots a V-curve and moves to the estimated best position. Autofocus can be triggered by time, temperature, filter change and other events in an Autorun plan. ZWO’s EAF manual recommends setting a backlash compensation value and adjusting the step size so the curve is neither too flat nor too steep.
Bahtinov mask vs autofocus
| Bahtinov mask | Electronic focuser + HFR autofocus | |
|---|---|---|
| Cost tier | Entry | Starter to Mid (focuser plus software or controller) |
| Power and software | None needed | Focuser power and capture software |
| Precision | Very good at f/5 and slower; harder at f/4 and faster | Repeatable at any focal ratio when tuned |
| All-night refocusing | Manual, needs you at the scope | Automatic on temperature, time, filter or flip triggers |
| Filter changes | Refocus by hand | Stored filter offsets |
| Works on camera lenses | Yes, with a front-mounted mask | Only with a motor kit fitted to the lens |
| Best for | Visual-style setups, star trackers, slow scopes | Unattended imaging, fast optics, mono filter workflows |
Many imagers use both: the mask for the first rough-to-fine focus of the night, then autofocus for the rest. If you are still putting together your first rig, our astrophotography for beginners guide explains where a focuser fits in the upgrade order.
Choosing an electronic focuser
You do not need the most expensive option to get repeatable focus. Look for:
- Compatibility with your focuser. Most motor kits attach to the fine-focus or coarse-focus shaft with brackets for specific telescope models. Check the bracket list first.
- Software support. ASCOM or INDI drivers for N.I.N.A., SGP or KStars/Ekos, or native support in an ASIAIR or similar controller.
- Temperature sensor. A built-in or add-on temperature probe allows temperature-triggered refocusing.
- Holding torque. Heavy imaging trains (cooled camera plus filter wheel) need a motor and focuser that will not slip.
Popular options include the ZWO EAF, Pegasus Astro FocusCube and EAF Pro. For lenses on a star tracker, look at lens-focus motor kits designed for astrophotography, or simply focus with a mask and tape the focus ring.
Troubleshooting focus
- Spikes are faint or missing. Use a brighter star, longer exposure, or higher gain. Check that the mask covers the whole aperture.
- Central spike never centers. You may be out of focuser travel, or the reducer/flattener spacing puts focus outside the range. Add or remove extension.
- Autofocus curve is flat or noisy. Step size is too small, the exposure is too short (especially in narrowband), clouds are passing, or seeing is poor. Increase step size and exposure and try again.
- Autofocus curve is lopsided. The starting position was far from focus, or focuser backlash is not compensated.
- Stars sharp in the center, soft at the edges. That is field curvature, tilt or spacing, not focus; see our astrophotography troubleshooting hub.
- Focus good at dusk, soft later. Temperature drift; refocus every 1-2 °C or use temperature-triggered autofocus.
Frequently asked questions
Focus is correct when the middle diffraction spike is exactly centered between the two spikes that form the X, with equal gaps on each side. Zoom in on a bright star with short exposures to judge it accurately, then remove the mask.
Yes. Masks are made for camera lenses and small refractors, and adjustable masks fit a range of lens diameters. Focus at the widest aperture you will shoot at, because some lenses shift focus slightly when stopped down.
Refocus whenever the temperature drops by roughly 1-2 °C, after changing filters that are not parfocal, and after a meridian flip. Fast optics need more frequent refocusing than slow ones.
Autofocus is not more accurate in every case, but it is repeatable and automatic. It refocuses during the night without you at the telescope and can apply filter offsets. A mask is cheaper and works without power or software.
HFR, or half-flux radius, is the radius in pixels that contains half of a star's total light. Smaller HFR values mean tighter stars, so autofocus routines look for the focuser position with the lowest HFR.
Common causes are poor seeing, dew on the optics, temperature drift since focusing, focuser slip under a heavy camera, or tilt and spacing problems that a mask cannot fix. Check a fresh test frame and compare center and corner stars.