An algorithm for grain reconstruction based on electron backscatter diffraction data was proposed in this paper. This algorithm can well record the original data arrangement when an external file for the reconstructed grain(s) was exported for further post-processing. Assisted by an in-house MATLAB program, grain reconstruction, lattice rotations, orientation spreads, and slip system analysis can be performed. The validity of this algorithm has been successfully tested by polycrystalline Ni before and after channel die compression.