Patent attributes
A magnetic encoder having a plurality of rows of magnetic tracks and capable of detecting an absolute angle is easily producible with higher accuracy. The magnetic encoder includes: a core member of annular shape having a bending plate portion that bends and extends from an edge of a track formation surface; and two or more rows of magnetic tracks arranged adjacent to each other on a magnetic member provided on the track formation surface, each track having N poles and S poles alternately magnetized thereon. The magnetic tracks include a main track that has a largest number of magnetic poles and is used for calculating an angle, and a sub track used for calculating a phase difference from the main track. The main track is located on a side closer to the bending plate portion than the sub track.