ToolSphere
Back to all articles
engineering

Steps per mm: How to Calculate and Calibrate

2026-10-157 min read

Try it: free Stepper Motor Speed & Step Calculator

Convert step rate to RPM and work out steps per millimetre

Open →

Steps per mm tells your 3D printer or CNC controller how many step pulses move an axis one millimetre. Get it wrong and every part comes out the wrong size. The good news: for belts and lead screws it is pure arithmetic, so you can calculate it exactly instead of guessing. Only the extruder needs measuring, because its gear grips the filament at a slightly uncertain diameter.

The formula

steps per mm = (motor steps per revolution × microstepping) ÷ travel per revolution (mm)
  • Motor steps per revolution: 200 for a 1.8° motor, 400 for a 0.9° motor.
  • Microstepping: set by the driver, usually 16 on printers (TMC drivers often interpolate to 256 internally, but the controller still counts in 1/16 steps).
  • Travel per revolution: what one full turn of the motor moves the axis. This depends on the drive.

Belts: pitch × teeth

A GT2 belt has a 2 mm pitch. On a 20-tooth pulley, one turn moves 2 × 20 = 40 mm of belt.

(200 × 16) ÷ (2 × 20) = 3200 ÷ 40 = 80 steps/mm
Setup (1.8° motor, 1/16) Travel per turn Steps/mm
GT2, 20-tooth pulley 40 mm 80
GT2, 16-tooth pulley 32 mm 100
GT2, 20-tooth, 0.9° motor 40 mm 160
GT2, 20-tooth, 1/32 microstepping 40 mm 160

Count the pulley teeth rather than trusting a listing: 16 and 20 teeth look alike.

Lead screws: lead, not pitch

For a lead screw, travel per turn is the lead, which is the pitch multiplied by the number of starts. The common T8 screw on Z axes has a 2 mm pitch and 4 starts, so its lead is 8 mm.

(200 × 16) ÷ 8 = 400 steps/mm
Screw (1.8° motor, 1/16) Lead Steps/mm
T8 (8 mm lead, 4 starts) 8 mm 400
T8 with 4 mm lead (2 starts) 4 mm 800
TR8×2 (single start) 2 mm 1600

To find the starts, look at the end of the screw and count the separate thread ridges, or mark the nut, turn the screw once by hand and measure how far the nut moves. That distance is the lead.

Setting it in Marlin or Klipper

Marlin uses steps per mm directly. Send M503 to see the current values (the M92 line), set new ones with M92, and save with M500:

M92 X80 Y80 Z400 E93
M500

Klipper uses rotation_distance, the travel per full motor turn, in printer.cfg. Convert with:

rotation_distance = (motor steps per revolution × microstepping) ÷ steps per mm
                  = (200 × 16) ÷ 80 = 40      for the GT2 20-tooth belt

For belts and lead screws Klipper's value is just the travel per turn: 40 for the belt, 8 for a T8 screw.

Calibrating the extruder (E-steps)

The extruder is the one value to measure, because the drive gear's effective diameter depends on how deeply its teeth bite into the filament. A stock Creality Ender-3 extruder starts at 93 steps/mm; a geared BMG-style extruder at about 415.

  1. Heat the nozzle to printing temperature.
  2. Mark the filament 120 mm above where it enters the extruder.
  3. Send M83 (relative extrusion), then G1 E100 F100 to extrude 100 mm slowly.
  4. Measure from the extruder to the mark. If 23 mm is left, the extruder pushed 97 mm instead of 100.
  5. Correct in proportion:
new E-steps = current E-steps × requested ÷ actual
            = 93 × 100 ÷ 97 = 95.88

Then M92 E95.88 and M500. Repeat once to confirm you now get 100 mm, within a millimetre.

In Klipper, the correction runs the other way, because rotation_distance is distance per turn: new = old × actual ÷ requested. The Ender-3 value of 93 steps/mm is a rotation_distance of 34.41, so the new value is 34.41 × 97 ÷ 100 = 33.38, the same correction as 95.88 steps/mm.

Common mistakes

  • Calibrating X and Y from a printed calibration cube. A 20 mm cube that measures 19.8 mm is usually over- or under-extrusion, or plastic shrinkage, not wrong steps/mm. Belt-driven axes are correct by arithmetic; if one really is off, check the pulley's tooth count and the microstepping setting.
  • Using the thread pitch instead of the lead for a multi-start lead screw, which makes Z four times too short with a T8.
  • Changing microstepping without updating steps/mm. Going from 1/16 to 1/32 doubles every value.
  • Calibrating E-steps through a hot, fast extrusion. Extrude slowly (F100 or less), or the nozzle's back-pressure makes the extruder skip and the result reads low.
  • Forgetting M500, so the new value disappears at the next reboot.

Try it

The stepper motor calculator works out steps per mm (and per inch) for any belt pitch, pulley, lead screw, step angle and microstepping setting, along with the RPM for a given step rate, and the speed above which your supply voltage can no longer drive the motor at full torque.

Use the Robot Drive Speed & Torque Calculator to plan a related robot-drive calculation. For a related walkthrough, read Sizing Robot Drive Motors: Torque and RPM.

Looking for other tools?

Explore ToolSphere Homepage →