An ophthalmic apparatus may include: a processor; and a memory storing computer-readable instructions therein, the computer-readable instructions, when executed by the processor, causing the ophthalmic apparatus to perform: acquiring a two-dimensional tomographic image of the subjected eye; calculating a preoperative shape of the subjected eye based on a preoperative two-dimensional tomographic image of a preoperative subjected eye acquired by the acquiring of the two-dimensional tomographic image; calculating a postoperative shape of the subjected eye based on a postoperative two-dimensional tomographic image of a postoperative subjected eye acquired by the acquiring of the two-dimensional tomographic image; and calculating a displacement amount between a first reference axis obtained from the preoperative two-dimensional tomographic image of the preoperative subjected eye and a second reference axis obtained from the postoperative two-dimensional tomographic image of the postoperative subjected eye, based on the calculated preoperative shape and the calculated postoperative shape.