To provide a highly precise magnetic potentiometer capable of using an easy magnetic detecting element without requiring multipolar magnetization and providing an output signal conformed to rotating angle quantity or linear moving quantity as linear analog signal and digital signal at a low cost.
In a permanent magnet having a plurality of linear magnetic sections 2a provided at equal intervals on a substrate 3a together with a magnetic member 1a, the magnetic member 1a and the linear magnetic sections 2a being single-pole magnetized in the direction opposite to a magnetic detecting element, the opposed area to the magnetic detecting element of the magnetic member 1a is regularly changed along the relatively moving direction. The output voltage of the magnetic detecting element is obtained as an analog signal linearly changed to rotating angle or moving distance in the element opposed to the magnetic member 1a and as a digital signal in the element opposed to the linear magnetic sections 2a.