Z offset calculator

The first layer decides whether a print sticks. Print a single-layer square, measure its thickness in a few places, and this calculator tells you how far to move the nozzle — and what number to enter, because every firmware counts the direction differently.

Measurement

mm
mm

Average of 3–5 caliper readings on a printed single-layer square.

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 correction works

If the measured first layer is thicker than the slicer’s first layer height, the nozzle was too far from the bed by the difference; if it is thinner, the nozzle was too close. The correction is simply measured − target, applied in the direction your firmware expects.

SettingNozzle closer to the bed
Marlin M851 Z, Prusa Live Adjust Zmore negative
Klipper [probe] z_offsetlarger
Klipper SET_GCODE_OFFSET Z_ADJUST, babystepnegative adjustment

Change in small steps and print the test again. Problems that look like a bad Z offset are covered in the guides to the first layer and bed levelling.

Frequently asked questions

How do I measure the first layer?

Slice a 50 × 50 mm square that is one layer high, print it in the middle of the bed and let it cool. Peel it off and measure the thickness with calipers at several points. Use the average; if one corner is much thicker, level the bed first.

Why do the signs differ between firmwares?

Marlin’s M851 and Prusa’s Live Adjust Z describe where the nozzle is relative to the probe — more negative means closer to the bed. Klipper’s probe z_offset is the probe’s trigger height — larger means closer. Babystepping and SET_GCODE_OFFSET shift the print — negative means closer. The calculator gives the value for the one you choose.

What does a good first layer look like?

Lines slightly squished and touching each other, a smooth matte top without ridges or gaps, and the sheet peels off in one piece. Ridges and a rough top mean too close; round separate lines mean too far.

My printer levels automatically — do I still need this?

Automatic levelling maps the bed’s shape but cannot know how far the nozzle is from the bed when the probe triggers. That distance is the Z offset, and it still needs to be set correctly once, and after changing the nozzle or build plate.

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