In the current design of qPCR systems, the sequences of primers are the primary concerns. The secondary structures of DNA templates have not been much considered, although they should be also critically important. In this paper, various hairpins with different stem lengths and loop sizes are placed near primer-binding sites, and their effects on the amplification efficiency of qPCR are systematically investigated. When a hairpin is formed either in the inside of the amplicon or in its outside, the amplification is notably suppressed. The magnitudes of suppression increase with the increase of stem length and the decrease of loop size, and are especially significant for the hairpins formed inside the amplicon. With very long stems (e.g., 20-bp), the effect is still more drastic, and no targeted amplification products are formed. On the basis of melting temperature (T) measurements, these suppression effects of hairpins have been mostly ascribed to competitive inhibition of primer binding to the template. It has been concluded that, in order to design precise and reliable qPCR systems, at least 60-bp sequences around primer-binding sites, both inside and outside the amplicons, must be analyzed to confirm that stable secondary structures are not formed in the vicinity of primer-binding sites.