B major is a major scale based on B. Its key signature has five sharps.
|Relative key||G♯ minor|
|Parallel key||B minor|
|Dominant key||F♯ major|
|Subdominant||E major, A major, D major, G major, C major|
|Notes in this scale|
|B, C♯, D♯, E, F♯, G♯, A♯, B|
B major's relative minor is G-sharp minor, its parallel minor is B minor, and its enharmonic equivalent is C-flat major.
The key signature for B major is the least sharp key signature with three "lines" of sharps. In the treble clef, putting the sharp for A where it looks like it should be, next to the sharp for G, would mean that a ledger line would have to be used. In the bass clef it would be possible to do this without a ledger line, but because sight reading is easier when both staves look the same, it is not usually done in piano music. In the alto clef, used in orchestral music, the B major key signature is usually written in just two "lines" of sharps.
Although B major is usually thought of as a "far away" key because it has many sharps and is quite far from C major in the circle of fifths, Frédéric Chopin thought that it was the easiest scale of all to play, as its black notes fit the natural positions of the fingers well. Because of this, it was often the first scale he taught to beginning piano students, leaving the scale of C major till last because he thought it was the hardest to play.
While B major is not too difficult to play on keyboard instruments and guitar, the key of C-flat major is easier when writing music for the harp, as it is that instrument's home key.