A non-contact electrocardiogram (ECG) sensor having an ECG electrode and guard electrode coupled to an electronic circuit that actively gain-corrects the electrocardiogram signal based on fringe capacitance signal and filters the gain-corrected signal based on a static charge reference signal. The compensation system first makes a gain correction for the preamplifier to address ECG electrode-to-subject motion and then removes any additive static common mode interference from motion-induced static charge generation.