The H5N1 avian influenza virus seriously affects the health of poultry and humans. Once infected, the mortality rate is very high. Therefore, accurate and timely detection of the H5N1 avian influenza virus is beneficial for controlling its spread. This article establishes a dual gene detection method based on dual RPA for simultaneously detecting the HA and M2 genes of H5N1 avian influenza virus, for the detection of H5N1 avian influenza virus. Design specific primers for the conserved regions of the HA and M2 genes. The sensitivity of the dual RT-RPA detection method for HA and M2 genes is 1 × 10?7 ng/μL. The optimal primer ratio is 1:1, the optimal reaction temperature is 40 °C, and the optimal reaction time is 20 min. Dual RT-RPA was used to detect 72 samples, and compared with RT-qPCR detection, the Kappa value was 1 (p value < 0.05), and the clinical sample detection sensitivity and specificity were both 100%. The dual RT-RPA method is used for the first time to simultaneously detect two genes of the H5N1 avian influenza virus. As an accurate and convenient diagnostic tool, it can be used to diagnose the H5N1 avian influenza virus.