Thin plastic hairs between your parts are the classic sign of weak retraction. But too much retraction is just as annoying: gaps, blobs and a nozzle that clogs when you least expect it. The good news? Two numbers, retraction length and retraction speed, do most of the work.
The short answer: start with a short retraction on a direct drive extruder (roughly 0.4 to 2 mm) and a longer one on a Bowden setup (roughly 2 to 6 mm), at a moderate speed, then change one value at a time until the strings disappear.
Let’s look at what each setting does, where to start and how to dial it in without guessing.

What Does Retraction Do?
When the nozzle has to travel across an empty gap, melted plastic can keep leaking out. Retraction stops that. The extruder pulls the filament back a little to relieve the pressure in the nozzle, the head moves, and then the filament is pushed forward again before printing resumes.
If the retraction is too weak, plastic oozes during the move and leaves strings, which is the problem we cover in our 3D print stringing guide. If it’s too strong, you pull air or soft plastic into the wrong places and get new problems. That’s why the right values are a balance, not a maximum.
The Retraction Settings That Matter

Retraction Length (Distance)
This is how much filament the extruder pulls back. It depends mostly on your extruder type. Direct drive setups need very little because the gear sits right above the nozzle. Bowden setups need more, because the filament has to travel through a tube before the pull reaches the nozzle.
For reference, Prusa’s guide says the retraction length should be a maximum of 2 mm on the MK2.5/S and MK3/S/+ (direct drive), while the Bowden-based MINI presets use a longer default of 3.2 mm. You can read it in the Prusa Knowledge Base article on stringing and oozing.
Too short and you get strings. Too long and you risk gaps, blobs and filament grinding. A very long retraction can also pull molten plastic up into the cold zone, which feeds heat creep clogs.
Retraction Speed
This is how fast the filament is pulled back. Too slow and plastic keeps oozing while the filament moves. Too fast and the extruder gear can chew the filament or the motor can skip steps. Prusa’s article makes the same point: a higher value helps stringing, but if it’s too high the motor may skip steps.
If you hear clicking at every retraction, speed is one suspect. Our extruder clicking guide shows the other causes.
Minimum Travel and Retraction Count
Retracting on every tiny move isn’t necessary. Most slicers let you skip retraction on short moves (called Retraction Minimum Travel in Cura and Minimum travel after retraction in PrusaSlicer). That reduces wear on the filament and avoids blobs on small details.
Z Hop and Retract on Layer Change
Z hop lifts the nozzle slightly during travel so it doesn’t drag across the print. Prusa notes that a lower lift value improves stringing, and that switching it off can make the nozzle hit the print. So treat it as a trade-off and keep it small.
Retract on layer change adds a retraction between layers. Turn it on if you see an ooze mark at the layer change, and leave it off if you don’t.
Recommended Starting Ranges
These are starting points, not rules. Your filament, nozzle temperature, extruder and tube length all move the best value.
| Setup | Length (starting range) | Speed (starting range) | What moves the number |
|---|---|---|---|
| Direct drive, rigid filament such as PLA or PETG | About 0.4 to 2 mm | About 25 to 45 mm/s | Extruder gearing, filament brand, how wet the spool is |
| Bowden, rigid filament | About 2 to 6 mm | About 25 to 45 mm/s | Tube length, how tight the fittings are, filament brand |
| Flexible filament such as TPU | Start at the low end of your range | Slower than for rigid filament | Filament softness, extruder type, whether the gear grinds the filament |
| Klipper firmware retraction | Set retract_length yourself (default is 0 mm) | Set retract_speed yourself (default is 20 mm/s) | Your extruder and filament |
For comparison, OrcaSlicer’s retraction test tower runs from 0 to 2 mm for most direct drive extruders and 1 to 6 mm for Bowden. Their own note says PLA or ABS with minimal oozing may only need about 0.2 to 0.4 mm. The Klipper defaults come from the Klipper config reference.
Please note: the best value is the shortest one that gives a clean print. The OrcaSlicer wiki says the same about its test tower.
How to Tune Retraction Step by Step
Don’t change five settings at once. Here’s a simple routine:
- Dry the filament first. Wet filament strings no matter what retraction you set. Our guide to drying filament shows how.
- Print at a temperature inside the range printed on the spool. Hotter plastic is runnier, so check the filament maker’s range before you add more retraction.
- Run a retraction test. The OrcaSlicer retraction test generates a tower, and each section is printed with a different retraction length. Pick the section that looks cleanest.
- Change length in small steps. OrcaSlicer’s tower uses steps of 0.1 mm for direct drive and 0.2 mm for Bowden, which is a good guide.
- Then tune speed. Change it in steps of about 5 mm/s and watch for grinding or gaps.
- Save the result per filament. Different brands and materials often want different values.

