An image capturing apparatus comprising: an image sensor including image forming pixels that receive incident light passed through a photographing optical system and a plurality of pairs of first focus detection pixels and second focus detection pixels, different from the image forming pixels, each receiving incident light passed through different pupil regions of the photographing optical system by pupil division; a memory control unit configured to read out from a memory position information for the first and second focus detection pixels and defective pixels stored in the memory; and a generation unit configured to perform: a first generation of identifying positions of the first and second focus detection pixels and defective focus detection pixels in the image sensor and generating a pixel signal, for focus detection, corresponding to a defective first focus detection pixel using pixel signals of defect-free first focus detection pixels, and generating a pixel signal corresponding to a defective second focus detection pixel using pixel signals of defect-free second focus detection pixels, based on the position information and a second generation of identifying positions of the focus detection pixels in the image sensor and generating a pixel signal, for image recording, corresponding to each of the first and second focus detection pixels using pixel signals of the defect-free image forming pixels located around the pixel whose pixel signal is to be generated, based on the position information. an image sensor including image forming pixels that receive incident light passed through a photographing optical system and a plurality of pairs of first focus detection pixels and second focus detection pixels, different from the image forming pixels, each receiving incident light passed through different pupil regions of the photographing optical system by pupil division; a memory control unit configured to read out from a memory position information for the first and second focus detection pixels and defective pixels stored in the memory; and a generation unit configured to perform: a first generation of identifying positions of the first and second focus detection pixels and defective focus detection pixels in the image sensor and generating a pixel signal, for focus detection, corresponding to a defective first focus detection pixel using pixel signals of defect-free first focus detection pixels, and generating a pixel signal corresponding to a defective second focus detection pixel using pixel signals of defect-free second focus detection pixels, based on the position information and a second generation of identifying positions of the focus detection pixels in the image sensor and generating a pixel signal, for image recording, corresponding to each of the first and second focus detection pixels using pixel signals of the defect-free image forming pixels located around the pixel whose pixel signal is to be generated, based on the position information. a first generation of identifying positions of the first and second focus detection pixels and defective focus detection pixels in the image sensor and generating a pixel signal, for focus detection, corresponding to a defective first focus detection pixel using pixel signals of defect-free first focus detection pixels, and generating a pixel signal corresponding to a defective second focus detection pixel using pixel signals of defect-free second focus detection pixels, based on the position information and a second generation of identifying positions of the focus detection pixels in the image sensor and generating a pixel signal, for image recording, corresponding to each of the first and second focus detection pixels using pixel signals of the defect-free image forming pixels located around the pixel whose pixel signal is to be generated, based on the position information.