Optical coherence tomography (OCT) is a modern, non-contact method of diagnostic examination that enables the visualization of various tissues of the human eye in a cross-sectional view at the microscopic level with the required morphological information. The software pre-installed in such devices contains many different tools for analyzing scans and has almost all the functionality necessary for the doctor to make a correct diagnosis. However, as time passes, more and more advanced methods of analyzing the images appear, which actualizes new tasks of developing additional software that can supplement and expand the functionality of the diagnostic equipment. This paper proposes an algorithm for automatic segmentation of the borders of a pathological focus in the macular area of the retina to calculate the area of the pathological focus, which together with other algorithms for analysis of morphometric parameters of the human eye, which are still under development, will be used for more accurate diagnosis of the stage of age-related macular degeneration.