3D Printer Retraction Settings That Fixed My Spaghetti Prints
- Retraction duration
- ms
- Result
- Retraction distance
- 5 mm
- You entered
- Retraction speed
- 45 mm/s
- You entered
If your 3D prints look like tangled spaghetti instead of finished objects, the fix is almost always your retraction settings. Retraction controls how much filament is pulled back into the nozzle before a travel move, and getting it right eliminates stringing, blobs, and the cobweb-like mess that ruins prints. This article explains what retraction is, how to tune it, and what settings turned my prints from spaghetti into things I’d give as gifts.
Formula
The key formula for retraction is the volume of filament pulled back: Volume = π × (filament radius)² × retraction distance. For a standard 1.75 mm filament, the radius is 0.875 mm, so the volume is π × (0.875)² × distance. The retraction duration is simply distance divided by speed, multiplied by 1000 to get milliseconds.
Variables:
- Retraction distance (t) – mm of filament pulled back before a travel move.
- Retraction speed (s) – mm/s at which the filament is pulled back.
- Nozzle temperature (n) – °C, affects viscosity and stringing.
- Nozzle diameter (d) – mm, affects flow and required retraction.
Worked Example
Using the defaults from the calculator: retraction distance = 5 mm, speed = 45 mm/s, nozzle temperature = 200°C, nozzle diameter = 0.4 mm.
- Volume pulled back: π × (0.875)² × 5 = 3.14159 × 0.765625 × 5 = 12.04 mm³
- Retraction duration: (5 / 45) × 1000 = 111.11 ms
So the calculator shows 12.04 mm³ of filament is retracted over 111 ms. This matches the formula output.
What Causes Spaghetti Prints?
Spaghetti prints usually come from one of three issues: stringing, poor bed adhesion, or layer separation. Stringing happens when molten filament leaks out of the nozzle during travel moves, leaving thin strands. Poor adhesion means the print lifts off the bed and the nozzle drags it around. Layer separation occurs when the nozzle is too far from the previous layer, so layers don’t bond. Retraction directly addresses stringing, but it also indirectly helps adhesion because less oozing means less buildup on the nozzle that can knock the print off.
How Retraction Works
Retraction is a feature in your slicer that pulls the filament back into the hotend before the nozzle moves to a new location. This creates a slight vacuum that prevents molten plastic from dripping out. After the move, the filament is pushed back forward, resuming flow. The two main parameters are distance (how much filament to pull back) and speed (how fast to pull it). Too little distance or speed causes stringing; too much causes clogs or under-extrusion at the start of the next segment.
Choosing the Right Retraction Settings
There is no one-size-fits-all setting because it depends on your extruder type. A direct-drive extruder (motor mounted right above the hotend) needs only 0.5–2 mm of retraction. A Bowden extruder (motor mounted on the frame, filament pushed through a long tube) needs 4–8 mm. Start with the slicer’s default, then print a retraction test tower (a small model with increasing retraction distance at each step). Look for the section where no strings appear but the print still looks solid.
- Direct drive: 0.5–2 mm, speed 30–50 mm/s
- Bowden: 4–8 mm, speed 40–60 mm/s
- PLA: lower temperature (190–210°C) reduces stringing
- PETG: more stringing, may need higher retraction or lower temperature
- TPU: flexible filament can jam if retracted too much, use minimal retraction
Common Mistakes and Misconceptions
One common mistake is thinking more retraction is always better. Too much retraction can pull molten filament into the cold zone of the hotend, causing a clog. Another mistake is ignoring temperature – printing too hot makes filament more fluid and stringy. Also, many users forget to enable “retract on layer change” or “wipe while retracting” in the slicer; these features help clean the nozzle. Finally, some think retraction fixes all adhesion issues, but it doesn’t – level your bed and use proper first-layer settings.
Beyond Retraction: Other Fixes for Stringing
Retraction is the first line of defense, but other settings also matter. Increase travel speed so the nozzle spends less time over the print. Enable “z-hop” to lift the nozzle slightly during travel, preventing it from hitting printed parts. Lower nozzle temperature by 5–10°C if you see stringing. Also, dry your filament – moisture causes popping and stringing. A filament dryer or a food dehydrator can help, but even storing filament in a sealed bag with desiccant makes a difference.
Costs and Safety Considerations
Tuning retraction costs nothing but time and a little filament. A test tower uses about 10–20 grams of filament, which is a few cents. Safety-wise, never leave a 3D printer unattended while it’s running. Ensure your printer has thermal runaway protection (most modern ones do). Keep the area well-ventilated, especially when printing ABS or PETG, as they emit fumes. Always follow the manufacturer’s guidelines for your specific printer.
Frequently Asked Questions
Why is my print still stringy even with retraction on?
Check your retraction distance and speed first. If you’re using a Bowden setup, try increasing distance by 1 mm at a time. Also lower your nozzle temperature by 5°C and increase travel speed. If it persists, dry your filament – moisture is a common cause of stringing.
What is a good retraction distance for PLA?
For a direct-drive extruder, start at 1 mm. For Bowden, start at 5 mm. Print a test tower and adjust from there. PLA is less stringy than PETG, so you may need less retraction.
Can retraction cause under-extrusion?
Yes, if retraction distance is too high or speed too fast, the nozzle may not refill quickly enough after the move, causing gaps. Reduce distance or speed, and ensure your slicer’s “extra restart distance” is set to 0 or slightly positive.
Does retraction affect print strength?
Not directly, but if retraction causes under-extrusion, layers may not bond well, weakening the part. Also, too many retractions can grind the filament, causing inconsistent flow. Keep retraction minimal to avoid these issues.
Should I use z-hop with retraction?
Z-hop lifts the nozzle during travel, which can prevent it from hitting the print. It’s useful for tall prints or when printing with PETG, but it can cause stringing if the nozzle oozes while lifted. Enable it only if you see the nozzle dragging.
How do I know if my retraction is too high?
Signs include clicking sounds from the extruder, filament grinding, or a clogged nozzle. If you see these, reduce retraction distance by 0.5 mm and speed by 5 mm/s. Also check for “heat creep” – if the filament softens too early, it can jam.
Related
Formula used
in t | Retraction distance | mm | 5 | 0 in s | Retraction speed | mm/s | 45 | 0 in n | Nozzle temperature | °C | 200 | 0 in d | Nozzle diameter | mm | 0.4 | 0.1 out vol | Filament pulled back (volume) | mm³ | (3.14159 * (1.75/2)^2) * t | 2 out time | Retraction duration | ms | (t / s) * 1000 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.