An electronic device is provided. The electronic device includes a display including a touch sensor circuit and a pen input circuit, memory, comprising one or more storage media, storing instructions and at least one processor communicatively coupled to the display and the memory, wherein the instructions, when executed by the at least one processor individually or collectively, cause, the electronic device to identify a first palm position on the display through the touch sensor circuit and identify a hover-in state by a pen device through the pen input circuit, identify a first position of the pen device, first tilt information of the pen device, and a first screen state of the display based on the identifying of the first palm position and the hover-in state, identify a first scan area to be scanned by the touch sensor circuit and a first scan exclusion area not to be scanned by the touch sensor circuit, based on the first palm position, the first position of the pen device, the first tilt information, and the first screen state, and control the touch sensor circuit to perform a first
partial scan to scan the first scan area and not to scan the first scan exclusion area.