KKC Tools
All tools →

Steps per mm Calculator: Stepper Motors, E-steps and Calibration

Calculate exact stepper motor steps per millimeter for timing belt axes, lead screws, and extruders, or calibrate physical E-steps and test cubes with copy-ready Marlin, Klipper, and GRBL commands.

Bottom Line Up Front (BLUF): Steps per mm = (motor steps per revolution × microsteps) ÷ (belt pitch × pulley teeth). A 1.8° motor at 16 microsteps with a GT2 belt and 20-tooth pulley needs 80 steps/mm. To fix e-steps: new = current × requested ÷ measured.

Belt-Driven Axis (X / Y / CoreXY)

Diagram Stepper & Drive Mechanism KinematicsClick to collapse
1 1.8° (200 steps/rev)Driver Microstepping2 1/16 Microsteps3 20 Pulley Teeth4 2 mm Pitch (GT2)Resolution: 80.0 steps/mm
Physical rotor step angle specification
TMC2209, A4988, or DRV8825 driver mode
Used to check MCU step pulse rate (Hz)
Distance from tooth crest to crest
Count the teeth on your pulley (e.g. 20T or 16T)
Steps per Millimeter80.00(2032.0 steps/inch)
Klipper rotation_distance40.000For printer.cfg
Linear Resolution12.50 µmPer single microstep
Step Frequency @ 200 mm/s16.0 kHz16,000 pulses/sec
A 1.8° motor at 16 microsteps on a 2 mm belt with a 20-tooth pulley needs 80.0 steps per mm (Klipper rotation_distance: 40.000).
📋 Copy Configuration Snippets for Your FirmwareBack up your configuration before saving
Marlin / RepRapFirmware (G-Code)
M92 X80.00
M500
Klipper (printer.cfg)
rotation_distance: 40.000
microsteps: 16
full_steps_per_rotation: 200
GRBL CNC ($ Parameters)
$100=80.000
  • Belt, lead screw & extruder
  • E-steps & axis calibration
  • Marlin, Klipper & GRBL lines
  • Copy-ready G-code

100% free · No sign-up · Runs in your browser, nothing is uploaded

1. How to Use the Stepper Motor Calculator

Accurate motion calibration is required for dimensional accuracy in 3D printing, laser engraving, and CNC routing. Our calculator handles five essential motion configurations:

  • Belt Axis (X / Y / CoreXY): Enter motor step angle, driver microstepping, belt tooth pitch (e.g. GT2 2 mm), and pulley tooth count.
  • Lead Screw (Z Axis / CNC Z): Enter lead screw lead in mm per revolution (or pitch and thread starts) to solve vertical travel steps.
  • E-Steps Calibration: Perform the physical 100 mm extrusion test using a ruler mark to eliminate under-extrusion and over-extrusion.
  • Axis Calibration: Fine-tune printed test cube dimensions (measured vs commanded).
  • Extruder Hardware: Determine theoretical steps per mm from gear reduction ratios (BMG, Titan) and hobbed drive gear effective pitch diameter.

2. Steps per mm for Belt-Driven Axes

Linear motion in timing belt systems converts rotational steps into forward linear advance:

Formula: Steps/mm = (Steps per Revolution × Microsteps) ÷ (Belt Pitch in mm × Pulley Teeth)
Steps per Revolution = 360° ÷ Step Angle (200 for 1.8°, 400 for 0.9°)

Worked Example: A standard 1.8° stepper motor with 16 microsteps, running a 2 mm pitch GT2 belt around a 20-tooth aluminum timing pulley:
Steps/mm = (200 × 16) ÷ (2.0 mm × 20 teeth) = 3,200 ÷ 40 = 80.00 steps per mm.

3. Steps per mm for Lead Screws

Lead screw driven axes (such as the Z-axis on bed flingers and CNC gantries) advance by their linear lead on each 360° rotation:

Formula: Steps/mm = (Steps per Revolution × Microsteps) ÷ Lead in mm
Note on Lead vs Pitch: Lead = Pitch × Number of Thread Starts. Standard T8 lead screws have 2 mm pitch with 4 starts, yielding an 8 mm lead.

For a T8x8 lead screw on a 1.8° motor at 16 microsteps:
Steps/mm = (200 × 16) ÷ 8.0 mm = 3,200 ÷ 8 = 400.00 steps per mm.

