The present invention provides a motion detection device, an electronic device, a motion detection method, and a program that can reduce misdeterminations resulting from unintended motion and so forth and can accurately detect, by simple processing, in whichever axial direction the motion detection device has moved. A triaxial acceleration sensor (12) detects acceleration components in each axial direction of an X-axis, a Y-axis, and a Z-axis of the motion detection device (10) and outputs acceleration component data. The acceleration component data are separated into stationary components obtained by subjecting the acceleration component data to low-pass filter processing and motion components obtained by subtracting the stationary components from the acceleration component data. An axis whose stationary component is the largest is determined to be a gravity axis. In a case in which an axis corresponding to a motion component that has first exceeded a threshold value is an axis other than the determined gravity axis, shaking is detected in the direction of the axis.
Motion detection device, electronic device, and motion detection method