kapy academy

Walls, perimeters and infill

20 min readUpdated Nov 2026

A printed part is a shell around a mostly empty core: walls that follow the outline, solid layers top and bottom and, inside, a lattice full of air called infill. Three settings decide how strong, how heavy and how slow it comes out: how many walls, what infill density and which pattern. Factory profiles ship with 2 walls; for a functional part, go up to 3 or 4 walls before you touch the infill, keep the infill between 15 and 25 %, and choose the pattern for the load and the top surface.

A shell with a filling

On every layer, the slicer draws the outline first. The outer wall is the line that forms the surface you see; inside it run the inner walls, concentric loops packed against it. PrusaSlicer calls them perimeters; here we say wall. At the top and bottom, the top and bottom layers close the part with solid plastic. What is left inside is infill: a lattice with deliberate gaps. Where a region is too narrow for the lattice, the slicer fills it with solid infill.

You can tell walls from infill by their shape. A wall is one continuous bead that goes all the way round the outline. Infill is a mesh of short runs that cross the interior at an angle and meet at nodes.

AnatomyIn bendingsolid infillouter wallinner wallsbottom layerstop layersinfillstressneutral axishigh stresslow stressmaterial 23 %stiffness 40 %
A printed part is a solid shell around an airy core. When the part bends, stress grows with distance from the neutral axis: the shell sits where the material works hardest and the infill where it works least. In a 20 × 20 mm section with the same shell on all four faces, three lines of thickness are 23 % of the plastic and give 40 % of the solid section's stiffness.

The wall count is a maximum per outline, not a thickness guaranteed everywhere on the part. Each wall is one line wide, ≈0.45 mm with a 0.4 nozzle (0.42 for the outer wall in Bambu Studio), but neighboring beads overlap, so each added line adds ≈0.41 mm; the shell thickness for each wall count is in the table under "How many walls". A modeled rib gets walls on both of its faces. With 2 walls, a rib up to ≈1.7 mm prints entirely as wall lines; a 2.5 mm rib gets its ≈1.7 mm of wall and ≈0.8 mm of solid infill down the middle. The thickness you draw decides how many lines fit; the setting decides how many go in where there is room. A wider line width on the walls (0.5–0.6 mm with a 0.4 nozzle) also thickens the shell without adding loops (Layer height and line width).

Why walls do more work than infill

In bending, the skin does almost all the work. Stress is proportional to the distance from the neutral axis, the line in the section that neither stretches nor compresses. The section's stiffness grows with the square of that distance: that is the second moment of area. The shell sits right at the skin; the infill sits near the axis, where it contributes least.

Take a 20 × 20 mm section. Solid, its second moment of area is 20⁴ / 12 ≈ 13,333 mm⁴. Hollow, with a shell of thickness t on all four faces, it is (20⁴ − a⁴) / 12, with a = 20 − 2t. The calculation ignores the infill and assumes the beads form a solid shell.

Bending stiffness of a hollow 20 × 20 mm section, same shell on all four faces
Lines (≈0.45 mm) Thickness Plastic vs solid Stiffness vs solid
2 ≈0.9 mm ≈17 % ≈31 %
3 ≈1.2 mm ≈23 % ≈40 %
4 ≈1.7 mm ≈31 % ≈52 %
solid 10 mm 100 % 100 %

With three lines of shell, less than a quarter of the plastic gives 40 % of the stiffness. Filling the remaining 77 % with plastic adds the other 60 %: in this section, each gram of shell earns more than twice what a gram of core does. And real infill, being a lattice rather than solid, earns less still.

Check which faces are walls. The table holds as it stands when the load acts in the plane of the layers, because then the faces furthest from the axis are walls. In a part lying flat and loaded vertically, the top and bottom faces of the section are top and bottom layers, not walls: adding walls there barely changes the stiffness, and what counts is the thickness of those layers. Raise it too, to 1.2–1.6 mm.

When the part is pulled along its length, what counts is material that runs continuously in the direction of the load. Walls run the full length of the part without a break. Infill lines cross it at 45° (grid) or meander (gyroid) and pass the force through their nodes, so here too a gram of wall carries more than a gram of infill.

Infill has three jobs of its own, and resisting bending is not one of them:

  • Holding up the top layers. The roof is printed by bridging the infill cells; with infill that is too sparse, it sags into them.
  • Bracing the walls. Infill holds them in place so they do not dent or buckle: a wide flat panel, a part squeezed in a vice, a screw boss.
  • Spreading a local load. A screw head, an insert or an impact pass their force through the infill to the walls.

