NewAI Part GeneratorFree to get started
FREE TOOL

Stepper motor steps per mm calculator

From the motor step angle, driver microstepping, and either the pulley teeth and belt pitch or the screw lead, this steps per mm calculator works out the value your firmware needs for a belt or lead screw axis. It also shows the resolution, the top speed your step rate allows and the torque behind each microstep.

Drive
Examples
°

1.8° is 200 steps per revolution, 0.9° is 400.

mm

GT2 is usually 2 mm.

Optional: motor turns per output turn. Blank is direct drive.

Hz

Grbl on AVR reaches 30 kHz. A DRV8825 accepts up to 250 kHz.

Steps per mm

80 steps/mm

Microstep resolution
12.5 µm
Full-step resolution
200 µm
Travel per motor revolution
40 mm
Full steps per revolution
200
Top speed from step rate
375 mm/s 22500 mm/min
Motor speed at that rate
562.5 rpm
Torque per microstep
9.8 % of holding torque
Marlin command
M92 X80

Top speed here is only the step-pulse limit. Motor torque falls with speed, so the pull-out torque curve of your motor and supply voltage usually sets the real limit first.

Microstepping adds resolution, not accuracy. At 1/16, one microstep has only 9.8 % of the holding torque behind it, so friction or load can hold the rotor still for several microsteps.

Top speed and torque per microstep against the microstep setting
50100200500100020005000020406080100125102050100200Microsteps per full stepTop speed (mm/s)Torque per microstep (%)1/16
Top speed (mm/s)Torque per microstep (%)

Microstep settings for 2 mm pitch belt, 20 tooth pulley

MicrostepsSteps/mmResolutionTop speedTorque per microstep
Full5200 µm6000 mm/s100 %
1/210100 µm3000 mm/s70.7 %
1/42050 µm1500 mm/s38.3 %
1/84025 µm750 mm/s19.5 %
1/168012.5 µm375 mm/s9.8 %
1/321606.25 µm187.5 mm/s4.91 %
1/643203.13 µm93.75 mm/s2.45 %
1/1286401.56 µm46.88 mm/s1.23 %
1/25612800.781 µm23.44 mm/s0.614 %

How do you calculate steps per mm?

Multiply full steps per revolution by the microstep setting, then divide by the travel per motor revolution. A 1.8° motor (200 steps) at 1/16 on a GT2 belt with a 20 tooth pulley moves 40 mm per revolution, so steps/mm = 3200 ÷ 40 = 80. On a lead screw with an 8 mm lead, it is 3200 ÷ 8 = 400.

Steps per mm formula

Steps per millimeter is the number of pulses per motor revolution divided by how far the axis moves in that revolution. The math is the same on a 3D printer and a CNC machine.

belt: steps/mm = (360 ÷ θ) × µ × G ÷ (p × T)
θ
motor step angle in degrees
µ
driver microsteps per full step
p
belt pitch in mm
T
pulley teeth
G
gear reduction, motor turns per output turn, 1 for direct drive
lead screw: steps/mm = (360 ÷ θ) × µ × G ÷ lead
lead
travel per screw revolution in mm

The step rate fS the controller can generate sets the pulse-limited top speed and the motor speed:

top speed = fS ÷ (steps/mm)     rpm = 60 × fS ÷ ((360 ÷ θ) × µ)

Torque available to move a single microstep shrinks with the setting:

Minc = Mhold × sin(90° ÷ µ)
Mhold
full-step holding torque

Worked examples

Example 1: GT2 belt, 20 tooth pulley, 1.8°, 1/16

Full steps per revolution: 360 ÷ 1.8 = 200. Travel per revolution: 2 × 20 = 40 mm. Steps/mm = 200 × 16 ÷ 40 = 80, or 12.5 µm per microstep. At 30 kHz the pulse limit is 375 mm/s, with the motor at 562.5 rpm.

Example 2: lead screw, 8 mm lead, 1.8°, 1/16

Steps/mm = 200 × 16 ÷ 8 = 400, or 2.5 µm per microstep. The same 30 kHz step rate now gives only 75 mm/s, because each millimeter takes five times the pulses of the belt drive.

Example 3: M8 threaded rod, 1.25 mm per turn

Steps/mm = 3200 ÷ 1.25 = 2560, a resolution of 0.391 µm. Top speed at 30 kHz is 11.7 mm/s.

