Layer shifting is one of the more dramatic failures in 3D printing. The print starts fine, then somewhere mid-print the whole thing slides sideways and carries on from the wrong position. Sometimes it happens once. Sometimes it repeats and you end up with a staircase.
The good news is that layer shifting almost always has a mechanical cause, and mechanical problems are fixable once you know where to look.
The printer thinks it is in the right position, but physically the head or bed has moved. Stepper motors drive 3D printers open-loop - they receive commands but have no feedback to confirm the move happened correctly. A skipped step or a physical obstruction means the head moves to the wrong place and prints from there, with no recovery.
This is the most common cause by a significant margin. Belts stretch over time and can loosen, especially on machines that see a lot of use. A loose belt slips under load - usually when the head changes direction sharply at speed.
Check: Press the belt with your finger. It should feel taut, like a tight elastic band - not floppy, but not under extreme tension either. More than a few millimetres of deflection under light pressure means it needs tightening.
Fix: Use the tensioner built into your printer. Most modern machines have one - 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.
Check both X and Y axes. A shift in the X direction (left/right in your slicer) points to the X belt. A shift in Y (front/back) points to the Y belt.
Stepper motors have a torque limit. If acceleration demands a direction change faster than the motor can deliver, it skips steps. One skipped step equals one shifted layer.
This shows up more often on:
Fix: Reduce acceleration first, then speed if needed. Acceleration has more effect on shifting than speed does. In most slicers, acceleration is a separate setting - cut it by 30-40% and test. If the shifting stops, bring it back up slowly until you find the limit.
Default acceleration profiles are often set optimistically. The number that works in the manufacturer's demo video is not always the number that works reliably on your specific machine with your specific belts.
A loose cable catching on the frame, a bit of strung filament that got knocked into the path, a tool left too close, a spool rolling off its holder and tangling. Any of these can stop the head mid-move.
I have had a cable tie pop off and get snagged in the frame during a 6-hour print. The head stopped, the printer kept commanding movement, and every layer after that point was offset by exactly the width of the cable tie. Took me a while to figure out because the result looked like a motor skip.
Fix: Watch the first few layers from start to finish at least once on a new machine or after any changes to cable management. Make sure nothing is within the movement path of the head. Route cables so they cannot catch or pull.
If stepper drivers get too hot, they throttle or shut down temporarily to protect themselves. When a driver cuts out, the motor stops mid-move and the print shifts.
This is more common in older machines, budget enclosed printers with poor airflow, and in warm rooms.
Fix: Confirm the electronics cooling fan is running. On some printers this fan only kicks in when the board temperature exceeds a threshold - check that it is actually spinning during a print, not just at startup. Ensure there is airflow over the control board. If the board has exposed stepper driver chips (common on older Creality boards), a small additional fan pointed at them can help.
Do not increase stepper driver current beyond specification. It increases heat and can damage the drivers.
The toothed pulleys connecting stepper motors to belts are held by tiny grub screws. Over time, vibration works them loose - particularly if the printer has been moved or run hard. If a pulley slips on the motor shaft, the belt 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, find the grub screw (usually two - one should sit on the flat part of the motor shaft) and tighten with a hex key. A small dot of threadlocker on the screw prevents it happening again.
Steps 1 and 2 fix the majority of cases.