PROBLEM TO BE SOLVED: To enable high accurate distance detection, even when base length is changed from a design value due to a manufacturing error.SOLUTION: A range-finding device includes first calculation means for calculating an image deviation amount between a first image comprising a first signal corresponding to a luminous flux after passing through the first pupil area of an image formation optical system and a second image comprising a second signal corresponding to a luminous flux after passing through the second pupil area of the image formation optical system and second calculation means for calculating a defocus amount from the image deviation amount by using a conversion factor based on a light-receiving quantity distribution corresponding to the position of a range-finding pixel.
展开▼