Raising the density stiffens the core in compression, but in a part loaded in bending each extra gram adds little. Factory profiles follow the same logic: Bambu Studio's "0.20mm Strength" takes the walls from 2 to 6 and the infill only from 15 to 25 %.

How many walls

Wall count with a 0.4 mm nozzle (≈0.45 mm lines)
Walls Shell thickness What for
1 ≈0.45 mm vase mode and single-line test pieces
2 ≈0.9 mm decorative parts, enclosures, light loads; the profile default
3 ≈1.2 mm most functional parts and anything with screws
4–6 ≈1.7–2.5 mm brackets, clamps, parts that bend or are tightened hard, parts you will sand or tap

Every hole is one more outline and gets the same walls. With 3 or 4 walls around a heat-set insert or a self-tapping screw, the thread cuts solid plastic and never reaches the infill. How much wall each one needs is covered in Designing for heat-set inserts and Self-tapping screws in plastic.

There is a cosmetic reason too. With 2 walls, the infill can show through on the outer face as faint lines that repeat its pattern, especially with fast infill and a lot of overlap with the walls. A third wall hides it.

Orca has "Alternate extra wall": one extra wall on alternate layers, so the infill is keyed into the walls. Its own documentation warns that it does not play well with "Ensure vertical shell thickness" set to "All" or with Lightning infill.

The minimum thickness you should model is a separate question: two lines, ≈0.9 mm, for the wall to exist at all, and 1.2 mm or more if it has to take a load (Minimum features and text).

Arachne: variable-width walls

The classic generator ("Classic") lays every wall at the configured line width. If the modeled thickness is not a whole number of lines, a gap is left in the middle: the slicer either leaves it empty or covers it with a thin zigzag bead (gap fill). A 1.0 mm rib comes out as two 0.45 mm lines and a 0.1 mm gap. Arachne, which arrived in 2022 with Cura 5.0 and PrusaSlicer 2.5, varies the width of each line along the outline to fill the thickness: the same rib comes out as two ≈0.5 mm lines with no gap. Where a wall narrows, Arachne steps down from 3 lines to 2 and then 1 gradually, with no zigzag.

Classic (fixed width)Arachne (variable width)1.0 mm ribwedge from 1.4 mm to 00.45 mm0.1 mm gapzigzag gap fillskipped0.50 mm3 → 2 → 1 lineswidened to minimum widthskipped
At fixed width, a 1.0 mm rib leaves a gap between two 0.45 mm lines, and a tapering wedge ends in zigzag fill and an uncovered tip. Arachne widens the lines until they fill the thickness and reduces their number gradually; it only skips what falls below the minimum size.

You no longer need to model walls as whole multiples of the line width. That rule was born with the classic generator and only holds for it. What still holds: one line is not a wall, and anything below Arachne's minimum does not print.

Arachne has two thresholds, given as a percentage of the nozzle diameter. In Orca and in Prusa's profiles for the MK4S and CORE One, "Minimum wall width" is 85 % (≈0.34 mm with a 0.4 nozzle) and "Minimum feature size" is 25 % (≈0.1 mm). In Cura, "Minimum Feature Size" is a quarter of the outer wall width. Below the minimum feature size, the detail does not print; between the two thresholds, it prints widened to the minimum width and comes out thicker than you drew it.

Who uses what as of late 2026: PrusaSlicer ("Perimeter generator") and Orca ("Wall generator") profiles ship with Arachne; Cura has no selector and always uses variable width; Bambu Studio's process profiles ship with Classic. There are reasons to stay with Classic: a constant width means constant extrusion pressure, so the outer wall and the seam come out more even, and the toolpaths are simpler. Arachne's width changes can show on the outer wall of curved or tapering parts. The rule of thumb: Arachne for thin parts, wedges, lots of text or thicknesses that are not a multiple of the line width; Classic is fine for boxy parts with well-sized walls.

Arachne has settings of its own ("Wall transition length", "Wall transitioning filter margin", "Wall transitioning threshold angle", "Wall distribution count"). Leave them at their defaults; Orca advises keeping "Wall distribution count" low so the outer wall keeps its width. "Detect thin wall", which prints a single line where two will not fit, is Classic only: with Arachne it is disabled.

Wall order

On every layer, the slicer decides whether to print the inner walls or the outer wall first. In Orca, "Walls printing order" offers Inner/Outer (the default), Outer/Inner and Inner/Outer/Inner. Bambu Studio's profiles print inner wall, outer wall, then infill. In PrusaSlicer, "External perimeters first" is off in Prusa's profiles. In Cura, "Wall Ordering" defaults to "Inside To Outside". The name mapping between slicers is in Orca, Bambu Studio, PrusaSlicer and Cura.

