Troubleshooting

Top Layer Problems in 3D Printing: Gaps, Pillowing, and Holes

By Owen Drysdale·Last updated ·17 min read

Gaps in the top layer, pillowing, and infill showing through are top-surface failures with distinct causes. Here's how to read each one and the specific fix — top layer count, cooling, flow, or temperature.

The top layer is where a 3D print either looks finished or looks broken. When it goes wrong, you get one of a handful of distinct failures: gaps between the top lines, pillowing (bumps and holes over the infill), the infill pattern showing through a surface that should be solid, or a top that simply never closes out. Each of these has a different cause, and the fixes don't overlap much — so the first job is reading which one you actually have. This guide walks through the top-surface failure patterns, what causes each, and the specific settings that resolve them.

Top-layer problems are one of the most common failures people bring to a diagnosis, and they're frequently misread — "gaps in the top" gets blamed on under-extrusion when it's actually too few top layers, and "pillowing" gets blamed on the filament when it's actually cooling. For the broader catalog of failure types and how top-layer issues fit alongside the rest, the master diagnostic guide is the right starting point. This piece focuses on the top surface specifically.

As an Amazon Associate, WhyItFailed earns from qualifying purchases. We only recommend products we believe genuinely help.

Quick summary

The top-surface failures and their most common fix, in order of how often they show up:

  1. Gaps between top lines — usually too few top layers, or flow rate slightly low. Add top layers first.
  2. Pillowing (bumps/holes over infill) — insufficient cooling plus too few top layers. More fan, more top layers.
  3. Infill showing through — not enough top solid layers to bridge the infill gaps. Add top layers and/or increase top infill density.
  4. Top never closes / open top — bridging failure over sparse infill, or the print ran out of filament / clogged near the end.
  5. Rough or lumpy top — over-extrusion or pressure-advance / flow tuning, the opposite problem.

The rest of this article explains how to tell these apart and the specific numbers for each.

How to read a top-layer failure

Before changing settings, identify which failure you have. They look superficially similar — "something is wrong with the top" — but the evidence distinguishes them:

Are there gaps between otherwise-flat lines? If the top surface is flat and at the right height but you can see thin gaps between the individual top lines, that's a flow or top-layer-count issue, not a cooling issue. The lines are landing in the right place; there just isn't quite enough plastic to merge them.

Are there bumps, holes, or a quilted texture? If the top looks lumpy — raised bumps with small holes between them, like a quilted pillow — that's pillowing, and it's a cooling-plus-support problem. The top layers are sagging into the infill gaps before they cool.

Can you see the infill pattern through the top? If the diagonal or grid lines of the infill are visible as a ghost pattern on the top surface, you don't have enough solid top layers to fully cover the infill. The top is technically closed but too thin.

Is the top actually open — a hole you can see into? If there's a genuine opening into the hollow interior of the print, the top layers failed to bridge across the infill, or the print ran out of plastic (empty spool, clog, or a stopped print) before finishing the top.

Is the top closed but rough/lumpy/raised? That's the opposite of under-extrusion — too much plastic, or pressure advance needing tuning. Covered at the end.

Get the identification right and the fix is usually one or two settings. Get it wrong and you'll chase the wrong dial for an hour.

Gaps between the top lines

This is the most common top-layer complaint and usually the easiest fix. The top surface is at the right height and roughly flat, but you can see thin gaps between the individual extrusion lines on the top.

The causes, in the order to check them:

Too few top layers. The single most common cause. If your slicer is set to 3 top layers and you're seeing gaps, bump it to 4 or 5. Each top layer gets a chance to fill the small gaps left by the one below it, and the cumulative effect closes the surface. The rule of thumb: top thickness should be at least 4× your layer height. At 0.2 mm layers, that's 4 top layers (0.8 mm); at 0.28 mm layers, you may need 5.

Flow rate slightly low. If adding top layers helps but doesn't fully close the gaps, your flow rate (extrusion multiplier) may be 2–5% low. Run a flow calibration: print a single-wall test cube, measure the wall with a digital caliper 6 inch metric, and adjust flow until the measured wall matches the slicer's line width. Most printers are within a few percent from the factory, but a slightly low flow shows up first on top surfaces.

Top infill line width too narrow. Some slicers let you set a separate line width for the top surface. A slightly wider top line width (105–110% of nozzle diameter) closes gaps more reliably because each line overlaps its neighbor more. This is a one-setting fix in Bambu Studio, OrcaSlicer, and PrusaSlicer.

Monotonic top surface pattern not enabled. The "monotonic" top infill pattern lays top lines down in a consistent direction so they pack against each other uniformly. Without it, the lines can be deposited in an order that leaves gaps. Most modern slicers default to monotonic; if yours doesn't, enable it — it's the single best top-surface-quality setting and costs nothing.

Start with top layers, then monotonic pattern, then flow. Ninety percent of "gaps in the top" cases resolve at step one.

Pillowing: bumps and holes over the infill

Pillowing is the quilted, lumpy top surface — raised bumps with small holes between them, concentrated over the infill where the top layers had to bridge across gaps. It's caused by the top layers sagging into the infill cavities before they cool and solidify.

Two things cause pillowing, and you usually need to address both:

Insufficient cooling. The top layers bridge across the gaps in the infill below. If the part-cooling fan isn't cooling those bridged sections fast enough, they sag into the gaps and cool in a lumpy shape. Increase the part-cooling fan to 100% for the top layers specifically. On materials that normally run low fan (PETG, ABS), this is a tradeoff — more fan on the top helps pillowing but can hurt layer adhesion, so increase gradually.

Too few top layers. The same fix as gaps. More top layers means each successive layer has a flatter foundation to build on, so by the time you reach the visible top surface, it's flat. Five top layers nearly always eliminates pillowing that four couldn't fix.

Infill density too low to support the top. If your infill is at 10% and you're getting pillowing, the top layers have to bridge large gaps with little support. Raising infill to 15–20% gives the top a denser foundation. Alternatively, many slicers have a "top surface skin" or "ironing" support feature, or you can increase only the infill density near the top via gradual infill settings.

For PLA, the fix is almost always "100% fan on top layers + 5 top layers." For PETG, it's "5 top layers + 20% infill + a modest fan bump," because you can't run PETG at 100% fan without losing layer bonding. A digital indoor hygrometer is worth having on the bench too — wet PETG and wet PLA both pillow worse because the moisture disrupts clean bridging on the top layers.

Infill showing through the top surface

When you can see the diagonal or grid pattern of the infill as a ghost image on an otherwise-closed top, the top is too thin to fully hide the structure beneath it. The top closed, but you're seeing the shadow of the infill through too few solid layers.

The fix is straightforward:

Add top solid layers. This is the primary fix. Go from 3 to 5 top layers. The extra solid layers fully obscure the infill geometry. Top thickness should be at least 4–5× layer height to reliably hide infill; if you're running thick 0.28 or 0.32 mm layers for speed, you may need 5–6 top layers.

Increase infill density. A denser infill (20% instead of 10%) means smaller gaps for the top to bridge, so fewer top layers are needed to hide the pattern. This trades print time and material for a cleaner top with fewer layers.

Enable "monotonic" and a top-surface-specific pattern. Same as the gaps fix — a consistent top pattern hides the infill more cleanly than a default pattern that changes direction.

The relationship to remember: top thickness and infill density trade off against each other. Denser infill needs fewer top layers; sparser infill needs more. If you print everything at 10% infill for speed, just budget 5 top layers as your default and the infill-showing-through problem disappears.

Top never closes (open top / bridging failure)

This is the most alarming version — a genuine hole into the hollow interior of the print, or a top that's clearly unfinished. There are two very different causes, and they need different responses.

Bridging failure over sparse infill. If the infill is very sparse (5–10%) and the gaps between infill lines are large, the first top layer has to bridge a long unsupported span. If it can't, the bridged lines droop and the top never establishes a flat foundation to build on. Fixes: raise infill density to 15–20% (shorter bridges), increase cooling on the first top layer (so bridged lines solidify before sagging), and slow the top-layer print speed to 30–40 mm/s so the bridges have more time to cool in place.

The print ran out of plastic or clogged near the end. If the top is open because extrusion simply stopped — the spool ran empty, a clog developed, or the print was halted — that's not a top-layer settings problem. It's a supply or hardware problem that happened to show up at the top because that's where the printer was when it failed. Check: was there filament left on the spool? Does the nozzle extrude cleanly now? Did the print actually complete, or stop early? If extrusion stopped mid-print, the nozzle clog guide and the under-extrusion guide cover the supply-side causes.

The distinction matters: a bridging failure is a slicer-settings fix; a run-out or clog is a hardware/supply fix. If the top is open and the layers below it look perfect, suspect supply (it failed suddenly). If the top is open and the last few layers below it look progressively worse, suspect bridging or a developing clog (it degraded gradually).

Ironing problems: fraying, dragging, and gaps

Ironing is a slicer feature that runs the hot nozzle back over the finished top surface with little or no extrusion to smooth it flat. When it works, it produces a glassy top. When it goes wrong, you get specific artifacts:

Fraying or dragging. The nozzle drags partially-solidified plastic across the top, leaving torn-looking streaks. Usually caused by ironing speed too high or ironing flow too high. Reduce ironing flow to 5–10% and ironing speed to 20–30 mm/s. The iron pass should barely deposit plastic — it's reflowing the existing surface, not adding a new layer.

Gaps the ironing didn't close. Ironing smooths but doesn't add much material, so if the underlying top layer had gaps, ironing won't fill them — it just polishes the gappy surface. Fix the underlying top layer first (top-layer count, flow), then iron.

Ironing only on the very top. Make sure ironing is set to "topmost surface only," not "all top surfaces." Ironing every internal top surface wastes enormous print time and can cause artifacts on surfaces that get covered later anyway.

Ironing is a finishing touch, not a fix for a bad top layer. If your top surface has gaps or pillowing, solve those first; ironing a flawed surface just gives you a smooth flawed surface.

Rough, lumpy, or raised top (the over-extrusion case)

The opposite problem: the top is fully closed but rough, with raised lines, visible bumps where each line started, or a generally lumpy texture. This is usually over-extrusion or a pressure-advance / linear-advance tuning issue.

  • Flow rate too high. If flow is 3–5% high, the top accumulates excess plastic with nowhere to go, raising the surface into ridges. Run a flow calibration and reduce the multiplier.
  • Pressure advance / linear advance untuned. Bumps at the start of each line, or raised seams, point to pressure advance needing calibration. Both Bambu Studio and OrcaSlicer have built-in pressure-advance calibration prints; running one takes ten minutes and fixes a class of top-surface and seam artifacts.
  • Z-offset too low. If the whole print is being squished (first layer too low, carried up through the print), the top can end up over-packed. Verify your first layer looks correct — the first-layer guide covers reading first-layer squish.

This is the rarer top-surface failure but worth knowing, because the fix is the opposite of the gaps fix — less flow, not more. Adding top layers to a lumpy over-extruded top makes it worse.

Material and setting reference

A scan-able summary of the top-layer settings that matter, by material:

Material Top layers Top fan Infill min Notes
PLA 5 100% on top 15% Most forgiving; high fan fixes most pillowing
PLA+ 5 100% on top 15% Same as PLA
PETG 5 40–60% on top 20% Can't run 100% fan; lean on top-layer count + infill
ABS / ASA 5–6 20–30% on top 20% Low fan means more top layers + denser infill
TPU 4–5 30–50% on top 15% Slow top speed; soft material bridges poorly
PC 6 10–20% on top 25% Dense infill compensates for minimal cooling

The pattern across materials: the less cooling a material tolerates, the more it relies on top-layer count and infill density to get a clean top. PLA can brute-force a good top with 100% fan; ABS has to do it structurally with more layers and denser support.

What you may need

Products that genuinely help diagnose and fix top-layer problems. We earn a small commission if you buy through these links at no additional cost to you.

  • digital caliper 6 inch metric — flow calibration is the foundation of every top-surface fix. Measure a single-wall cube to set flow correctly.
  • Sunlu S4 filament dryer — wet PLA and PETG pillow and bridge worse. Drying eliminates a class of top-surface problems that no setting fixes.
  • digital indoor hygrometer — measure storage humidity; hygroscopic materials degrade top-surface quality before they show obvious stringing.
  • feeler gauge set metric — useful for verifying nozzle height and first-layer squish when a lumpy top traces back to Z-offset.
  • 99 percent isopropyl alcohol — a clean nozzle tip and bed remove variables before you start changing top-layer settings.

Top-layer diagnostic checklist

