Avenyora reflection
Bahtinov Mask Focus: Read the Spikes and Check Your Stars
Use a Bahtinov mask to find focus on a star, read the centre line in a short preview, and check that your imaging setup holds focus.

A Bahtinov mask helps you focus a telescope or camera lens by turning a bright star into a pattern of three diffraction lines. Two angled lines form an X. Adjust focus until the third line passes through their intersection and divides the X evenly. Then remove the mask and take a short test exposure with the imaging setup you plan to use. The test matters because good focus on one star does not rule out motion, dew or optical problems elsewhere in the frame.
The mask is especially useful when several nearby focuser positions all look equally sharp on a small preview. The line changes sides as you pass through focus, so you can identify the direction of the error and narrow down where the best setting lies.
What the three lines show
The slots in a Bahtinov mask are arranged in three groups with different orientations. As starlight diffracts through those slots, each group produces a line across the star image. You can see two arms on each line, but the focusing cue comes from the relationship among the three full lines. Two form the X. The remaining line moves across its crossing as you turn the focuser. The mask manufacturer's instructions illustrate the pattern on both sides of focus and when the lines are centred.
Read the line against the crossing of the X, even if the whole pattern is tilted on the screen. Its direction of movement depends on the orientation of the mask, camera and display, so a line displaced to the left does not always call for the same knob direction. Make a small adjustment and compare the next preview. This intentional aperture pattern differs from the permanent spikes made by a telescope's optics or mirror supports, described in our guide to diffraction spikes in Webb and Hubble images.
How to get a pattern you can read
Leave the camera and imaging filter in place. Roughly focus first and place an isolated, reasonably bright star near the middle of the frame. Fit the mask securely over the front of the instrument as its maker directs. For a manual check, use a magnified preview or a short sequence of test exposures. You want enough signal to trace the lines beyond the bright core. Try a slightly longer exposure or a brighter star if the lines are hard to see. If the centre and inner lines merge into a large bright patch, shorten the exposure, lower the gain or choose a less bright star.
A short exposure can make the pattern look as if it is shifting or breaking up when the air is turbulent. Compare several frames after the focuser settles. The Astro Photography Tool documentation describes a mask-reading tool that can combine previews to reduce the effect of turbulence. A favourable moment can help you recognise the pattern, but a line that appears centred in only one frame is a weak reason to stop adjusting. Our guide to seeing and transparency explains why a clear sky can still make star images fluctuate.
How to narrow down the best focuser position
Adjust until the middle line approaches the crossing. Then make smaller adjustments and look for a position on each side. As an illustrative example, an analyser might show a four-pixel offset in one direction at one focuser setting and a two-pixel offset in the other direction at the next. The two positions bracket a centre crossing. The offsets are measured in the image, so they do not tell you how many steps to move a motor. Move between those focuser positions and take another preview to see whether the offset decreases.
If reversing the knob seems to produce no immediate change, the focuser may have play. Approach the final position from a consistent direction if the equipment allows it. Once the line appears centred, wait for the image to settle and check it again before touching the mask. If an analyser jumps between very different readings, inspect what it is using as the star and lines. The SharpCap documentation describes how its focus score depends on the visible spike pattern and the area included in the measurement. Verify the pattern visually when the score behaves erratically.
How to verify focus once the mask is off
Remove the mask without bumping the camera or focuser. Take a frame of the intended target with the normal imaging configuration. Check several unsaturated stars near the centre and some near the corners. A small spot near the centre with stretching only toward the corners is a reason to look at the optical setup and field position. If most stars are elongated in the same direction, inspect tracking and whether the mount had settled. Our guide to dithering and settling covers one case in which a motion between frames can spoil the next exposure if it starts too early.
Focus can change later in the session. A filter change may call for a repeat measurement or a previously measured offset. Cooling can shift focus gradually. The N.I.N.A. sequencing documentation describes refocusing triggers based on filter, temperature and measured star size. Those are things you can monitor even if you turn the focuser by hand. When the whole field loses contrast or halos grow around bright stars, also check for dew on the optics. Moving the focuser will not dry a wet surface.
What to record so you can recover the setting
If your focuser has a position readout, note the position, the filter and the direction from which you reached it. With a manual focuser, note a scale reading or the drawtube position if the mechanism provides a reference. That record helps if you lose the star or make a larger adjustment than intended. Treat it as a place to resume checking. Turning back to the same mark after the telescope cools may bring you near focus while still leaving a visible error.
Keep one preview with the mask pattern centred and one unmasked test image from the same setup. The first lets you recognise the line pattern the next time you focus. The second lets you compare normal star images as conditions change. Use a similar exposure and a similar position in the field when comparing the stars.
Frequently asked questions
Does the middle spike have to be vertical?
No. The camera view can rotate or mirror the pattern. Look for the middle line crossing the point where the other two meet, regardless of how the lines sit on the screen.
Why are the mask's diffraction lines hard to see?
The telescope may still be far out of focus, the star may be too faint, or a saturated centre may be hiding the lines. Adjust the preview exposure and compare several frames before making another small focus change.
Can I leave a Bahtinov mask on during imaging?
Remove it before recording the target. The mask blocks some of the incoming light and adds diffraction lines to star images. It is there to help you choose the focus position.
Do I need to refocus after changing filters?
Check again when filters can shift focus and you have no reliable measured offset. A short mask check followed by an unmasked test image can show whether the new filter needs a different setting.