LayerCalc › Calibration

Magic Layer Height Calculator

Layer heights that are whole multiples of your Z motor full step, from motor angle and lead screw pitch and starts.

Check the motor label or datasheet. Most printers use 1.8°.
mm
A common T8 screw has a 2 mm pitch.
A T8x8 screw has 4 starts (8 mm lead). A T8x2 has 1 start.
mm
mm
mm

Result

What a "magic" layer height is

A stepper motor moves in discrete full steps. Between them, the driver uses microsteps, which are less precise and less strong. On a lead screw Z axis one full step raises the nozzle by a fixed amount:

full step distance = screw lead ÷ full steps per revolution

The lead is the screw pitch multiplied by the number of starts. A layer height that is a whole multiple of this distance needs only whole full steps, so every layer lifts by the same amount without relying on microstepping. These are called magic numbers.

Example

A T8x8 screw (2 mm pitch × 4 starts = 8 mm lead) on a 1.8° motor (200 steps per revolution) moves 8 ÷ 200 = 0.04 mm per full step. The magic layer heights are 0.04, 0.08, 0.12, 0.16, 0.20, 0.24, 0.28 mm and so on. If you wanted 0.15 mm the closest option is 0.16 mm (4 full steps); 0.12 mm (3 steps) is further away.

Things to know

Frequently asked questions

What are the magic layer heights for a T8 lead screw?

For the common T8x8 screw (8 mm lead) and a 1.8° motor the full step is 0.04 mm, so the magic layer heights are multiples of 0.04 mm: 0.08, 0.12, 0.16, 0.20, 0.24, 0.28 mm and so on.

Do I need magic layer heights?

No. They keep each layer to whole motor steps, but modern drivers with microstepping give good results at any layer height, so the benefit is small.

How do I calculate the full step distance of my Z axis?

Divide the screw lead (pitch × starts) by the motor full steps per revolution: 200 for a 1.8° motor, 400 for a 0.9° motor.

Embed this calculator

Free to use on your blog, forum or website. Copy the code and paste it into your page's HTML.

Related

Calibration

Lead Screw Steps per mm Calculator

Steps per mm (Marlin M92) and rotation_distance (Klipper) for a lead screw Z axis from motor, microstepping, screw pitch and number of starts.

Calibration

Belt Steps per mm Calculator

Steps per mm (Marlin M92) and rotation_distance (Klipper) for belt-driven X/Y axes from motor, microstepping, belt pitch and pulley teeth.

Calibration

Volumetric Flow & Max Speed Calculator

Volumetric flow (mm³/s) at a given speed, and the fastest speed your hotend can actually melt.

Settings

Nozzle Size to Layer Height Calculator

Recommended layer height and line width range for your nozzle diameter.