Extra tip: if you run Klipper, tune pressure advance first. OrcaSlicer’s calibration guide runs retraction after pressure advance and flow ratio, because both change the pressure in the nozzle. For general print calibration, see our 3D printer calibration guide.
Where to Find the Settings in Your Slicer
Names change a little from slicer to slicer, so here’s a quick map.
| Slicer | Where it lives | Main settings |
|---|---|---|
| Cura | Travel category | Enable Retraction, Retraction Distance, Retraction Speed, Retraction Minimum Travel, Z Hop When Retracted |
| PrusaSlicer | Printer Settings, Extruder 1 | Length, Lift Z, Retraction speed, Minimum travel after retraction |
| OrcaSlicer | Printer settings, Extruder | Length, Z hop, speeds, plus a built-in retraction test under Calibration |
Retraction also interacts with print speed. Faster travel moves give the nozzle less time to ooze, so a quick travel speed can help. Just don’t push the speeds past what your machine handles well. Our guide to 3D printer speed explains how fast is too fast.
Common Retraction Mistakes
- Copying a profile from a different printer. An extruder with a long tube needs different values than one without.
- Changing several settings at once. You won’t know which one fixed (or broke) the print.
- Using a huge retraction to hide a wet spool. Dry the filament first.
- Running slicer retraction and firmware retraction together. Pick one, or the printer retracts twice.
- Ignoring a partial clog. If retractions suddenly start failing on a profile that worked, check the hotend before touching the numbers.
None of these is a disaster. They just waste filament and time, and every one is easy to avoid.
What Wrong Retraction Looks Like
| Symptom | Likely cause | What to try |
|---|---|---|
| Strings or hairs between parts | Retraction too short or too slow, wet filament or a hot nozzle | Raise length in small steps, dry the filament, stay within the filament’s temperature range |
| Gaps right after a travel move | Retraction too long or too fast | Lower length and speed; see our guide to gaps in 3D prints |
| Blobs or zits | Too much retraction, or pressure building up in the nozzle | Reduce retraction; read about blobs and zits and PETG blobbing |
| Clicking or grinding at retractions | Speed too high, or a partial clog | Lower speed and check the hotend |
| Repeated clogs | Long retractions pulling soft plastic into the cold zone | Shorten retraction and check cooling |
Retraction Settings: FAQs
Should I turn retraction off?
Usually not. If a part prints in one continuous path, like a vase, retraction rarely triggers anyway. With very flexible filament, a lower setting or switching it off can help if the extruder grinds the filament.
What’s the difference between slicer and firmware retraction?
With slicer retraction, the slicer writes the retraction moves into the G-code. With firmware retraction, the slicer sends G10 and G11 commands and the printer firmware decides the length and speed. Klipper’s [firmware_retraction] section is the place to set it.
Why do I still get stringing after tuning?
The usual suspects are wet filament, a nozzle that’s too hot, a loose nozzle or fitting, or travel moves that are too slow. Fix those before you add more retraction.
Does PETG need different retraction than PLA?
Often, yes. Many owners find PETG stringier, so it can need a bit more care with temperature and drying. Test each filament with its own tower rather than copying a PLA profile.
In a nutshell, pick a sensible length for your extruder type, change one value at a time and let a retraction test tell you when to stop!

Recommended Reading
Convert STL to Gcode: 4 Slicer Steps for Any 3D Printer
Your printer can't read an STL file. A slicer turns it into G-code in four steps: pick a profile, import, set the basics and slice. Follow along and print!
3D Printing Elephant Foot: How to Fix Flared First Layers
Fix 3D printing elephant foot with the right Z offset, bed temperature, slicer compensation and a small chamfer. Here's how to get clean edges.
PETG vs ABS: Which 3D Printing Filament Should You Choose?
PETG vs ABS compared on printing ease, heat resistance, strength, fumes and finishing. Find out which filament suits your printer and your project.