D major
| Relative key | B minor | 
|---|---|
| Parallel key | D minor | 
| Dominant key | A major | 
| Subdominant key | G 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. Its relative minor is B minor and its parallel minor is D minor.
The D major scale is:
Changes needed for the melodic and harmonic versions of the scale are written in with accidentals as necessary. The D harmonic major and melodic major scales are: