GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

Troubleshooting guide

How to avoid bubbles in 3D printing

Bubbles in 3D printing are not one defect. They are three: steam pockets in filament, trapped air in resin, and gas pulled in by a bad melt zone. This page is for engineers and buyers who need to tell those apart before they reprint a part. Read it and you can pick the right fix in one pass.

FDM + SLA + resin12-hour DFM reply3-5 day shipping
3D printed part inspected for bubbles in 3D printing
Symptom check

Bubbles in 3D printing: symptom, cause, fix

Match the look of the defect before you change any setting.

SymptomLikely causeAction
Popping sound, steam at nozzleWet filament, 0.3-0.8% moistureDry 4-6 h at 60-80 °C
Small voids, glossy wallsFlow too high, over-extrusionCut flow 2-3%, re-check wall
Foamy surface, random pitsNozzle too cool for speedRaise 5-10 °C or slow 20%
Air gap under a resin skinPrint lifted too fastDrop lift speed 30-40%
Trapped spheres in clear resinNo rest time, 0-10 minRest 10-30 min before cure
Bubbles only on the top layerWrong top thickness and speedMatch top skin to 0.8 mm
Bubbles after plating or paintOutgassing from porous printSeal or switch to CNC part
Same spot every printHot end leak or worn PTFEReseat nozzle, cut 5 mm tube
Mechanism

Where bubbles in 3D printing actually come from

A bubble is gas that was not supposed to be inside the part. In FDM the gas is mostly water vapor. PLA and PETG pick up moisture from air, and a spool left out for a week can hold enough to foam at the nozzle. At 200-250 °C that water turns to steam at roughly 1,600 times its liquid volume, so even 0.2% moisture shows up as popping and voids.

In resin printing the gas is air, not water. The tank holds liquid resin, the build plate pulls the part up, and fresh resin has to flow back under the cured layer before the next exposure. If the lift is fast and the layer is large, resin cannot refill in time. You get a pocket that cures empty. That is why the same model prints clean at 30 mm height and fails at 120 mm.

There is a third source that gets blamed on both: gas dissolved in the polymer. ABS and PC release volatiles when the melt sits too long at high temperature. Pellets and some filaments also carry process gas from manufacturing. That gas has to escape through the nozzle, and if it cannot, it becomes a void inside the bead.

So the first real question is not which setting to change. It is which gas you are fighting. Water needs heat and time. Air needs slower motion and a rest interval. Dissolved volatiles need a cooler, shorter melt. Pick the wrong one and you will reprint the same failure three times.

  • 1
    WaterDry the spool before touching any slicer value.
  • 2
    AirSlow the lift, add rest time, warm the vat.
  • 3
    VolatilesLower nozzle temperature, shorten dwell time.
FDM

Filament moisture and melt-zone voids

Dry the filament first, always. PLA dries in 4 hours at 45-50 °C. PETG needs 5-6 hours at 65 °C. Nylon and PC need 8-12 hours at 70-80 °C. Use a dryer with a lid, not an oven that swings 20 °C. Weigh the spool before and after. A 1 kg spool that loses 3-5 g has given up real water.

Keep it dry while printing. A dry box at 15-20% relative humidity is enough for a 20-hour print. If you cannot control that, print the wet-prone material in one session and put it straight back. Every hour in room air adds back a little, and long prints show it near the end.

Then look at the melt zone. Nozzle temperature that is too low for the flow rate leaves unmelted polymer that tears and traps gas. As a starting rule, if you print 0.2 mm layers at 80 mm/s with a 0.4 mm nozzle, stay at the top of the material window, not the bottom. Raise 5-10 °C rather than pushing the flow harder.

A worn nozzle or a leaking hot end pulls air into the melt. Check the nozzle bore with a 0.4 mm pin. If it is oval after 200 hours, replace it. Reseat the nozzle against the heat break while hot, at 240-250 °C for PETG, and confirm no filament oozes from the threads. A 5 mm cut on the PTFE tube removes the deformed end that causes the same leak.

  • 1
    DryPLA 4 h / 45-50 °C; Nylon 8-12 h / 70-80 °C.
  • 2
    StoreDry box at 15-20% RH during the print.
  • 3
    Hot endReplace an oval nozzle, reseat while hot.
SLA and DLP

Trapped air and outgassing in resin

Resin bubbles form in two places: inside the tank during the print, and inside the part during post-processing. The first is a flow problem. The second is a curing problem. They look different. Flow voids are flat pockets against a layer, often on the side facing the build plate. Cure bubbles are round and sit near the surface or in a thick section.

Fix the flow side with slower motion and rest. Reduce lift speed by 30-40% and add a 1-2 second rest after the lift. Lower the retract speed as well; resin is viscous, around 200-400 mPa·s at 25 °C, and it does not fill a 0.05 mm gap in 0.2 seconds. Warm the vat to 28-30 °C if the printer allows it, which drops viscosity and halves the fill time.

For thick or solid parts, hollow them with two drain holes of 2.5-3 mm. Resin trapped inside a closed shell outgasses for hours and shows up as bubbles on the outer skin after the final cure. Angle the part so the holes sit at the lowest point during printing and can drain when you lift it off the plate.

Post-cure is where a clean print picks up defects. Let the part rest 10-30 minutes before curing so absorbed gas can leave. Wash in two baths, 3 minutes each, and use clean IPA for the second one. Then cure at the resin maker's window, usually 60 °C for 30-60 minutes. Curing a wet part traps solvent that boils into bubbles.

  • 1
    HollowTwo 2.5-3 mm drain holes, lowest point at print start.
  • 2
    Rest10-30 min before cure, cover from light.
  • 3
    WashTwo IPA baths, second one clean.
Boundaries

