An algorithm to compute all group elements with group generators is given, which can be used to compute all elements of point group, space group and other general groups. The group elements of point group Oh and space group I23 have been computed by this method, which indicates that this method is an efficient method to compute group elements with generators.