Provided is an encoder capable of achieving high position resolution without being finely divided, and capable of detecting a rotation angle or the like with high sensitivity. The encoder includes: rotary plate having a plurality of reflection structures repeatedly formed and code including light reflector; irradiator that irradiates the plurality of reflection structures with light; and light receiver that receives light reflected by the plurality of reflection structures. Each of the plurality of reflection structures has a surface in a convex shape, and each of the plurality of reflection structures has a width that is an integral multiple of a width of light reflector.