An ophthalmic apparatus comprising: an illumination optical system including a light source and configured to illuminate an eye to be examined an imaging optical system including an image sensor and configured to image the eye illuminated by the illumination optical system an optical member insertion/removal unit configured to insert/remove an optical member in/from at least one of optical paths in the illumination optical system and the imaging optical system and a notification unit configured to notify an insertion/removal state of the optical member with respect to the optical path based on a signal output from the image sensor in synchronism with insertion/removal of the optical member in/from the optical path.