kapy academy

Layer height and line width

14 min readUpdated Nov 2026

Every bead the printer lays is a flattened strip with a cross-section of width × height. Layer height is the vertical step; line width is how wide the slicer wants the bead. Between them they decide how smooth a sloped surface comes out, the finest detail you can print and how much plastic leaves the nozzle per millimeter of travel, and with that the print time. With a 0.4 mm nozzle, start from 0.20 mm layers and ≈0.45 mm lines (0.42 in Bambu Studio), and leave the first layer at the manufacturer's defaults.

What layer height and line width measure

The nozzle has a flat face around its bore. That face presses the molten bead into the layer below, which is why the bead comes out wider than the bore: the squash is what welds it to its neighbors and to the layer underneath. A bead narrower than the nozzle goes down without pressure, rounds off and bonds poorly. So do not set the line width below the nozzle diameter; the wall generator narrows it only locally, to fill a thin wall.

Layer height is the thickness of each slice the slicer cuts the model into. Line width is the width the slicer plans each bead at, and it uses it to work out how much plastic to extrude: width × height per millimeter, minus what the rounded edges take away. Every slicer already offsets the toolpath by half a line width into the material (0.225 mm for a 0.45 line), away from the hole: the edge of the bead lands on the drawn edge. Why a hole still prints small is in Why holes print small.

The ranges per nozzle and the full table are in Nozzles: size and material. The general rule is a layer height of 25 to 75 % of the diameter and a width of ≈100 to 150 %. Profiles for a 0.4 mm nozzle run from 0.08 to 0.28 mm layers, with 0.20 as the usual one, and 0.42–0.45 mm lines. With layers above 75 % of the diameter, the nozzle face stops squashing the bead: it stays round and joins the layer below through a narrow neck.

bedelephant's footmodel edgehalf a line widthouter wall 0.42inner wall 0.45top surface 0.42nozzle facelayer height 0.20infill 0.45first layer 0.50 × 0.20speed = flow / (width × height)Bambu Studio defaults, 0.4 nozzle
Each line type has its own width. The first layer is wider and flatter, and the outer wall meets the edge of the model because the slicer shifts it half a line width into the material. Peak flow is spread over the width × height section: the bigger it is, the lower the possible speed.

Choosing the layer height

Stair-stepping depends on the slope. A sloped surface is built from the edges of stacked layers. On a face at an angle α to the horizontal, each step has a riser h and a tread h / tan α. With 0.20 mm layers, at 15° each tread is ≈0.75 mm and the steps show as contour lines near the top of a dome; at 45° it is 0.20 mm; at 75°, ≈0.05 mm, and the face looks smooth. A vertical wall shows no steps whatever the layer height. Choose the layer for the gentlest visible slope on the part, not for its size: drop to 0.12–0.16 mm only for gentle slopes or fine vertical detail that will be seen, and go up to 0.24–0.28 mm for functional parts, boxy shapes or anything nobody will see. If one part has both, use adaptive layer height.

One layer, three slopes15° → ≈0.75 mmtread h / tan αriser h45° → 0.20 mm75° → ≈0.05 mmmodel surfaceUniform and adaptive layersuniformadaptivelayer height along Z
The same 0.20 mm layer leaves 0.75 mm treads at 15° and 0.05 mm treads at 75°. Adaptive layer height goes fine only where the slope calls for it and keeps thick layers on the vertical walls.

In Z, heights can only fall on the layer grid, and that grid starts at the first layer. A step modeled at 0.5 mm comes out at 0.4 or 0.6 mm with 0.20 layers. With a 0.20 first layer and 0.12 layers above it, the possible heights are 0.20 + n × 0.12, not multiples of 0.12. Model the heights that matter onto that grid (snap-fit catches, print-in-place clearances, raised text) or check them in the preview. Raised text needs at least 0.4 mm: two 0.20 layers. In a print-in-place part, the vertical clearance must leave at least one whole layer of air (Print-in-place clearances).

The roundness of a vertical hole is decided in XY: the number of segments in the polygon, how the bead squashes on tight radii, shrinkage. Layer height does not improve it. A horizontal hole does depend on it: its roof and floor are stepped slopes like any other, and with thick layers it comes out less round. That is why a clearance coupon is printed at the layer height of the real part.

