An ophthalmic apparatus that determines whether alignment with a subject eye is complete using an observation image of an anterior ocular segment of the subject eye obtained through a split prism determines whether or not the alignment is a success or failure based on a position of a pupil image on respective lines of a line pair that are parallel to a boundary of the split prism and are equidistant from the boundary in the observation image. The ophthalmic apparatus determines the success or failure of alignment for a plurality of line pairs whose distances from the boundary are different, and determines whether or not the alignment is complete based on the obtained determination results.