A hinge angle detection method, applied to a foldable electronic device, wherein a foldable screen of the foldable electronic device comprises a first screen and a second screen, and the hinge angle detection method comprises: determining a motion status of the electronic device and a relative position between a common axis and a horizontal plane, wherein the common axis is an axis on which a folding edge of the foldable screen is located; determining a target algorithm based on the motion status and the relative position, wherein the target algorithm comprises an acceleration sensor algorithm, a gyroscope sensor algorithm, or a fusion algorithm, and the fusion algorithm is an algorithm of fusing data of an acceleration sensor (220B, 220D) and data of a first gyroscope sensor and a second gyroscope sensor to calculate a hinge angle (α); calculating a hinge angle (α) of the electronic device by using the determined target algorithm, wherein the hinge angle (α) is an included angle between the first screen and the second screen wherein the calculating a hinge angle (α) of the electronic device by using the determined target algorithm comprises: calculating the hinge angle (α) of the electronic device by using the determined target algorithm if determining that the hinge angle (α) changes, and wherein the determining that the hinge angle (α) changes comprises: if a difference between an angular velocity difference and zero is greater than a second preset value, determining that the hinge angle (α) changes, wherein the angular velocity difference is a difference between an angular velocity of the first gyroscope sensor around the common axis and an angular velocity of the second gyroscope sensor around the common axis, the first gyroscope sensor is disposed in a body corresponding to the first screen, and the second gyroscope sensor is disposed in a body corresponding to the second screen. determining a motion status of the electronic device and a relative position between a common axis and a horizontal plane, wherein the common axis is an axis on which a folding edge of the foldable screen is located; determining a target algorithm based on the motion status and the relative position, wherein the target algorithm comprises an acceleration sensor algorithm, a gyroscope sensor algorithm, or a fusion algorithm, and the fusion algorithm is an algorithm of fusing data of an acceleration sensor (220B, 220D) and data of a first gyroscope sensor and a second gyroscope sensor to calculate a hinge angle (α); calculating a hinge angle (α) of the electronic device by using the determined target algorithm, wherein the hinge angle (α) is an included angle between the first screen and the second screen wherein the calculating a hinge angle (α) of the electronic device by using the determined target algorithm comprises: calculating the hinge angle (α) of the electronic device by using the determined target algorithm if determining that the hinge angle (α) changes, and wherein the determining that the hinge angle (α) changes comprises: if a difference between an angular velocity difference and zero is greater than a second preset value, determining that the hinge angle (α) changes, wherein the angular velocity difference is a difference between an angular velocity of the first gyroscope sensor around the common axis and an angular velocity of the second gyroscope sensor around the common axis, the first gyroscope sensor is disposed in a body corresponding to the first screen, and the second gyroscope sensor is disposed in a body corresponding to the second screen. calculating the hinge angle (α) of the electronic device by using the determined target algorithm if determining that the hinge angle (α) changes, and wherein the determining that the hinge angle (α) changes comprises: if a difference between an angular velocity difference and zero is greater than a second preset value, determining that the hinge angle (α) changes, wherein the angular velocity difference is a difference between an angular velocity of the first gyroscope sensor around the common axis and an angular velocity of the second gyroscope sensor around the common axis, the first gyroscope sensor is disposed in a body corresponding to the first screen, and the second gyroscope sensor is disposed in a body corresponding to the second screen.