An electronic device comprising: a housing; a battery disposed in the housing; an accommodator disposed in the housing and including at least one gas sensor, wherein the at least one gas sensor is configured to obtain a gas sensing signal about gas leaking from the battery and sense a concentration of the gas; a memory configured to store information of the gas, which leaks from the battery, sensed by the at least one gas sensor and operation control information of the electronic device; and a processor electrically connected with the memory, wherein the processor is configured to: change an obtaining cycle of the gas sensing signal according to operation status of an application that is used in the electronic device, determine gas leakage status of the battery according to variation of the obtaining cycle of the gas sensing signal, and control at least some operations of the electronic device and/or a charging characteristic of the battery based on the gas leakage status of the battery when variation of the gas sensing signal exceeds a predetermined threshold, wherein the gas leakage status includes a first gas leakage status, which represents a gas leakage status due to internal leakage of the battery, and a second gas leakage status, which represents a gas leakage status due to aging of the battery, and wherein the processor is further configured to: when the concentration of the gas exceeds a first threshold within a predetermined time, control a display of the electronic device to notify the user via a user interface that the concentration of the gas has exceeded the first threshold; and when the concentration of the gas exceeds a second threshold within a predetermined time, control the memory to transmit an instruction to block signals transmitted through a circuit mounted on a printed circuit board. a housing; a battery disposed in the housing; an accommodator disposed in the housing and including at least one gas sensor, wherein the at least one gas sensor is configured to obtain a gas sensing signal about gas leaking from the battery and sense a concentration of the gas; a memory configured to store information of the gas, which leaks from the battery, sensed by the at least one gas sensor and operation control information of the electronic device; and a processor electrically connected with the memory, wherein the processor is configured to: change an obtaining cycle of the gas sensing signal according to operation status of an application that is used in the electronic device, determine gas leakage status of the battery according to variation of the obtaining cycle of the gas sensing signal, and control at least some operations of the electronic device and/or a charging characteristic of the battery based on the gas leakage status of the battery when variation of the gas sensing signal exceeds a predetermined threshold, change an obtaining cycle of the gas sensing signal according to operation status of an application that is used in the electronic device, determine gas leakage status of the battery according to variation of the obtaining cycle of the gas sensing signal, and control at least some operations of the electronic device and/or a charging characteristic of the battery based on the gas leakage status of the battery when variation of the gas sensing signal exceeds a predetermined threshold, wherein the gas leakage status includes a first gas leakage status, which represents a gas leakage status due to internal leakage of the battery, and a second gas leakage status, which represents a gas leakage status due to aging of the battery, and wherein the processor is further configured to: when the concentration of the gas exceeds a first threshold within a predetermined time, control a display of the electronic device to notify the user via a user interface that the concentration of the gas has exceeded the first threshold; and when the concentration of the gas exceeds a second threshold within a predetermined time, control the memory to transmit an instruction to block signals transmitted through a circuit mounted on a printed circuit board. when the concentration of the gas exceeds a first threshold within a predetermined time, control a display of the electronic device to notify the user via a user interface that the concentration of the gas has exceeded the first threshold; and when the concentration of the gas exceeds a second threshold within a predetermined time, control the memory to transmit an instruction to block signals transmitted through a circuit mounted on a printed circuit board.