This paper presents a real-time calibration method for gyro sensors in consumer portable devices. The calibration happens automatically without the need for external equipment or user intervention. Multi-level constraints, including the pseudo-observations, the accelerometer and magnetometer measurements, and the quasi-static attitude updates, are used to make the method reliable and accurate under natural user motions. Walking tests with the Samsung Galaxy S3 and S4 smartphones showed that the method estimate promising calibration results even under challenging motion modes such as dangling and pocket, and in challenging indoor environments with frequent magnetic interferences. A 1530-437X (c)