With inner walls first, the outer wall goes down leaning on an inner wall that is already there. On an overhang it has a line next to it to rest on and droops less. The trade-off is that the inner wall can push it outwards slightly, costing some dimensional accuracy and finish.

With the outer wall first, it goes down free, exactly where it belongs: better accuracy for fits and dimensions, and a cleaner surface. The trade-off is that on an overhang it has no line to lean on and you lose some margin: an overhang that prints at 50–60° with inner first on a modern, well-cooled machine curls or droops earlier with outer first.

The Inner/Outer/Inner order needs 3 walls or more. It prints one inner wall, then the outer wall leaning on it, then the rest: most of the accuracy of outer first, with some support.

Keep inner first for general parts and for anything with overhangs. Use outer first or Inner/Outer/Inner when fits and dimensions come first and the part has no steep overhangs. If you change the order, the outer wall moves: reprint the clearance coupon (Real printed clearances). The seam changes with this choice too (Where the seam goes).

Printing infill before the walls (in Orca, "Print infill first") makes the infill push the walls outwards and show through on the face. Leave it off.

How much infill

Bambu Studio and PrusaSlicer profiles ship with 15 %; Cura with 20 %; Orca with 20 % in its built-in defaults, though each manufacturer's profiles change it.

Infill density by part
Density What for
0–10 % display pieces and figurines, with Lightning
15–20 % the default: holds up the top layers and braces the walls
25–40 % parts that are squeezed, crushed, screwed into or knocked about
100 % small parts where the walls already meet, watertight parts, parts that let light through (Painting with filament and light)

A 2.5 mm thick part with 3 walls is all wall: the six lines of the two faces add up to ≈2.5 mm and leave no room for infill, so its percentage makes no difference.

Above 40 % rarely pays off in a part loaded in bending. The plastic you add lands near the neutral axis, and the time grows with it because the infill is already at the flow limit. One more wall, a rib or a modifier puts that same plastic where the stress is (Ribs, gussets and fillets).

Time depends on the volume of plastic: on a modern machine, infill and inner walls already run at the flow limit (Volumetric flow sets the speed), so every cubic millimeter you add costs time, whichever setting adds it. Doubling the infill density roughly doubles its time; one more wall adds one loop per layer. Which is more expensive depends on the part: in a large block, a wall is cheap; in a thin-walled enclosure, with lots of outline and little interior, a wall costs more than the infill. Slice both options and compare the estimates.

Add density by region, not across the whole part. A modifier with more infill or more walls around a boss, a hinge or the face of a clamp costs far less than raising the density of the whole part (Modifiers by region and height). In display pieces, Lightning and Cura's "Gradual Infill Steps" put density only under the top surface; Adaptive Cubic puts it near every face and thins out the core.

Infill/wall overlap extends the infill lines into the inner wall so they weld to it: "Infill/Wall overlap" in Orca and Bambu Studio, "Infill/perimeters overlap" in PrusaSlicer, "Infill Overlap Percentage" in Cura. Bambu's profiles and Prusa's for the MK4S and CORE One ship with 15 %, Cura with 10 %, and Orca's documentation recommends 10 to 15 %. With too little overlap, the infill sits loose and you see gaps between infill and wall; with too much, the surplus plastic bulges the outer wall and prints the infill through onto the face.

Combining infill ("Infill combination" in Orca and Bambu Studio, "Combine infill every" in PrusaSlicer, "Infill Layer Thickness" in Cura) prints the infill every second layer at double height, while the walls carry on at the normal layer height. It makes half as many infill passes, but at the flow limit a line twice as tall moves at half the speed, so on a modern machine it saves little. It pays off on machines limited by acceleration on short moves.

Which pattern

There are two families. 2D patterns repeat the same lines on every layer or alternate them: grid, lines, triangles, Cross Hatch. 3D patterns change with height and form a structure in space: cubic, adaptive cubic, gyroid, TPMS-D. On top of that, in some patterns the lines cross within the same layer: grid, triangles, cubic and adaptive cubic. There the nozzle passes over a line it laid moments before: twice the plastic builds up at the crossing and leaves a bump; at high speed the nozzle hits it with an audible knock. Gyroid and Cross Hatch do not cross within a layer.

