Guitar strings, especially steel strings, are not ideal vibrators.
A common way of determining correct adjustment for a string is to compare the pitch at the 12th fret with the harmonic at the same position.