MeshMath

Retraction distance & speed calculator

Get solid starting retraction settings for your extruder type and filament, then tune with a tower so stringing disappears without grinding or heat creep.

Your printer & filament

Retraction distance—
Retraction speed—
Z-hop—
Suggested travel speed—
Tuning step—
Path—

Starting values only — confirm with a retraction tower.

The model

direct: distance ≈ 0.8 mm × material × nozzle factor
Bowden: distance ≈ (5.0 + 0.004 × (tube − 500)) × material × nozzle factor
speed ≈ 35–40 mm/s × material factor
tune in 0.1 mm (direct) or 0.5 mm (Bowden) steps

Full write-up on whiskers and oozing: how to fix stringing. Calibrate flow first with the e-steps & flow calculator.

What retraction does

When the nozzle travels without printing, molten plastic can ooze and leave thin whiskers (stringing) or blobs. Retraction pulls the filament back a short distance so pressure in the nozzle drops before the travel move. Too little and you get stringing. Too much and you get under-extrusion after travels, grinding, or heat creep clogs.

The right starting point depends mainly on how long the filament path is (direct drive vs Bowden), how sticky the material is, and nozzle size. This calculator gives that starting point; a short test tower finishes the job.

good retraction = shortest distance that leaves no whiskers
on a tower printed after flow and temperature are dialled in

Retraction is one of the last calibration steps. Do e-steps, temperature and flow first, or you will chase ghosts.

Worked example: direct-drive PLA vs Bowden PETG

Worked example

Two common setups, both on a 0.4 mm nozzle

Direct drive, PLAStart at 0.80 mm @ 35 mm/s, Z-hop 0.20 mm
Bowden 500 mm PTFE, PLAStart at 5.00 mm @ 40 mm/s
Same Bowden, PETGStart at 5.75 mm @ 34 mm/s (longer, slower)
Tuning stepDirect: 0.1 mm · Bowden: 0.5 mm
GoalShortest distance that leaves no whiskers on a retraction tower

Print a retraction or stringing tower, change only distance between bands, and pick the lowest clean band. If clean bands still blob at corners, raise travel speed or enable a small wipe before you add more retraction.

Where to type the numbers

SlicerDistanceSpeedZ-hop
OrcaSlicer / Bambu StudioFilament → Retraction lengthRetraction speedZ hop when retracting
PrusaSlicer / SuperSlicerPrinter Settings → Extruder → Retraction lengthRetraction SpeedLift Z
CuraRetraction DistanceRetraction SpeedZ Hop Height (enable Z Hop)
Klipper (printer.cfg)[extruder] or slicer; many use slicer onlySameOften slicer Z-hop

On multi-extruder or toolchanger machines, set retraction per tool. Pressure advance / linear advance is separate: calibrate it after flow, before or alongside retraction.

How to dial retraction in

  1. Calibrate e-steps and flow first. Wrong flow looks like stringing.
  2. Dry moisture-sensitive filament (PETG, TPU, nylon). Wet filament strings no matter the setting — see the drying chart.
  3. Enter your drive type, tube length (Bowden), material and nozzle above and use the starting values.
  4. Print a retraction tower (or the stringing torture test). Change only retraction distance between bands.
  5. Pick the shortest distance that is clean. Then tweak speed ±5–10 mm/s if you still see blobs or gaps after travels.
  6. If you still get whiskers at high distance, raise travel speed, enable a small wipe, or lower nozzle temperature 5 °C before adding more retract.

Starting ranges by setup

SetupDistanceSpeedNotes
Direct drive, PLA0.4–1.2 mm30–45 mm/sMost CoreXY and Sprite-style extruders
Direct drive, PETG0.6–1.5 mm25–40 mm/sSlower retract helps; dry the spool
Bowden ~500 mm, PLA4–6 mm35–50 mm/sClassic Ender-style PTFE path
Bowden long tube (>600 mm)5–7.5 mm35–50 mm/sAdd ~0.4 mm per extra 100 mm of tube
TPU (any drive)0–0.8 mm15–25 mm/sOften better with little or no retract + slow travel

Common mistakes

Troubleshooting

SymptomLikely causeFix
Still stringing after high retractWet filament, hot nozzle, or slow travelsDry spool; drop temp 5 °C; raise travel speed
Gaps / under-extrusion after travelsRetraction too long or too fastReduce distance one step; slow retract 5–10 mm/s
Clicks or jams mid-printHeat creep from excessive retractShorten retract; check heatsink fan; lower temp slightly
TPU looks worse with any retractFilament compressing in the pathSet 0–0.5 mm, slow travel, disable z-hop if it scars the surface
Only corners blob, no long whiskersPressure advance / coasting, not retract lengthTune pressure/linear advance; small wipe often helps more than more retract

Corners blobbing even with good retraction? That is pressure, not retract length. Tune it with the pressure advance calculator.

FAQ

What retraction distance should I use?

Direct drive PLA usually starts around 0.5–1.0 mm. Bowden PLA around 4–6 mm. PETG needs a little more and a slower retract; TPU needs much less.

What is a good retraction speed?

About 30–45 mm/s on direct drive and 35–50 mm/s on Bowden. Faster is not always better: too fast can grind filament or leave gaps after travels.

Why does my Bowden printer need more retraction?

The PTFE tube adds stretch and slack in the filament path, so a short pull at the extruder barely changes pressure at the nozzle. Longer tubes need longer retracts.

Should I enable Z-hop with retraction?

A small Z-hop (about 0.2 mm) helps on parts with tall thin features that the nozzle might scar. On flat parts it is optional; too much Z-hop adds stringing on some setups.

Why do I still get stringing after raising retraction?

Often the filament is wet, the nozzle is too hot, or travel moves are slow. Dry the spool, drop temperature 5 °C, and raise travel speed before adding more retract.

Can too much retraction damage my printer?

It can jam the hotend (heat creep) and chew filament. Stay within about 2.5 mm on direct drive and 8 mm on Bowden, and fix remaining stringing with drying, temperature and travel.

Recommended gear

Some links are affiliate links. MeshMath earns a commission on purchases made through Overture and Anycubic (via Awin) links, at no extra cost to you. Picks are chosen for usefulness, not paid placement.

Related tools

See all tools →