Abstract Fluorescent time-lapse experiments often suffer from focus drift, regularly rendering long measurements partially unusable. Frequently, this instability can be traced back to the specific mechanical components of the setup, but even in highly robust implementations z-drift occurs due to small temperature fluctuations which are hard to avoid. To resolve this issue, microscope manufacturers often offer their own interpretation of out-of-focus correction modules for their flagship instruments. However, self-assembled or older systems typically have to fend for their own or adapt their measurements to circumvent drift effects. In this manuscript, we propose a cost-efficient z-drift detection- and correction system that, due to its modular design, can be attached to any fluorescence microscope with an actuated stage or objective, be it in a custom or commercial setup. The reason for this wide applicability is specific to the design, which has a straightforward alignment procedure and allows sharing optics with the fluorescent emission path. Our system employs an infrared (IR) laser that is passed through a double-hole mask to achieve two parallel beams which are made to reflect on the coverslip and subsequently detected on an industrial sCMOS camera. The relative position of these beams is then uniquely linked to the z-position of a microscope-mounted sample. The system was benchmarked by introducing temperature perturbations, where it was shown to achieve a stable focus, and by scanning different positions while simulating a perturbation in the z-position of the stage, where we show that a lost focus can be recovered within seconds.