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
- The effect is subtle. Many printers print fine at any layer height, and forum users report little visible gain; treat this as a tuning tip, not a requirement.
- Check the lead of your screw. T8x8 means 8 mm lead; a T8x2 screw has 0.01 mm per full step on a 1.8° motor and every height in 0.01 mm increments is a multiple.
- Belt-driven or geared Z axes need their own distance per step. This calculator is for lead screws.
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.