kapy academy

Layer shifts and spaghetti

17 min readUpdated Nov 2026

Most failures spoil one face; these two scrap the whole part. In a layer shift, the part slides a few millimeters sideways above a certain height and leaves a clean step. In spaghetti, the nozzle extrudes over thin air and the plastic piles up into a nest of strands. They belong together because almost every FDM printer runs open loop: if a motor skips steps or the part comes loose, the machine carries on printing in the wrong place. Both usually end a chain that started lower down (Reading a failed print): fix the first link, not the nest.

Read the step

A single step means something stopped the head once (a collision, a snag). Several steps or a slow lean mean something is loose or slipping: a pulley set screw, the belt, a motor with no torque to spare. Spaghetti says the part, or the layer below, was missing. Before you open anything up, measure the step with your callipers and look at its shape.

Four towers seen from the front are printed layer by layer, each with its nozzle. The first shifts 6 mm at once at layer 9 and comes out parallel above it; the second shifts 3 mm at layers 5, 8 and 11, a staircase; the third shifts 0.8 mm on every layer from layer 5 and the wall leans; in the fourth, two reprints shift at the same layer, 10. A dashed outline marks the part as designed
The shape of the step tells you what to look for. A clean step is a one-off event; a staircase, a slipping pulley; a lean, small losses on every layer; the same height on every reprint points to the file. The step sizes are examples and the layers are drawn 4 mm thick.

One clean step

Above the step, everything is parallel and complete: it was a one-off: something stopped the head for an instant. The nozzle hit a curled overhang, a lifted corner or a blob, or the head cable or the filament snagged. It usually measures a few millimeters and follows one axis (on a CoreXY, often the diagonal; the next section explains why).

How big it is

With the usual 20-tooth pulley and GT2 belt at 2 mm pitch, the carriage travels 40 mm per motor revolution; at 200 full steps per revolution, that is 0.2 mm per step. A belt that jumps one tooth loses 2 mm. A stalling motor loses steps in groups of four full steps: 0.8 mm or a multiple with this pulley. On a bedslinger, a step that is a multiple of 2 mm but not of 0.8 (2, 6, 10 mm) points to the belt; 4 or 8 mm could be either. A value that fits neither count points to a pulley that turned on its shaft. On a CoreXY, one tooth skipped on a single belt moves the head 1 mm in X and 1 mm in Y.

Staircase

Several steps in the same direction mean something keeps slipping. The classic cause is a motor pulley whose set screw is not seated on the flat of the shaft: on every sharp move, the pulley turns a little on the shaft. Prusa's guide to layer shifts names it as the typical source of this pattern. Tighten both set screws, one on the flat.

Slow lean

With no clean step, these are small, repeated losses, layer after layer: a pulley creeping steadily on its shaft, a motor short of current or a hot driver dropping microsteps, or the magnetic plate creeping across the bed. Do not confuse it with a periodic mark: a lean moves the whole wall, whereas ringing and VFA leave ripples on a wall that stays where it is (Wall marks: ringing, VFA and Z-banding).

At the same height on every reprint

If the step always lands at the same height, the cause is in the file, not the machine. Open the slicer preview and drag the layer slider to that height: look for a long travel move over the part, an island that starts there, a support transition, an abrupt infill change, or a filament change with its trip to the purge tower. If the height changes every time, the cause is mechanical or thermal: belts, pulleys, drivers heating up.

What is not a layer shift

A crack or a gap between two layers is layer separation (Layers splitting apart). Thin or gappy layers from a certain height up are an extrusion problem (Extrusion problems). In a layer shift, the layers on both sides of the step are complete and sound.

Which axis moved

On a bedslinger, each axis has its own motor. A step in X points to the head: its motor, its pulley, its belt. One in Y points to the bed: its motor and belt, or a heavy or tall part rocking on a bed that shuttles back and forth.

