Skip to content

Layer Height Calculator

Not a whole number of Z steps means visible banding.

Work out Layer Height. Not a whole number of Z steps means visible banding. Every rate is an input, not an assertion.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these
mm
mm
mm
° from horizontal

Of nozzle diameter

50%

Within the workable band · 250 layers

Layer as a share of the nozzle50%
VerdictWorkable
Layers250
One Z step0.0025 mm
Nearest whole-step height0.2 mm
Step mismatch0 µm
Stair-stepping on the slope200 µm
Relative print time1× a 0.2 mm print
0.12 mm417 layers · 1.67× time · 120 µm steps
0.16 mm313 layers · 1.25× time · 160 µm steps
0.2 mm250 layers · 1× time · 200 µm steps
0.24 mm209 layers · 0.83× time · 240 µm steps
0.28 mm179 layers · 0.71× time · 280 µm steps
0.32 mm157 layers · 0.63× time · 320 µm steps
Layer bondingThis sits in the range where layer adhesion and surface finish are both reasonable.
Advice0.2 mm is a whole number of Z steps and sits at 50% of the nozzle. Nothing to fix.

A layer must be between roughly 25% and 80% of the nozzle diameter. Above that the extrusion sits on top of the previous layer rather than squashing into it and the part delaminates; below it, the nozzle drags through what it just laid down. On a leadscrew printer the layer height should be a whole number of Z steps. Anything else makes the stepper round alternate layers up and down, producing visible banding that looks like an extrusion problem and is not. Stair-stepping on a sloped surface is the layer height divided by the tangent of the wall angle. A 45° wall steps by exactly the layer height; a 20° one steps by nearly three times it, which is why shallow domes look so much rougher than steep ones.

How the Layer Height Calculator works

Checks a layer height against both constraints — the workable band of 25 to 80% of nozzle diameter, and whole Z steps on a leadscrew — with stair-stepping on sloped surfaces quantified.

Also known as: magic numbers 3d printing · best layer height for 0.4 nozzle · why is my print banded · layer height and strength

Frequently asked questions

What layer height should I use with a 0.4 mm nozzle?

Between about 0.1 and 0.32 mm. Below 25% of nozzle diameter the nozzle drags through what it laid down; above 80% the extrusion cannot squash into the layer below.

What are magic numbers in 3D printing?

Layer heights that are a whole number of Z motor steps. Anything else makes the stepper round alternate layers up and down, producing banding that looks like an extrusion fault.

Does layer height affect strength?

Yes, and not simply. Thicker layers bond better in Z because more molten material meets the layer below; thinner layers give finer detail and weaker interlayer adhesion.

Why do shallow slopes look rougher?

Stair-stepping is the layer height divided by the tangent of the wall angle. A 45° wall steps by exactly the layer height; a 20° one steps by nearly three times it.

Do belt-driven Z axes have magic numbers?

Less critically. The constraint comes from leadscrew pitch and microstepping; belt Z axes and printers with lead screws matched to their step angle are far more forgiving.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/layer-height-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Layer Height Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/layer-height-calculator" style="color:#64748b">Layer Height Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators