The effects of anode surface roughness on x-ray spectra were successfully simulated by a Monte Carlo method. It was proved that the effect of the anode surface roughness could not be modeled by simple filters made from the anode material. The surface roughness (Ra) was found to be an inadequate quantity to describe the effect of anode surface roughness on x-ray spectra.