An electronic device comprising: a sensor; a first communication circuit configured to transmit a radio frequency, RF, signal; a second communication circuit operatively coupled to the first communication circuit and configured to amplify the RF signal; at least one antenna, operatively coupled to the second communication circuit, and including a plurality of antenna elements; a communication processor operatively coupled to the first communication circuit, the second communication circuit, and the sensor; an application processor different from the communication processor; and memory operatively coupled to the communication processor, wherein the memory stores instructions that, when executed by the communication processor, causes the communication processor to perform a plurality of operation comprising: identifying mobility information of the electronic device by using sensor information obtained by the sensor, wherein the mobility information indicates a specific movement state selected from among predetermined movement states of a user of the electronic device; identifying a first beam width for a first beam to be formed through at least a part of the plurality of antenna elements based on at least part of the mobility information; identifying a power ratio among at least the part of the plurality of antenna elements corresponding to the first beam width, the power ratio corresponding to the mobility information; controlling the second communication circuit to form the first beam having the first beam width by amplifying the RF signal based on the power ratio; communicating with an external electronic device using the first beam having the first beam width; identify whether a duration of communication with the external electronic device by the first beam is longer than a threshold; and if the duration of communication with the external electronic device by the first beam is longer than the threshold, controlling the second communication circuit to form a second beam having a second beam width smaller than the first beam width. a sensor; a first communication circuit configured to transmit a radio frequency, RF, signal; a second communication circuit operatively coupled to the first communication circuit and configured to amplify the RF signal; at least one antenna, operatively coupled to the second communication circuit, and including a plurality of antenna elements; a communication processor operatively coupled to the first communication circuit, the second communication circuit, and the sensor; an application processor different from the communication processor; and memory operatively coupled to the communication processor, wherein the memory stores instructions that, when executed by the communication processor, causes the communication processor to perform a plurality of operation comprising: identifying mobility information of the electronic device by using sensor information obtained by the sensor, wherein the mobility information indicates a specific movement state selected from among predetermined movement states of a user of the electronic device; identifying a first beam width for a first beam to be formed through at least a part of the plurality of antenna elements based on at least part of the mobility information; identifying a power ratio among at least the part of the plurality of antenna elements corresponding to the first beam width, the power ratio corresponding to the mobility information; controlling the second communication circuit to form the first beam having the first beam width by amplifying the RF signal based on the power ratio; communicating with an external electronic device using the first beam having the first beam width; identify whether a duration of communication with the external electronic device by the first beam is longer than a threshold; and if the duration of communication with the external electronic device by the first beam is longer than the threshold, controlling the second communication circuit to form a second beam having a second beam width smaller than the first beam width. identifying mobility information of the electronic device by using sensor information obtained by the sensor, wherein the mobility information indicates a specific movement state selected from among predetermined movement states of a user of the electronic device; identifying a first beam width for a first beam to be formed through at least a part of the plurality of antenna elements based on at least part of the mobility information; identifying a power ratio among at least the part of the plurality of antenna elements corresponding to the first beam width, the power ratio corresponding to the mobility information; controlling the second communication circuit to form the first beam having the first beam width by amplifying the RF signal based on the power ratio; communicating with an external electronic device using the first beam having the first beam width; identify whether a duration of communication with the external electronic device by the first beam is longer than a threshold; and if the duration of communication with the external electronic device by the first beam is longer than the threshold, controlling the second communication circuit to form a second beam having a second beam width smaller than the first beam width.