Transmission of M. tuberculosis occurs mostly (with very few exceptions) via droplet nuclei which are inhaled by those who are exposed. For this reason, only those with pulmonary and/or laryngeal TB disease are likely to be contagious.
The probability of transmission varies with bacterial burden, cavitary or upper lung-zone disease on chest radiograph in the source case, laryngeal disease in the source case, exposure of bacilli to sun or UV light, amount and severity of cough in the source case, duration of exposure, proximity to source case, crowding and poor room ventilation, and delays in diagnosis, and/or effective treatment.