Using a nonperturbative quantum electrodynamics theory of high-order harmonic generation (HHG), a scaling law of HHG is established. The scaling law states that when the atomic binding energy Eb, the wavelength ), and the intensity I of the laser field change simultaneously to kEb, λ/k, and k3I, respectively. The characteristics of the HHG spectrum remain unchanged, while the harmonic yield is enhanced k3 times. That HHG obeys the same scaling law with above-threshold ionization is a solid proof of the fact that the two physical processes have similar physical mechanisms. The variation of integrated harmonic yields is also discussed.