How Abjad Numerals Work: Turning Arabic Letters into Numbers
By Ali Alamri · · 7 min read

An Abjad value is arithmetic on letters: replace each letter of a word with its fixed number and add them up. The rule takes a minute to learn, but the details (which letters count, what happens to hamza, how numbers were written down) are where calculators differ. This page uses one reliable reference, the Encyclopaedia Iranica's entry on the subject, and checks its examples in the Abjad Calculator.
What the word means and where the system comes from
The Encyclopaedia Iranica entry "ABJAD" by Georg Krotkoff (published 1982, last updated 9 May 2018) defines abjad as a word formed from the first four letters of the Semitic alphabet. In particular it names the use of letters as numbers, with values that follow the original letter sequence of the older Semitic alphabets. Arabic script grew out of the Nabatean variety of Aramaic script, and because several letter shapes coincided and were later told apart with dots, the traditional order was replaced by a new one that groups letters with the same basic shape. The values were attached to that new order.
To make the sequence easy to memorize, the letters are grouped into pronounceable but meaningless words. The entry gives them as abjad hawwaz ḥuṭṭī kalaman saʿfaṣ qarashat thakhadh ḍaẓagh (in its own transliteration). The calculator's keyboard follows the same order.
The 28 values
Read each pair as letter, then value, left to right in the order of the mnemonic words:
| Letter | Value | Letter | Value | Letter | Value | Letter | Value |
|---|---|---|---|---|---|---|---|
| ا | 1 | ب | 2 | ج | 3 | د | 4 |
| ه | 5 | و | 6 | ز | 7 | ح | 8 |
| ط | 9 | ي | 10 | ك | 20 | ل | 30 |
| م | 40 | ن | 50 | س | 60 | ع | 70 |
| ف | 80 | ص | 90 | ق | 100 | ر | 200 |
| ش | 300 | ت | 400 | ث | 500 | خ | 600 |
| ذ | 700 | ض | 800 | ظ | 900 | غ | 1000 |
The units run from 1 to 9, then tens from 10 to 90, then hundreds from 100 to 900, with the last letter worth 1000. I could not read the entry's own table, which is an image, so the way I checked these values is by the two examples it prints, below.
Two examples from the Iranica entry
The entry writes numbers in letters and shows two examples: the letters ʾ y ẓ ḡ stand for 1911, and b l q stand for 132. Both come out of the table, and both can be checked in the tool.
بلق. ب (2) + ل (30) + ق (100) = 132:

أيظغ. ا (1) + ي (10) + ظ (900) + غ (1000) = 1,911:

The entry adds two points about writing. Numbers are combined in descending order from right to left, and to tell a number from an ordinary word a line is often drawn above it. Its examples are printed in Latin transliteration, and a sum does not depend on the order in which you type the letters, so the calculator gives the same total either way.
An everyday word
The same method works on any word. كتاب (kitab, "book") is ك (20) + ت (400) + ا (1) + ب (2) = 423:

For phrases, the tool adds every letter it recognizes across all the words and ignores spaces, so a sentence has one total.
What the calculator does with unusual letters
This is where it pays to know the rules of the tool you are using. I tested each case below in the calculator.
| What you type | Value | Why |
|---|---|---|
| أ إ آ (hamza on alif) | counted as ا, 1 | The tool normalizes hamza-on-a-carrier letters to their carrier |
| ؤ and ئ | counted as و (6) and ي (10) | Same rule: ؤ to و, ئ to ي |
| ء (hamza on its own) | 0 by default, 1 if you untick Ignore Hamza | It is not one of the 28 letters, so conventions differ |
| ة (ta marbuta) | 0 | Not in the 28-letter table. مدرسة (madrasa) gives 304: م + د + ر + س, with the final ة adding nothing |
| ى (alif maqsura) | 0 | Not in the table either: ىي gives only 10, from the ي |
| ک and ی (Persian kaf and ye) | 0 | These are different characters from Arabic ك and ي, so Persian-form text can undercount |
| پ چ ژ گ | 0 | Matches the Iranica entry: the extra letters of the Persian alphabet have no numerical value |
| Vowel marks, spaces, digits, Latin letters | 0 | Only the 28 letters carry a value |
Two of these deserve a warning. Because ة and ى are not among the 28 letters, other calculators may treat them differently, and the same word can then give a different total elsewhere. And Persian text typed with Persian-form letters is undercounted here. If your source assigns values to those letters, add them by hand.
Variants you may run into
The sequence above is the common eastern one. Secondary sources such as Wikipedia's article on abjad numerals note that a western (Maghribi) order exists in which several values differ. I could not verify its table from a scholarly source, so I am not reproducing it. If you work with a text from North Africa, check which order its author used before comparing totals with this calculator.
What the numbers were used for
According to the Iranica entry, once Indian numerals were introduced the use of letters as numbers gradually declined, but it persisted in astronomical tables, astrological horoscopes and chronograms until the beginning of the modern age. A chronogram is a line of verse whose letter values add up to a date. The entry's example is a Persian line on the death of the Mughal emperor Akbar whose letters give the year 1014 (1605 in the Gregorian calendar). In a riddle variant, the reader subtracts the value of one word from the total: 1525 − 295 = 1230. The entry also notes that the abjad sequence is still used for numbering pages in the introductions of books, much as Roman numerals are in the West.
The entry also records that letter values played a role in magic squares, talismans and the interpretive systems of some groups. A calculator knows nothing about any of that. It adds numbers, and what a total means to a reader is a matter of the tradition they are working in, not of the arithmetic.
A short checklist
- Decide which letter values your source uses, especially for ة, ى and the western variant.
- Type or paste the Arabic text, or build it with the on-screen keyboard, and read the total.
- Tick or untick Ignore Hamza to match your convention for a standalone ء.
- For Persian text, check ک, ی and the extra Persian letters by hand.