GT2 belt steps per mm table (2 mm pitch)

1.8° motor. Double each value for a 0.9° motor.

Pulley1/81/161/321/64
16 teeth50100200400
20 teeth4080160320
24 teeth33.33366.667133.33266.67
32 teeth2550100200
36 teeth22.22244.44488.889177.78
40 teeth204080160

Lead screw steps per mm table

1.8° motor, direct drive.

Lead1/81/161/321/64Microstep at 1/16
1.25 mm/rev128025605120102400.391 µm
2 mm/rev8001600320064000.625 µm
4 mm/rev400800160032001.25 µm
5 mm/rev320640128025601.56 µm
8 mm/rev20040080016002.5 µm
10 mm/rev16032064012803.13 µm

Torque per microstep

Fraction of full-step holding torque available to move one microstep, Minc = Mhold × sin(90° ÷ µ).

SettingTorque per microstep
Full step100 %
1/270.7 %
1/438.3 %
1/819.5 %
1/169.8 %
1/324.91 %
1/642.45 %
1/1281.23 %
1/2560.614 %

What sets the real limits

The step-rate limit is often in the controller rather than the driver: Grbl on AVR reaches 30 kHz, while a DRV8825 accepts up to 250 kHz and an A4988’s 1 µs minimum HIGH and LOW pulse widths put its ceiling near 500 kHz. In practice the motor stops first: torque drops with speed as winding inductance and back EMF limit the current, so a higher supply voltage and the pull-out torque curve matter more than the pulse rate. For positioning, count on full-step accuracy unless you have measured better. An A4988 stops at 1/16 and a DRV8825 at 1/32, so match the microstep setting to the driver. The results from this steps/mm calculator assume a belt or screw that does not stretch or backlash, so calibrate on the machine.

Glossary

Step angle
The rotation of the motor for one full step, usually 1.8° or 0.9°.
Microstepping
Driving the coils with intermediate current levels so each full step divides into smaller steps.
Steps per mm
The number of driver step pulses needed to move an axis by one millimeter.
Lead
The linear travel for one full turn of a screw. It equals pitch times the number of starts.
Belt pitch
The distance between adjacent belt teeth, 2 mm for most GT2 belts.
Incremental torque
The torque available to move the rotor by one microstep.

Related guides

Frequently asked questions

How do you calculate steps per mm for a belt or lead screw?

For a belt, steps/mm = (360 ÷ step angle) × microsteps ÷ (belt pitch × pulley teeth). For a lead screw, steps/mm = (360 ÷ step angle) × microsteps ÷ lead, where the lead is the travel per screw revolution.

How many steps per mm is a GT2 belt with a 20 tooth pulley?

80 steps/mm with a 1.8° motor at 1/16 microstepping: 200 × 16 ÷ (2 × 20). Each microstep moves 12.5 µm.

How many steps per mm is an 8 mm lead screw?

400 steps/mm with a 1.8° motor at 1/16 microstepping: 200 × 16 ÷ 8. Check the lead, not just the pitch: a screw with 2 mm pitch and 4 starts has an 8 mm lead.

Does more microstepping make a machine more accurate?

It adds resolution, not accuracy. Torque per microstep falls as sin(90° ÷ microsteps), to 9.8 % of holding torque at 1/16, so friction and load can keep the rotor from following each microstep exactly.

How fast can a stepper axis go?

The pulse limit is the step rate divided by steps/mm: 30 kHz at 80 steps/mm gives 375 mm/s. Motor torque usually runs out first, so check the pull-out torque curve at your supply voltage. The stepper motor calculator above also shows the motor rpm at that step rate.

How do I set steps per mm in Marlin?

Send M92 with the axis and value, for example M92 X80, and M500 to save it when EEPROM settings are enabled. Marlin accepts decimals, so a value that is not a whole number is fine. The results above print the M92 line, so this doubles as a Marlin steps per mm calculator.

What does a 0.9° motor change?

It has 400 full steps per revolution instead of 200, so steps/mm doubles for the same mechanics and the top speed from a given step rate halves. A GT2 16 tooth pulley at 1/16 gives 200 steps/mm with a 0.9° motor.

More free PCB tools

See all free electronics tools →

Sources

Design the whole board, not one number

ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.

Get for Mac

Free to start. No card required.