How to play D7 on piano
Put your right thumb on D, your index finger on F♯, your middle finger on A and your pinky on C. With the left hand it goes the other way: pinky on D, middle finger on F♯, index finger on A, thumb on C.

| Hand | D | F♯ | A | C |
|---|---|---|---|---|
| Right | 1 thumb | 2 index | 3 middle | 5 pinky |
| Left | 5 pinky | 3 middle | 2 index | 1 thumb |
Keep the fingers curved. F♯ is a black key, so move your whole hand a little further in toward the black keys; the fingers on white keys play nearer their back edge.
D7 chord inversions
An inversion plays the same notes with a different one at the bottom. D7 has 4 notes, so it has 3 inversions. Moving to the nearest one keeps your hand still between chords.
Chords close to D7
Take the C away and D7 is plain D major. Raise it to C♯ for Dmaj7, or lower the F♯ to F for Dm7.
Tap one to hear it.
Which keys D7 is in
D7 is the V7 chord of G major and of G minor: it pulls home to G. In a 12-bar blues in D, it is the I7 you start on.
Chord progressions with D7
Three common progressions with D7. Play one, or tap any chord in it.
D7 between ii and I: the cadence jazz is built on. In G major. More on ii–V7–I
The doo-wop loop, with D7 pulling back to the start. In G major.
The three chords of a 12-bar blues in D. In D major. More on I7–IV7–V7