G major (or the key of G) is a major scale based on G, with the pitches G, A, B, C, D, E, and F♯. Its key signature has one sharp, F♯; in treble-clef key signatures, the sharp-symbol for F is usually placed on the first line from the top, though in some Baroque music it is placed on the first space from the bottom (the F one octave below).
G major's relative minor is E minor, and its parallel minor is G minor.
For orchestral works in G major, the timpani are typically set to G and D a fifth apart, rather than a fourth apart as for most other keys.
Notable compositions 
- In the Baroque era, G major was regarded as the "key of benediction".
- Of Domenico Scarlatti's 555 keyboard sonatas, G major is the home key for 69 (12.4%, about 50% more than the 8.3% one would expect in a even distribution). It bears noting that this over-representation of the key may be at least partially the result of G major's proximity to other keys (such as D major and C major) widely used by a variety of composers for solo keyboard and for keyboard with strings, given that the meantone tuning systems common in Scarlatti's day made some keys more appropriate than others for a given instrument setting.
- In the music of Johann Sebastian Bach, "G major is often a key of 6
8 chain rhythms", according to Alfred Einstein, although Bach also used the key for some 4
4-based works, including his Third and Fourth Brandenburg Concerti. Pianist Jeremy Denk observes that the Goldberg Variations are 80 minutes in G major.
- Twelve of Joseph Haydn's 104 Symphonies (11.5%, 1.4 times more than in an even distribution) are in G major.
- G major is the home key of Mozart's Eine kleine Nachtmusik, serving as the tonic for three of its four movements (the exception being the second movement, titled Romanze and set in C major). However, almost none of his large-scale works such as his symphonies or concerti are in this key; the only exceptions are the Piano Concerto No. 17 and Flute Concerto No. 1, along with some examples among his juvenilia (works written in his youth before his maturity as a composer).
Cultural references 
G, sometimes called the 'people's key', is one of the most frequently-employed keys across classical and popular music. This is in part because of its relative ease of playing on both keyboard and string instruments: its scale comprises only one black note on the keyboard, all of a guitar's six strings can be played open in G, half of the strings on the mandolin and violin/fiddle are in the G chord when open, and the banjo is usually tuned to open G. It is the key stipulated by Queen Elizabeth II to be used for "God Save the Queen" in Canada. The music to the American national anthem, The Star-Spangled Banner, was originally written in G major. Though it is now usually sung in A-flat or B-flat major, some people, most notably humorist and commentator Garrison Keillor, are campaigning to return the song to its original key; they argue that the song is already very difficult to sing on account of its range (one and a half octaves), and the modern standard key makes it still more difficult.
Scales and keys 
Diatonic scales and keys
|The table indicates the number of sharps or flats in each scale. Minor scales are written in lower case.