What is Capo?
A capo is a clamp placed across a guitar's or other fretted instrument's neck that raises the pitch of all open strings.
A capo shortens the vibrating length of all strings at once, like a movable nut. Each fret raises the pitch by one semitone. With a capo on the 2nd fret, playing a G chord shape sounds as an A chord. With a capo on the 3rd fret, a C shape sounds as E flat. This lets guitarists play songs in keys that suit a singer while using familiar open chord shapes. To find the capo position for a target key, count semitones from the shape's key to the target key. If you want to play in B using G shapes, G to B is 4 semitones, so capo on the 4th fret. The common confusion is reading chord charts. Some charts list the shapes you play, others list the sounding chords; check which one you have before playing along with others.