A method for detection of alien matter content in gas, in which method the gas and the materials contained in it are ionized in an ionization room (1). The present methods are inaccurate and unreliable. The invention is based on a method, in which the ionized gas is led through chambers (2) containing different electric fields, out of which at least from one the through the chamber passed field current is measured, from which a signal is obtained, which describes the existence of alien matters in the gas. More parameters are obtained for detection of different materials by measuring favourably the currents passed through several electric field chambers as well as possibly by branching off from the ionization source the flow to different analysis lines of the electric field chambers.