On a CoreXY, both motors take part in every move. If A and B are the rotations of the two motors, the head moves X = (A + B)/2 and Y = (A − B)/2. If only A skips steps, X and Y change together and by the same amount: the step comes out at 45°, on the diagonal. The same happens if only one belt jumps teeth. A diagonal step on a CoreXY therefore points to one motor, one pulley or one belt. Each CoreXY motor moves the head along one diagonal, so the direction of the step tells you which one to check: A or B. On a CoreXY, a step in X alone or Y alone needs both motors or both belts to lose the same amount: a collision that stopped the whole head, or an out-of-square gantry.

A bedslinger and a CoreXY seen from above and slightly in front print the same square layer by layer. Before the fourth layer the bedslinger's X motor loses 16 mm of belt and the following layers come out 16 mm over in X; on the CoreXY only motor A skips and the step comes out at 45°, 8 mm in X and 8 in Y
On a bedslinger, a motor that skips steps moves the part along its own axis. On a CoreXY each motor contributes to both X and Y, so if only one skips steps the step comes out on the diagonal. Both lose the same 16 mm of belt here: the bedslinger's X motor shifts the layers 16 mm in X; the CoreXY's motor A, 8 in X and 8 in Y. The dashed square marks where the layers should have gone.

Layer shifts in Z hardly ever happen. A Z axis that drags or binds (two lead screws out of sync, a dry lead screw) leaves a squashed or missing layer and a poorly bonded band, not a sideways step. That is covered in Bed and motion upkeep.

Collisions: the most common cause

A stepper motor holds its position only while the load stays below its torque, and torque falls as speed rises. An enclosed CoreXY prints walls at 200–300 mm/s, and a modern bedslinger at 150–200 mm/s. If the nozzle hits plastic at that speed, the impact demands far more torque than the acceleration itself, and the motor skips a group of steps. The belt is still intact; the position is lost.

What the nozzle hits, from most to least common on a modern machine:

  1. The curled edge of an overhang. Fix it with more cooling on that stretch and the overhang settings (Overhang and bridge failures). With ABS and ASA, keep the fan low, never off.
  2. A corner lifted by warping. Closed enclosure, bed at the material's temperature, mouse ears (Warping and lifting corners).
  3. Infill crossings. In grid infill, every crossing stacks two lines from the same layer and, with a little over-extrusion, stands proud; the nozzle grazes it on every pass. Gyroid and Cross Hatch do not cross lines within a layer, so they do not raise those peaks. Switch if your profile uses grid, and check the flow (Walls, perimeters and infill, Extrusion problems).
  4. Blobs and zits left standing (Stringing and blobs).
  5. An over-extruded top layer.

The slicer gives you three cheap defenses. Z hop lifts the nozzle on every travel move so it clears whatever sticks up; the price is that with stringy materials such as PETG it multiplies the strings, so limit it to top surfaces or turn it on when you know there is curl (Stringing and blobs, Top surfaces). Orca's "Avoid crossing walls" option (with equivalents in Bambu Studio and PrusaSlicer) routes travel moves inside the part, so the head stops sweeping across lifted edges at full speed. PrusaSlicer adds "Avoid crossing curled overhangs (Experimental)", which routes around the overhangs it predicts will curl. None of them removes the curl: fix it at the source.

Tall, thin parts. A slender tower sways with every pass and, above a certain height, the nozzle hits it on the way back. Lower the speed and acceleration for that stretch only with a height-range modifier (Modifiers by region and height), or change the orientation.

Belts, pulleys and motors

Belt tension

If it is too slack, the belt jumps teeth under acceleration and also adds backlash and ringing. Too tight, it loads and wears the bearings and motors. How you set it depends on the machine. On some, the correct tension is a frequency the manufacturer specifies, which you measure with an app or with a routine on the printer itself, such as the CORE One's belt tuning wizard. On others, such as the Bambu X1 and P1, springs set it: you loosen the motor screws, move the head and tighten them again, following the maker's procedure. The step-by-step is in Bed and motion upkeep.

Set screws

Pulley set screws are the most common mechanical cause on a printer that "worked yesterday". Check both screws on every X and Y motor pulley, with one seated on the flat of the shaft, and mark them with a paint pen: if they move, you will see it.

Obstructions

It may be a strand wrapped round a belt or pulley, a cable chain or the tail of a cable tie rubbing on the frame, a tangled spool pulling on the head (on a direct drive, the filament's tug reaches the head), or purge waste piled up in the chute that the head crashes into. With the motors disabled, move each axis by hand: it should slide with even resistance from one end to the other.

Too much acceleration

On a current printer, the stock profiles are already close to the motors' limit: 4,000–6,000 mm/s² on a modern bedslinger, 5,000–10,000 on an enclosed CoreXY. If you raise them in a custom profile, or load a profile made for a modern bedslinger onto a classic one (500–1,250 mm/s²), the motors skip steps on heavy moves. The touchiest case is the Y axis of a bedslinger with a large part on it. Before you change anything else, go back to the stock profile. Input shaping lets you accelerate harder without ringing, but it does not add torque (Acceleration, resonance and input shaping).

Motor current

On classic bedslingers, driver current set too low (the Vref on older drivers) is a common cause of layer shifts. Set it to the manufacturer's value and do not raise it blindly: it heats the motor and the driver. Loose V-wheels and eccentric nuts on those machines cause play, not steps.

Heat

In a hot enclosure, with ABS, ASA or PC and the door shut, drivers and motors lose torque, and some drivers cut current or shut down on temperature. The symptom: layer shifts that only appear after an hour or more, at different heights. Check that the electronics cooling works and that the enclosure stays below the maximum temperature the machine allows.

Quiet modes

Quiet modes lower the motor current and, with it, the torque margin. On some machines, such as the Prusa MK3S+, the manufacturer recommends normal mode for large or complex parts, and in Stealth mode crash detection does not work.

What the machine does for you

The firmware counts steps and cannot see where the head is. Some machines detect step loss (Bambu "Auto-recovery from step loss", Prusa on the CORE One/MK4S/XL), others use motors with an encoder or watch by camera; none of them removes the cause (Sensors, cameras and failure detection).

Spaghetti: where it comes from

Gray support half printed, still stuck to a textured PEI plate, with a tangle of fine strands on and around it, and the nozzle above with a lump of plastic starting to cling to it (generated illustration)
Gray support half printed, still stuck to a textured PEI plate, with a tangle of fine strands on and around it, and the nozzle above with a lump of plastic starting to cling to it (generated illustration)

The nozzle is printing at the right height, but onto thin air. Each strand falls, cools in the air and tangles with the others. To work out what was missing, look at what is left on the plate and, if you have one, the timelapse.

The part came loose

The base lets go (poor adhesion, warping that grew until the corner lost contact, a dirty or worn plate), the nozzle drags it away and the rest is spaghetti. The plate shows a clean footprint, or the part turns up lying somewhere else (The first layer and bed adhesion, Warping and lifting corners, Brims, rafts and mouse ears).

The part toppled or was knocked over

This happens with tall, narrow parts, small footprints, or after a hard collision with curl. As a rule of thumb, once the height exceeds about four times the width of the base, expect sway and a risk of toppling. It is not a physical limit: adhesion, mass and acceleration matter too, and a brim or a textured plate pushes it up. Print the part lying down, or add a 5 to 8 mm brim or a modeled sacrificial tab, and slow down for the upper part.

The layer below was missing

A support fell over (thin branches on a tall tree support, a support base that came loose), a layer shift moved the part out from under the nozzle, or an island started in mid-air, which was already visible in the preview (Support settings, Overhang and bridge failures). A nest at one height only, with a sound part above it, is a local gap. If the nest runs from one height to the end, the part was no longer there.

Extrusion stopped and came back

A clog or the end of the spool left layers unprinted; when plastic flowed again, the nozzle was far above the part. You see a sound part at the bottom, an empty band and then strands (Extrusion problems). In multicolor, a failed filament change ends the same way (Multi-material failures).

If you print several parts at once, layer by layer rather than object by object, a part that comes loose drags strands over the others. If the G-code carries object labels and you get there in time, canceling only that object saves the rest (Many parts on one plate).

The blob on the heater block

If nobody stops the spaghetti, the strands stick to the hot nozzle instead of falling, and the molten plastic grows into a ball (the dreaded blob of death) that engulfs the nozzle, the heater block and sometimes the thermistor and heater cartridge wires. It forms faster with plastics that stick to themselves when hot, such as PETG or PLA, and when the part comes loose early in the print.

Hotend seen from the side with the nozzle, the heater block and part of the heatsink engulfed in an irregular walnut-sized ball of orange PETG, with two thin wires running into it (generated illustration)
Hotend seen from the side with the nozzle, the heater block and part of the heatsink engulfed in an irregular walnut-sized ball of orange PETG, with two thin wires running into it (generated illustration)

It is more than a mess. The blob insulates the block and pulls on the wires. A thermistor that works its way out of the block reads low and the firmware keeps heating; at that point the only thing that cuts the heater is thermal runaway protection. Keep it enabled, do not leave a modified printer alone while it prints, and fit a smoke detector above it (Fire risk and unattended printing).

How to remove it without breaking anything. Turn off the part-cooling fan and heat the hotend to the material's printing temperature to soften the plastic; then pick it off bit by bit with pliers, wearing gloves. Never lever against the block or pull on the wires. Stay with it while it is hot: if the thermistor has moved, the reading may be wrong, and if the temperature behaves oddly, switch off. If it had a silicone sock, replace it: the sock is what lets the blob come off in one piece. Afterwards, check the wires and strip down the hotend if plastic reached the heatsink (Nozzle and hotend care).

You prevent it the same way as spaghetti: good adhesion, some form of detection and a silicone sock on the block.

Rescuing the print

A part with a layer shift is almost always lost: you can only resume if the machine detected the step loss as it happened.

Cancel at the first sign: a corner lifting, a nozzle knocking, a strand dragging. Every extra minute makes the blob bigger and the clean-up longer. Remove the nest with the hotend parked and cold, except when you are softening a blob on the block.

When it fails

Layer shifts and spaghetti: symptom, cause and fix
Symptom Cause Fix
One clean step, along one axis Collision with a curled overhang, a lifted corner or a blob Fix the curl or the warping; Z hop (Overhang and bridge failures, Warping and lifting corners)
Diagonal step on a CoreXY One motor, one pulley or one belt jumping teeth Set screws and belt (Bed and motion upkeep)
Staircase in one direction Pulley set screw slipping Tighten it on the flat of the shaft
On a bedslinger, a step of exactly 2 mm or a multiple (4 or 8 mm can also be the motor) Slack or worn belt jumping teeth Tension it to the manufacturer's value or replace it
Slow lean Pulley creeping, low current, hot driver, plate creeping Set screws, current at the manufacturer's value, cooling, plate
Step at the same height on every attempt A move or a change on that layer of the file Check that layer in the preview; avoid that travel move or change the detail
Steps after an hour or more, at different heights, hot enclosure Overheating drivers or motors Electronics cooling; respect the enclosure limit
Steps after raising speed or acceleration Not enough motor torque Go back to the stock profile (Acceleration, resonance and input shaping)
Steps in Y on a bedslinger with a heavy or tall part Bed inertia Lower Y acceleration, change the orientation
Nozzle knocks on the infill at high speed Grid infill with crossings Gyroid or Cross Hatch; check the flow (Walls, perimeters and infill)
Spaghetti and a clean footprint on the plate The part came loose The first layer and bed adhesion
Spaghetti from one height up, sound part below Fallen support, missing layer or clog Support settings, Extrusion problems
Ball of plastic on the heater block Unwatched spaghetti Soften it hot and pick it off; check the wires, silicone sock (Fire risk and unattended printing)

See also

Design it in KapyCAD

Many of these problems are cheaper to fix in the model than in the slicer: wall thickness, overhangs, the face the part stands on.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?