Nouns ending in -ou, -out, or -oux are usually masculine, but la toux is feminine.
Toux is one of the rare exceptions: learn it as it is.
Ta toux est la conséquence de ton tabagisme.
Your cough is the consequence of smoking.
Il est souvent pris de quintes de toux.
He often gets coughing fits.
Sa toux empire, il devrait arrêter de fumer !
His cough is getting worse, he should stop smoking!
FrenchTextbook teaches rules like this, in a full beginner course.
162 lessons, 4,000+ exercises, and 6+ hours of audio.
Try the first lesson free