Stepper Motor Steps per mm Calculator

Find steps/mm for GT2 belts and lead screws from step angle and microstepping, with resolution, max feed rate and Marlin/GRBL settings.

  • Free, no signup
  • Works on mobile
  • Formula + worked example

How to use the steps per mm calculator

  1. Choose the drive type: a belt and pulley (3D printer and plotter X/Y axes) or a lead screw / threaded rod (Z axes, CNC routers, linear stages).
  2. For a belt, pick the belt type (GT2 = 2 mm pitch) and enter the number of pulley teeth. For a screw, pick a preset or enter the lead — the distance the nut moves in one full turn.
  3. Select the motor step angle (1.8° = 200 steps/rev for most NEMA 17 motors) and the driver's microstepping.
  4. Read steps per mm, the resolution of one microstep and the top speed for your controller's step frequency. Copy the Marlin, GRBL or Klipper setting from the code box.

Tap any row of the common-setups table to load it.

Formula

full steps/rev = 360° ÷ step angle (1.8° → 200) steps/rev = full steps/rev × microstepping travel/rev (mm) = pulley teeth × belt pitch (belt) = lead = thread pitch × number of starts (screw) steps/mm = steps/rev ÷ travel/rev resolution (µm) = 1000 ÷ steps/mm max feed (mm/s) = step frequency (Hz) ÷ steps/mm

Common setups (1.8° motor, 1/16 microstepping)

SetupTravel per revSteps/mmResolution per microstepSteps/mm with a 0.9° motor
GT2 belt, 20-tooth pulley40 mm8012.5 µm160
GT2 belt, 16-tooth pulley32 mm10010 µm200
T8 lead screw, 8 mm lead (Tr8×8)8 mm4002.5 µm800
T8 lead screw, 2 mm lead (Tr8×2)2 mm16000.625 µm3200
M8 threaded rod, 1.25 mm pitch1.25 mm25600.39 µm5120
M5 threaded rod, 0.8 mm pitch0.8 mm40000.25 µm8000

That is why so many printers, including the Creality Ender-3, use 80 steps/mm on X and Y and 400 steps/mm on Z.

Microstepping and drivers

DriverHighest microsteppingDefault with no jumpers
A49881/16full step
DRV88251/32full step
TMC2208 / TMC2209up to 1/256set by MS1/MS2 pins or UART

Common mistakes

  • Mixing up pitch and lead. A Tr8×8 screw has a 2 mm thread pitch but 4 starts, so it moves 8 mm per turn. Using 2 mm instead of 8 mm makes the axis move four times too far.
  • Forgetting the microstep jumpers. An A4988 or DRV8825 with nothing on MS1–MS3 runs in full-step mode, so a setting of 80 steps/mm moves the axis 16 times too far.
  • Counting the belt teeth instead of the pulley teeth. Only the pulley's tooth count matters.
  • Asking for too much speed. Torque falls as RPM rises; if the motor skips steps, lower the speed or acceleration before blaming the steps/mm value.
  • Calculating extruder steps. Extruder gears vary, so measure and calibrate E-steps by pushing 100 mm of filament instead.

New to stepper motors? Read understanding stepper motors: drive modes and control. For wheeled robots, use the wheel RPM and speed calculator and the gear ratio calculator. Want to build your own machine with guidance? Join a Thinking Robot workshop or browse our kits.

Frequently asked questions

How many steps per mm for a GT2 belt with a 20-tooth pulley?+

80 steps/mm with a 1.8° motor at 1/16 microstepping. One turn moves 20 × 2 mm = 40 mm, and one turn is 200 × 16 = 3200 microsteps, so 3200 ÷ 40 = 80. A 0.9° motor gives 160 steps/mm.

How many steps per mm for a T8 lead screw?+

It depends on the lead. The common Tr8×8 screw (8 mm lead, 4 starts) gives 3200 ÷ 8 = 400 steps/mm at 1/16 microstepping. A Tr8×2 screw (2 mm lead) gives 1600 steps/mm.

What is the difference between pitch and lead?+

Pitch is the distance between neighbouring threads; lead is how far the nut moves in one full turn. Lead = pitch × number of starts. Ordinary threaded rod has one start, so lead equals pitch (1.25 mm for M8, 0.8 mm for M5).

Does higher microstepping make my machine more accurate?+

It makes motion smoother and quieter and gives finer commands, but not proportionally better accuracy. Each microstep gets only about sin(90° ÷ N) of the holding torque — about 10% at 1/16 — so friction and load can swallow small steps.

How do I find the maximum speed from the step rate?+

Divide the step frequency by steps per mm. At 20,000 steps per second, an 80 steps/mm belt axis can move 250 mm/s, while a 400 steps/mm lead-screw axis reaches 50 mm/s. The motor's torque at that RPM sets the real limit.

From the Thinking Robot store

Shop all
All tools
WhatsApp