Atomic Environment Calculation (AEC) is a computation method for calculating atomic environment properties of every atom in any crystal. These properties include types of neighboring atoms and their spatial distribution, bond lengths sorted in an ascending order, atomic space coordination number, and atomic pair coordination number. AEC can output bond data for each type of atom, which is equivalent to giving a description of local cluster structure in the crystal. AEC can also be used to optimize the coordinates of the atoms in the crystal and assemble atoms into simple crystals. AEC calculates atomic environment by means of operating atoms in point groups and self-consistent calculation of coordinate. Any accidental and systematic errors in crystal structure data can be corrected by AEC.