Thin layers are not stronger. They give more bonds and less heat per layer; strength in Z is set by temperature, flow and cooling. If a part splits between layers, reorient it or raise the temperature; do not lower the layer height (Layer adhesion and anisotropy).

Halving the layer height doubles the number of layers and nearly doubles the time. A little less if, at 0.20, the infill was already at the flow limit, because thinner lines can run faster up to the profile's speed cap. A little more on small parts, where the minimum layer time slows every layer and cancels what a thicker layer would have saved.

Layer height with a 0.4 mm nozzle
Layer Use
0.12 mm Visible curved surfaces, miniatures
0.16 mm Visible parts with domes and fillets
0.20 mm Default
0.24–0.28 mm Functional parts, boxy or hidden shapes

Manufacturer profiles ship with layer heights already tested on their machines: start from those (Printer, filament and process profiles).

When flow caps the speed

The speed ceiling is the hotend's flow: speed = flow / (line width × layer height) (Volumetric flow sets the speed). At the flow limit, speed drops in the same proportion as the layer rises: with Bambu PLA Basic, from 233 mm/s at 0.20 mm to ≈167 mm/s at 0.28. Once infill and inner walls are already at that limit, a thicker layer moves no more plastic per second, and on those it saves almost no time. It only saves time where acceleration dominates: short moves and layer changes.

"Thicker layers, faster print" holds on legacy bedslingers and on parts with lots of walls and travel; it barely holds on a modern machine with an infill-heavy part. To raise the flow ceiling you need a high-flow hotend. A bigger nozzle on the same hotend moves the same volume per second: a 0.65 × 0.30 line stays at ≈108 mm/s, and only saves passes, layers and acceleration where the machine was not at the limit.

The same formula applies to width: a 0.50 mm infill line on a 0.4 nozzle lays more plastic per pass and saves passes as long as the hotend keeps up. At the flow limit, it saves no time either.

A width for each line type

Slicers set a general width and one for each line type. The base Bambu Studio process profile for a 0.4 nozzle uses:

Default line widths, Bambu Studio, 0.4 mm nozzle
Line type Width
Default 0.42 mm
Outer wall 0.42 mm
Inner wall 0.45 mm
Infill 0.45 mm
Internal solid infill 0.42 mm
Top surface 0.42 mm
Support 0.42 mm
First layer 0.50 mm

PrusaSlicer's 0.4 profiles use ≈0.45 mm. Cura's base definition sets the width equal to the diameter (0.40) unless the printer profile changes it: that is a starting value, not a recommendation (Orca, Bambu Studio, PrusaSlicer and Cura).

The outer wall runs slightly narrower so corners and detail come out crisper. On overhangs the opposite helps: a wider bead rests more of its section on the layer below. Inner walls and infill run wider for strength and to lay more plastic per pass. The top surface takes a moderate width so it closes flat, with no gaps. Bridges run close to the nozzle diameter, so the bead stays thin and cools fast (Overhang and bridge settings).

A wider line makes fewer passes, squashes harder and carries more heat in each bead; for the same wall thickness, the layers bond at least as well. The cost: detail gets coarser, small radii round off and fine features vanish. A narrower line gives finer detail at the cost of more passes, and below the nozzle diameter it barely squashes at all.

Model wall thickness is counted in lines: two lines are ≈0.9 mm with a 0.4 nozzle, and a functional wall wants 1.2 mm or more, about three lines. Arachne, the variable-width wall generator, adjusts the width so an in-between thickness no longer leaves a gap, but a single line is not a wall (Walls, perimeters and infill).

Watch the units of the width. In Orca, a width in % is taken from the nozzle diameter and follows a nozzle change; in mm it stays fixed and can end up wrong: 0.45 mm on a 0.6 nozzle is 75 %, too narrow. In PrusaSlicer, % is taken from the layer height, not the nozzle: 112 % at 0.20 mm gives a 0.22 line. There, use mm, or 0 to get 1.125 × the nozzle. Cura only takes mm.

Changing the line width invalidates what you measured with the old one: hole compensation, flow and your clearance coupon were all measured at a specific width. If you change it, print the coupon again (Real printed clearances).

Adaptive layer height

