In music theory, a diatonic scale is any heptatonic scale that includes five whole steps (whole tones) and two half steps(semitones) in each octave, in which the two half steps are separated from each other by either two or three whole steps, depending on their position in the scale. This pattern ensures that, in a diatonic scale spanning more than one octave, all the half steps are maximally separated from each other (i.e. separated by at least two whole steps).

The seven pitches of any diatonic scale can also be obtained by using a chain of six perfect fifths. For instance, the seven natural pitch classes that form the C-major scale can be obtained from a stack of perfect fifths starting from F: