A sonata is a musical composition for one or more solo instruments, typically in several movements, that has been a cornerstone of Western classical music since the Baroque era. The term derives from the Italian word *sonare* ("to sound"), originally distinguishing instrumental pieces from cantatas (vocal works). Over centuries, the sonata evolved from simple binary forms (e.g., Domenico Scarlatti's keyboard sonatas) into the sophisticated “sonata-allegro” form that became central to the Classical period (Haydn, Mozart, Beethoven) and continued to develop through Romantic, modernist, and contemporary practices. A sonata usually features a structured dialogue between themes, keys, and sections, and its principles also underpin larger genres such as the symphony, concerto, and string quartet.

1.1 Baroque sonata (c. 1600–1750)

The Baroque sonata emerged in early 17th-century Italy as a purely instrumental counterpart to vocal music. It initially favored continuo accompaniment and contrasted with the more contrapuntal canzona. By the mid‑Baroque, two distinct types crystallized: the *sonata da chiesa* (church sonata) and the *sonata da camera* (chamber sonata). Composers such as Arcangelo Corelli standardized the trio‑sonata texture (two melody instruments plus basso continuo), while later figures like Domenico Scarlatti explored solo keyboard sonatas.

1.1.1 Sonata da chiesa vs. sonata da camera

The *sonata da chiesa* was intended for liturgical use and typically consisted of four movements in a slow–fast–slow–fast pattern, with a serious, contrapuntal character. The *sonata da camera* was a secular, dance‑based suite, usually beginning with a prelude followed by stylized dances such as the allemande, courante, sarabande, and gigue. Over time, the distinction blurred, and many late‑Baroque sonatas combined elements of both.

1.1.2 Trio sonata and solo sonata

The trio sonata was the dominant chamber‑music genre of the Baroque, scored for two high instruments (e.g., violins) and basso continuo (cello or viola da gamba plus harpsichord). Corelli’s Op. 1–6 set the standard. The solo sonata, typically for one melodic instrument and continuo, gained prominence later in the period; Bach’s sonatas for violin and harpsichord exemplify the solo type, sometimes with an obbligato keyboard part.

1.2 Classical sonata (c. 1750–1820)

The Classical period transformed the sonata from a multi‑movement suite into a tightly organized dramatic structure. The harpsichord gave way to the piano, and the sonata became the primary vehicle for composers to explore tonal tension and thematic development. The “sonata-allegro” form—a tripartite scheme of exposition, development, and recapitulation—emerged as the sonata’s characteristic first‑movement design.

1.2.1 Sonata-allegro form

Often simply called “sonata form,” this structure organically linked key relationships, thematic contrast, and developmental logic. A typical first movement opened with a first theme in the tonic key, then modulated to a related key (usually the dominant for major keys, relative major for minor) for a contrasting second theme. After a closing section, the development explored these themes through modulations and fragmentation, followed by a recapitulation that restated both themes in the tonic key.

1.2.1.1 Exposition, Development, Recapitulation

  • Exposition: Presents the primary and secondary themes in contrasting keys. It often ends with a codetta and may be repeated.
  • Development: Freely manipulates the thematic material, modulating to distant keys and creating harmonic tension.
  • Recapitulation: Returns to the first theme in the tonic, then re‑states the second theme also in the tonic (or its parallel key), resolving the tonal conflict.

1.2.2 Role of the keyboard sonata (e.g., Mozart, Beethoven)

The piano sonata became the central sonata type of the Classical era. Haydn’s sonatas (over 60) pioneered the form, often with witty, unpredictable developments. Mozart’s sonatas (e.g., K. 331, K. 332) blended melody, grace, and structural clarity. Beethoven expanded the genre dramatically: his early sonatas (e.g., “Pathétique,” Op. 13) adopted the Classical model; his middle period works (e.g., “Waldstein,” “Appassionata”) increased length, emotional depth, and technical demands; his late sonatas (e.g., Op. 106 “Hammerklavier,” Op. 111) pushed toward Romantic ideals, incorporating fugues and cyclical forms.

1.3 Romantic sonata (c. 1820–1900)

Romantic composers retained the three‑ or four‑movement layout but relaxed the formal conventions, often merging movements, extending development sections, and infusing sonatas with programmatic narratives or personal expression. The piano sonata remained important, but sonatas for other instruments (violin, cello, clarinet) also flourished.

1.3.1 Expansion of structure and emotional range

Typical Romantic sonatas are longer, more chromatic, and more improvisatory than Classical examples. Schubert’s late piano sonatas (e.g., D. 960) feature expansive lyricism and tonal ambiguity. Chopin’s three piano sonatas (Op. 35 “Funeral March,” Op. 58) compress the traditional structures but intensify emotional contrasts. Brahms, a conservative innovator, wrote sonatas (e.g., Violin Sonata No. 1, Cello Sonata No. 1) that combine Classical formal clarity with rich harmonic complexity.

1.3.2 Programmatic elements

Some Romantic sonatas carry explicit extra‑musical narratives. For instance, Liszt’s *Sonata in B minor* (1853) is a single‑movement work that thematically unifies multiple contrasting sections, often interpreted as a Faustian drama. Similarly, Schumann’s *Fantasie in C* (Op. 17) and his violin sonatas contain allusions to poetry and personal emotion, though they retain sonata‑form outlines.

1.4 20th and 21st century sonata

The sonata genre remained viable but underwent radical transformations. Some composers revived or re‑interpreted Baroque and Classical forms, while others abandoned tonality, integrated folk materials, or combined the sonata with non‑Western structures.

1.4.1 Neoclassical and modernist approaches

Neoclassical composers such as Sergei Prokofiev (e.g., Piano Sonatas No. 6–8) and Igor Stravinsky (e.g., Sonata for Two Pianos) used sonata‑allegro as a structural scaffold while employing dissonant harmonies and motoric rhythms. Modernists like Béla Bartók (e.g., Sonata for Two Pianos and Percussion) and Charles Ives (e.g., “Concord” Sonata) expanded the sonata’s scope to include atonality, quarter‑tones, and collage techniques. Paul Hindemith’s sonatas for almost every instrument systematically applied his own contrapuntal and tonal principles.

1.4.2 Experimental and hybrid forms

From the mid‑20th century onward, composers challenged the sonata’s formal identity. John Cage’s *Sonatas and Interludes* for prepared piano replaces thematic development with a cycle of short, binary‑form pieces. Minimalist composers like Philip Glass have written sonatas (e.g., Piano Sonata, 2019) that use repetitive patterns. Many contemporary sonatas mix electronic sounds, improvisation, or multi‑media elements, demonstrating the genre’s enduring flexibility.

2.1 Multi-movement layout

The number and sequence of movements in a sonata have varied historically. The Baroque sonata da chiesa typically had four movements; the Classical sonata commonly settled into three (fast–slow–fast) or occasionally four (adding a dance movement or scherzo). The Romantic era occasionally expanded to four or more, or compressed into a single continuous movement.

2.1.1 Typical movement sequence (fast–slow–dance–fast)

The “standard” Classical sonata often follows a scheme of:

  1. A fast, sonata‑allegro movement.
  2. A slow movement (e.g., Adagio, Andante, or Largo) in a contrasting key.
  3. A dance movement—usually a Minuet and Trio (later replaced by a Scherzo in Beethoven and beyond).
  4. A fast finale (Rondo or sonata‑allegro again).

This sequence derives from the Baroque *sonata da camera* but became codified by Haydn, Mozart, and early Beethoven.

2.1.2 Alternative patterns

Not all sonatas adhere to this pattern. Some two‑movement sonatas exist (e.g., Beethoven Op. 49, Schubert D. 759 “Unfinished”?—actually not a sonata, but Scarlatti’s single‑movement works are called sonatas). Romantic and later composers might start with a slow introduction, merge movements (e.g., Liszt’s B‑minor Sonata as one continuous span), or invert the order (e.g., a slow first movement followed by fast movements). The flexibility of the genre allows for such variations.

2.2 Sonata-allegro form in depth

Theoretical analysis of sonata‑allegro form has been refined since the late 18th century, culminating in the work of 20th‑century theorists like Heinrich Schenker, Leonard Ratner, and James Hepokoski.

2.2.1 Key relationships and modulation

Fundamental to sonata‑allegro is the “sonata principle”: material first stated outside the tonic key must eventually return in the tonic. The exposition typically moves from tonic to dominant (or relative major, if minor). The development modulates freely, often reaching remote keys (e.g., the Neapolitan or enharmonic equivalents). The recapitulation resolves this tension by restating the secondary material in the tonic.

2.2.2 Thematic development and recapitulation

Development is the section where the composer “works out” (German: *Durchführung*) the themes, fragmenting them, sequencing them, and juxtaposing them in new harmonic contexts. The recapitulation is a varied repeat of the exposition, but with the second theme adjusted to the tonic. Composers often add a coda after the recapitulation to provide a final sealing gesture; Beethoven’s codas (e.g., “Eroica” Symphony, though not a sonata) can become second developments.

2.3 Other formal influences

Besides sonata‑allegro, other forms were integrated into sonata movements—especially variations, fugues, and rondo.

2.3.1 Variation form within a sonata

Slow movements of many Classical sonatas (e.g., Haydn Piano Sonata Hob. XVI/42, Mozart K. 331) are sets of variations on a theme. The variation form offers a more static, decorative alternative to the dramatic unfolding of sonata‑allegro. In the Romantic era, variation sets sometimes appear as finales (Brahms Piano Sonata Op. 5 finale) or as entire multi‑movement structures (e.g., Schumann’s *Symphonic Etudes*—not strictly a sonata).

2.3.2 Fugal and contrapuntal elements

Fugues and fugato passages appear in many sonatas, especially in the late works of Beethoven (e.g., Op. 110 finale, Op. 106 “Hammerklavier” finale). Baroque sonatas occasionally ended with a fugal movement (e.g., Corelli’s church sonatas). In the 20th century, Hindemith and others revived contrapuntal writing within sonata movements, balancing harmonic and linear demands.

3.1 Solo instrument sonatas

A sonata for a solo instrument—most commonly the piano—presents the instrument in a self‑contained role, handling all melodic, harmonic, and textural elements.

3.1.1 Piano sonata

The piano sonata is the most abundant and varied sub‑genre. From Scarlatti’s single‑movement keyboard sonatas to the three‑ or four‑movement epic of Beethoven and the intimate, miniaturized sonatas of Scriabin (e.g., Sonata No. 4, Op. 30), the piano sonata demonstrates the instrument’s ability to produce orchestral effects. Major examples include Mozart’s Piano Sonata K. 545 (a teaching piece), Chopin’s Sonata No. 2 (with the famous Funeral March), and Prokofiev’s “War Sonatas” (Nos. 6–8).

3.1.2 Violin sonata, cello sonata

Violin and cello sonatas are conceived for solo string instrument with piano accompaniment. The violin sonata repertoire is extensive: Beethoven’s “Spring” (Op. 24) and “Kreutzer” (Op. 47), Brahms’s three violin sonatas, and Debussy’s late Sonata for Violin and Piano. Cello sonatas, though fewer, include Beethoven’s five (notably Op. 69), Brahms’s two (Op. 38 and Op. 99), and Shostakovich’s Op. 40. The piano’s role is often equal to that of the solo instrument.

3.2 Duo and ensemble sonatas

Beyond solo‑plus‑piano, sonatas may involve two solo instruments with or without piano, or larger chamber groups.

3.2.1 Sonata for instrument and piano

The most common duo sonata pairs one solo instrument (e.g., viola, clarinet, flute, horn) with piano. Works such as Brahms’s Clarinet Sonatas Op. 120, Ravel’s Sonata for Violin and Cello (two instruments alone), and Shostakovich’s Viola Sonata Op. 147 are notable. The piano part is typically written as an integral, not merely accompanimental, component.

3.2.2 Sonata for two instruments with piano (e.g., flute and piano)

When two wind or string instruments are combined with piano, the work is sometimes called a “trio sonata” in a modern sense, though the term is avoided to prevent confusion with the Baroque genre. Famous examples are rare; however, the sense of a sonata for, say, flute and piano is the standard duo type. No common sub‑genre exists for two instruments with piano specifically named “sonata” (e.g., Beethoven’s “Archduke” Trio is a piano trio, not a sonata).

3.3 Unaccompanied sonatas

Sonatas for an instrument without any accompaniment challenge the performer to produce implied harmony and polyphony.

3.3.1 Bach’s sonatas and partitas for solo violin

Johann Sebastian Bach’s set of three sonatas and three partitas for solo violin (BWV 1001–1006) are landmark works. The sonatas follow a four‑movement slow–fast–slow–fast pattern (da chiesa), with movements such as fugues, adagios, and allegros. They exemplify how a single violin can generate counterpoint through multiple stops and implied voices.

3.3.2 20th-century unaccompanied works

The tradition continued with Bartók’s Sonata for Solo Violin (1944)—commissioned by Yehudi Menuhin—which combines folk‑inflected themes with classical sonata principles. Reger’s Sonatas for Solo Violin Op. 91 and Honegger’s *Sonata for Solo Violin* (1940) also explore unaccompanied writing. For cello, Kodály’s Sonata for Solo Cello Op. 8 is a virtuosic, folk‑inspired masterpiece.

4.1 Baroque era

4.1.1 Arcangelo Corelli

Corelli (1653–1713) was instrumental in standardizing the trio sonata. His Op. 3 and Op. 4 are sonate da chiesa and da camera, respectively; Op. 5 (solo violin sonatas) includes the famous “La Folia” variations. His works influenced generations of composers across Europe.

4.1.2 Domenico Scarlatti

Scarlatti (1685–1757) composed over 550 keyboard sonatas, each typically a single movement in binary form. They are characterized by daring harmonic shifts, virtuosic leaps, hand‑crossings, and Spanish folk‑derived rhythms. His sonatas (e.g., K. 1, K. 27, K. 380) remain staples of the piano repertoire.

4.2 Classical era

4.2.1 Joseph Haydn

Haydn (1732–1809) wrote about 62 piano sonatas (e.g., Hob. XVI/34, 50, 52). He pioneered the formal integration of development and recapitulation, often with humorous false recapitulations. His sonatas also include early examples of the dramatic Sonata‑allegro and the Minuet as a middle movement.

4.2.2 Wolfgang Amadeus Mozart

Mozart (1756–1791) left 18 published piano sonatas (e.g., K. 309, 310, 332, 457) plus many unnumbered works. His violin sonatas (e.g., K. 301, 304, 378) are equally important, with the piano often taking a leading role. They are notable for clear phrase structures, operatic lyricism, and refined modulations.

4.2.3 Ludwig van Beethoven (transitional to Romantic)

Beethoven (1770–1827) composed 32 piano sonatas—the “New Testament” of the pianist’s repertoire—along with 10 violin sonatas and 5 cello sonatas. His sonatas stretch the Classical mold: the “Moonlight” (Op. 27 No. 2) begins with a slow movement; the “Appassionata” (Op. 57) uses extreme dynamics and tight motivic unity; the “Hammerklavier” (Op. 106) quotes Baroque fugues and has a colossal finale. His works bridge the Classical and Romantic eras.

4.3 Romantic era

4.3.1 Franz Schubert

Schubert (1797–1828) wrote 21 piano sonatas (notably D. 840 “Reliquie”, D. 845, D. 850, D. 894, D. 958–960), plus significant violin sonatas (e.g., D. 574) and the Grand Duo for piano four hands. His sonatas expand Classical forms through long‑spanned melodies, poignant harmonic shifts, and introspective slow movements.

4.3.2 Frédéric Chopin

Chopin (1810–1849) composed three piano sonatas: Op. 35 (with the famous Funeral March), Op. 58, and a youthful Op. 4. He also wrote a cello sonata (Op. 65). Chopin adapted sonata form to his bel canto style, compressing developments and favoring lyrical themes and improvisatory passages.

4.3.3 Johannes Brahms

Brahms (1833–1897) wrote three piano sonatas (Op. 1, 2, 5), two cello sonatas (Op. 38 and 99), three violin sonatas (Op. 78, 100, 108), and two clarinet sonatas (Op. 120). His sonatas combine Classical contrapuntal rigor with Romantic warmth, and often feature cyclic returns of themes across movements.

4.4 20th century and beyond

4.4.1 Sergei Prokofiev

Prokofiev (1891–1953) composed nine piano sonatas (e.g., No. 2 Op. 14, No. 6 Op. 82, No. 7 Op. 83, No. 8 Op. 84). His style is characterized by motoric ostinatos, biting dissonances, and sudden lyrical interludes. The “War Sonatas” (Nos. 6–8) are particularly celebrated for their dramatic intensity.

4.4.2 Béla Bartók

Bartók (1881–1945) wrote few but impactful sonatas: Sonata for Solo Violin (1944), Sonata for Two Pianos and Percussion (1937), Sonata for Piano (1926), and early Violin Sonatas (1903, 1922). He fused folk modal scales with classical structures, often using asymmetrical rhythms and bitonality.

4.4.3 Contemporary contributions

Late‑20th and 21st‑century composers continue to write sonatas. Examples include Elliott Carter’s Cello Sonata (1948) and Piano Sonata (1945–46); John Corigliano’s Violin Sonata (1964); Ligeti’s Sonata for Solo Viola (1991–94); and Jennifer Higdon’s Piano Sonata (2000). These works absorb a wide range of idioms—from serialism to minimalism to multicultural influences—ensuring the sonata’s survival as a flexible form.

5.1 Sonata principle outside the sonata genre

The structural principles of the classical sonata—especially sonata‑allegro form—were adopted and adapted for larger ensemble works.

5.1.1 Symphony and concerto

The first movement of almost every Classical and Romantic symphony (e.g., Mozart’s Symphony No. 40, Beethoven’s Symphony No. 5) follows sonata‑allegro form. The exposition is often repeated, the development explores themes, and the recapitulation resolves the tonal conflict. Similarly, the first movement of concertos (e.g., Mozart’s Piano Concerto No. 23, Beethoven’s Violin Concerto) uses a modified sonata form with a dual exposition—one for orchestra, one for soloist—and a cadenza before the coda.

5.1.2 Chamber music forms

Genres such as the string quartet, piano trio, and quintet frequently use sonata‑allegro for their opening movements. Haydn’s string quartets (e.g., Op. 76 No. 3 “Emperor”) are built on sonata principles. Beethoven’s string quartets (e.g., Op. 59 “Razumovsky”) extend the form dramatically. The sonata principle thus underlies much of the Western instrumental music tradition.

5.2 Pedagogical importance

5.2.1 Sonatas in music education and exams

Sonatas are central to instrumental pedagogy. Piano students routinely study sonatinas (simplified sonatas) by Clementi, Kuhlau, and Diabelli before moving to Mozart, Haydn, and Beethoven. Higher‑level examination syllabi (e.g., ABRSM, RCM) require the performance of a complete sonata movement that demonstrates phrasing, dynamic contrast, and structural understanding. The sonata is thus a standard tool for developing interpretive and technical skills.

5.2.2 Analytical study of sonata form

Music theory curricula devote significant attention to sonata‑allegro analysis. Students learn to identify themes, key areas, development techniques, and recapitulation strategies in works from Mozart to Bartók. The analysis of sonata form is considered a fundamental exercise in understanding musical narrative, tonal hierarchy, and compositional craft, making it a cornerstone of both musicology and composition training.