Helicobacter pylori infects more than half of the world's population, making it the most widespread infection of bacteria. It has high genetic diversity and has been considered as one of the most variable bacterial species. In the present study, a PCR-based method was used to detect the presence and the relative frequency of homologous recombination between repeat sequences (<500 bp) in H. pylori 26695. All the recombinant structures have been confirmed by sequencing. The inversion generated between inverted repeats showed distinct features from the recombination for duplication or deletion between direct repeats. Meanwhile, we gave the mathematic reasoning of a general formula for the calculation of relative recombination frequency and indicated the conditions for its application. This formula could be extensively applied to detect the frequency of homologous recombination, site-specific recombination, and other types of predictable recombination. Our results should be helpful for better understanding the genome evolution and adaptation of bacteria.