How the Thai consonants work
Thai has 44 consonant letters but only 21 consonant sounds, so several letters share a sound: ค, ฆ and ข are all k. Each letter has a name made of its sound plus a word that starts with it, the way children learn A for apple. ก is called gor gai, gor as in the sound and gai meaning chicken. Saying the full name tells listeners which of the letters with the same sound you mean.
Two letters, ฃ and ฅ, are no longer used in modern spelling but are still taught as part of the alphabet.
The three classes
Every consonant belongs to a class: middle (9 letters), high (11 letters) or low (24 letters). The class does not describe pitch on its own. Together with the tone mark and whether the syllable is live or dead, it decides which of the five tones a syllable has. The tone checker works this out for any word and shows each step.
Middle class (9): ก จ ฎ ฏ ด ต บ ป อ
High class (11): ข ฃ ฉ ฐ ถ ผ ฝ ศ ษ ส ห
Low class (24): ค ฅ ฆ ง ช ซ ฌ ญ ฑ ฒ ณ ท ธ น พ ฟ ภ ม ย ร ล ว ฬ ฮ
Sounds at the end of a syllable
At the end of a syllable Thai consonants collapse to just eight sounds: k, t, p, n, m, ng, y and w. That is why จ, ช, ด, ต, ส and many others all end a word with a t sound: รถ (car) is rot, and กิจ (task) is kit. A dash in the table means the letter is not used at the end of a syllable.
Learn them faster
Learn the middle-class letters first: there are only nine and they follow the simplest tone rules. Then learn the high class, and treat everything else as low. Typing the letters helps you remember their shapes. The key shown on each letter is where it sits on a Thai keyboard, and the online Thai keyboard lets you practise.
Questions
How many letters are in the Thai alphabet?
44 consonants, of which 42 are in modern use, plus at least 15 vowel symbols that combine into about 32 vowel sounds, and 4 tone marks.
Why do Thai letters have names like gor gai?
Several letters share a sound, so each has a word attached to tell them apart: gor gai is the g of chicken (ไก่).
Which Thai letters are middle class?
ก จ ฎ ฏ ด ต บ ป อ. A common memory sentence is ไก่จิกเด็กตายบนปากโอ่ง.
Is อ a consonant or a vowel?
Both. At the start of a syllable it is a silent consonant that carries the vowel, as in อ่าง. After a consonant it can be part of a vowel, as in พอ.