Estimates of disease prevalence are needed for the interpretation of test results as well as for public health decisions. Assessing prevalence may be difficult if a definitive test is unavailable, impractical, or expensive. A formula derived from Bayes' theorem can calculate the prevalence of disease in a population by incorporating test results with a knowledge of the sensitivity and specificity of a test. This paper reviews this formula and provides examples evaluating the prevalence of HIV disease, the usefulness of ventilation-perfusion scans in diagnosing pulmonary embolism, and settings where screening tests should not be applied. These examples demonstrate that precise yet inexpensive estimates of disease prevalence are possible by enhancing the usefulness of an inaccurate test.