Retraction Settings Calculator
Created by: Olivia Harper
Last updated:
Calculate the optimal retraction distance, speed, and Z-hop for your direct drive or Bowden extruder to eliminate stringing and oozing.
Retraction Settings Calculator
3D PrintingCalculate optimal retraction distance, speed, and Z-hop for your extruder type and material.
What is a Retraction Settings Calculator?
A retraction settings calculator computes the optimal retraction distance, retraction speed, and Z-hop height for your 3D printer based on your extruder type, Bowden tube length, material, and current stringing severity. Stringing is one of the most common print quality issues, and getting retraction right eliminates it without introducing other problems.
Retraction works by pulling filament backward in the hotend during non-printing travel moves. This relieves pressure in the melt zone so plastic does not ooze from the nozzle tip. The correct distance depends primarily on whether you have a direct drive or Bowden extruder — these two designs have fundamentally different filament path lengths.
Direct drive extruders sit directly on the printhead with a very short filament path, needing only 0.5 to 2mm of retraction. Bowden extruders use a PTFE tube that can be 300 to 600mm long, and the filament compresses within this tube during retraction. This means Bowden setups typically need 4 to 7mm of retraction distance. Getting the distance wrong in either direction causes problems — too little and you get stringing, too much and you get clogs or under-extrusion.
This calculator starts with proven baseline values for your extruder type, then adjusts for Bowden tube length, print temperature, and stringing severity to give you a tuned starting point that should be close to optimal for your specific setup.
How the Retraction Settings Calculator Works
The calculator uses a base retraction distance that depends on the extruder type: 0.8mm for direct drive and 4mm plus an adjustment for tube length for Bowden setups. It then applies a temperature adjustment factor — higher temperatures increase oozing tendency, so the distance increases by 0.5mm for every 10 degrees above 200°C.
A severity multiplier further adjusts the distance: none (0.85x), mild (1.0x), moderate (1.15x), and severe (1.3x). The retraction speed is set to 35 mm/s for direct drive and 50 mm/s for Bowden. Z-hop defaults to 0.2mm, and the wipe distance is calculated as twice the nozzle diameter.
Retraction settings formulas
Base distance (Bowden) = 4 + (tube length / 200) mm
Base distance (Direct Drive) = 0.8 mm
Temperature adjustment = max(0, (temp - 200) / 10) × 0.5
Severity multiplier: none=0.85, mild=1.0, moderate=1.15, severe=1.3
Final distance = base × (1 + temp_adjust/base) × severity_mult
Z-hop = 0.2 mm; Wipe distance = nozzle diameter × 2
Example Calculations
Example 1: Bowden PLA at 210°C with moderate stringing
Bowden tube length: 400mm. Base distance: 4 + (400/200) = 6mm. Temperature adjustment: (210-200)/10 × 0.5 = 0.5. Distance: 6 × (1 + 0.5/6) × 1.15 = 7.47mm. Speed: 50 mm/s. This is a solid starting point — print a retraction tower and fine-tune in 0.5mm increments.
Example 2: Direct drive PETG at 240°C with mild stringing
Base distance: 0.8mm. Temperature adjustment: (240-200)/10 × 0.5 = 2.0. Distance: 0.8 × (1 + 2.0/0.8) × 1.0 = 2.8mm. Speed: 35 mm/s. PETG is inherently stringy, so the temperature adjustment compensates. Consider also lowering temperature to 230°C if stringing persists.
Example 3: Direct drive TPU at 220°C with no stringing
Base distance: 0.8mm. Temperature adjustment: (220-200)/10 × 0.5 = 1.0. Distance: 0.8 × (1 + 1.0/0.8) × 0.85 = 1.53mm. Speed: 35 mm/s. TPU benefits from slower retraction speeds — some users reduce to 20-25 mm/s for more reliable results with flexible filament.
Common 3D Printing Applications
- Eliminate stringing and oozing on new printers by calculating the right retraction baseline before wasting filament on trial and error.
- Dial in retraction after switching from direct drive to Bowden or vice versa, since the required distance changes dramatically.
- Adjust retraction when changing materials, especially when switching between rigid filaments like PLA and flexible ones like TPU.
- Troubleshoot stringing that appeared after a temperature change or nozzle swap.
- Set up retraction profiles for each material in your slicer with calculated starting values.
- Upgrade decisions — see whether switching to direct drive would solve chronic Bowden stringing problems.
- Optimize Bowden tube length — shorter tubes need less retraction and produce better results.
Tips for Better 3D Printing Results
Always print a retraction test tower after entering the calculated settings. The calculator gives an optimized starting point, but every printer has slight mechanical variations that affect the ideal retraction distance. Adjust in 0.5mm increments for Bowden and 0.25mm increments for direct drive.
If you cannot eliminate stringing with retraction alone, lower the print temperature. A 5-degree reduction in nozzle temperature often has as much impact as a 1mm retraction distance increase and is a safer adjustment that does not risk clogging.
Frequently Asked Questions
What is retraction in 3D printing?
Retraction pulls the filament backward in the hotend when the nozzle travels without printing. This relieves pressure in the melt zone and prevents molten plastic from oozing out during travel moves. Without retraction, you get strings of plastic between separate parts of the print, known as stringing.
What is the difference between direct drive and Bowden retraction?
Direct drive extruders mount directly on the hotend, so the filament path is short and retraction distances are small — typically 0.5 to 2.0mm. Bowden setups use a long PTFE tube between the extruder and hotend, requiring 4 to 7mm of retraction to overcome the tube slack and filament compression.
How do I know if my retraction distance is too high?
If retraction distance is too high, you may see blobs, gaps, or under-extrusion at the start of new lines after travel. The filament gets pulled back too far and takes time to re-pressurize. With Bowden setups, excessive retraction can also pull molten filament into the cold zone causing heat creep clogs.
Does print temperature affect stringing?
Yes, higher temperatures make the filament more fluid and prone to oozing. If you have stringing despite good retraction settings, try lowering the print temperature by 5 to 10 degrees. PLA at 200 degrees strings less than at 215 degrees. Find the lowest temperature that still gives good layer adhesion.
What is Z-hop and when should I use it?
Z-hop lifts the nozzle slightly during travel moves to avoid hitting already-printed features. A typical Z-hop of 0.2 to 0.4mm prevents the nozzle from dragging across the surface. Use Z-hop for tall thin features or prints with many separate islands. Disable it for simple single-body prints to save time.
Why does TPU need different retraction settings?
TPU is a flexible material that compresses in the filament path instead of retracting cleanly. Direct drive is strongly recommended for TPU, with very short retraction distances of 0.5 to 1.0mm and lower speeds. Bowden setups struggle with TPU because the flexibility causes filament buckling in the tube.
How do I test and tune retraction settings?
Print a retraction test tower — these are freely available on Thingiverse and Printables. The tower has thin columns that force many retraction and travel moves. Start with the calculated baseline settings, then adjust distance in 0.5mm increments and speed in 5 mm/s increments until stringing is eliminated.
Sources and References
- E3D Online, retraction guidelines for V6 and Hemera extruder systems.
- Teaching Tech, retraction calibration guide and test tower methodology.
- All3DP, comprehensive retraction settings guide for direct drive and Bowden printers.
- Prusa Research, recommended retraction settings for MK3S (Bowden-like short path) and MK4 (direct drive).
- CNC Kitchen, empirical testing of retraction distance and speed on stringing performance.