X gantry not level or frame not square? Fix the mechanics before you level the bed
By Sina Esfahani, OmniTechs · Published 30 November 2026
The X gantry is the beam that carries the print head. It should run parallel to the bed, on uprights that stand square to the bed. When one end sits higher, the cause is mechanical: two Z lead screws out of step, the free end of a single-screw gantry fixed at the wrong height, loose wheels, or a frame bolted together crooked.
Bed levelling and a mesh can hide a small tilt but do not remove it. Fix the mechanics first, then level the bed. Start by measuring: switch the printer off, unplug it, and check whether both ends of the gantry sit at the same height above the base.
Fix it in this order:
Switch the printer off and unplug it; turn lead screws and couplers slowly by hand.
Measure: lower the gantry onto two blocks of equal height standing on the base; both ends should touch at the same moment.
Remove play: turn a loose wheel's eccentric nut a few degrees at a time until nothing rocks but the wheel still rolls.
Two Z motors on separate drivers plus a probe: G28, then G34 (Marlin) or Z_TILT_ADJUST (Klipper), before the mesh. Otherwise turn one lead screw by hand until both ends touch the blocks.
One Z screw (classic Ender 3): set the free end's height at its wheel bracket, with both uprights seated flush on the base.
Check the frame with a square from the bed to each upright; loosen one joint at a time, never the whole frame.
Then level the bed and set the Z offset again.
Read the symptom first
Gantry and frame symptoms, what they mean and what to do
| What you see | What it means | What to do |
|---|---|---|
| One end higher, the same after every restart (one Z screw) | Free end fixed at the wrong height, or an upright not flush | Seat the upright; reset the free end's bracket |
| The tilt changes after power-off, a crash or turning a screw by hand (two Z screws) | The Z motors are out of step | G34, Z_TILT_ADJUST, or align by hand on blocks |
| First layer fine on one side, too high or low on the other | Gantry and bed are not parallel | Align the gantry, then level the bed |
| Print head, bed or a gantry end rocks when pushed | Loose wheels | Adjust the eccentric nuts |
| Z runs stiffly or one side lags at certain heights | Lead screw nut out of line, or a slipping coupler | Re-seat the nut holder at the tight spot; check couplers; lubricate |
| Gantry or bed sinks when the motors switch off | The lead screw turns back under the weight | Keep Z powered, or align at every print start |
| One side tilted after a jam on a printer with a Z belt | The belt skipped a tooth | Follow the maker's realignment procedure |
Measure before you change anything
Work with the printer off and unplugged. Creality warns that a powered printer shuts down if you push the nozzle or bed quickly by hand.
Two equal blocks. Stand two identical blocks on the base under the ends of the gantry and turn the lead screw slowly until the gantry rests on them. The end that touches first is low. Elegoo sets the gantry of its Neptune 4 this way.
Calipers. Measure from the base frame to the underside of the gantry next to each upright; the bed rides on the base, so it is the better reference.
The probe. A probe sees the tilt as a sloping plane; on Marlin, G34 prints the difference between the motors.
A try square for the frame. Set it on the bed against each upright. Creality's check for the Ender-3 V3 SE measures the upright against the bed platform, not the base cover.
Both ends touching at once, calipers that agree and no light under the square: that is a pass. No maker publishes a tilt tolerance for these printers.
Set the eccentric nuts: no play, no drag
An eccentric nut is a hex spacer with an off-centre hole under a V-wheel; turning it moves the wheel towards or away from the rail. On an Ender 3, Creality puts them under the X carriage, under the bed and on the wheels that run up the uprights.
With the power off, rock the part by hand. A clunk or a visible tilt means a loose wheel.
Turn that wheel's eccentric nut with the flat wrench supplied with the printer, a few degrees at a time.
Roll each wheel with a finger: it should turn against the rail with light resistance. One that spins freely is too loose; one that will not turn is too tight (Creality).
Slide the part through its whole travel; it must move smoothly, with no tight spots.
Too tight strains the parts (Creality). On its Neptune 4, Elegoo says one of the six X wheels usually stays slightly loose because of tolerances, with very little effect on prints; do not force it. Eccentric nuts set play, not height: the owner of a tilted Ender 3 on Stack Exchange called adjusting them probably a mistake. Beds on round rods or linear rails, such as the Ender-3 V3 SE's, have no eccentric nuts; play there means loose screws or worn bearings.
The Edge of Tech adjusts the eccentric nuts under an Ender 3 bed; Creality describes the same adjustment for X and Z.
Two Z motors out of step: G34, Z_TILT_ADJUST or by hand
Dual-Z printers send the same steps to both motors, but nothing holds them together while the power is off. A lead screw settles under the gantry's weight, a motor loses steps in a stall, or someone turns one coupler, and one side ends up higher (Marlin).
Automatic alignment needs each Z motor on its own driver: Z2_DRIVER_TYPE in Marlin's Configuration.h, or a [stepper_z1] section in Klipper. Kits that wire the second motor in parallel on the same driver can only be aligned by hand.
Which alignment method fits your printer
| Your printer | Method | What it needs |
|---|---|---|
| Separate Z drivers and a probe, Marlin | G34 with Z_STEPPER_AUTO_ALIGN | One probe point near each lead screw |
| Separate Z drivers and a probe, Klipper | Z_TILT_ADJUST | A [z_tilt] section |
| Four Z motors under a moving gantry, Klipper | QUAD_GANTRY_LEVEL | Not for a moving bed |
| Solid stops at the top of Z (Prusa MK3 style) | G34 with MECHANICAL_GANTRY_CALIBRATION | Adjustable motor current |
| Two motors on one driver, or no probe | By hand on two equal blocks | Power off and unplugged |
| Lead screws linked by a belt | Nothing to sync unless the belt skipped | The maker's procedure |
Marlin: G34
Enable Z_STEPPER_AUTO_ALIGN and set one probe point per motor, as close to its lead screw as the probe reaches, with Z_STEPPER_ALIGN_XY or M422 S1 X10 Y100; the first point belongs to Z, the second to Z2. Home, heat the bed if it expands, and send G34 (LCD: Probe and Level, Auto Z-Align); in the start G-code it goes between G28 and G29. By default it runs up to 5 passes, stops below 0.02 mm and homes Z again.
Worked example. Marlin's sample run on a two-motor printer reports 2-1=0.312, then 0.021, then 0.008 and "Target accuracy achieved": the height difference between the Z2 and Z1 probe points before each pass corrects it. Shrinking numbers mean it works. "Decreasing Accuracy Detected" usually means the points are listed in the wrong order for the motors: swap the entries, not the wiring (Marlin).
Klipper: Z_TILT_ADJUST and QUAD_GANTRY_LEVEL
Add [stepper_z1] and [z_tilt]. In z_positions, list each lead screw as the nozzle position directly above it, even where the nozzle cannot reach; in points, list probe positions over the bed. The first entry belongs to stepper_z; retries and retry_tolerance repeat it until the points agree. Run G28, Z_TILT_ADJUST, then home Z again before the mesh, as Marlin does after G34. QUAD_GANTRY_LEVEL is the four-motor version for a moving gantry; Klipper warns against it on a moving bed, and it aborts above max_adjust (4 mm by default).
Without a probe: the frame or two blocks
Prusa's MK3 starts its XYZ calibration by driving both ends of the X axis to the top of the frame, and asks you to check that both got there. Marlin's MECHANICAL_GANTRY_CALIBRATION does the same at reduced current; use it only with solid stops, never on a belted or counterweighted Z axis (Marlin).
By hand, with the power off: lower the gantry onto the two blocks and turn only the higher side's coupler until both ends touch.
Worked example (example numbers). The left end rests on its block; the right end is 1.0 mm above its block. An Ender 3 Z lead screw moves 8 mm per turn (rotation_distance: 8 in Klipper's Ender 3 V2 configuration). Turn the right coupler 1.0 / 8 = one eighth of a turn, 45 degrees, in the direction that lowers it, and check on the blocks again.
Teaching Tech compares three ways to keep a dual-Z Ender 3 level: a belt kit, a second motor in parallel and a second motor with G34.
Lead screws linked by a belt
One motor driving every lead screw through a closed belt keeps them in step by design; an accepted Stack Exchange answer calls it the most reliable dual-screw layout. It drifts only when the belt skips a tooth or a pulley comes loose. Bambu Lab gives a Z slider realignment for that on its X1 and P1 printers, done unplugged; Elegoo's Neptune 4 procedure sets the gantry on two equal columns, then re-tensions the belt. There is nothing to set in firmware.
Single-screw Ender gantry: set the free end
On a classic Ender 3 only the left side has a lead screw. The right end rides on wheels, and its height is fixed where the right wheel bracket bolts to the X beam. In a much-viewed Stack Exchange question, an Ender 3 sat 4.7 mm higher on the right. Its left upright sat on the board cover's edge; seating it made the uprights parallel, and loosening the right bracket's bolts on the X beam levelled the gantry.
Power off, unplug, and lower the gantry onto the two blocks so it cannot drop.
Loosen the bracket-to-beam bolts only until the beam can just move; do not remove them.
Press both ends of the beam onto the blocks and tighten the bolts.
Check that the wheels still roll with light resistance and the gantry runs its full height without binding.
Square the frame on an Ender-style bedslinger
An upright that does not sit flush, or a pair that leans in or out, makes the gantry bind at some heights and tilts the X axis against the bed.
Seat each upright flush on the base, with nothing trapped under it.
Fit the top beam without force. If you must squeeze the uprights to line up its screws, they splay (an answer on Stack Exchange).
Check with a try square from the bed to each upright, from the front and from the side (Creality).
Creality's assembly order is the safe one: pre-tighten the gantry screws, check that both sides sit level, then tighten fully (Ender-3 S1 Pro manual). Die-cast gantry frames lean inwards a little by nature; if the gantry will not line up with the base, Creality says to move the X axis down so the frame spreads. To correct a built frame, rest the gantry on the blocks, loosen only the bolts of the one joint that is off, by part of a turn, push the upright against the square and tighten again before checking the next joint. Never loosen every frame bolt at once: the frame loses its reference and the gantry can drop.
A square frame can still print slightly skewed boxes; measuring and correcting that in firmware is covered in calibrate dimensional accuracy.
Z drops when the motors switch off
A steep 8 mm lead screw turns back under load, where a single-start screw would hold it (an answer on Stack Exchange), so the gantry or bed creeps down once the motors release. Marlin releases idle axes after 120 seconds by default; the DISABLE_IDLE_Z comment says to disable it if the nozzle could fall onto the print. Klipper's idle timeout runs M84 after 600 seconds.
On a single-screw printer the next home resets the height. On a dual-Z printer each side can drop by a different amount: that is why Marlin puts G34 in the start G-code, and why it says to check DISABLE_IDLE_Z and the M18 timeout when alignment does not hold between prints.
When it is a bent or worn part
Lead screw or smooth rod: roll it on a flat table, the check Creality gives for smooth rods; a bent one rocks. Regular ridges in the print wall point the same way; see Z banding.
Upright that cannot be squared: Creality's next check is the profile's end; remove it, look for an uneven cut, then contact support.
Wheel with a flat spot: replace the worn wheel and check the rail for damage.
Nozzle at an angle: a bent heat break. An accepted Stack Exchange answer advises against bending it back, because its thin wall tears; replace it.
Rod or rail bed with play despite tight screws: worn bearings; in a Creality forum thread, support sent new bearings and holders for an Ender-3 V3 SE.
Bambu Lab Z belt or pulley that keeps slipping: Bambu Lab asks you to check the assembly, then contact its service team.
For support, send the model, a photo of the gantry on the two blocks, the measured difference and which check failed.
Next step and related guides
With the gantry level and the frame square, level the bed to it: bed levelling, manual or automatic mesh. Then reset the first layer with set the Z offset. If Z still runs stiffly, lubricate the lead screws and rails. If you need a part while your printer is apart, the 3D printing service prints PLA and PETG parts from your file.
Sources
Bambu Lab Wiki: Z screw rod looseness and Z slider misalignment
3D Printing Stack Exchange: Z-axis steppers and bed alignment problems
3D Printing Stack Exchange: What's the advantage of two Z motors?
3D Printing Stack Exchange: Z axis slipping when powered down
The Edge of Tech on YouTube: Y Axis Eccentric Nut Adjustment

