An axial position detector for a rod made of magnetic material, comprising a first magnetic scale comprising a plurality of non-magnetic parts arranged axially on the rod at equidistant intervals, a second magnetic scale parallel to said first scale comprising a plurality of non-magnetic parts arranged axially on the rod at unequal intervals, a first magnetic sensor for outputting a signal according to a positional change of the non-magnetic parts of said first magnetic scale, a second magnetic sensor for outputting a signal according to a positional change of the non-magnetic parts of said second magnetic scale, said magnetic sensors being respectively disposed in fixed positions facing said magnetic scales, means for separately memorizing absolute positions of the non-magnetic parts on said second magnetic scale in advance, means for detecting an interval between the non-magnetic parts passing said second sensor based on the output signal from said second sensor, means for identifying a non-magnetic part which has passed based on said detected interval, means for calculating a displacement amount of the rod from said identified non-magnetic part to its current position based on the output signal from said first sensor, and means for calculating the current position of the rod from the absolute position of the identified non-magnetic part and the calculated displacement, characterized in that:
- the non-magnetic parts of said second magnetic scale are symmetrically arranged on both sides of a predetermined position on the rod, and
- said identifying means comprises means for distinguishing on which side of said predetermined position said second magnetic sensor is situated and means for identifying the non-magnetic parts based on said distinguished side and said detected interval.