There are a lot of ways to play a G on the guitar. These are the ones you will actually use: the open G major, the E-shape barre at the third fret, the A-shape barre at the tenth, and the minor versions of both.
G at a glance
| G major notes | G, B, D |
| G minor notes | G, Bb, D |
| Open G major | 320003 (or 320033 with the B string fretted) |
| E-shape barre | 3rd fret: G major 355433, G minor 355333 |
| A-shape barre | 10th fret: G major x-10-12-12-12-10, G minor x-10-12-12-11-10 |
Open G major
Second finger on the low E at the third fret, first finger on the A at the second fret, third finger on the high E at the third fret, everything else open. Many players use the third and fourth fingers on the bottom two strings instead, with the B string fretted at the third fret too; that version frees the first finger and makes the change to C and Cadd9 much easier.
G and Gm barre at the third fret
Barre the third fret with the first finger and play the E major shape above it for G major: third finger on the A at the fifth fret, fourth finger on the D at the fifth fret, second finger on the G at the fourth fret. Lift the second finger so the G string rings on the barre and you have G minor. Six strings, big sound, movable to every fret.
G and Gm barre at the tenth fret
Barre the tenth fret from the A string down and play the A major shape: D, G and B strings at the twelfth fret for G major. For G minor the B string drops to the eleventh fret, so you are playing the A minor shape. This is the thinner, higher G that sits well under a vocal or against another guitarist playing the open shape.
Which one to use
Open G for strummed acoustic songs. The third-fret barre when you need weight and the ability to mute. The tenth-fret barre when another instrument already has the low end covered, or when you want to move to C and D nearby without jumping down the neck.
Learn the open shape first, then the third-fret barre, and the rest of the neck starts to open up.