Pneumocystis jiroveci is an important cause of pneumonia in immunocompromised individuals. This organism cannot be cultured, and therefore, diagnosis relies on microscopic identification of the organism using stains or antibodies. Although simple, these tests are insensitive and require expertise for accurate interpretation. We developed a real-time polymerase chain reaction (PCR) assay that provides sensitive and objective detection of Pneumocystis from bronchoalveolar lavage fluid. Primers and fluorescence resonance energy transfer probes were developed that target the cdc2 gene of P. jiroveci. Assay sensitivity is 6 copies of target per microliter of sample. No cross-reactivity occurs with other pathogens, and the PCR assay has a 21% increase in clinical sensitivity as compared with Calcofluor white staining. The real-time PCR assay provides a sensitive, rapid, and objective method for the detection of Pneumocystis from bronchoalveolar lavage fluid.