Layer height calculator

Layer heights that are a whole number of Z motor steps print more consistently. Enter your lead screw and nozzle, type the layer height you have in mind, and get the nearest magic number plus the full list your nozzle can handle.

Z axis

mm

The distance the nut travels in one full turn.

Nozzle and target

mm
Print cost calculatorTolerance and fit calculatorE-steps and flow calculatorSteps per mm calculatorGear ratio calculatorFilament weight and length calculatorVolumetric flow calculatorResin print cost calculatorLayer height calculatorWall thickness calculatorPrint time estimatorInch to mm converterScale calculatorHeat-set insert and screw hole calculatorFilament drying calculator3D printer payback calculatorGT2 belt length calculatorSnap-fit calculatorStepper driver Vref calculatorPressure advance calculatorZ offset calculatorSTL volume and weight calculatorAll calculators

How the numbers are found

One full step of the Z motor moves the nozzle by lead ÷ steps per turn. A T8 lead screw with 8 mm lead on a 200-step motor gives 8 ÷ 200 = 0.04 mm. Any layer height that is a whole multiple of 0.04 mm lands exactly on a full step every layer. The calculator lists those multiples between about 25% and 80% of your nozzle diameter and picks the one closest to the height you typed.

Z driveFull stepMagic layer heights (0.4 mm nozzle)
8 mm lead, 1.8° motor0.04 mm0.12 · 0.16 · 0.20 · 0.24 · 0.28 · 0.32
2 mm lead, 1.8° motor0.01 mmany value in 0.01 mm steps
8 mm lead, 0.9° motor0.02 mm0.10 · 0.12 · 0.14 · … · 0.32

Choosing a layer height

Thinner layers hide the stair-stepping on curved and sloped surfaces but multiply print time: 0.12 mm takes about 1.7 times as long as 0.20 mm. For most functional parts 0.20–0.24 mm on a 0.4 mm nozzle is the sweet spot; for miniatures and small text, 0.08–0.12 mm. Remember to check the volumetric flow when you combine thick layers with high speeds.

Frequently asked questions

What are magic numbers in 3D printing?

Layer heights that are an exact multiple of one full step of the Z motor. With a common 8 mm lead screw and a 1.8° motor, one full step is 0.04 mm, so 0.12, 0.16, 0.20 and 0.24 mm are magic numbers, while 0.15 mm is not.

Do magic numbers still matter with microstepping?

Less than they used to, but they still help. Microsteps are not perfectly even, so a layer height that falls between full steps can vary slightly from layer to layer and show as faint banding. Choosing a magic number removes one possible cause.

What is the maximum layer height for my nozzle?

About 75–80% of the nozzle diameter: 0.32 mm for a 0.4 mm nozzle. Thicker layers bond poorly. The practical minimum is around 25% of the nozzle, though very thin layers are slow and rarely needed.

What about printers with belts on Z?

Belt-driven Z axes have a different step distance. Use the steps-per-mm calculator to find the travel per step, then enter it as a custom lead (step distance × steps per turn).

Ready to print something? LyraMaker has free browser generators for keychains, signs, boxes, rulers and more — all exporting STL and 3MF.
Browse the generators →