An angle detector that can detect, as one electric-angle rotation corresponding to a one-period electric angle, a mechanical-angle range of one section out of sections obtained by dividing one mechanical-angle rotation corresponding to one rotation of a rotation axle into P sections, P being a natural number, the angle detector comprising: a magnet that is fixed on the rotation axle and has a first track including magnets magnetized in P pole-pairs and a second track including magnets magnetized in Q pole-pairs, Q being a positive even number the same as or larger than 2P; a first Hall device group that is disposed so as to face the magnet and that is adapted to sense magnetic flux from the first track and then to output a first Hall signal; a second Hall device group that is disposed so as to face the magnet and that is adapted to sense magnetic flux from the second track and then to output a second Hall signal; a first detection unit that is adapted to output an M-step absolute angular signal corresponding to M angle sections obtained by dividing the one electric-angle rotation into M sections, based on the first Hall signal from the first Hall device group, M being a positive even number; a second detection unit that is adapted to output an N-step relative angular signal that divides each of the Mangle sections, obtained by dividing an electric-angle range of the one electric-angle rotation into M sections, into N sections, based on the second Hall signal from the second Hall device group, N being a positive even number; an angle calculation unit that is adapted to divide the electric-angle range of the one electric-angle rotation into [M × N] sections and that is adapted to calculate and output an[M × N]-step electric angular signal, based on the absolute angular signal and the relative angular signal; and an angle correction unit that is adapted to output a correction angle supplemented so as to smooth the [M × N]-step electric angular signal; wherein the angle correction unit is adapted to calculate a first speed from a time during which the relative angular signal changes, to calculate a second speed based on a difference between the correction angle and the electric angular signal, and then to integrate a sum of the first speed and the second speed so as to calculate the correction angle. a magnet that is fixed on the rotation axle and has a first track including magnets magnetized in P pole-pairs and a second track including magnets magnetized in Q pole-pairs, Q being a positive even number the same as or larger than 2P; a first Hall device group that is disposed so as to face the magnet and that is adapted to sense magnetic flux from the first track and then to output a first Hall signal; a second Hall device group that is disposed so as to face the magnet and that is adapted to sense magnetic flux from the second track and then to output a second Hall signal; a first detection unit that is adapted to output an M-step absolute angular signal corresponding to M angle sections obtained by dividing the one electric-angle rotation into M sections, based on the first Hall signal from the first Hall device group, M being a positive even number; a second detection unit that is adapted to output an N-step relative angular signal that divides each of the Mangle sections, obtained by dividing an electric-angle range of the one electric-angle rotation into M sections, into N sections, based on the second Hall signal from the second Hall device group, N being a positive even number; an angle calculation unit that is adapted to divide the electric-angle range of the one electric-angle rotation into [M × N] sections and that is adapted to calculate and output an[M × N]-step electric angular signal, based on the absolute angular signal and the relative angular signal; and an angle correction unit that is adapted to output a correction angle supplemented so as to smooth the [M × N]-step electric angular signal; wherein the angle correction unit is adapted to calculate a first speed from a time during which the relative angular signal changes, to calculate a second speed based on a difference between the correction angle and the electric angular signal, and then to integrate a sum of the first speed and the second speed so as to calculate the correction angle.