A foot controller for a sewing machine in which a stepping portion is displaceable according to a user's stepping amount; a moving device that is built in the foot controller and moves according to the displacement amount of the stepping portion; a variable resistor that is built in the foot controller and is capable of changing a resistance value according to the movement amount of the moving device; and a motor that causes to change a sewing speed according to the resistance value of the variable resistor; wherein the moving device includes: a first movement member that is pressed by the stepping portion and moves in a stepping direction of the foot controller; a rotary body that engages the first movement member, and converts the movement amount of the first movement member into a rotational amount; said controller characterised in that it further comprises a second movement member that engages the rotary body, moves in a direction orthogonal to the movement direction of the first movement member by the movement amount according to the rotational amount of the rotary body, and changes the resistance value of the variable resistor according to the movement amount thereof; wherein the first movement member has a first rack that is pressed by the stepping portion and moves in the stepping direction of the foot controller, the rotary body has a gear that engages the first rack and converts the movement amount of the first rack into a rotational amount, the second movement member has a second rack that engages the rotary body, and converts the rotational amount of the gear in the direction orthogonal to the movement direction of the first rack and move, and the variable resistor includes a variable resistor lever that engages a variable resistor lever operating portion provided at one end of the second rack, moves together with the second rack, and changes the resistance value of the variable resistor. a first movement member that is pressed by the stepping portion and moves in a stepping direction of the foot controller; a rotary body that engages the first movement member, and converts the movement amount of the first movement member into a rotational amount; said controller characterised in that it further comprises a second movement member that engages the rotary body, moves in a direction orthogonal to the movement direction of the first movement member by the movement amount according to the rotational amount of the rotary body, and changes the resistance value of the variable resistor according to the movement amount thereof; wherein the first movement member has a first rack that is pressed by the stepping portion and moves in the stepping direction of the foot controller, the rotary body has a gear that engages the first rack and converts the movement amount of the first rack into a rotational amount, the second movement member has a second rack that engages the rotary body, and converts the rotational amount of the gear in the direction orthogonal to the movement direction of the first rack and move, and the variable resistor includes a variable resistor lever that engages a variable resistor lever operating portion provided at one end of the second rack, moves together with the second rack, and changes the resistance value of the variable resistor.