PROBLEM TO BE SOLVED: To provide a calibration device and a program that realize a simple configuration.SOLUTION: A CPU 40c acquires an output value of a gyro sensor and an output value of at least one of a geomagnetic sensor, an acceleration sensor and a distance sensor. The CPU 40c calculates both a first period when a housing kept in the sensors is in a first posture and a second period when the housing is in a second posture, on the basis of the output value of the gyro sensor, and calibrates at least one sensor on the basis of the output value of at least one sensor in the first and second periods.