A novel reassortant influenza A (H7N9) virus emerged recently in China. In this study, a duplex real-time reverse transcription polymerase chain reaction (rRT-PCR) assay was developed for the simultaneous detection of hemagglutinin (HA) and neuraminidase (NA) genes of H7N9 influenza viruses. The sensitivity of the assay was determined to be 10 RNA copies per reaction for both HA and NA genes. No cross-reactivity was observed with other influenza virus subtypes or respiratory tract viruses. One hundred and forty-six clinical and environmental specimens were tested and compared with reference methods and were found to be consistent. The assay is suitable for large-scale screening due to short turnaround times and high specificity, sensitivity, and reproducibility.