4. How to Calibrate Extruder E-Steps

Calibrating extruder steps per mm ensures that when your slicer requests 100 mm of plastic, exactly 100 mm of raw filament enters the drive gears:

  1. Preheat your hotend to printing temperature (e.g. 200°C for PLA) or detach the Bowden tube.
  2. Using digital calipers or a steel ruler, make a distinct mark on the filament exactly 120 mm above the extruder intake.
  3. Through your machine control screen or OctoPrint terminal, command 100 mm of extrusion: G1 E100 F100.
  4. Measure the remaining distance between the intake and your mark.
  5. Calculate actual extruded length: Actual = 120 mm − Remaining Distance.
  6. Calculate new E-steps: New E-Steps = Current E-Steps × (100 ÷ Actual Extruded).

Worked Example: If current E-steps is 93.0 and remaining distance is 25.0 mm (meaning actual extruded was 95.0 mm):
New E-Steps = 93.0 × (100 ÷ 95.0) = 97.89 steps per mm.

5. Calibration Order: E-steps, Flow, then Axes

Calibrating in the incorrect order leads to compounded error:

  • Step 1: Extruder E-steps: Calibrate physical filament feed distance. This is a hardware constant that does not change between slicer profiles.
  • Step 2: Slicer Flow Rate (Extrusion Multiplier): Tune extrusion volume per material to account for filament diameter tolerances and thermal die swell.
  • Step 3: Mechanical Axes: Verify that belts are properly tensioned, lead screw couplers are tight, and frame is square before adjusting X/Y/Z steps.

6. Axis Calibration with a Test Cube

If a printed 20 × 20 × 20 mm calibration cube measures 19.80 mm along the X-axis:

New Axis Steps/mm = Current Steps/mm × (Commanded Dimension ÷ Measured Dimension)
New Steps = 80.00 × (20.00 ÷ 19.80) = 80.81 steps/mm

Crucial caveat: Never use axis step calibration to compensate for material shrinkage or loose belts. Fix belt tension and mechanical play first; steps/mm calculated from the belt pitch, pulley teeth and microsteps is usually right, so recalibrate only after ruling those out.

7. Marlin, Klipper and GRBL: Entering the Values

FirmwareConfiguration FormatPermanent Save Method
Marlin / RRFM92 X80.00 Y80.00 Z400.00 E97.89Send M500 to store in EEPROM (read with M503)
Klipperrotation_distance: 40.000 in printer.cfgSave configuration and issue RESTART
GRBL CNC$100=80.000 (X), $101=80.000 (Y), $102=400.000 (Z)Automatically written to non-volatile controller memory

8. Microstepping and Positioning Resolution

Linear resolution represents the smallest discrete distance an axis can advance for each step pulse sent by your controller:

Resolution (µm) = (1 ÷ Steps per mm) × 1,000

At 80 steps per mm, the single-step resolution is 1 ÷ 80 = 0.0125 mm = 12.5 microns. Microstepping improves motion smoothness and eliminates resonance peaks; however, incremental positioning holding torque between full step detents decreases as microstep divisors increase.

Related Maker & Engineering Tools

Explore our complete manufacturing and 3D fabrication suite:

Frequently Asked Questions

How do I calculate steps per mm for a GT2 belt with a 20-tooth pulley?

For a standard 1.8° stepper motor (200 full steps/rev) running at 16 microsteps with a GT2 belt (2 mm pitch) and 20-tooth pulley: Steps/mm = (200 × 16) ÷ (2 × 20) = 3,200 ÷ 40 = 80.00 steps per mm.

How do I calculate steps per mm for a lead screw (T8, multi-start)?

For a standard T8x8 lead screw (8 mm linear lead per revolution) with a 1.8° motor at 16 microsteps: Steps/mm = (200 × 16) ÷ 8 = 3,200 ÷ 8 = 400.00 steps per mm. For a T8x4 screw (4 mm lead), steps/mm is 800.00.

How do I calibrate extruder e-steps?

Measure and mark 120 mm on your filament from the extruder entrance. Command the printer to extrude 100 mm (G1 E100 F100). Measure the remaining distance from the entrance to your mark. If 25 mm remains, the printer extruded 95 mm (120 − 25). Calculate: New E-steps = Current E-steps × (100 ÷ Actual Extruded).

