Skip to content
Omnikalc

Stepper motor calculator: steps per mm, resolution and step rate

Enter the motor steps, microstepping and travel per revolution to get steps per millimetre, resolution, the pulse frequency at your speed and the maximum speed.

Updated on
Your inputs

Value out of range

mm

Value out of range

mm/s

Value out of range

kHz

Value out of range

Results

Steps per millimetre

80.00 steps/mm

Resolution (distance per microstep)
0.0125 mm
Step pulse frequency at the target speed
8.00 kHz
The step rate is within what your driver can output
Motor speed at the target speed
150 rpm
Maximum speed at the driver's step rate limit
1,250 mm/s
Steps per revolution including microstepping
3,200

A 3D printer, a CNC router or a camera slider moves by counting steps, and the firmware needs to know how many steps make a millimetre. This calculator converts the motor, the microstepping and the travel per revolution into steps per millimetre, the resolution, the pulse frequency at your target speed and the maximum speed your driver can reach.

How the calculation works

  • Steps per millimetre = full steps per revolution × microstepping ÷ travel per revolution
  • Resolution = 1 ÷ steps per millimetre
  • Pulse frequency = steps per millimetre × speed in mm/s
  • Motor speed (rpm) = speed ÷ travel per revolution × 60
  • Maximum speed = driver step rate limit ÷ steps per millimetre

Example

A 200-step motor at 1/16 microstepping drives a belt with 40 mm of travel per revolution. That gives 80 steps/mm and a resolution of 0.0125 mm. At 100 mm/s the controller must output 8 kHz of pulses, and the motor turns at 150 rpm. A 100 kHz step-rate limit allows up to 1,250 mm/s, so the pulse rate is no limit at this speed.

Why it matters

A wrong steps-per-millimetre value gives parts that are the wrong size. The same maths shows when a high microstepping value will overload the controller: at 1/256 on a fast machine the pulse rate can be higher than a small board can generate, and the axis will stutter. Knowing the numbers helps you pick a belt, a screw lead and a microstepping value together.

Good to know

The resolution is theoretical: real accuracy depends on the motor’s step error, the backlash in the mechanism and the stiffness of the frame, and only about the first few microsteps of each full step are accurate. Torque falls with speed, so a motor may skip steps at speeds well below the pulse-rate limit. This tool is for education and for setting up a machine; verify with a measured move.

In practice

After entering the steps per millimetre, command a move of 100 mm, measure the actual distance and scale the setting by the ratio. If the machine is noisy or loses steps, try a lower speed or acceleration before changing the microstepping.

The gear ratio and bike gear calculators work out mechanical ratios, the 555 timer calculator generates pulse trains and the PWM calculator sets duty cycles.

Frequently asked questions

How do I calculate steps per millimetre?

Multiply the motor's full steps per revolution by the microstepping factor and divide by the distance the axis moves in one revolution. A 200 step motor at 1/16 microstepping on a GT2 belt with a 20 tooth pulley (40 mm per revolution) gives 80 steps per millimetre.

What is microstepping?

A driver can split each full step into smaller steps by controlling the current in the coils. Microstepping gives smoother, quieter motion and finer position resolution, but it does not increase the torque and the accuracy per step falls at high factors.

What limits the speed?

The step pulse rate that the controller and driver can produce, and the motor's torque at that speed. If the required pulse rate is above the limit, lower the microstepping or the speed. Torque also drops as the motor turns faster.

How do I set this in firmware?

Enter the steps per millimetre for each axis in your firmware, for example Marlin's M92 command or the equivalent setting in Klipper's rotation distance and microsteps. Check the result with a measured move.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.