Where the science began
In the 8th century, in the southern Iraqi city of Basra, a scholar named Khalil ibn Ahmad al-Farahidi (d. 786 CE) made the breakthrough that founded the science of Arabic prosody. Khalil was a lexicographer — he compiled the first Arabic dictionary (Kitāb al-ʿAyn) and wrote on grammar, music, and cryptography. According to tradition, his insight about meter came in an unexpected place: walking through the Basra bazaar, he heard the rhythmic clang of a coppersmith hammering at an anvil, and recognized in that clang the same rhythmic structure that ran through all the recited poetry of his time.
Before Khalil, Arab poets composed in rhythms they had learned by ear. There were named “tunes” — patterns the elders taught the young, who imitated them when they composed. But no one had reduced these rhythms to a notation. Khalil discovered that every classical rhythm could be analysed as a sequence of long and shortsyllables in fixed proportions, and that the dozen or so distinct “tunes” of Arabic poetry could all be derived from a single mathematical structure — five circles, each a cycle of feet, with all the meters of the tradition arranged around them.
The science Khalil founded is called ʿarūḍ (عروض). It spread from Arabic to Persian, and from Persian to Urdu, with each language adopting Khalil's circles, keeping the same names and mnemonics, but adding local variations. The framework you use today when scanning an Urdu ghazal — its names, its feet, its zihafat — is, in its bones, the framework Khalil set down 1,200 years ago.
The atom of meter — the foot
Khalil's first move was to identify a small set of repeating units — feet (singular rukn, plural arkān) — out of which every line of classical poetry is built. Each foot is a short fixed pattern of long and short syllables, given a mnemonic name derived from the Arabic verbal root فعل (fa-ʿa-la, “to do”). The mnemonic encodes both the syllable count and the long/short positions: fāʿilunmeans “a doer” in Arabic, but for a prosodist it's also the rhythmic shape 2 1 2 — long, short, long.
These are the building blocks. A bahr is just a fixed sequence of feet repeated some number of times.
The classical eight feet
The eight classical feet inherited into Urdu prosody:
| Foot | Mnemonic | Pattern | Notes |
|---|---|---|---|
| فعولن | faʿūlun | 1 2 2 | 3 syllables — quick, lilting |
| فاعلن | fāʿilun | 2 1 2 | 3 syllables — marching |
| مفاعیلن | mafāʿīlun | 1 2 2 2 | 4 syllables — leaping |
| فاعلاتن | fāʿilātun | 2 1 2 2 | 4 syllables — stately |
| مستفعلن | mustafʿilun | 2 2 1 2 | 4 syllables — rolling |
| مفاعلتن | mufāʿalatun | 1 2 1 1 2 | 5 syllables — wave-like |
| متفاعلن | mutafāʿilun | 1 1 2 1 2 | 5 syllables — pulsing |
| مفعولات | mafʿūlātu | 2 2 2 1 | 4 syllables — dense, falling |
Read each pattern right-to-left or left-to-right as you prefer — they're the same either way, just rhythms of long and short.
Khalil's Five Circles
Khalil's deepest contribution was the observation that the bahrs aren't independent — they form families. He arranged the 15 meters he recognised (his student al-Akhfash al-Awsat later added a sixteenth) in five circles (دوائر, sing. دائرہ), each a cyclical loop of feet. The bahrs in a given circle are obtained by reading the same cyclical sequence starting from different positions. They're rotations of one underlying rhythm.
Three of the longest classical Arabic meters, common in early qaṣīdas. Rare in Urdu.
Common in Arabic, rare in Urdu — the Persian-derived vocabulary of Urdu doesn't favor them.
Three of the most-used bahrs in all Urdu poetry. All three are rotations of the same underlying cycle.
Six meters, of which Khafīf and Mujtathth are heavy favorites of Ghalib and Faiz.
Mutadārik was added by Khalil's student al-Akhfash al-Awsat after Khalil's death.
Across all five circles: 16 base bahrs.Every named bahr in any Urdu prosody manual is one of these 16 — possibly with modifications, which we'll meet in a moment.
How rotation works
The Pulled Circle is the easiest to see in action — it produces three of the most-used Urdu bahrs (Hazaj, Rajaz, Ramal). Picture the circle's rhythm as a loop: short (1), long (2), long, long — repeated forever around the circumference. The 12 nodes below are three full repetitions of that 4-syllable cycle:
Now drop a four-syllable “reading window” onto this loop. Where the window startsdetermines which foot — and therefore which bahr — you're reading:
Three different feet — three different bahrs — same underlying rhythm. A Hazaj line and a Ramal line are two ways of reading the same cycle. That's the geometric beauty Khalil saw, and that's why the bahrs naturally cluster into families.
From 16 to 100+ — the zihafat
Real poetry rarely uses the “intact” (سالم) form of a bahr. Poets routinely modify the base by truncating the last foot, swapping a long syllable for two shorts, dropping a syllable at the end, and so on. These modifications are called zihafat (زحافات, sing. zihaf). When Khalil's 16 base meters are combined with their permitted zihafat, you get the 100+ named bahr variants you find in any Urdu prosody manual.
A bahr's full name encodes its base, its line length, and its modifications:
- Musamman مثمن
- 8 feet per line (4 per misra) — the longest standard form
- Musaddas مسدس
- 6 feet per line
- Murabbaʿ مربع
- 4 feet per line
- Sālim سالم
- “intact” — no modifications applied
- Mahzūf محذوف
- last foot truncated
- Maqṭūʿ مقطوع
- last foot drastically shortened
- Makhbūn مخبون
- a long syllable in the middle becomes short
- Muḍāʿaf مضاعف
- doubled — the line repeats itself
How a bahr's name parses
Put the pieces together and a bahr's long name parses mechanically. Take this name from our scanner:
It parses as:
- Bahr-e-Hazaj — the base bahr is Hazaj, from the Pulled Circle.
- Musamman — the line has 8 feet (4 per misra).
- Mahzūf — the last foot is truncated.
Every bahr name in the manual is a similar compound. Once you can parse the suffixes, you can read the full pattern off the name alone.
What this means for the scanner
Within a single ghazal, a poet will freely mix zihafat variants of the same base bahr. The first sheʿr might be in Hazaj Musamman Sālim; the second in Hazaj Musamman Mahzūf; the third in Hazaj Musamman Maqṭūʿ. To a poet — and a knowledgeable reader — all three are the same bahr (Hazaj), with the trailing foot tinkered. They sing the same.
When you pick a bahr in the scanner and we match each line against it, the scanner automatically also tries every permitted zihafat variant of that bahr's base. So if your line scans cleanly as Hazaj Musamman Mahzūf, the scanner accepts it as “in meter” even if you picked Hazaj Musamman Sālim. That isn't laxness on our part — that's how Urdu prosody actually works. The base bahr is the family unit; the zihafat are surface choices a poet makes line by line.
That's the family structure Khalil mapped 1,200 years ago, still alive every time someone scans a ghazal today.
Try it in the scanner
Drop a couplet in and ask the scanner to match every line to one bahr. The Auto setting will pick the dominant bahr — and its zihafat siblings — for you.