Nozzle Notes
Printers

Auto Bed Leveling Explained

Auto bed leveling uses a probe to measure the bed at many points and compensates in software. Here is how it works, what to calibrate and what it cannot fix.

By Sepehr Sabbagh-pour · Published · Updated · 7 min read

Bambu Lab toolhead with its nozzle just above a yellow printed block on the textured print bed of a desktop 3D printer
3D (54252724196).jpg by UC Davis College of Engineering, CC BY 2.0 (resized and cropped)

Auto bed leveling (ABL) is a feature where a probe measures the distance to the bed at several points and the printer adjusts nozzle height in software to follow the surface. Most systems do not physically move the bed. It compensates for small variations, not for a bent frame or bad Z offset.

For a specific example of retrofitting a probe, see Ender 3 Pro auto bed leveling.

The short answer

  • A probe or sensor measures the distance to the bed at several points.
  • The printer builds a mesh, a map of the surface, and adjusts Z during the first layer to follow it.
  • You still need a correct Z offset, and a bed that is mechanically sound. ABL compensates for small differences; it does not repair a bent frame.

How does auto bed leveling work?

A sensor measures the bed at a grid of points and the printer builds a mesh to follow it. Prusa's knowledge base describes the process for its printers: a sensor detects distance from the print surface. During a calibration and before each print, it goes through a number of points spread in a grid across the build plate and measures the distance to the sheet. These points are interpolated and used to create a virtual mesh of the bed. During printing, if the bed is slightly warped, the sensor still follows the surface according to its measured mesh.

The Klipper firmware documentation explains the same idea from the software side. Its Bed Mesh module probes a grid and corrects Z moves accordingly. You set the area to probe and the number of points on each axis: the Klipper example for a 250 x 220 mm bed probes 5 points along X and 3 along Y, 15 points in total.

Types of probes

Probe styleWhat it doesDocumented example
Inductive sensorSenses the metal of the bed or sheetPrusa MK3 family: PINDA or SuperPINDA, depending on model
Load cell in the nozzle pathSenses the force when the nozzle touches the sheetPrusa MK4/S, MK3.9/S and CORE One: load cell in the Nextruder heatsink
Deployable pin probeLowers a pin to touch the bed, then retractsBL-Touch, configured in Klipper

Prusa explains that on its load cell printers, the load cell detects when the nozzle is close enough to the steel sheet for printing, and that first-layer calibration is done automatically during the mesh bed leveling. Prusa says this also avoids damage that would be caused by the nozzle digging into the sheet. Klipper's BL-Touch guide says the pin should be roughly 2 mm above the nozzle when retracted, and that on power-up the probe performs a self-test and moves the pin up and down a couple of times.

Settings that matter

Mesh density

Prusa's MK3-family firmware (3.7.0 onward) defaults to a 3x3 mesh of 9 points. If first-layer adhesion is uneven, you can raise it to 7x7, which is 49 points. More points describe the bed in more detail but take longer.

Probe repeats

On the same Prusa setting screen you can choose how many times each point is measured. Prusa suggests 3 or 5 measurements per point, because the final value is an average. Again, more measurements mean a longer procedure.

Probe Z offset

If the result is a squashed first layer, read about a nozzle too close to the bed. Klipper defines the probe z_offset as the distance between the nozzle and bed when the probe triggers, and says an accurate value is critical to obtaining high-quality prints. Its PROBE_CALIBRATE tool measures the probe's trigger height automatically, then uses a manual probe step, the paper test, to find the nozzle height. Many ready-made printers set this for you; check your printer's manual before touching it.

Probe X and Y offsets

Klipper also needs to know where the probe sits relative to the nozzle. The offset is the nozzle position minus the probe position on each axis, and the docs describe finding it by marking tape on the bed.

How to set up and check a probe on Klipper

Klipper's documentation gives an order that also makes sense for other firmware. First set the probe's X and Y offsets: run PROBE, mark the spot on tape, read the toolhead position with GET_POSITION, then jog the nozzle over the mark and read it again. The offset is the nozzle position minus the probe position on each axis. Then run PROBE_CALIBRATE, do the paper test, ACCEPT the height and SAVE_CONFIG.

Before trusting the mesh, check the probe's repeatability with PROBE_ACCURACY. It probes ten times at one spot and reports the range. Klipper says a range of one Z step, or up to 5 micrometers (0.005 mm), is normal, while a range above 25 micrometers (0.025 mm) means the probe is not accurate enough for typical bed leveling. Its suggested remedies are tuning the probe speed or start height, or using more samples per point. Two more checks from the same page: measure the offset near several bed corners without saving (a spread above 0.025 mm makes the probe unsuitable), and probe at a consistent temperature, since a probe can read differently cold and hot. Klipper suggests waiting several minutes after reaching temperature.

Klipper also warns that changes to the motion system, hotend position or probe location invalidate the calibration, and with an XY probe offset, adjusting bed tilt does too. A stale Z offset invalidates the bed mesh with it, so rerun the mesh calibration afterwards.

Mesh settings compared

SettingWhat it doesDocumented value
Prusa MK3 family gridPoints probed per print3x3 default, 7x7 optional (firmware 3.7.0 or later)
Prusa MINI/MINI+ gridPoints probed per printFixed 4x4
Klipper probe_countPoints per axisDefault 3,3 with a minimum of 3 per axis; example 5,3
Klipper mesh_ppsInterpolated points between probed onesDefault 2,2; 0 disables interpolation
Klipper algorithmInterpolation methodlagrange by default (limited to 6 probed points per axis); bicubic needs at least 4
Klipper fade_start / fade_endGradually phases out correction as the print risesfade_start 1 mm; fade_end 0 (off) unless set

Two Prusa details are worth knowing. On the MK3 family, the 7x7 grid has a Magnet comp. option that Prusa says to leave on: three points near the bed magnets can read up to 80 micrometers off, and the setting recalculates them from neighboring points. And the MK4, MK3.9 and XL use the load cell to build a height map at several points in the print area, but Prusa's page lists no grid size or menu settings for them, so there is nothing to tune there.

Klipper tips: fade, adaptive meshes and loading profiles

  • Fade out the correction. Without fade, the mesh correction applies at every height, so the bed's bumps can be copied into the top of a tall part. Setting fade_start and fade_end phases the correction out over a height range, for example fade_start 1 and fade_end 10.
  • Probe only where the part is. Adaptive meshes scale the grid to the printed area; Klipper's example turns a 7x7 mesh into 4x4 for a half-size area. It also says adapted meshes should not be reused.
  • Load the profile. Each BED_MESH_CALIBRATE saves to a profile named default, but the default profile is no longer loaded at startup. Add BED_MESH_PROFILE LOAD=default to your start G-code or the stored mesh will not be applied, and run SAVE_CONFIG to keep profiles across restarts.

How to tell if the mesh is the problem

Look at where the first layer varies. If one corner is thin and the opposite is thick on every print, the bed is tilted or the mesh is stale, and re-running the mesh helps. If the pattern changes from print to print, suspect the probe itself (run the repeatability test), debris on the nozzle or a loose bed. If only the center is off on a warped bed, a denser mesh may help, but Klipper says software correction can only approximate the shape of the bed. If every point is uniformly too close or too far, that is the Z offset, not the mesh.

What can't auto bed leveling fix?

It cannot fix mechanical or electrical faults. Klipper is direct about the limits. Software-based correction will not achieve perfect results: it can only approximate the shape of the bed. Bed Mesh also cannot compensate for mechanical and electrical issues. If an axis is skewed or the probe is not accurate, the module receives inaccurate data. And Klipper says the probe's Z offset must be calibrated before you do mesh calibration.

That fits with how the printer behaves in practice: ABL smooths out small bed variations, not large mechanical errors. If the first layer is uneven even with leveling on, work through the first layer fix guide and the bed leveling how-to.

Common mistakes

  • Debris on the nozzle. Prusa says debris on the nozzle can push the bed down when probing and interrupt the process. The printer then re-homes and tries again, up to three times before canceling the print.
  • Touching the bed while it probes. Prusa lists this as a cause of the same retry behavior.
  • Treating ABL as a replacement for a sound setup. A loose gantry or a wobbly bed shows up in the probe data.
  • Changing the build plate and not checking. Different sheets can change the first layer. See build plates explained.
  • Skipping a calibration routine. Our calibration guide places leveling in the full order of steps.

Do you need auto bed leveling?

A simple rule. If you print regularly, change sheets, or want less fiddling, ABL is worth having. A well-tuned manual bed can print fine, but needs rechecking more often. When you compare machines, the maker's spec page usually names the probe type, so check it. For a budget example that lists a CR Touch probe, see the Creality Ender-3 V3 SE first look. The first printer checklist shows where this sits among other features.

If the A1 reports a leveling or Z homing error, this A1 troubleshooting guide walks through the causes.

Frequently asked questions

What is auto bed leveling?

It is a system where a probe measures the distance to the bed at several points and the printer compensates for the differences by adjusting Z during printing. On Prusa printers the points form a grid that the firmware interpolates into a virtual mesh, and a slightly warped bed is followed according to that measured mesh. Most systems do not physically move the bed.

Does auto bed leveling replace manual leveling?

Not entirely. It compensates for small variations, but Klipper's documentation says software correction can only approximate the shape of the bed and cannot fix mechanical or electrical issues. If an axis is skewed or the probe is inaccurate, the mesh data will be wrong too. Follow your printer maker's guidance on whether any manual tramming is still needed, and set the probe Z offset first.

How many points should a bed mesh have?

It depends on the printer. Prusa's MK3-family firmware (3.7.0 onward) defaults to a 3x3 mesh of 9 points and it can be raised to 7x7 (49 points) if first layer adhesion is uneven. Klipper lets you set the number of points per axis, for example 5 by 3 on a 250 x 220 mm bed. More points describe the bed in more detail but take longer.

What is the probe Z offset?

It is the distance between the nozzle and the bed at the moment the probe triggers. Klipper calls an accurate value critical for high-quality prints and provides a PROBE_CALIBRATE tool that measures the trigger height, then uses a manual paper test to find the nozzle height. Many factory printers set it for you, so check your manual before changing it, and calibrate it before mesh calibration.

Sources

Sepehr Sabbagh-pour

Founder and editor

Sepehr Sabbagh-pour

Software engineer since 2009 and Head of Engineering by day, a maker who has owned several 3D printers, writing practical guides to 3D printers, filament and running costs, with every article saying what was and was not tested.

Drafted with AI assistance, then edited and reviewed by Sepehr before it goes live. How we use AI.

Illustration: a generic nozzle hovering just above a graphite bed with a sheet of paper between them, orange spot on the tipAI illustration
How-to guides

How to Level a 3D Printer Bed

Leveling is really three jobs: getting the bed flat to the nozzle, setting the nozzle height, and judging the first layer. Here…

11 October 2026 · 5 min read