When the top surface fails, work through these in order:

  1. Identify the pattern. Gaps between flat lines, pillowing bumps, infill ghost, open hole, or lumpy/raised? The fix depends entirely on which.
  2. Add top layers to 5 if it's gaps, pillowing, or infill-showing-through. The single highest-leverage fix for three of the five failure types.
  3. Enable monotonic top pattern if it isn't already. Free quality improvement.
  4. Increase top-layer fan for pillowing (100% on PLA, gradual on PETG/ABS).
  5. Raise infill to 15–20% if the top is bridging over sparse infill.
  6. Run a flow calibration if gaps persist after adding top layers, or if the top is lumpy (reduce flow in that case).
  7. Check for run-out / clog if the top is genuinely open and the layers below were fine — that's a supply problem, not a settings problem.
  8. Snap a photo and use the WhyItFailed AI diagnosis tool if the pattern doesn't match anything above. The free first diagnosis examines the specific top-surface pattern and tailors fixes to your printer, material, and slicer.

FAQ

Why does my 3D print have gaps in the top layer?

Almost always too few top layers. Increase top solid layers from 3 to 5 — top thickness should be at least 4× your layer height. If gaps persist, enable the "monotonic" top surface pattern and check that your flow rate isn't 2–5% low (verify with a single-wall calibration cube and a caliper). Adding top layers resolves the large majority of top-gap cases.

What is pillowing in 3D printing?

Pillowing is the lumpy, quilted top surface — raised bumps with small holes between them, concentrated over the infill. It's caused by the top layers sagging into the infill gaps before they cool. The fix is more cooling (100% part fan on the top layers for PLA), more top layers (5 instead of 3), and denser infill (15–20%) so the top has less distance to bridge.

Why can I see the infill through my top layer?

You don't have enough solid top layers to hide the infill geometry. Increase top layers to 5, or increase infill density so the top has smaller gaps to cover. Top thickness and infill density trade off — denser infill needs fewer top layers, sparser infill needs more. At 10% infill, budget 5 top layers as a default.

Why didn't the top of my print close at all?

Two possibilities. If the layers below the open top look perfect, the print likely ran out of filament, clogged, or was stopped — a supply problem, not a settings problem. If the layers below look progressively worse, it's a bridging failure over sparse infill: raise infill to 15–20%, increase cooling on the first top layer, and slow the top print speed to 30–40 mm/s so the bridges solidify before sagging.

How many top layers should I use?

A good default is 5 top layers, or whatever gives you at least 0.8–1.0 mm of total top thickness (4–5× your layer height). Three top layers is the common slicer default and is where most top-surface problems originate. Going to 5 fixes gaps, pillowing, and infill-showing-through in one change, at the cost of a small amount of print time.

Why is my ironing fraying or dragging the top surface?

Ironing flow or speed is too high. The iron pass should barely deposit plastic — reduce ironing flow to 5–10% and ironing speed to 20–30 mm/s. If the nozzle is dragging partially-solid plastic, it's depositing too much. Also confirm the underlying top layer is clean first; ironing polishes the existing surface but won't fill gaps that were already there.

Does wet filament cause top-layer problems?

Yes. Wet PLA and especially wet PETG bridge and pillow worse because moisture flashing to steam disrupts clean extrusion on the bridged top sections. If your top surfaces degraded on a spool that printed fine weeks ago, dry the filament (4–6 hours at 55–65°C) before changing slicer settings. The filament drying guide covers per-material drying schedules.

Why is my top layer rough and lumpy instead of having gaps?

That's the opposite problem — over-extrusion, not under-extrusion. Flow rate is likely 3–5% high, or pressure advance needs tuning. Run a flow calibration and reduce the multiplier, and run your slicer's pressure-advance calibration print. Don't add top layers — that makes a lumpy over-extruded top worse, not better.

Is a top-layer gap the same as under-extrusion?

Related but not identical. General under-extrusion shows up across the whole print — gappy walls, weak layers, holes everywhere. Top-layer gaps that appear only on the top with otherwise-solid walls are usually a top-layer-count or top-flow issue, not whole-print under-extrusion. If walls are also gappy, see the under-extrusion guide; if only the top is affected, it's a top-layer settings issue.


If your top-surface problem doesn't match any pattern here, snap a photo and run it through the WhyItFailed AI diagnosis tool. The free first diagnosis examines the specific top-layer pattern — gaps, pillowing, infill ghosting, open bridging, or over-extrusion — and tailors fixes to your printer, material, and slicer. Top-layer failures that look similar from across the room often have opposite fixes (more flow vs less, more fan vs structural support), and matching the exact pattern is what gets you the right one.