Pneumocystis carinii is a eukaryotic microbe which causes fatal pneumonia in patients with AIDS. Oligonucleotide primers were used to amplify the 5S rDNA sequence of P. carinii by the polymerase chain reaction (PCR) in various clinical and animal samples. Of 35 independent lung specimens tested, PCR detected the P. carinii sequence in all 23 cases which were known to be P. carinii infected, i.e., 15 from mice, 1 from rat, 3 from human autopsy, and 4 from biopsy of AIDS patients by needle aspiration. The results were consistent with clinical and microscopic diagnosis. The detection was highly sensitive and specific. Direct sequencing of these amplified DNAs revealed homogeneity of 5S rDNA sequences of independent isolates from mice, rats, and humans. Preliminary trials manifested efficacy of the PCR method to detect P. carinii sequences in induced sputum or blood from AIDS patients, the latter case suggesting that P. carinii might enter peripheral blood via phagocytosis or direct intrusion. Development of less-invasive or noninvasive PCR diagnostic techniques to detect P. carinii infection would greatly facilitate therapeutic and prophylactic management of P. carinii pneumonia.