In this paper, we propose a new method for performing ground-tracking using ground-penetrating radar (GPR). Ground-tracking involves identifying the air-ground interface, which is usually the dominant feature in a radar image but frequently is obscured or mimicked by other nearby elements. It is an important problem in landmine detection using vehicle-mounted systems because antenna motion, caused by bumpy ground, can introduce distortions in downtrack radar images, which ground-tracking makes it possible to correct. Because landmine detection is performed in real-time, any algorithm for ground-tracking must be able to run quickly, prior to other, more computationally expensive algorithms for detection. In this investigation, we first describe an efficient algorithm, based on dynamic programming, that can be used in real-time for tracking the ground. We then demonstrate its accuracy through a quantitative comparison with other proposed ground-tracking methods, and a qualitative comparison showing that its ground-tracking is consistent with human observations in challenging terrain.