MEMS gyroscopes as a kind of angular rate sensor have been widely used, but theiraccuracy tends to be low in practical applications, especially under temperatureinfluence, and they generally require error compensation. Based on the analysis ofgyroscope operating principle, this paper has shown that the resonant frequency andmeasuring precision of the gyroscope are dependent on temperature and temperaturegradients. The paper has thus proposed a compensation model based on temperature andtemperature gradients. The experimental results have demonstrated that the thermal driftof zero bias can be effectively suppressed, and the accuracy can be improved by one orderof magnitude after compensation. Compared with compensation methods only based ontemperature, the new method gives significantly better performance. The new errorcompensation model has not only integrated the differences under different temperatureconditions, but also reduced the repeatability errors. It provides a theoretical basis foraccurate compensation of the gyroscope thermal error in practical applications and isapplicable to other MEMS gyroscopes.