The concentration of monovalent (K+) and divalent (Mg2+) cation in working buffer influences the signal-to-noise ratio (SNR) of molecular beacon (MB). Thus, optimizing the cationic concentrations in working buffer is necessary to achieve optimal SNR of MB assays for sensitive nucleic acids analysis.