Grid2Dcrossings within a layerGyroid3DCubic3Dcrossings within a layerAdaptive cubic3Dcrossings within a layertop surfaceLightning3DConcentric2D
Six patterns at 20 % seen from above. Grid crosses its lines within the same layer; gyroid does not. The 3D patterns change with height, adaptive cubic thins out toward the center, and Lightning only grows toward a top surface that needs holding up.
Infill patterns and what each one is for
Pattern How it behaves Use it for
"Grid" fast, strong in XY; crosses lines within a layer the Bambu, Prusa and Cura default; general parts
"Gyroid" equal stiffness in every direction, no crossings; a little slower loads from several directions, low-density TPU, translucent filament where the infill shows
Cubic / adaptive cubic 3D; the lattice also takes compression in Z; adaptive thins out the deep interior large parts; adaptive saves time and plastic
Cross Hatch behaves like gyroid with straight lines Orca's built-in default
Lightning only holds up top surfaces; almost no strength figurines and display pieces
"Honeycomb" strong but slow rarely worth it: gyroid or cubic give the same in less time
"Concentric" follows the outline flexible parts and 100 % regions
TPMS-D (Orca) and other recent ones isotropic, like gyroid an alternative to gyroid

Cura switches automatically from grid to "Lines" above 25 % density. Lines run in one direction per layer, alternating, and are weaker in the cross direction; if you raise the density in Cura, check the pattern.

No pattern fixes the weakness in Z. In tension across the layers, the bond between them governs, not the infill pattern: gyroid's "equal in every direction" refers to the lattice, and in Z the layers still rule (Layer adhesion and anisotropy).

Patterns with large cells, such as Lightning or a sparse gyroid, need more top layers to close.

Top and bottom layers

The top layers bridge the infill cells: the first one sags slightly into each cell and the next ones close it up. With too few layers or infill that is too sparse, the top surface ends up with holes and bumps over the cells (pillowing).

hole (pillowing)infill (air between walls)too few layers: does not closeenough: closes flat
The first top layer sags into each infill cell. With too few layers, the roof never closes and holes remain; with enough thickness, each layer rests on plastic and the face comes out flat.

Slicers set a number of layers and a minimum thickness, and apply whichever comes out thicker.

Default top and bottom layers
Profile Top Bottom
Bambu Studio, 0.20mm Standard (X1C) 5 layers / 1.0 mm 3 layers
PrusaSlicer, 0.20mm SPEED (MK4S, CORE One) 5 layers / min. 0.7 mm 3 layers / min. 0.5 mm
Cura 0.8 mm 0.8 mm
Orca, built-in defaults 4 layers / 0.6 mm 3 layers

As a rule, with a 0.4 nozzle: around 1 mm of top layers and 0.6 mm or more of bottom layers. Thickness is what closes the cells, not the layer count: at 0.12 mm layers you need more of them for the same closure. Bottom layers can be fewer because they sit under the infill and print before it: they have no cells to bridge. That does not make them secondary: in a part lying flat and bending vertically, they are half of its useful shell.

"Ensure vertical shell thickness" (in Orca, "All" by default; PrusaSlicer has the same setting) adds solid infill under gentle slopes so a sloped face keeps its shell thickness and the infill does not show through.

Top surface finish (pattern, monotonic order, ironing, a single wall on top) is covered in Top surfaces.

When it fails

Walls and infill: symptom, cause and fix
Symptom Cause Fix
The part bends or breaks Too few walls, thin top and bottom layers on a part lying flat, or load across the layers 1 or 2 more walls, or more thickness top and bottom if it bends lying flat; then reorient (Layer adhesion and anisotropy)
The grid shows through on the outer face 2 walls with fast infill or a lot of overlap 3 walls, Inner/Outer/Inner, 10–15 % overlap
Gap between infill and walls, loose infill Too little overlap or under-extrusion 15 % overlap; check the flow (Flow ratio and max flow tests)
Holes or bumps over the cells on the top surface Too few top layers, sparse infill or weak cooling ≈1 mm of top layers, denser or finer infill under the roof, check the fan (Top surfaces, Speed and cooling)
A thin wall is missing or comes out thicker than modeled Below Arachne's minimum feature size, or widened to its minimum width; Classic skips it Give it at least 2 lines, ≈0.9 mm (Minimum features and text)
Gap down the middle of a wall, zigzag inside Classic with a thickness between two line counts Switch to Arachne or model the wall as a whole number of lines
The outer wall bulges or ripples over the infill Infill before walls, or too much overlap Walls before infill; lower the overlap
An overhang curls after switching to outer first The outer wall prints with no line to lean on Inner first or Inner/Outer/Inner (Overhang and bridge settings)
Holes and fits change after touching walls or order The outer wall has moved Reprint the clearance coupon (Real printed clearances)
The nozzle knocks the infill, noise or shifted layers at high speed Crossing pattern at speed, with some over-extrusion or curling Gyroid or Cross Hatch; check the flow (Layer shifts and spaghetti)

See also

Design it in KapyCAD

Many of these problems are cheaper to fix in the model than in the slicer: wall thickness, overhangs, the face the part stands on.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?