An ophthalmic device includes an acquisition unit configured to acquire a transillumination image of a pupil of a subject eye, and a determining unit configured to determine whether or not the subject eye includes an intraocular lens, based on the acquired transillumination image.