D major

D major
{ \magnifyStaff #3/2 \omit Score.TimeSignature \key d \major s16 \clef F \key d \major s^"" }
Relative keyB minor
Parallel keyD minor
Dominant keyA major
SubdominantG major
Component pitches
D, E, F, G, A, B, C

D major is a major scale based on D, consisting of the pitches D, E, F, G, A, B, and C. Its key signature has two sharps. The D major scale is:


\header { tagline = ##f }
scale = \relative c' { \key d \major \omit Score.TimeSignature
  d e fis g a b cis d cis b a g fis e d2 \clef F \key d \major }
\score { { << \cadenzaOn \scale \context NoteNames \scale >> } \layout { } \midi { } }

Its relative minor is B minor and its parallel minor is D minor. The key of D major is also popular in heavy metal music, as its tonic is the highest note on a standard-tuned guitar.[citation needed]