Every chord in a key has its own fifth above it. A secondary dominant is the major (often 7th) chord built a fifth above your target. We write it as V/x — 'V of x'.
In C major, the chord a fifth above G is D. Playing D → G inserts a mini V → I cadence that points at G. Because D contains F♯ (not in C major), you'll hear and see an accidental — the telltale sign of a secondary dominant.
On the Circle of Fifths, V/x always sits exactly one wedge clockwise from x. Secondary dominants are always major chords, even when the chord they target is minor.
Examples
- V/V in C major = D (or D7)
- V/vi in C major = E (or E7)