A ranging apparatus includes: a first calculation unit configured to calculate an image shift amount between a first image and a second image, the first image being based on a first signal which corresponds to a light flux transmitted through a first pupil area of an imaging optical system, and the second image being based on a second signal which corresponds to a light flux transmitted through a second pupil area of the imaging optical system; and a second calculation unit configured to calculate a defocus amount from the image shift amount, using a conversion coefficient based on a received light quantity distribution in accordance with the position of the ranging pixel.
展开▼