Gaps in Top Layers: Why Your Top Surface Has Holes and How to Close Them

The sides of your print look clean, but the top has gaps, pinholes, or shows a faint ghost of the infill pattern through the surface. This defect has three well-documented causes, and nearly every case is fixed in the slicer. This page explains where the gaps come from, which settings to check in what order, and which edge cases resist the usual fixes.

The short answer

Gaps in top layers appear when the first solid layer has to bridge over the air pockets of the infill and sags into them, so too few solid layers never fully close the surface. According to Simplify3D's troubleshooting guide, the solid section on top should be at least 0.5mm thick, which means more layers at finer layer heights, and low infill density makes the problem worse by widening the gaps to bridge. If more top layers and denser infill do not fix it, the cause is under-extrusion, often from a nozzle temperature too low for the filament, wet filament, or a slipping extruder. The Prusa Knowledge Base adds that pattern choice matters, with rectilinear, gyroid, adaptive cubic, and support cubic giving better support to the top than grid.

Why the top surface fails when the walls look fine

A slicer does not print a part solid all the way through. According to Simplify3D's troubleshooting guide, most 3D printed parts are built as a solid shell around a partially hollow interior. At 30% infill, only 30% of the inside is plastic and the rest is air. To close the part, the slicer prints a set number of fully solid layers at the top and at the bottom. The top ones are where things go wrong.

When the first solid layer goes down, it has to bridge across the open pockets of the infill. The extruded lines are still soft, so they droop and sag into those gaps instead of staying flat. The next layer lands on an uneven surface, and if there are too few solid layers, the last one never fully closes. You end up with gaps between lines, small pinholes, or a faint outline of the infill pattern showing through the top.

The walls are different. Each perimeter sits on an identical perimeter below it, with nothing to bridge. That is why a print can have clean sides and a top that looks like a sponge.

How many top layers you need for your layer height

The first setting to check is the number of top solid layers. Simplify3D's rule of thumb is that the solid section at the top should be at least 0.5mm thick. The layer count by itself does not matter; the stacked thickness does. At a 0.25mm layer height, two solid layers reach that threshold. At a fine 0.1mm layer height, you need five to get the same effect.

This is the classic trap when you switch from a standard profile to a fine quality profile. The layer height drops, the top layer count stays the same, and the top surface starts showing holes. Simplify3D suggests that if you see the problem with three top layers, try five and compare the result.

Extra solid layers do not change the outside dimensions of your part. They are taken from inside the volume, replacing infill. The only cost is a little more filament and print time, which makes this the lowest-risk fix on this page. In PrusaSlicer, Cura, and OrcaSlicer, look for the top solid layers or shell settings in your print profile.

Infill is the foundation your top layers sit on

If adding top layers does not fully close the surface, look at infill density. Simplify3D describes infill as the foundation that the solid layers print on. At 10%, the interior is 90% air and the gaps to bridge are wide. Going from 30% to 50% gives the first solid layer a much tighter base with far less distance to span.

The pattern matters as much as the percentage. The Prusa Knowledge Base notes that rectilinear gives double the support for top layers compared to grid, using the same amount of material. Gyroid provides support in every direction and does not cross itself on a single layer. Two patterns are designed specifically for this problem. Adaptive cubic gets denser near the walls, top, and bottom while staying sparse in the center, using roughly a quarter less material than rectilinear. Support cubic only densifies toward the top, purely to hold up the solid layers, with the lowest material use of any pattern PrusaSlicer offers.

On a large, mostly hollow part, switching patterns is usually cheaper in filament and time than raising density everywhere.

When the real cause is under-extrusion or temperature

If top layers and infill are both dialed in and the gaps remain, Simplify3D is direct about it: you most likely have an under-extrusion problem. The nozzle is pushing out less plastic than the slicer expects. Lines come out thinner, neighboring lines stop touching, and the top shows regular grooves rather than holes clustered over infill pockets.

Temperature is one of the usual suspects. A nozzle that is too cold for the filament you loaded lets material through with difficulty, and flow drops without any error. Check the range printed on your spool or the manufacturer's data sheet rather than a generic profile value, since it varies by brand even for the same material. The print temperatures guide explains how to step through it.

Wet filament, an extruder gear slipping on the filament, a partially clogged nozzle, or a flow multiplier set too low all produce the same look. So keep the order: top layers first, then infill, then the extrusion path. Cranking up flow before checking the first two just hides the symptom and causes over-extrusion elsewhere on the part.

