A steering controller configured to control a steering device, the steering device being configured to make steering torque variable by using motor torque, the steering torque being used for steering a steering wheel, the motor torque being applied by an actuator that uses a motor as a driving source, the steering controller comprising a torque command value calculator configured to calculate a torque command value used as a target value of the motor torque, wherein: the steering controller controls operation of the motor so as to generate the motor torque corresponding to the torque command value; the torque command value calculator has a command value component calculator configured to calculate a command value component that is added for calculation of the torque command value, and a hysteresis component calculator configured to calculate a hysteresis component added such that the command value component has hysteresis characteristics and changes accordingly with respect to change of a state quantity that changes in accordance with operation of the steering device; the hysteresis component calculator has a hysteresis basic component calculator configured to calculate, based on the state quantity, a hysteresis basic component as a basic component of the hysteresis component, the hysteresis basic component varying such that an absolute value of the hysteresis basic component becomes larger and an absolute value of a hysteresis gradient becomes smaller as the state quantity becomes larger, the hysteresis gradient being an amount of change with respect to the state quantity, characterized in that the hysteresis component calculator further has a hysteresis differential component calculator configured to calculate a hysteresis differential component that is a component obtained by differentiating the hysteresis basic component; and the hysteresis component calculator is configured to calculate the hysteresis component by adding the hysteresis differential component to the hysteresis basic component. the steering controller controls operation of the motor so as to generate the motor torque corresponding to the torque command value; the torque command value calculator has a command value component calculator configured to calculate a command value component that is added for calculation of the torque command value, and a hysteresis component calculator configured to calculate a hysteresis component added such that the command value component has hysteresis characteristics and changes accordingly with respect to change of a state quantity that changes in accordance with operation of the steering device; the hysteresis component calculator has a hysteresis basic component calculator configured to calculate, based on the state quantity, a hysteresis basic component as a basic component of the hysteresis component, the hysteresis basic component varying such that an absolute value of the hysteresis basic component becomes larger and an absolute value of a hysteresis gradient becomes smaller as the state quantity becomes larger, the hysteresis gradient being an amount of change with respect to the state quantity, characterized in that the hysteresis component calculator further has a hysteresis differential component calculator configured to calculate a hysteresis differential component that is a component obtained by differentiating the hysteresis basic component; and a command value component calculator configured to calculate a command value component that is added for calculation of the torque command value, and a hysteresis component calculator configured to calculate a hysteresis component added such that the command value component has hysteresis characteristics and changes accordingly with respect to change of a state quantity that changes in accordance with operation of the steering device; the hysteresis component calculator has a hysteresis basic component calculator configured to calculate, based on the state quantity, a hysteresis basic component as a basic component of the hysteresis component, the hysteresis basic component varying such that an absolute value of the hysteresis basic component becomes larger and an absolute value of a hysteresis gradient becomes smaller as the state quantity becomes larger, the hysteresis gradient being an amount of change with respect to the state quantity, characterized in that the hysteresis component calculator further has a hysteresis differential component calculator configured to calculate a hysteresis differential component that is a component obtained by differentiating the hysteresis basic component; and the hysteresis component calculator is configured to calculate the hysteresis component by adding the hysteresis differential component to the hysteresis basic component.