What is microstepping, and which setting should I use?

Microstepping electronically divides full mechanical motor steps by varying coil current sine waves, increasing positioning resolution and reducing mechanical vibration and noise. 1/16 microstepping is the industry standard for 8-bit and 32-bit motion boards. Higher microstepping (1/32, 1/64) runs quieter but increases step pulse frequency on your microcontroller.

How do I convert steps/mm to Klipper rotation_distance?

In Klipper firmware: rotation_distance = (full_steps_per_rotation × microsteps) ÷ steps_per_mm. For an 80 steps/mm axis with a 200-step motor and 16 microsteps: rotation_distance = (200 × 16) ÷ 80 = 40.000.

How do I save new values (M92, M500, M503)?

In Marlin or RepRapFirmware, send M92 followed by the axis letter and value (e.g. M92 E97.89), then send M500 to save the values to non-volatile EEPROM memory. Send M503 to verify that the stored settings loaded properly.

My parts are too big or too small: should I raise or lower steps/mm?

If a printed 20 mm test cube measures too small (e.g. 19.8 mm), you must RAISE your steps per mm so the axis moves further. If the cube measures too large (e.g. 20.2 mm), LOWER your steps per mm: New Steps = Current Steps × (Commanded ÷ Measured). Always check belt tension and eliminate mechanical backlash before altering linear axis steps.

What are the default e-steps for my printer?

Read the value your printer actually uses: send M503 (Marlin) and look for the E value on the M92 line, or check printer.cfg (Klipper). Defaults differ between printers, extruders and firmware builds, so don’t copy a number from another machine. If you know your extruder’s gear ratio and drive-gear diameter, the From hardware tab works out a starting value.

Should I calibrate e-steps hot or cold?

Follow the calibration guide you use (for example your printer maker’s or a well-known tuning guide). A common method is to heat the hotend to printing temperature and extrude slowly, so back-pressure doesn’t skew the result; another is to remove the nozzle or tube and measure extrusion in free air. Use the same method each time you re-check.

E-steps vs flow rate: what's the difference?

E-steps is a fixed physical machine calibration of your stepper motor teeth and filament drive gear circumference. Flow rate (extrusion multiplier in your slicer) is a per-spool tuning variable that compensates for filament diameter tolerance and material expansion.

How do I calibrate a 3D printer (e-steps, flow, axes, bed)?

Always calibrate in proper sequence: 1) Bed leveling and Z-offset; 2) Extruder physical E-steps; 3) Temperature PID tuning; 4) Filament flow rate (extrusion multiplier); 5) Linear axes dimensional verification.

What does a stepper motor calculator compute (step angle, RPM, pulse rate)?

It links rotational electromechanical parameters (step angle, microstepping, and motor RPM) to physical linear mechanics (lead screw pitch, belt pulley tooth pitch) and computes MCU pulse frequency (Hz) at peak axis speed.

How This Calculator Works: Formula, Defaults & Sources

Formula

  • Belt Steps/mm = (Steps per Revolution × Microsteps) ÷ (Belt Pitch in mm × Pulley Teeth)
  • Lead Screw Steps/mm = (Steps per Revolution × Microsteps) ÷ Lead in mm
  • Extruder Hardware Steps/mm = (Steps per Revolution × Microsteps × Gear Ratio) ÷ (π × Drive Gear Effective Diameter)
  • E-Steps Calibration: New E-Steps = Current E-Steps × (Requested Length ÷ Actual Extruded Length)
  • Axis Calibration: New Steps/mm = Current Steps/mm × (Commanded Dimension ÷ Measured Dimension)
  • Klipper rotation_distance = (full_steps_per_rotation × microsteps) ÷ steps_per_mm

Default values (you can change them)

  • Step Angle: 1.8° (200 full steps per revolution)
  • Microstepping: 16 microsteps (standard 1/16 divisor)
  • Belt Axis: 2.0 mm pitch (GT2) with 20-tooth pulley
  • Lead Screw: 8.0 mm lead (T8x8: 2 mm pitch × 4 starts)
  • E-Steps Calibration: 100 mm requested, 120 mm mark distance

Sources

Results are planning estimates, not engineering advice. Confirm quantities with your supplier and follow your plans and local building code. Last updated: November 23, 2026. Spotted a wrong number? Email us or use the contact page.

💡Suggest a Tool