Layer shifting is one of the more dramatic failures in 3D printing. Your print starts fine, then somewhere mid-print the whole thing slides sideways and carries on printing in the wrong position. Sometimes it shifts once. Sometimes it shifts repeatedly and you end up with a staircase-looking mess.
The good news is that layer shifting almost always has a mechanical cause, and mechanical problems are fixable.
Layer shifting happens when the print head loses its position during a print. The printer thinks it is in the right place, but physically the head (or the bed) has moved - so every layer printed after that point is offset. The print does not stop or fail, it just keeps going from the wrong position.
It shows up as a horizontal step or offset in your print, sometimes subtle (a millimetre or two), sometimes dramatic enough to knock the print off the bed entirely.
This is the most common cause. The belts that drive your X and Y axes stretch over time and can loosen, especially on printers that see a lot of use. A loose belt slips under load - usually when the print head suddenly changes direction at high speed.
How to check: Press the belt with your finger. It should feel taut, like a guitar string - not floppy, but not so tight it is under extreme tension. If it deflects more than a few millimetres with light pressure, it needs tightening.
Fix: Use the tensioner built into your printer (most modern printers have one - usually a small wheel or screw at the end of the axis). Tighten until the belt feels firm. If your printer has no tensioner, check the belt clips and carriage mount.
At high speeds, your stepper motors have to change direction very quickly. If the acceleration is too high for the motor's torque to keep up with, it skips steps - and a skipped step means a shifted layer.
This is more common on:
Fix: Reduce print speed, and more importantly, reduce acceleration. In most slicers, acceleration is a separate setting to speed. Try cutting acceleration by 30-40% and see if the shifting stops. If you are using default profiles, check whether someone else has reported shifting at those speeds for your printer model.
See the speed vs quality guide for help finding the right balance.
This sounds obvious, but it is easy to miss. A loose cable that catches on the frame, a bit of filament stuck to the print, a knocked-over spool, or even a tool left too close to the printer can stop the head mid-move.
Fix: Watch the first few layers of your print from start to finish at least once. Check that cables are managed and not snagging. Make sure nothing is within range of the print head's movement path.
If your stepper drivers get too hot, they throttle themselves or shut down temporarily to protect the electronics. When a driver cuts out briefly, the motor stops, and the print head does not move when it should - resulting in a shift.
This is more common in printers without good cooling (older machines, budget enclosed printers with poor airflow) and in hot environments.
Fix: Check that the electronics cooling fan is running and that there is airflow over the control board. If you are in a warm room, try printing with the printer in a cooler spot. Some printers let you adjust stepper driver current - do not increase current beyond the manufacturer's specification.
The toothed pulleys that connect your stepper motors to the belts are held on with tiny grub screws. Over time these can work loose, especially if the printer has vibrated a lot. If a pulley slips on the motor shaft, the belt still moves but the motor rotation is not fully transmitted.
Fix: With the printer off, try to wiggle each pulley by hand. It should not move on the shaft. If it does, locate the grub screw (usually two - one should be over the flat side of the motor shaft) and tighten with a hex key. Apply a small dot of threadlocker if you have it.
Layer shifting on the X axis shows up as the print being offset left or right in your slicer's X direction. Shifting on the Y axis shows the print offset front to back. Check the belt, pulley, and motor on the affected axis specifically - you do not need to overhaul both.
If you are experiencing layer shifting, work through this in order:
Most layer shifting problems are fixed by steps 1 and 2 alone.