We developed a computer simulation program for investigation of solid self-sputtering under ion bombardment. The program is based on binary collision approximation, truncated Coulomb potential, and the model of local inelastic losses proportional to energy. As a result of simulation, the self-sputtering yield is calculated as a function of atomic number and ion energy. To verify the cascade simulation code, we created a self-sputtering theory for the case of hard sphere potential. Simulation results show good agreement with both experimental data and theory.