A diagnostic routine that changes one thing at a time

Change one setting, reprint the same test part, compare. A small cube or a flat plate is enough. Look at the top under raking light from a desk lamp set low; gaps that are invisible straight on jump out at a shallow angle.

First question: where are the gaps? Holes laid out in a regular pattern that mirrors your infill point to too few top layers or too little density. Parallel grooves across the whole surface, including above the perimeters, point to under-extrusion. Gaps only in the middle of a big flat area suggest infill that is too sparse for the size of the part.

Second: watch the print while it runs. The Prusa Knowledge Base says the ideal time to check infill is while the object is still printing, before the solid layers cover it. If the infill lines look thin, stringy, or detached, the top will have gaps no matter what you do afterward.

Third: apply the fixes in the order of this page, cheapest first, and put each change in the exported file name so you can trace what actually helped.

Edge cases: infill speed, pattern choice, and flexible filament

Some prints resist the three standard fixes. The Prusa Knowledge Base points out that complex patterns such as cubic are harder to print cleanly. If the infill comes out ragged, try a simpler pattern or slow down the infill speed, which lives in the speed section of your slicer. Infill printed too fast turns irregular, and the solid layers inherit that irregularity.

Flexible filament is its own case. Prusa advises against complex infill patterns with these materials, which are especially vulnerable to imperfect infill, and recommends grid instead. On TPU, a gappy top is often caused by the pattern rather than the top layer count.

Another trap Prusa documents is aligned rectilinear. If its lines run parallel to the lines of the first top solid layer, that layer has to bridge in the same direction as the voids underneath, and the bridging fails. Rotating the angle or changing the pattern fixes it.

Finally, a profile imported from another printer or nozzle size sometimes carries a top layer count meant for a different layer height. Go back to your printer manufacturer's stock profile before digging deeper.

Gaps in top layers: symptom, likely cause, setting to fix

SymptomLikely causeSetting to fix
Holes that trace the infill patternToo few top solid layersRaise the top layer count until the solid section is at least 0.5mm thick
Gaps in the middle of a large flat areaInfill too sparse for the part sizeIncrease density or switch to adaptive cubic or support cubic
Parallel grooves everywhere, including over perimetersUnder-extrusionCheck temperature, filament moisture, extruder grip, and flow
Top opens up after moving to a finer layer heightStacked top layer thickness no longer sufficientRecalculate the layer count for the new layer height
Stringy, ragged infill visible mid-printInfill speed too high or pattern too complexSlow down infill, pick a simpler pattern
Gappy top on flexible filamentPattern unsuited to the materialUse grid, as Prusa recommends

Frequently asked questions

How many top layers should I use?

According to Simplify3D, what matters is the stacked thickness, which should be at least 0.5mm, not the raw count. At a 0.25mm layer height that is two layers; at 0.1mm it takes five. If you see gaps with three top layers, try five and compare.

Do extra top layers make my part bigger?

No. Additional solid layers are taken from inside the part's volume, replacing infill. The outside dimensions stay exactly the same; only filament use and print time go up slightly.

Should I just set infill to 100% to get a clean top?

Rarely necessary. Simplify3D suggests going from 30% to 50%, for example, if extra top layers alone do not solve it. The adaptive cubic and support cubic patterns described by Prusa densify the infill only near the top without making the whole part heavy.

Can nozzle temperature cause gaps in the top layers?

Yes, indirectly. A nozzle too cold for the filament reduces flow and causes under-extrusion, which Simplify3D lists as the third cause of top surface gaps. Check your spool manufacturer's range, and read the under-extrusion guide if the grooves also show up on the perimeters.

Why are the gaps on top but not on the bottom?

Bottom solid layers sit directly on the build plate, a flat and continuous surface. Top layers have to bridge the air pockets of the infill, and the lines sag into them. That is why this defect almost always shows up on the top.

Which infill pattern gives the best top surface?

Per the Prusa Knowledge Base, rectilinear supports top layers twice as well as grid for the same material, and gyroid supports in every direction. For larger parts, adaptive cubic or support cubic give a solid top while using less filament.

Sources and limits

  • Simplify3D — Gaps in Top Layers
  • Prusa Knowledge Base — Infill patterns
  • Prusa Knowledge Base — Problems with infill

We organize manufacturer and community documentation; we have not measured these products ourselves. The manual for your exact model takes precedence over general guidance.

Keep exploring

A clearer shortlist starts with your projects.

Use the free buying checklist and budget worksheet before comparing offers.

Get the free starter kit