A spatial light modulator includes a prism group and satisfies either of the following conditionsd<0.95×λ/(2×(n−1)),d>1.05×λ/(2×(n−1))where d is a distance between a reference surface and a flat surface, λ is a wavelength of an incident light, and n is a refractive index of the prism group.