Print not centred on the bed? Find the real X0 Y0 and fix the offset

By Sina Esfahani, OmniTechs · Published 27 November 2026

The slicer centres your part on the bed it thinks the printer has. The printer places it relative to the X0 Y0 it sets after homing. When those two disagree, a part that sits in the middle of the slicer's plate lands off-centre, half off the bed or in front of it.

The size of the offset tells you where to look. About half the bed means the slicer's origin is in the wrong place. The same few millimetres to centimetres on every print means the firmware does not know where the endstops sit; that often follows a firmware flash or a new hotend or carriage. A nozzle that parks beside the bed after homing is usually normal.

Fix it in this order:

  1. Check the slicer has the right printer profile, with the bed size the nozzle can reach, not the plate's outer size.

  2. Check the origin: 0,0 at the front-left corner on most Cartesian printers, and Cura's Origin at center checkbox off.

  3. Home with G28, then send G1 X0 Y0 Z15: the nozzle tip should stop above the front-left corner of the printable area.

  4. Measure how far the tip is from that corner in X and in Y.

  5. On Marlin, correct it with M206 (read the stored value with M503 first) or M428, then save with M500.

  6. On Klipper, change position_endstop and position_min for that axis, restart and test again.

  7. Repeat the test after every firmware flash and every hotend, carriage or extruder change.

Which offset do you have?

Off-centre symptoms and where the fix lives

Based on the Marlin and Klipper documentation and the Stack Exchange and Klipper forum answers under Sources, read on 27 November 2026.
What you seeWhat it meansWhat to do
The print starts in a corner or runs off the edge by about half the bedSlicer origin in the centre while the printer's is front-left, or the other way roundBed origin in the slicer
The same offset of millimetres to centimetres on every printThe firmware has the wrong endstop-to-bed distanceHome offset (M206, M428), minimum position in Marlin, or Klipper's position_endstop
Large prints run off one edge while the other side has roomSlicer bed larger than the area the nozzle reachesBed size in the slicer, then the offset
The nozzle parks beside or in front of the bed after homingUsually intendedNothing, if X0 Y0 lands on the bed corner
The probe goes to the middle of the bed, the nozzle does notIntended with Z safe homingNothing; check the probe offset
The position moves partway through a printA layer shift, not an origin problemLayer shift troubleshooting

If the print moves partway through rather than starting in the wrong place, read layer shifting causes and fixes instead.

Check the slicer's bed and origin first

Start with the printer profile. A profile for a similar model with a different bed puts the centre in the wrong place. Then open the bed settings:

  • PrusaSlicer: Printer Settings, General, Size and coordinates, Bed shape. The Origin field is the distance of the 0,0 G-code coordinate from the front-left corner.

  • OrcaSlicer: Printer settings, Basic information, Printable space. The fields are the same: size in X and Y, and the origin measured from the front-left corner.

  • UltiMaker Cura: Settings, Printer, Manage Printers, Machine Settings. Here you find X (Width), Y (Depth) and the Origin at center checkbox, which is off by default.

On most Cartesian printers the origin is 0,0. Delta printers and a few Cartesian printers put it in the middle of the bed. Answers on the 3D Printing Stack Exchange name Cura's origin checkbox as the classic reason an Ender 3 starts printing at the front edge or off the plate.

Enter the area the nozzle can reach, not the outer size of the plate. The slicer's centre is the centre of the size you give it, so a bed defined too large pushes the centre too far, as a Klipper forum moderator explains. In one Stack Exchange case the slicer had a 228 by 150 mm bed on a printer that reached 225 by 145 mm.

Find where the printer really puts X0 Y0

Test the printer before you change its settings:

  1. Home all axes with G28. Send it from the printer's terminal (OctoPrint, Pronterface, Mainsail or Fluidd) or from a small G-code file.

  2. Send G1 X0 Y0 Z15. The nozzle should stop above the front-left corner of the printable area. The 15 mm height keeps it clear of clips and the bed.

  3. Move to the centre and compare, for example G1 X110 Y110 Z15 on a 220 by 220 mm bed.

  4. Measure at the nozzle tip, not the hotend body. Write down the error in X and in Y, and which way.

Marlin's homing documentation states the target: after homing, G1 X0 Y0 Z0 puts the nozzle at the front-left corner of the bed, touching it. Keep the raised Z for the test anyway. The guide to G-code commands you will edit explains G28 and G92 if they are new to you.

Homing beside the bed is usually normal

