Optical gas sensors play an increasingly important role in many applications, particularly for the detection of toxic gases. A novel Goos–Hänchen (GH) shift optical gas sensing scheme based on subwavelength hyperbolic metamaterials (HMMs) is proposed. The GH shift intensity, direction and the critical wavelength characteristics were revealed. By virtue of the GH shift and subwavelength HMMs characteristics, we designed an ultra-sensitive gas sensor to detect helium (He), hydrogen (H2), carbon monoxide (CO) and methane (CH4). The study shows that the sensitivities of the gas sensor can reach as high as [Formula: see text], [Formula: see text], [Formula: see text], and [Formula: see text]. With proper surface chemical modification, this GH shift gas sensor would be a powerful tool for high-sensitive gas sensing applications.