An optical device includes a refracting surface refracting light, a flat surface transmitting light, and a prism group including prism elements having at least the refracting surface. Here, the prism elements are arranged with a plurality of pitches therebetween on a straight line parallel to a reference surface on which the prism elements are disposed.