Many printers home with the nozzle off the plate. Their endstops do not sit at the bed's corner, and the firmware stores the distance between the two. Starting off the plate also keeps the nozzle from crashing into a bed that has not been levelled yet. That is the accepted explanation on the Stack Exchange question about an Ender 3 that homes off the bed, viewed nearly 90,000 times. As long as G1 X0 Y0 lands on the bed's corner, nothing needs fixing.

Correct the offset in Marlin

Marlin gives you three routes. The first two need no new firmware.

M206 home offsets. M206 shifts the whole coordinate space and stays until you change it. The sign is the part people get wrong: a positive value moves the print area towards negative X or Y. Marlin's own example is M206 X10, which shifts the print area 10 mm to the left. The value you send replaces the stored one, so read the current offsets with M503 first.

Worked example. After the test, the nozzle tip sits 8 mm left of the bed's left edge and 5 mm in front of the front edge. You want X0 8 mm further right and Y0 5 mm further back. With stored offsets of zero, send M206 X-8 Y-5. Home again, repeat G1 X0 Y0 Z15, and save with M500 once it lands on the corner. M206 is not available on delta printers.

M428. Jog the nozzle to the point that should become X0 Y0 and send M428. Marlin makes the current position the home position. Its example: after G1 X10, M428 turns X10 into X0 and sets the X home offset to -10. The nozzle must be within 2 cm of 0 or of an endstop. Save with M500.

The firmware configuration. After homing, Marlin sets each axis to X_MIN_POS, or to MANUAL_X_HOME_POS if you define it for a switch that sits beyond the printable area. A Stack Exchange answer shows an Anet A8 shipping with X_MIN_POS -33 and Y_MIN_POS -10, and works out -16 and -5 for a printer whose endstops sat 16 mm and 5 mm from the bed. Changing these means building and flashing firmware; the printer firmware guide covers what that involves.

Teaching Tech walks through every option in order: moving the endstops, sliding the Y rail on an i3-style frame, changing the minimum position in firmware and defining offsets with M206.

Align / offset your nozzle and bed to maximise available build volume (Teaching Tech)

Makers Mashup shows the M428 route through a terminal and notes that home offsets are often lost after a firmware upgrade or on a newly built printer.

Adjusting Home Offsets - Marlin M428 / M206 | Reclaim lost build volume (Makers Mashup)

A G92 line in the start G-code can also redefine the origin after homing. It only works in the slicer that holds that start code, and Stack Exchange answerers prefer the firmware fix, because the printer then knows its real limits. If you use it, keep your start and end G-code documented.

Correct it in Klipper

Klipper does not know how big your bed is. It only knows where the endstop is and how far each axis may move. In its configuration reference, position_endstop is the location of the endstop in millimetres, position_min the lowest position you may command (0 by default) and position_max the highest.

Worked example. The X endstop triggers with the nozzle tip 25 mm left of the bed's left edge. In the [stepper_x] section, set position_endstop: -25 and position_min: -25. X0 is now the bed edge, 25 mm from the endstop, which is how a Klipper forum moderator explains the same values. Restart, home and run the X0 Y0 test again. Then set the slicer's bed to the area from there to the furthest point the nozzle reaches.

The probe goes to the middle, the nozzle does not

On printers with a probe, Marlin's Z safe homing moves the probe, not the nozzle, to the homing point, which is the centre of the bed by default. Marlin subtracts the probe's offset to get there, so the nozzle stops beside the centre. That is by design. If the probe lands in the wrong place, the probe offset is wrong; see probe offsets and failures. Height is a separate setting, covered in setting the z-offset.

When software cannot fix it

Offsets only move the coordinate system. They cannot make the nozzle reach a part of the bed it physically cannot get to. If the tip at X0 is already over the bed instead of beside it, and the axis hits its endstop before reaching the edge, the fix is mechanical: move the endstop or, on an i3-style frame, slide the rail (both shown in the Teaching Tech video above). For an ordinary offset, Marlin's homing guide says to adjust the home position rather than move the switches; moving hardware is only for an axis that cannot reach the bed.

Check the origin again after any change that moves the nozzle relative to the endstops. One Stack Exchange answer reports an offset of a few centimetres after an Anet A8 got a new hotend and carriage, and a firmware flash can replace stored offsets with defaults.

Not sure which firmware your printer runs? The printer firmware guide shows how to find out with M115 before you send M206 or edit a Klipper config. If you chose the G92 workaround, the start and end G-code guide shows what a start sequence contains and how to edit it one step at a time. And once the origin is right, a first layer that is too high or too low is a z-offset question, not an origin one.