A relational database is built and used for the identification of polycrystalline solids by electron diffraction. Selected area electron diffraction (SAED) patterns (rings) produced in an electron diffractometer or a transmission electron microscope (TEM) are matched against database patterns calculated from reduced unit cells of known materials. The effects of double diffraction on electron diffraction patterns are fully incorporated into the database.