Strain-specific polymerase chain reaction (PCR) primers for detection of Bacillus mesentericus strain TO-A (BM TO-A) were developed. The randomly amplified polymorphic DNA (RAPD) technique was used to produce potential strain-specific markers. A 991-bp RAPD marker found to be strain-specific was sequenced, and two primer pairs specific to BM TO-A were constructed based on this sequence. In addition, we explored a more specific DNA region using inverse PCR, and designed a strain-specific primer set for use in real-time quantitative PCR (qPCR). These primer pairs were tested against 25 Bacillus subtilis strains and were found to be strain-specific. After examination of the detection limit and linearity of detection of BM TO-A in feces, the qPCR method and strain-specific primers were used to quantify BM TO-A in the feces of healthy volunteers who had ingested 3×108 colony forming unit (CFU) of BM TO-A per day in tablets. During the administration period, BM TO-A was detected in the feces of all 24 subjects, and the average number of BM TO-A detected using the culture method and qPCR was about 104.8 and 105.8 cells per gram of feces, respectively. Using the qPCR method, BM TO-A was detected in the feces of half of the subjects 3 d after withdrawal, and was detected in the feces of only one subject 1 week after withdrawal. These results suggest that the qPCR method using BM TO-A strain-specific primers is useful for the quantitative detection of this strain in feces.