Kelvin probe force microscopy is a scanning probe technique used to quantify the local electrostatic potential of a surface. In common implementations, the bias voltage between the tip and the sample is modulated. The resulting electrostatic force or force gradient is detected via lock-in techniques and canceled by adjusting the dc component of the tip–sample bias. This allows for an electrostatic characterization and simultaneously minimizes the electrostatic influence onto the topography measurement. However, a static contribution due to the bias modulation itself remains uncompensated, which can induce topographic height errors. Here, we demonstrate an alternative approach to find the surface potential without lock-in detection. Our method operates directly on the frequency-shift signal measured in frequency-modulated atomic force microscopy and continuously estimates the electrostatic influence due to the applied voltage modulation. This results in a continuous measurement of the local surface potential, the capacitance gradient, and the frequency shift induced by surface topography. In contrast to conventional techniques, the detection of the topography-induced frequency shift enables the compensation of all electrostatic influences, including the component arising from the bias modulation. This constitutes an important improvement over conventional techniques and paves the way for more reliable and accurate measurements of electrostatics and topography.