Adaptive layer height puts thin layers where the surface is shallow or curved and thick ones where the walls are vertical, between a minimum and a maximum. The slicer reads the slope at each height and picks the layer that keeps the step below a maximum error you set. A dome comes out as if printed at 0.12 mm and the vertical body at 0.28.

Two gray PLA cylinders topped with a low dome: the left one shows stepped rings on the nearly flat part of the dome; the right one, printed with adaptive layers, has a smooth dome and the same vertical wall.
Two gray PLA cylinders topped with a low dome: the left one shows stepped rings on the nearly flat part of the dome; the right one, printed with adaptive layers, has a smooth dome and the same vertical wall.

Where to turn it on, as of late 2026:

  • PrusaSlicer: the "Variable layer height" tool, with the object selected. It offers "Adaptive", with a slider between quality and speed, "Smooth" to even out the profile, hand-painted heights and "Reset".
  • Bambu Studio and Orca: the object's "Variable layer height" editor, with adaptive, smoothing and manual modes. Nothing changes until you use it on an object.
  • Cura: "Use Adaptive Layers", with its maximum variation and step size.

It comes at a cost. In Cura, adaptive layers apply to the whole plate, so every other object shares them; in PrusaSlicer, Orca and Bambu Studio they are per object, unless you print with a prime tower, which forces every object onto the same layers. Wall strength and appearance change in bands: a band of thick layers can have a different sheen. On a part that mates with another, the stepping of the roof and floor of horizontal holes changes with height. And the thick bands are still bound by the flow limit.

If you know exactly where the detail is (a logo on top, a dome on a box), a height range modifier with a fixed layer is more predictable and comes out the same on every reprint (Modifiers by region and height). Do not use adaptive layers on parts that must stack or fit precisely in Z, in vase mode, or on multicolor prints with color changes tied to specific layers (Designing for multicolor, Painting with filament and light).

The first layer is separate

With a 0.4 nozzle, the first layer defaults to 0.50 mm wide and 0.20 mm high in both Bambu Studio and PrusaSlicer, at 30–50 mm/s and, on Prusa, with ≈500 mm/s² acceleration. Its height is a separate setting from the other layers: it stays at 0.20 even when you print at 0.12, because no bed is perfectly flat and no Z offset is perfect, and a few hundredths of unevenness disappear into 0.20 mm but ruin a 0.12 first layer. It is wider and flatter to cover more of the bed. Do not take it below ≈0.15 mm with a 0.4 nozzle; with a 0.6, use 0.30 mm high and 0.65–0.68 mm wide.

The squash pushes the first layer outwards: elephant's foot. Keep the slicer's elephant's foot compensation at its default, 0.075 to 0.2 mm depending on the machine, and add a 0.5 × 45° chamfer to the edge on the bed: the compensation fixes the squish and the chamfer hides the rest. They stack (The face on the bed). Z offset, bed preparation and adhesion are in The first layer and bed adhesion.

When it fails

Layer height and line width: symptom, cause and fix
Symptom Cause Fix
Visible contour lines on a dome or gentle slope Layer too thick for that slope Thinner layers only there: adaptive layer height or a height range modifier
A thin rib or a stroke of text is missing in the preview Narrower than one line Thicken it to two lines or more (≥0.9 mm), or use a narrower line or a smaller nozzle (Minimum features and text)
Rough top surface with gaps between lines Low flow, top surface past the flow limit or too few top layers Check flow (Flow ratio and max flow tests) and go up to 4–5 top layers (Walls, perimeters and infill)
Raising the layer height barely shortens the print The hotend was already at the flow limit High-flow hotend; a bigger nozzle only helps away from the flow limit
Layers splitting after you lowered the layer height for strength Thin layers do not bond better Reorient the part, raise the temperature and lower the fan (Layers splitting apart)
A step or vertical clearance comes out a fraction of a layer high or low The height is rounded to the layer grid Model those heights on the grid, counting from the first layer
The first layer only fails when printing with thin layers You lowered the first layer with the rest Put it back to 0.20 mm
Parts stop fitting after a nozzle change The width in mm did not follow the nozzle, or the coupon was measured at another width Widths in % (Orca) or one process profile per nozzle, and reprint the coupon

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?