The invention belongs to the technical field of gas detection and relates to a laser infrared gas analyzer based on TDLAS-WMS (tunable diode laser absorption spectroscopy-wavelength modulation spectroscopy) for detecting hydrogen chloride, methane, carbon monoxide, water vapor and other gases. The laser infrared gas analyzer comprises a laser, a laser driving circuit, a temperature control circuit, an optical system with an optical cavity, a main detector, a reference detector, an intensity modulation and canceling circuit, a phase-locking and amplification circuit and a data acquisition and display circuit, wherein the laser driving circuit and the temperature control circuit are used for controlling the laser to emit light, the two ends of the optical system are respectively connected with the laser and the detector, the intensity modulation and canceling circuit is used for canceling the influence of intensity modulation in the system, the phase-locking and amplification circuit is used for extracting harmonic signals, and the data acquisition and display circuit is used for displaying the concentration of the gas to be detected. Compared with other detection instruments, the laser infrared gas analyzer has the advantages that division operation is introduced into the intensity modulation and canceling circuit, and the laser infrared gas analyzer is combined with a space double-optical path differential detection method, so that the influence of the intensity modulation can be fundamentally canceled.