Minerals can be made of just one element such as copper or be a combination of several elements in a chemical compound. The compositions follow simple rules of proportion, so pyrite, iron sulfide, has one part iron to two parts of sulfur. Minerals are classifed according to their chemical groups, e.g. native elements, sulfides, carbonates, oxides, borates, tungstates, chromates, halides, sulfates, silicates etc.
Chemical composition is usually determined with complex laboratory equipment such as X-ray Fluorescence Spectrometers, Mass Spectrometers, and Scanning Electron Microscopes with spectrometer attachments. Small hand-held portable versions of some of these have been developed for more convenient laboratory and field use.