This article demonstrates a simple, efficient, and low-cost gas detection method for gases with absorption peaks in the terahertz range. A modes-adjustable Fabry–Pérot cavity is designed. By adjusting the length of the cavity, the center resonant frequency of the cavity can be coupled to the gas absorption peak. This kind of coupling can greatly enhance gas detection. To detect gas absorption peaks, we choose terahertz frequency domain spectroscopy (THz-FDS), whose frequency resolution can be up to the MHz level. Vapor is selected to verify the coupling phenomenon. The resonant frequency of the cavity is modified to couple to 0.56 THz, the absorption peak of vapor. Experiments are conducted at different humidity levels, the humidity is controlled by the supersaturated salt solution. Results indicate that at a humidity level of 15%, the coupling effect can enhance the detectability of vapor by approximately 167%, and this enhancement effect diminishes as humidity increases. We analyze the effect of different modes on the coupling and find that the high modes can make the coupling easier, but have little effect on the enhancement. Furthermore, the method is used to detect biomolecule-α-tyrosine to ensure it has wide applicability. This method can be used to detect substances with absorption peaks in the THz regime, especially for low-concentration gas.