A wearable device configured to acquire and process electrocardiographic measurements, detect lead inversion and correct the acquired measurements for lead inversion is provided. In one example, the wearable device can detect lead inversion by first assessing whether the P-wave of a given electrocardiographic measurement has a negative amplitude, and if the P-wave is found to be negative, the device can determine if the magnitude of the R-wave is smaller than the maximum of the magnitudes of the S-wave and the Q-wave. In another example, the device can be put through an enrollment procedure in which electrocardiographic measurements are taken with the device being worn at known locations on the body. Once the enrollment procedure is completed, when the device is being used, any electrocardiographic results obtained can be compared against the measurements taken during the enrollment phase, and the location of the device on the body can be determined.