A steering angle sensor for accurately detecting the steering angle of a vehicle, which has a signal pattern based on partial changes of the electromagnetic characteristics formed at part of the steering rack bar of the steering gear box and reads the same by a signal detector provided opposing the steering rack bar so as to detect the absolute position of the steering rack bar.