Retraction · 3D printing

On this page 7

Retraction in 3D printing is the slicer-controlled move that pulls filament backward from the hot end before a travel move, relieving melt pressure in the nozzle so that molten plastic does not ooze or string across gaps. It is one of the central parameters in slicers & print settings for fused deposition modeling (FDM), and every major slicer, from UltiMaker Cura and PrusaSlicer to Bambu Studio and OrcaSlicer, exposes it as a group of tunable values.

A well-tuned retraction produces clean travel paths and sharp detail; a poorly tuned one causes stringing, blobs, gaps or clogs. Because the correct values depend on the extruder type, hot end, filament and temperature, retraction is usually calibrated per printer and per material rather than copied from another machine.

How retraction relieves nozzle pressure

Retraction works by reversing the extruder motor for a short distance at the end of an extrusion path. Molten plastic in the melt zone is under pressure while printing, and that pressure keeps pushing material out even after the extruder stops; pulling the filament back lowers the pressure and draws the meniscus slightly into the nozzle.

In G-code, retraction appears either as a negative E move on the extruder axis or, when firmware retraction is enabled, as the G10 and G11 commands, which let the printer firmware apply stored values. After the travel move, the extruder pushes the same length forward again, called unretraction or deretraction, so that the next line starts with a full nozzle.

Retraction is triggered only when the slicer decides it is needed. Most slicers skip it for short travels or travels that stay inside the part, because every retraction costs time and wears the filament.

Several related techniques reduce the work that retraction must do. Coasting stops extrusion a fraction of a millimeter before the end of a path and lets residual pressure finish the line, while wiping moves the nozzle back over the last printed segment to clean the tip. Z hop lifts the nozzle during travel so it does not drag across the surface, although it can increase stringing slightly because the strand has farther to stretch. On multi-material machines, a separate filament change retraction of 15 mm or more parks the strand above the melt zone before a tool or color switch.

Key retraction parameters

Retraction is controlled by several related settings, and each solves a different part of the oozing problem. The table summarizes the most important ones and their typical ranges.

ParameterTypical rangeWhat it controls
Retraction distance0.4 to 7 mmHow far filament is pulled back
Retraction speed25 to 60 mm/sHow fast the pullback happens
Extra prime amount0 to 0.2 mm³Additional material after unretraction
Minimum travel0.5 to 2 mmShortest travel that triggers a retraction
Z hop0.1 to 0.6 mmNozzle lift during travel
Wipe and coasting0.2 to 1 mmEnding a path early or wiping the nozzle
Main retraction settings and their effect

Distance and speed matter most. Too short a distance leaves pressure in the nozzle and causes strings; too long a distance pulls molten plastic into the cooler heat break, where it can solidify and cause a heat creep clog. Speed that is too high can make the extruder gear grind the filament.

Direct drive and Bowden extruders

The extruder layout is the single biggest factor in choosing a retraction distance. A direct drive extruder sits on the print head, so the filament path to the nozzle is short and stiff and small movements take effect immediately. A Bowden extruder pushes filament through a long PTFE tube, and the slack and compression in that tube absorb part of every retraction.

Extruder typeDistanceSpeedNotes
Direct drive0.4 to 2 mm25 to 45 mm/sShort, precise moves
Bowden3 to 7 mm35 to 60 mm/sTube slack requires longer moves
Direct drive with pressure advance0.4 to 1 mm30 to 45 mm/sPressure already managed in firmware
Typical retraction starting points by extruder type

Pressure advance, called linear advance in some firmware, models melt pressure throughout every move. When it is calibrated, the nozzle pressure is already low at the end of a line, so the required retraction distance drops noticeably.

Retraction by filament type

Each material reacts differently to retraction because viscosity, stiffness and stickiness vary. Flexible and stringy filaments need special care.

FilamentStringing tendencyRetraction approach
PLALowStandard settings work well
PETGHighModerate distance, lower temperature, slower travel acceptable
ABS and ASAModerateStandard settings, good cooling control
TPUHigh, but sensitive to pullbackMinimal or disabled retraction, slow speed
NylonHigh when wetDry filament first, then tune
Retraction behavior of common filaments

Moisture is a hidden factor. Wet filament releases steam in the nozzle, which raises pressure and produces strings that no retraction setting can fix; drying the spool is the correct first step.

Tuning retraction and avoiding common mistakes

Calibration uses a retraction test print, typically two or more towers separated by a gap, printed while the slicer or firmware changes distance or speed at set heights. The best setting is the shortest distance that produces clean travel without strings, since every extra millimeter adds wear and clog risk.

  • Tune temperature first: a nozzle that is too hot produces strings at any retraction distance.
  • Change one value at a time, usually distance in steps of 0.2 to 0.5 mm on direct drive and about 1 mm on Bowden.
  • Do not exceed the melt zone: large distances on all-metal hot ends are the classic cause of heat creep.
  • Watch for under-extrusion after travel, which signals that the unretraction or prime amount is too small.
  • Avoid excessive retraction counts on one filament segment; most slicers offer a maximum retraction count per length to limit grinding.

Travel settings complement retraction. Combing or avoid crossing walls keeps travel inside the model so strings land in hidden areas, and a well-placed seam position hides the small marks left where each retraction starts and ends.

In simple terms

A filament 3D printer draws with melted plastic, a little like a hot glue gun. When the nozzle moves from one spot to another, warm plastic keeps dripping out. That leaves thin hairs across the print.

Retraction stops the drip. Just before the nozzle moves, the printer pulls the plastic strand back a little. The pressure drops, and the nozzle stays clean during the move. Then it pushes the strand forward again and keeps printing. Too little pullback leaves strings; too much can cause a jam.

A practical example

A maker prints a set of PETG chess pieces on a printer with a Bowden extruder. The first batch is covered with fine strings between the tall pieces, and the bishop tops show blobs where the nozzle left each layer. The slicer profile uses a retraction distance of 2 mm, a value copied from a direct drive printer.

The maker first dries the filament and lowers the nozzle temperature by 10 °C. Then a retraction tower is printed with distance rising from 3 to 7 mm in 1 mm steps at 45 mm/s. The strings disappear at 5 mm, while 7 mm causes thin gaps at the start of lines. With 5 mm, travel kept inside the model and a rear seam position, the next batch comes out clean and needs no trimming.