Steps per mm calculator

Building a printer, swapping a pulley or fitting a new lead screw? The firmware needs to know how many motor steps move the axis one millimetre. Choose the motor, microstepping and drive, and the calculator gives the number and the command to set it.

Motor

Drive

mm

Travel per turn. T8 screws on most printers have an 8 mm lead (2 mm pitch × 4 starts); TR8×2 has a 2 mm lead.

Print cost calculatorTolerance and fit calculatorE-steps and flow calculatorSteps per mm calculatorGear ratio calculatorFilament weight and length calculatorVolumetric flow calculatorResin print cost calculatorLayer height calculatorWall thickness calculatorPrint time estimatorInch to mm converterScale calculatorHeat-set insert and screw hole calculatorFilament drying calculator3D printer payback calculatorGT2 belt length calculatorSnap-fit calculatorStepper driver Vref calculatorPressure advance calculatorZ offset calculatorSTL volume and weight calculatorAll calculators

The formula

Steps per mm = (360 ÷ step angle) × microstepping ÷ travel per motor turn. For a belt, the travel per turn is the belt pitch × the number of pulley teeth; for a lead screw it is the screw's lead.

SetupSteps per mm
1.8°, 1/16, GT2, 20 teeth80
1.8°, 1/16, GT2, 16 teeth100
0.9°, 1/16, GT2, 20 teeth160
1.8°, 1/16, T8 lead screw (8 mm lead)400
1.8°, 1/16, TR8×2 lead screw1600

Setting the value

In Marlin, send M92 X80 Y80 (or Z for the lead screw), then M500 to save. In Klipper the same information is given as rotation_distance — the travel per full motor turn, 40 mm for a 20-tooth GT2 pulley — and microsteps, in printer.cfg.

Calculated values are exact only if the parts match their specification. If a 100 mm move measures 99.5 mm with calipers, check the belt tension and pulley first; the extruder is calibrated separately with the e-steps calculator.

Frequently asked questions

How do I calculate steps per mm for a GT2 belt?

Steps per turn × microstepping ÷ (belt pitch × pulley teeth). A 1.8° motor at 1/16 microstepping with a 20-tooth GT2 pulley: 200 × 16 ÷ (2 × 20) = 80 steps/mm — the value most printers use for X and Y.

How do I calculate steps per mm for a lead screw?

Steps per turn × microstepping ÷ lead. For a T8 screw with an 8 mm lead at 1/16: 3200 ÷ 8 = 400 steps/mm. With a 2 mm lead screw it is 1600.

Does more microstepping make prints more accurate?

It makes movement smoother and quieter, but not proportionally more accurate: microsteps are not perfectly even, and the holding torque per microstep is small. 1/16, often interpolated to 1/256 by the driver, is the usual choice.

What is the difference between lead and pitch on a screw?

Pitch is the distance between threads; lead is how far the nut travels in one turn. On a single-start screw they are equal. A T8 screw with four starts has a 2 mm pitch but an 8 mm lead — the lead is what the calculation needs.

Ready to print something? LyraMaker has free browser generators for keychains, signs, boxes, rulers and more — all exporting STL and 3MF.
Browse the generators →