An electronic device comprising: a housing; a battery disposed inside the housing; a power management module configured to control charging the battery; and at least one processor operationally connected with the battery and the power management module, wherein the at least one processor is configured to: direct a plurality of charging intervals while charging the battery, each of the plurality of charging intervals having a target voltage, alternately charge the battery in a first mode and in a second mode through the power management module, wherein a charging current flowing into the battery is uniformly maintained in the first mode and a voltage of the battery is uniformly maintained in the second mode, and switch the first mode to the second mode when the voltage of the battery reaches the target voltage in the first mode, characterised in that the at least one processor is further configured to: determine that a greater value of a first value that is a current charging current reflecting a consumption current used by the electronic device and a second value that is an average of the charging current is less than an i-th reference current consecutively for a specified number of times or more in any one charging interval, and based on the determination, move from one of the plurality of charging intervals to a subsequent charging interval, wherein i is a natural number of 2 or more. a housing; a battery disposed inside the housing; a power management module configured to control charging the battery; and at least one processor operationally connected with the battery and the power management module, wherein the at least one processor is configured to: direct a plurality of charging intervals while charging the battery, each of the plurality of charging intervals having a target voltage, alternately charge the battery in a first mode and in a second mode through the power management module, wherein a charging current flowing into the battery is uniformly maintained in the first mode and a voltage of the battery is uniformly maintained in the second mode, and switch the first mode to the second mode when the voltage of the battery reaches the target voltage in the first mode, characterised in that the at least one processor is further configured to: determine that a greater value of a first value that is a current charging current reflecting a consumption current used by the electronic device and a second value that is an average of the charging current is less than an i-th reference current consecutively for a specified number of times or more in any one charging interval, and based on the determination, move from one of the plurality of charging intervals to a subsequent charging interval, wherein i is a natural number of 2 or more. direct a plurality of charging intervals while charging the battery, each of the plurality of charging intervals having a target voltage, alternately charge the battery in a first mode and in a second mode through the power management module, wherein a charging current flowing into the battery is uniformly maintained in the first mode and a voltage of the battery is uniformly maintained in the second mode, and switch the first mode to the second mode when the voltage of the battery reaches the target voltage in the first mode, characterised in that the at least one processor is further configured to: determine that a greater value of a first value that is a current charging current reflecting a consumption current used by the electronic device and a second value that is an average of the charging current is less than an i-th reference current consecutively for a specified number of times or more in any one charging interval, and based on the determination, move from one of the plurality of charging intervals to a subsequent charging interval, wherein i is a natural number of 2 or more. determine that a greater value of a first value that is a current charging current reflecting a consumption current used by the electronic device and a second value that is an average of the charging current is less than an i-th reference current consecutively for a specified number of times or more in any one charging interval, and based on the determination, move from one of the plurality of charging intervals to a subsequent charging interval, wherein i is a natural number of 2 or more.