How the Retraction Calculator Works
Retraction pulls the filament back a little before each travel move so the nozzle stops oozing, then pushes it forward again before printing restarts. The right distance mostly depends on how much slack there is between the extruder gears and the nozzle: very little on a direct drive, a lot in a long Bowden tube.
The calculator gives typical starting ranges, then plans a test tower so you can find your printer's own value. The starting ranges are rules of thumb gathered from common slicer profiles and printer makers' defaults, not exact figures.
The Method
TUNING_TOWER uses with STEP_DELTA, STEP_HEIGHT and SKIP, so the table, the console command and the slicer heights all agree.Worked Example
- Starting range: 400/160 + 0.5 = 3.0 mm to 400/80 + 2 = 7.0 mm, start at 400/100 + 1 = 5.0 mm, at 35 to 60 mm/s (start 45).
- Tower: start 3 mm, step 0.5 mm, 9 segments of 5 mm on a 1 mm base, so 3.0 mm from 1 to 6 mm high, 3.5 mm from 6 to 11 mm, and so on up to 7.0 mm from 41 to 46 mm.
- Klipper:
TUNING_TOWER COMMAND=SET_RETRACTION PARAMETER=RETRACT_LENGTH START=3 STEP_DELTA=0.5 STEP_HEIGHT=5 SKIP=1. - Marlin with FWRETRACT:
M207 S3 F2700 Z0in the start G-code, thenM207 S3.5at 6 mm,M207 S4at 11 mm and so on. - The strings stop at 18 mm high: floor((18 − 1) ÷ 5) + 1 = segment 4, which is 4.5 mm. Set 4.5 mm as the retraction length; if it is borderline, try the next one up.
Stringing Troubleshooting
| Likely cause | What to try |
|---|
Drying temperatures are typical; follow your filament maker's figures.
Practical Tips
- Fix e-steps and temperature first. An extruder that pushes the wrong amount makes every retraction test misleading. Calibrate it with the steps per mm calculator.
- Tune pressure / linear advance, then retraction. Advance lowers the pressure in the nozzle at the end of each line, so you often need less retraction afterwards. See the linear advance calculator.
- Change one thing at a time. Test distance at a fixed speed, then speed at the chosen distance.
- Too much is worse than a few wisps. Over-long retraction causes gaps after travel, clicking extruders, ground filament and heat-break jams. A quick pass with a heat gun removes fine wisps.
- Printing fixtures or brackets? Size the holes with the hole compensation tool, heat-set insert hole sizes and the clearance hole chart.
More 3D Printing Tools
- Steps per mm & Rotation Distance and Linear / Pressure Advance Calculator
- Input Shaper Explainer and Bed Mesh Visualizer
- Shrinkage Scale Factor, Print Strength and Infill, Image to Lithophane and Text to STL
Frequently Asked Questions
Starting ranges are typical values and rules of thumb, not data for your printer. Always confirm with a test print, check the commands against your firmware version, and keep a copy of your old settings.