On the basis of absorption spectrometry with the direct Zeeman effect and longitudinal configuration of magnetic field, a portable analyzer is designed for sensitive and selective determination of the benzene content in the atmospheric air and natural gas in real time.