Software which can be used to simulate stereotactic surgery on a personal computer was developed. Using the modified Todd-Wells frame coordinates, it can reconstruct a three-dimensional image of the brain structure and simulate the target trajectories before the operation. Also, it can calculate the volume of the target region and the distance between the target and certain points in arbitrary trajectory angles. Its optional mode can be used for simulation of conventional brain surgery for previewing deep-seated brain lesions in the operating position.