An electronic device comprising: a communication circuitry; a display; a processor; a charging circuitry disposed under at least a part of the display and configured to provide power to a stylus; J and a memory configured to store instructions that, when executed by the processor, cause the processor to: receive information regarding a remaining capacity of a rechargeable battery of the stylus related to the electronic device from the stylus by using the communication circuitry, based on identifying that the remaining capacity of the battery is less than a reference value, display, using the display a first indication indicating an area where the battery is chargeable by contacting the stylus to the area, in response to identifying that the stylus contacts the area while displaying the first indication: provide power for charging the battery by using the charging circuitry to the stylus, change the first indication to a second indication for indicating that the battery is being charged by using the display, identify a change of an efficiency of charging due to a change of a posture of the stylus, based on at least one of a change of a reception intensity of a signal received from the electronic device or change of a position where the signal is received, and provide, in the second indication for indicating that the battery is being charged, an indication of the identified efficiency of charging of the battery. a communication circuitry; a display; a processor; a charging circuitry disposed under at least a part of the display and configured to provide power to a stylus; J and a memory configured to store instructions that, when executed by the processor, cause the processor to: receive information regarding a remaining capacity of a rechargeable battery of the stylus related to the electronic device from the stylus by using the communication circuitry, based on identifying that the remaining capacity of the battery is less than a reference value, display, using the display a first indication indicating an area where the battery is chargeable by contacting the stylus to the area, in response to identifying that the stylus contacts the area while displaying the first indication: provide power for charging the battery by using the charging circuitry to the stylus, change the first indication to a second indication for indicating that the battery is being charged by using the display, identify a change of an efficiency of charging due to a change of a posture of the stylus, based on at least one of a change of a reception intensity of a signal received from the electronic device or change of a position where the signal is received, and provide, in the second indication for indicating that the battery is being charged, an indication of the identified efficiency of charging of the battery. receive information regarding a remaining capacity of a rechargeable battery of the stylus related to the electronic device from the stylus by using the communication circuitry, based on identifying that the remaining capacity of the battery is less than a reference value, display, using the display a first indication indicating an area where the battery is chargeable by contacting the stylus to the area, in response to identifying that the stylus contacts the area while displaying the first indication: provide power for charging the battery by using the charging circuitry to the stylus, change the first indication to a second indication for indicating that the battery is being charged by using the display, provide power for charging the battery by using the charging circuitry to the stylus, change the first indication to a second indication for indicating that the battery is being charged by using the display, identify a change of an efficiency of charging due to a change of a posture of the stylus, based on at least one of a change of a reception intensity of a signal received from the electronic device or change of a position where the signal is received, and provide, in the second indication for indicating that the battery is being charged, an indication of the identified efficiency of charging of the battery.