An ophthalmic apparatus of an exemplary aspect performs the first and second OCT scans on a subject's eye. The first OCT scan is performed on the first region including the first site of the subject's eye, and the second OCT scan is performed on the second region including the second site. The ophthalmic apparatus acquires the first deviation information of the subject's eye prior to the first OCT scan and performs alignment, and also acquires the second deviation information of the subject's eye prior to the second OCT scan and performs alignment. The ophthalmic apparatus calculates the distance between the first site and the second site based on the first data acquired through the first OCT scan and second data acquired through the second OCT scan.