An electronic device comprising: a display; a camera circuitry; and one or more processors configured to at least: obtain a first image via the camera circuitry, based on obtaining the first image, control the display to display a focus guide element and a plurality of guide elements on a screen image displayed on the display, wherein the focus guide element moves on the screen image depending on motion of the electronic device, and the plurality of guide elements remain at respective positions on the screen image while the focus guide element moves on the screen image, obtain, via the camera circuitry, a second image and delete a first guide element among the plurality of guide elements in response to the focus guide element and the first guide element being overlapped according to a movement of the focus guide element, subsequent to obtaining the second image, obtain, via the camera circuitry, a third image and delete a second guide element among the plurality of guide elements in response to the focus guide element and the second guide element being overlapped according to a movement of the focus guide element, from the first position to a second position on the screen image, wherein the second guide element remains at the second position while the focus guide element moves on the screen image, and based on all of the images needed to form the panoramic image having been obtained, obtain a panoramic image comprising the first image, the second image, and the third image, wherein the first image is disposed between the second image and the third image, wherein the movement of the focus guide element from the first position to the second position is determined by a user of the electronic device from among the plurality of positions corresponding to the plurality of guide elements. a display; a camera circuitry; and one or more processors configured to at least: obtain a first image via the camera circuitry, based on obtaining the first image, control the display to display a focus guide element and a plurality of guide elements on a screen image displayed on the display, wherein the focus guide element moves on the screen image depending on motion of the electronic device, and the plurality of guide elements remain at respective positions on the screen image while the focus guide element moves on the screen image, obtain, via the camera circuitry, a second image and delete a first guide element among the plurality of guide elements in response to the focus guide element and the first guide element being overlapped according to a movement of the focus guide element, subsequent to obtaining the second image, obtain, via the camera circuitry, a third image and delete a second guide element among the plurality of guide elements in response to the focus guide element and the second guide element being overlapped according to a movement of the focus guide element, from the first position to a second position on the screen image, wherein the second guide element remains at the second position while the focus guide element moves on the screen image, and based on all of the images needed to form the panoramic image having been obtained, obtain a panoramic image comprising the first image, the second image, and the third image, wherein the first image is disposed between the second image and the third image, wherein the movement of the focus guide element from the first position to the second position is determined by a user of the electronic device from among the plurality of positions corresponding to the plurality of guide elements. obtain a first image via the camera circuitry, based on obtaining the first image, control the display to display a focus guide element and a plurality of guide elements on a screen image displayed on the display, wherein the focus guide element moves on the screen image depending on motion of the electronic device, and the plurality of guide elements remain at respective positions on the screen image while the focus guide element moves on the screen image, obtain, via the camera circuitry, a second image and delete a first guide element among the plurality of guide elements in response to the focus guide element and the first guide element being overlapped according to a movement of the focus guide element, subsequent to obtaining the second image, obtain, via the camera circuitry, a third image and delete a second guide element among the plurality of guide elements in response to the focus guide element and the second guide element being overlapped according to a movement of the focus guide element, from the first position to a second position on the screen image, wherein the second guide element remains at the second position while the focus guide element moves on the screen image, and based on all of the images needed to form the panoramic image having been obtained, obtain a panoramic image comprising the first image, the second image, and the third image, wherein the first image is disposed between the second image and the third image, wherein the movement of the focus guide element from the first position to the second position is determined by a user of the electronic device from among the plurality of positions corresponding to the plurality of guide elements.