Background: Modern biomedical amplifiers have a very high common mode rejection ratio. Nevertheless, recordings are often contaminated by residual power-line interference. Traditional analogue and digital filters are known to suppress ECG components near to the power-line frequency. Different types of digital notch filters are widely used despite their inherent contradiction: tolerable signal distortion needs a narrow frequency band, which leads to ineffective filtering in cases of larger frequency deviation of the interference. Adaptive filtering introduces unacceptable transient response time, especially after steep and large QRS complexes. Other available techniques such as Fourier transform do not work in real time. The subtraction procedure is found to cope better with this problem.