Slicing & Settings

Layer heights, walls & line widths

Three slicer settings have an outsized effect on how your part turns out: layer height, wall count, and line width. They control print time, surface finish, and structural strength all at once, and they interact with each other in ways most beginners don't realise. This is the working operator's guide to picking the right numbers for the job.

9 min read Updated May 2026 PrintPal editorial
The 30-second answer

0.2 mm layers are the right default with a 0.4 mm nozzle (PLA, PETG). 3 walls for everyday prints; 5+ walls for mechanical strength — walls add more strength than infill does, weight for weight. Set line width = nozzle diameter (0.4 mm with a 0.4 mm nozzle) unless you specifically want stronger or smoother prints, in which case bump line width to 0.45–0.5 mm.

Layer height — the resolution dial

Layer height is the thickness of each printed slice (Z direction). It directly controls vertical resolution, surface finish on curved/sloped surfaces, and print time. Print time scales nearly linearly with the inverse of layer height: a 0.1 mm print takes about twice as long as a 0.2 mm print.

How nozzle diameter limits layer height

The usable range is roughly 25% to 75% of nozzle diameter:

NozzleMinimumCommonMaximum
0.2 mm0.05 mm0.08–0.12 mm0.15 mm
0.4 mm0.10 mm0.16–0.24 mm0.32 mm
0.6 mm0.15 mm0.30 mm0.48 mm
0.8 mm0.20 mm0.40 mm0.64 mm

Go below 25% and you risk under-extrusion as the molten plastic struggles to flow through the gap. Go above 75% and layer adhesion suffers because the new layer can't fully fuse with the previous one's flat top.

Magic numbers (microstepping)

On most printers (8mm leadscrew, 1.8° stepper, 16x microstepping) the Z-axis moves in increments of 0.04 mm. Layer heights that are exact multiples of 0.04 mm (0.04, 0.08, 0.12, 0.16, 0.20, 0.24, 0.28, 0.32) avoid Z-stepping rounding artifacts. On 12mm leadscrews the magic increment is 0.0125 mm (so 0.10, 0.15, 0.20, 0.25 all work). Modern printers with quality leadscrews don't show visible artifacts at non-magic heights, but it remains a useful rule for tall, smooth-surfaced prints.

What changes when you change layer height

  • Print time: roughly inversely proportional. 0.1 takes 2x as long as 0.2; 0.3 takes 33% less than 0.2.
  • Surface finish on slopes: shorter layers = smoother. Stair-stepping on sloped surfaces is the most visible difference.
  • Surface finish on vertical walls: almost no visible difference between 0.1 and 0.3. Vertical wall finish is dominated by ringing, not layer height.
  • Z-axis dimensional accuracy: finer layers can hit smaller dimensions exactly. Coarse layers round to the layer height.
  • Strength: thicker layers actually print slightly stronger in some tests, because each layer's molten core has more thermal mass and bonds better.
  • Overhangs: shorter layers improve overhang performance.

Wall count (perimeters)

Walls are the perimeters that make up the outside (and inside, on hollow features) of your part. They're typically the strongest part of an FDM print — significantly stronger than infill at the same weight.

How many walls?

WallsUse caseResult
1Vase mode, decorative shellsFast, fragile, transparent
2Decorative parts, propsDefault for many slicers; OK for low-stress
3General purposePrintPal's recommended default
4–5Functional parts, bracketsSignificant strength gain
6+High-stress mechanical, fully-walledWall thickness exceeds typical infill contribution

Walls > infill for strength per gram. If you're tempted to crank infill to 60% to make a part stronger, increase walls to 5 first — you'll get a stronger part that prints faster.

Top and bottom layers

Treat these as horizontal walls. Defaults of 4–5 top layers and 3–4 bottom layers are good. Too few top layers = pillowing (the top surface sinking into the infill). Multiply the layer count by your layer height to know how thick your top/bottom shell is — aim for 1.0–1.5 mm minimum.

Line width (extrusion width)

Line width is how wide each printed line is laid down. It's set independently from nozzle size; the slicer adjusts flow to make the line the width you ask for.

What you can set, and why you'd change it

  • Line width = nozzle diameter (e.g., 0.4 on 0.4) is the standard. Safe everywhere.
  • Line width > nozzle (up to 1.5×) makes wider, slightly thicker extrusions. Stronger walls, fewer perimeters needed, faster print. Reduces fine detail.
  • Line width < nozzle (down to 0.6×) makes narrower extrusions. Better detail in small features. Slower because you need more passes.

Per-feature line widths

Most slicers (PrusaSlicer, OrcaSlicer, Cura, Bambu Studio) let you set different line widths for different features. A common setup:

FeatureLine width (0.4 nozzle)Why
External perimeter0.42 mmSlightly wider = smoother, fewer gaps
Internal perimeters0.45 mmStronger walls without sacrificing finish
Top/bottom0.40 mmDefault for clean top finish
Infill0.50–0.60 mmWider infill = faster, no quality cost
First layer0.50–0.65 mmWider = better bed adhesion
Support0.40 mmDefault; thinner = easier removal

How these three interact

Get the picture by looking at wall thickness:

  • 3 walls × 0.45 mm line width = 1.35 mm wall thickness.
  • 5 walls × 0.45 mm line width = 2.25 mm wall thickness.

For most parts, designing wall thicknesses that are multiples of your line width avoids "gap fill" passes (which are slow and weak). A 1.6 mm wall in CAD will perfectly fit 4 passes of 0.4 line width; a 1.5 mm wall forces the slicer to choose between under-filling or adding a thin "gap fill" pass.

Recommended presets by use case

Use caseLayer heightWallsLine widthInfill
Speedy throwaway0.28 mm20.4510% grid
Default daily0.20 mm30.4215% grid
Detailed model0.12 mm30.4015% grid
Strong functional0.20 mm50.5025% gyroid
Display piece (smooth)0.08 mm30.4010%
Vase mode0.30 mm10.600%

Related articles

Sources & further reading

  • Prusa Knowledge Base — Perimeters
  • Bambu Lab Wiki — Wall and infill settings
  • Hodgkinson & Sain — "Mechanical Testing of Advanced Fibre Composites" (academic ref for wall vs infill strength)