We demonstrate a reaction headspace gas chromatographic method for quantifying anhydride groups in anhydride-based epoxy hardeners. In this method, the conversion process of anhydride groups can be realized by two steps. In the first step, anhydride groups in anhydride-based epoxy hardeners completely reacted with water to form carboxyl groups. In the second step, the carboxyl groups reacted with sodium bicarbonate solution in a closed sample vial. After the complete reaction between the carboxyl groups and sodium bicarbonate, the CO formed from this reaction was then measured by headspace gas chromatography. The data showed that the reaction in the closed headspace vial can be completed in 15 min at 55°C, the relative standard deviation of the reaction headspace gas chromatography method in the precision test was less than 3.94%, the relative differences between the new method and a reference method were no more than 9.38%. The present reaction method is automated, efficient and can be a reliable tool for quantifying the anhydride groups in anhydride-based epoxy hardeners and related research.