When bubbles are a process limit, not a setting

Some geometries will never print clean. A 100 mm solid block in clear resin has no path for gas to leave and no path for light to cure the core. A tall thin wall in FDM flexes as the nozzle passes and opens gaps between beads that look like bubbles. Changing retraction will not close them.

Clear and translucent parts are the hardest case. Any void of 0.1 mm shows through, even though the same void is invisible in an opaque grey resin. If the part must be optically clear and the surface must hold Ra 0.8-1.6 μm, printing is usually the wrong process. Machining a billet gives a solid section with no voids at all.

Thick sections over 8 mm in FDM also trap gas by design. The infill cannot vent, and the top skin seals the part before the inside cools. You can print in two halves and bond them, but the joint becomes the new weak point. For a load-bearing part, that trade is rarely worth it.

We see this often on prototype housings and manifolds. The print is used to check fit, then the same geometry is cut from 6061 or 316L for the functional test. Printing and machining answer different questions, and mixing them up wastes a week.

  • 1
    Solid clear partsNo gas path and no cure path; machine instead.
  • 2
    Tall thin wallsFlex and bead gaps, not trapped air.
  • 3
    Sections over 8 mmVent by splitting, but the joint is weaker.
Deciding

If the part is a fit check and the surface does not matter, fix the print. Drying and flow tuning cost almost nothing and take an afternoon. That is the right call for a bracket, a jig or a cover that will be handled twice and then replaced.

If the part carries load, seals a fluid, or has to be optically clear, move to CNC. A machined part has no internal voids because it comes from solid stock. We hold ±0.005 mm on critical features and Ra 0.8-1.6 μm on sealing faces without a sealing coat. That removes the whole bubble question from the drawing.

If you need 50-500 units with a smooth surface and a tooling budget, vacuum casting or die casting may beat both. A silicone mold from a clean master gives parts with no layer lines and no trapped gas if the pour is degassed. For metal, die casting with proper venting handles thin walls that would trap air in a print.

The practical rule: use printing to learn the geometry, then pick the production process on function. A printed prototype that shows bubbles is telling you something about the print, not about the design. Do not redesign the part around a process defect.

  • 1
    Fit check onlyDry, tune flow, reprint.
  • 2
    Load or sealMachine from solid; no voids by nature.
  • 3
    50-500 unitsVacuum cast or die cast with venting.
Procedure

How to avoid bubbles in 3D printing: 7 steps

Run them in order. Stop as soon as the test print comes out clean.

  • 1
    1. Dry the spool and log the weightPLA 4 h at 45-50 °C, PETG 5-6 h at 65 °C, Nylon 8-12 h at 70-80 °C. Weigh before and after; expect 3-5 g loss on a wet 1 kg spool. Print from a dry box at 15-20% RH.
  • 2
    2. Print a small moisture test cube20 mm cube, 0.2 mm layers, 3 walls. Listen at the nozzle. Popping or a rough top surface means the spool is still wet, not that the slicer is wrong.
  • 3
    3. Set melt temperature to the top of the windowRaise 5-10 °C from your current value before changing flow. If popping stops but stringing starts, lower 5 °C and slow the print by 20% instead.
  • 4
    4. Trim flow and check wall thicknessCut flow 2-3%. Measure a single wall with calipers; target 0.42-0.44 mm on a 0.4 mm nozzle. Over 0.46 mm means over-extrusion and trapped gas.
  • 5
    5. Inspect the hot end and nozzleCheck the bore with a 0.4 mm pin, reseat the nozzle hot, and cut 5 mm off the PTFE tube if the end is deformed. Replace a nozzle that has run more than 200 hours.
  • 6
    6. Fix resin flow settingsCut lift speed 30-40%, add 1-2 seconds of rest after lift, and warm the vat to 28-30 °C. Hollow thick parts with two 2.5-3 mm drain holes.
  • 7
    7. Rest, wash and cure correctlyWait 10-30 minutes before curing. Two IPA baths of 3 minutes. Cure at the resin maker's temperature, usually 60 °C for 30-60 minutes, and keep the part dry.
FAQs

Bubbles in 3D printing: common questions

Can I dry filament in a kitchen oven?

Usually not well. Home ovens swing 10-20 °C and overshoot, which can soften or fuse a spool. A dedicated dryer holds 45-80 °C within a few degrees.

If you must use an oven, put a thermometer next to the spool and stay at the low end of the range. Check every 30 minutes.

Why do bubbles appear only in the last hour of a long print?

The spool has been sitting in room air and has taken moisture back. A 20-hour print can pick up enough near the outer wraps to foam.

Print from a dry box, or split the job into two sessions and dry between them.

Do clear resins bubble more than grey ones?

The gas is the same. You just see it. A 0.1 mm void is invisible in opaque grey and obvious in clear.

If the part must be clear, hollow it with drain holes and rest it before curing, or switch to machining.

Can I sand or coat a printed part to hide bubbles?

Sanding opens the voids and makes them more visible. Primer fills small ones but can outgas later under heat.

For a sealing surface, a coating is a temporary fix. A machined face holds Ra 0.8-1.6 μm with no filler at all.

What moisture level is safe for PETG?

Below about 0.2% is a good target. Most wet spools sit at 0.4-0.8% after a week in open air.

Dry 5-6 hours at 65 °C and print from a dry box. If popping stops, you were above the limit.

Should I change retraction to fix bubbles?

Rarely. Retraction affects stringing and oozing, not steam or trapped air.

Fix moisture and melt temperature first. Only tune retraction after the test cube prints clean.

Send the drawing, get a process call

Upload your file and we will tell you whether to fix the print or cut the part from solid. Quotation and DFM analysis within 12 hours.

12-hour quote±0.005 mm100% inspection

Follow

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC