An electronic device comprising: a housing; a sensing circuit including a first plurality of electrodes (RX_6, RX_7, RX_8) and a second plurality of electrodes (TX_1-TX_8), wherein the first plurality of electrodes is disposed parallel to a bending axis of the electronic device, the bending axis located in a predetermined area (680, 780), and wherein the second plurality of electrodes is disposed orthogonally to the first plurality of electrodes; a processor operatively connected with the sensing circuit and capable of detecting bending of the electronic device due to a change in capacitance between at least one electrode of the first plurality of electrodes and at least one electrode of the second plurality of electrodes in the predetermined area; and a memory operatively connected with the processor, wherein the memory stores instructions, when executed, configured to cause the processor to: identify output values of the sensing circuit related to a touch by a user; identify whether at least some of the output values being a capacitance are changed; obtain, when the at least some of output values are changed, bending information of the sensing circuit based on the changed at least some of the output values; and change an operation mode of the electronic device to at least one of designated operation modes, at least based on the bending information of the sensing circuit, wherein the bending information of the sensing circuit is obtained based on calculating a change in capacitance due to a change in an area of an overlapping portion between at least some electrodes of the first plurality of electrodes and at least some electrodes of the second plurality of electrodes. a housing; a sensing circuit including a first plurality of electrodes (RX_6, RX_7, RX_8) and a second plurality of electrodes (TX_1-TX_8), wherein the first plurality of electrodes is disposed parallel to a bending axis of the electronic device, the bending axis located in a predetermined area (680, 780), and wherein the second plurality of electrodes is disposed orthogonally to the first plurality of electrodes; a processor operatively connected with the sensing circuit and capable of detecting bending of the electronic device due to a change in capacitance between at least one electrode of the first plurality of electrodes and at least one electrode of the second plurality of electrodes in the predetermined area; and a memory operatively connected with the processor, wherein the memory stores instructions, when executed, configured to cause the processor to: identify output values of the sensing circuit related to a touch by a user; identify whether at least some of the output values being a capacitance are changed; obtain, when the at least some of output values are changed, bending information of the sensing circuit based on the changed at least some of the output values; and change an operation mode of the electronic device to at least one of designated operation modes, at least based on the bending information of the sensing circuit, wherein the bending information of the sensing circuit is obtained based on calculating a change in capacitance due to a change in an area of an overlapping portion between at least some electrodes of the first plurality of electrodes and at least some electrodes of the second plurality of electrodes. identify output values of the sensing circuit related to a touch by a user; identify whether at least some of the output values being a capacitance are changed; obtain, when the at least some of output values are changed, bending information of the sensing circuit based on the changed at least some of the output values; and change an operation mode of the electronic device to at least one of designated operation modes, at least based on the bending information of the sensing circuit, wherein the bending information of the sensing circuit is obtained based on calculating a change in capacitance due to a change in an area of an overlapping portion between at least some electrodes of the first plurality of electrodes and at least some electrodes of the second plurality of electrodes.