Theme and variations is a musical form in which a principal theme is presented and then followed by a series of altered versions called variations. The theme provides the structural and melodic foundation, while each variation changes selected characteristics such as rhythm, harmony, melody, texture, register, instrumentation, articulation, dynamics or tempo. The changes can range from relatively subtle ornamentation to extensive transformation in which the original melody becomes difficult to recognise. The form therefore combines continuity with change. Listeners can identify relationships between sections because the variations retain some important connection to the original theme, even when the surface musical material is substantially different.
A theme used for variations may be an original melody by the composer, a folk tune, a chorale, a popular song, a pre existing composition or another recognisable musical idea. The theme is often presented relatively clearly before transformation begins, allowing listeners to establish its melodic, harmonic and formal identity. A composer may then preserve the theme's chord progression while changing the melody, preserve the melody while changing the rhythm, or maintain only its broad harmonic or phrase structure. Some variation sets preserve the theme almost literally in certain movements and transform it radically in others. The exact balance between preservation and alteration is one of the defining artistic decisions in variation writing.
Common variation techniques include ornamentation, rhythmic transformation, changes of register, changes of mode, contrapuntal treatment and changes in accompaniment. A simple melody can become a rapid virtuoso passage through subdivision into shorter notes. A lyrical theme can be transformed into a march by changing metre, articulation and accompaniment. A theme in a major key can be recast in minor to create a different expressive character. Composers may also place the melody in the bass, distribute it among different instruments or conceal it within inner voices. These methods demonstrate that variation is not merely repetition with decoration but a systematic exploration of the possibilities contained within an initial musical idea.
Variations can preserve the theme's harmonic progression while replacing its surface melody. This approach is particularly important in many keyboard variations and in forms influenced by continuo bass patterns. A composer may establish a repeating bass or chord sequence and build increasingly elaborate textures above it. Other variations retain the exact phrase lengths and harmonic outline but transform melodic details. More radical variations can modify harmonic rhythm, phrase structure and contrapuntal treatment while retaining enough underlying material for the relationship to remain perceptible. Analytical identification therefore involves examining multiple levels of musical structure rather than asking only whether the original melody remains unchanged.
Theme and variations became a particularly important form during the Classical period. Joseph Haydn, Wolfgang Amadeus Mozart and Ludwig van Beethoven all wrote important variation sets. Beethoven's Diabelli Variations demonstrate how a relatively simple waltz theme can generate an enormous range of contrasting musical treatments. Variations also appear within larger works, including sonatas, symphonies, chamber compositions and concertos. Brahms later developed highly sophisticated variation techniques, often preserving harmonic or structural relationships while transforming melodic surface material. Variation writing therefore remained important throughout the nineteenth century and beyond, rather than belonging exclusively to one historical period.
Variations can be classified according to how closely they preserve the theme. Some are decorative variations, in which the underlying melody remains clearly recognisable while ornamentation and accompaniment change. Character variations transform the theme's rhythm, genre or expressive character. Contrapuntal variations may use canon, fugue, imitation or other polyphonic procedures. Free variations can alter the theme so substantially that the connection depends mainly upon harmonic, structural or motivic relationships. A variation can also combine several techniques simultaneously. These distinctions are descriptive rather than absolute, because individual works often move continuously between different degrees and methods of transformation.
Theme and variations differs from other forms that use recurring material because its central purpose is systematic transformation of one principal idea. In rondo form, the recurring theme returns primarily to provide structural stability between contrasting episodes. In theme and variations, each successive section is expected to explore the possibilities of the theme in a new way. In sonata form, thematic ideas undergo development through fragmentation, modulation and recombination, whereas variations normally retain a more direct relationship to the original theme. Nevertheless, a variation can contain developmental procedures, and a large variation set can include movements that resemble other forms.
The enduring importance of theme and variations comes from its ability to reveal how much musical information can be generated from a limited source. It allows composers to demonstrate control over harmony, counterpoint, rhythm, orchestration, texture and form while giving listeners a recognisable point of reference. It can also create a progression from simplicity to complexity, from one emotional character to another, or from one instrumental texture to another.
Because the underlying identity of the theme can survive through very different musical surfaces, variation form provides an especially clear illustration of the relationship between musical identity and transformation. It remains widely used in classical composition, film scoring, jazz influenced writing and other forms of music where thematic transformation is important.