A 3D print layer height calculator decodes the mathematically perfect Z-axis layer heights — called "magic numbers" — from your specific stepper motor and lead screw specs. Using these full-step-aligned heights eliminates Z-banding artifacts for flawlessly smooth print walls.
Valid Magic Numbers in Range
| Layer Height | Microsteps | Full Steps | Status | Error / Layer |
|---|
Precision 3D Printing Upgrades
If you are serious about eliminating Z-banding and ensuring flawless layer lines, calculating your magic number is only half the battle. Your hardware must be capable of executing those steps perfectly. We strongly recommend upgrading your stock stepper drivers to TMC2209 silent stepper drivers, which offer vastly superior microstepping interpolation. Additionally, replacing bent or cheap lead screws with a precision-machined POM anti-backlash nut and T8 lead screw kit will physically remove the mechanical slop that causes inconsistent layer heights.
Understanding Z-Axis Magic Numbers
In FDM 3D printing, a "magic number" is a layer height that aligns perfectly with the physical full steps of your Z-axis stepper motor. Standard NEMA 17 motors have a 1.8° step angle, meaning they require exactly 200 steps to complete one full revolution. A 1.8° motor paired with a T8×8 lead screw — the four-start version, which advances 8mm per revolution — therefore moves exactly 0.04mm per full step. If you request a layer height of 0.15mm (which is 3.75 full steps, not a whole number of them), your printer's firmware is forced to use "microstepping" to hold the motor between physical poles. Microsteps are magnetically held and mechanically weak, leading to minute inaccuracies that compound over hundreds of layers. This rounding error manifests visually as horizontal lines across your print, known as Z-banding.
That 0.04mm figure is not universal — it belongs to the 1.8° plus T8×8 pairing above and to no other, and quoting it as a constant of 3D printing is the most common way this calculation goes wrong. It is only the lead divided by the full steps per revolution, so the same 1.8° motor on a 2mm-lead T8 single-start screw moves 0.01mm per full step, and 0.02mm on a 4mm-lead dual-start screw. A 0.9° motor halves all of those again. Microstepping never changes the answer: a driver set to 1/16 subdivides the move, not the detents, which is why the magic numbers above do not shift when you change that dropdown. Select your own step angle and lead screw and StepPerfect derives the full-step increments for your machine, so the motor rests on its strongest physical detents rather than between them.
Frequently Asked Questions
What are magic numbers for 3D printing layer height?
Magic numbers are layer heights that align exactly with the stepper motor's full-step increments on the Z-axis. For the most common setup (1.8° stepper + T8×8 lead screw), the magic number is 0.04mm — so ideal layer heights are 0.04, 0.08, 0.12, 0.16, 0.20, 0.24, 0.28, and 0.32mm. That figure belongs to that drivetrain and not to 3D printing in general: the same 1.8° motor on a 2mm-lead T8 single-start screw steps 0.01mm instead, and microstepping does not change it either way. Using full-step-aligned heights eliminates Z-banding artifacts.
What causes Z-banding in 3D prints?
Z-banding appears as visible horizontal lines across print surfaces. The most common cause is layer heights that do not align with the Z-axis stepper motor's full-step positions. When the motor is forced to hold a position between steps (microstepping), it uses weaker magnetic detents that allow minute wobble, creating inconsistent layer spacing.
Does layer height affect print strength?
Yes — thinner layers generally produce stronger parts because each layer has more surface area bonding to adjacent layers. However, the relationship is not linear, and layer adhesion also depends on extrusion temperature, speed, and cooling. For functional parts, 0.16-0.20mm balances strength and print time. For maximum strength, use 0.12mm layers.