Oral and nasal consonants
[p b t d k g] are oral stops (or plosives), meaning the air is blocked at a particular place of articulation, accompanied by sudden release of the air through the mouth.
[m n ŋ] are, by contrast, nasal stops i.e. a closure is made in the oral cavity at a particular place of articulation to stop the air from escaping through the mouth, the soft palate (velum) is lowered, and the air is released outwards through the nose.
Oral stop followed by a nasal
Words like cotton, button, hidden, sudden, kitten etc., can be pronounced in two ways, depending on the speaker. One way is to pronounce an intervening schwa [ə] between the [d, t] and the nasal [n, m]:
Another way is to release the oral stop ([t d p]) nasally—through the nose. Both of them are correct and common. You can pronounce it either way.
Nasal release
A type of release of a stop in which the oral closure is maintained but the soft palate is lowered, allowing air to escape through the nose.
This is particularly found in words in which the oral stops are followed by a nasal (preferably a syllabic nasal). In words like kitten, hidden, button, cotton, sudden, bottom etc., the oral stops are followed by syllabic nasals. The oral stop is normally released orally (through the mouth), but when it comes right before a nasal, it's usually released nasally—through the nose—by lowering the soft palate.
Nasal release can also be found in words where one syllable ends in an oral stop and the next syllable starts with a nasal as in to[p.m]ost, su[b.m]erge, ca[t.n]ip, ma[d.n]ess etc.
It's particularly noticeable when both the oral stop and the nasal are homorganic (share the same place of articulation), for example:
- [t] or [d] and [n]: alveolar
- [p] or [b] and [m]: bilabial etc., are homorganic.
In case of cotton, button, sudden, hidden, both the oral stop ([t] or [d]) and the nasal ([n]) are homorganic (all of them are alveolar), so the tongue comes up and contacts the alveolar ridge for the [t] or [d] and stays there, then soft palate is lowered and the air is released through the nose, that's the syllabic [n]: [ˈbʌtn̩]
For most people, however, there's a vowel between the oral stop and the nasal, so they move down their tongue after the oral stop, in which case, the nasal isn't syllabic: [ˈbʌtən] (it's perfectly fine)
Syllabic consonants are represented in IPA by a small vertical line below th consonant:
n̩
Here's an illustration of Nasal release (nasal plosion) from A Course in Phonetics by Ladefoged and Keith Johnson: