---
title: "What a fugue is, and how Bach built forty-eight of them in every key"
canonical: "https://rawy.si/preview/fa3dc342-f453-48c1-8e2e-2d8589e20cbb/article/what-a-fugue-is-and-how-bach-built-forty-eight-of-them"
url: "https://rawy.si/preview/fa3dc342-f453-48c1-8e2e-2d8589e20cbb/article/what-a-fugue-is-and-how-bach-built-forty-eight-of-them"
author: "The Foyer desk"
author_url: "https://rawy.si/preview/fa3dc342-f453-48c1-8e2e-2d8589e20cbb/author/foyer-desk"
published: 2026-09-26T15:54:08.556Z
modified: 2026-10-03T23:18:22.971Z
section: "Music"
tags: ["Explainer"]
language: en
license: "© The Foyer. All rights reserved. Quotation of short passages with attribution and a link to the source is permitted."
---

# What a fugue is, and how Bach built forty-eight of them in every key

*A subject, an answer, a countersubject and the rules that let one tune chase itself*

> The fugue is the strictest of the musical forms that grew out of imitation, and Bach's two books of preludes and fugues are the reason it is still taught. This explains the parts of a fugue, the devices that make it work and what the Well-Tempered Clavier set out to prove.

## Key points

- A fugue is a piece in which a short theme, the subject, is announced by one voice alone and then taken up by each of the other voices in turn.
- The second voice enters with the answer, the subject a fifth higher or a fourth lower, while the first plays a countersubject.
- Bach's Well-Tempered Clavier is two collections of twenty-four preludes and fugues, one pair in each major and minor key.
- Bach dated the title page of the first book 1722 at Cöthen; the second book was assembled in Leipzig around 1742.

![What a fugue is, and how Bach built forty-eight of them in every key](https://rawy.si/uploads/fa3dc342-f453-48c1-8e2e-2d8589e20cbb/images/photo-fugue.jpg)

A **fugue** is a piece of music in which a short theme, the **subject**, is announced by one voice alone and then taken up by each of the other voices in turn while the first continues with something else. The word comes from the Latin fuga, a flight, and the image is of one voice fleeing and the others pursuing.

A fugue may be written for two voices or six, for [keyboard](/article/how-a-pipe-organ-works-wind-pipes-stops-and-the-largest-of-them), choir or [orchestra](/article/how-an-orchestra-is-seated-and-why-the-cellos-sit-where-they-do), and it is a procedure more than a form: what makes a piece a fugue is how the voices enter and behave, not how long it is.

## The exposition

The opening is the most regulated part. The subject is stated in the home key; a second voice then enters with the **answer**, the same tune a fifth higher or a fourth lower, in the key of the dominant. If the answer copies the subject exactly it is called a real answer; if a note or two is altered so the harmony stays close to home, it is a tonal answer. While the second voice plays the answer, the first voice plays a **countersubject**, a second melody designed to fit above or below the subject wherever they meet. The third and fourth voices enter in the same alternation, and when every voice has stated the subject once the exposition is complete.

## Episodes and devices

Between later entries come **episodes**, passages built from fragments of the subject that move the music into new keys. The subject may return in **inversion**, with every interval turned upside down; in **augmentation**, with each note twice as long; in **diminution**, with each note halved; or in **stretto**, with one voice starting the subject before the previous one has finished it, so the entries overlap. A fugue often ends over a **pedal point**, a long held bass note beneath the final entries. None of these devices is compulsory, and the finest fugues use only those that the subject invites.

## The forty-eight

Johann Sebastian Bach's **Well-Tempered Clavier** is two collections of twenty-four preludes and fugues, one pair in each major and minor key. Bach's title page for the first book, dated 1722 at Cöthen, describes it as written "for the profit and use of musical youth desirous of learning, and especially for the pastime of those already skilled in this study"; the second book was assembled in Leipzig around 1742. The point of the ordering was that the keyboard should be tuned so that every key was usable, which in the equal-tempered and near-equal tunings of the day was still a demonstration worth making. Bach returned to the procedure at the end of his life in The Art of Fugue, a set of fugues and canons on a single subject left unfinished at his death in 1750 and published in 1751.

## Why is fugue still taught?

Fugue is taught because it forces a student to think in several independent lines at once and to hold every note answerable to every other. Composers from Mozart to Shostakovich, who wrote his own twenty-four preludes and fugues in 1950 and 1951, took Bach's set as the model, and a fugue remains the standard test in a conservatoire's composition examination.

## Frequently asked questions

### What are the parts of a fugue?

A fugue opens with an exposition: the subject is stated alone, a second voice gives the answer in the dominant, and the first continues with a countersubject until every voice has entered. Later entries are separated by episodes built from fragments of the subject.

### What is a stretto in a fugue?

Stretto is the device in which one voice starts the subject before the previous voice has finished it, so that the entries overlap. Other devices are inversion, augmentation, diminution and a closing pedal point; none of them is compulsory.

### Why did Bach write forty-eight preludes and fugues?

The Well-Tempered Clavier gives one prelude and fugue in each major and minor key, twice over. The ordering showed that a keyboard could be tuned so that every key was usable, and Bach's title page of 1722 offers the work to musical youth desirous of learning.

## Sources

- [Johann Sebastian Bach, Das Wohltemperierte Klavier (Teil I), autograph, 1722 (Mus.ms. Bach P 415)](https://digital.staatsbibliothek-berlin.de/werkansicht?PPN=PPN813072077) — Staatsbibliothek zu Berlin, Digitised Collections
- [Johann Sebastian Bach, Die Kunst der Fuge, first edition, 1751](https://digital.staatsbibliothek-berlin.de/werkansicht?PPN=PPN1680704974) — Staatsbibliothek zu Berlin, Digitised Collections
