We developed and implemented an algorithm to determine and correct systematic distortions in low-energy electron diffraction (LEED) images. The procedure is in principle independent of the design of the apparatus (spherical or planar phosphorescent screen vs. channeltron detector) and is therefore applicable to all device variants, known as conventional LEED, micro-channel plate LEED, and spot profile analysis LEED. The essential prerequisite is a calibration image of a sample with a well-known structure and a suitably high number of diffraction spots, e.g., a Si(111)-7×7 reconstructed surface. The algorithm provides a formalism which can be used to rectify all further measurements generated with the same device. In detail, one needs to distinguish between radial and asymmetric distortion. Additionally, it is necessary to know the primary energy of the electrons precisely to derive accurate lattice constants. Often, there will be a deviation between the true kinetic energy and the value set in the LEED control. Here, we introduce a method to determine this energy error more accurately than in previous studies. Following the correction of the systematic errors, a relative accuracy of better than 1% can be achieved for the determination of the lattice parameters of unknown samples.