A method of analysing a very small quantity of a substance (as little as 10−13 gram). The method consists of directing a very finely focused beam of electrons on to the sample to produce the characteristic X-ray spectrum of the elements present. It can be used quantitatively for elements with atomic numbers in excess of 11.