Linear rail

Also known as: linear guide

On this page 7

A linear rail, also called a linear guide or profile rail, is a hardened steel track with a carriage that rolls on recirculating steel balls, constraining motion to a single straight axis with very low friction and almost no play. In 3D printer hardware, linear rails guide the toolhead, gantry or bed in machines ranging from CoreXY designs such as Voron to upgraded Cartesian printers, and they are a central topic in 3D printing & making whenever precision and stiffness are discussed.

Compared with V-slot wheels or round rods with bushings, a linear rail resists forces and moments in several directions at once. The trade-offs are higher cost, greater sensitivity to mounting accuracy and a need for regular lubrication.

How a linear rail works

A linear rail consists of two main parts: the rail, a ground steel profile with precision raceways along its sides, and the carriage or block, which carries rows of steel balls in closed recirculation loops. As the carriage moves, balls roll along the raceway, exit at one end, travel through a return channel and re-enter at the other end.

Because the balls roll rather than slide, the friction coefficient is very low, typically around 0.002 to 0.005. The raceway geometry, often a gothic arch or circular arc profile, lets the carriage carry loads from above, below and the sides, as well as pitch, yaw and roll moments. Plastic end seals keep debris out and retain grease.

The table describes the main components and their function.

ComponentFunctionTypical material
RailProvides precision racewaysHardened bearing or stainless steel
CarriageHolds and recirculates the ballsHardened steel body
BallsRoll between rail and carriageChrome or stainless steel
RetainerKeeps balls in place off the railPlastic or wire
End seals and capsExclude dust, hold lubricantRubber and plastic
Components of a linear rail

Sizes, preload and accuracy classes

Linear rails are specified by rail width, carriage length, preload and accuracy grade. Desktop 3D printers most often use miniature rails of 7, 9 or 12 mm width, usually in the MGN series pattern, while larger machines and CNC routers use 15 mm and wider rails.

Rail sizeTypical useNotes
MGN7Small toolhead or compact printersLight loads only
MGN9X and Y axes on CoreXY printersPopular balance of mass and stiffness
MGN12Y axes, Z axes and gantriesStiffer, heavier carriage
MGN15 and largerLarge-format printers, CNCHigh load capacity
Common miniature rail sizes in 3D printers

Preload is the deliberate interference between balls and raceways that removes internal clearance. Rails are offered with clearance, zero preload or light preload, often labeled Z0 and Z1. Higher preload increases stiffness but also friction and wear. Accuracy classes, such as normal, high and precision, define how straight and parallel the raceways are relative to the mounting surfaces.

Preload levelStiffnessFriction and use case
ClearanceLowest, slight playLow friction, non-critical motion
Zero preload (Z0)ModerateCommon choice for printer X and Y axes
Light preload (Z1)HighZ axes and gantries needing rigidity
Effect of preload on rail behavior

Linear rails compared with other guide systems

Printer designers choose between three main guide systems. Linear rails offer the highest stiffness and precision, but each alternative still has a place depending on budget, frame and kinematics.

Guide systemAdvantagesDisadvantages
Linear railStiff, compact, low play, long lifeCostly, needs flat mounting and grease
Round rods with bearingsCheap, simple, tolerantRods flex over long spans
V-slot wheelsInexpensive, quiet, easy assemblyWheels wear and need adjustment
Guide systems in 3D printers

On a CoreXY or bed slinger printer, rails reduce ringing and layer shift by keeping the toolhead from tilting under fast acceleration. That benefit becomes more visible when firmware such as Klipper uses input shaping at high accelerations, because a stiffer mechanism has a higher, cleaner resonance frequency.

Installation and maintenance

A linear rail is only as accurate as the surface it is bolted to. The mounting surface must be flat and straight, and when two rails run in parallel, as on a Y axis or a Z gantry, they must be aligned to within a few hundredths of a millimeter to avoid binding.

  • Clean and degrease new rails, since many inexpensive rails ship with preservative oil rather than proper grease.
  • Lubricate with a suitable grease, typically lithium-based, through the carriage ports or by hand.
  • Never remove the carriage without a retainer, as loose balls fall out and are hard to reinstall.
  • Tighten bolts in sequence from the center outward while pushing the rail against a reference edge.
  • Check smoothness by hand after installation; any notchy feel indicates misalignment or contamination.

Common problems with linear rails

Most rail problems come from poor quality control, contamination or mounting errors, not from the design itself. Budget rails vary widely, so inspection on arrival is good practice.

SymptomLikely causeRemedy
Gritty or notchy travelDebris or missing ballsClean, regrease, replace carriage
Binding at one endRails not parallelRealign with a gauge
Visible wobble of carriageExcess clearanceChoose higher preload grade
Rust spots on railMoisture, no lubricantUse stainless rail, keep greased
Linear rail symptoms and remedies

A frequent misconception is that rails automatically improve print quality. If the frame is flexible, the belts are loose or the motion system is poorly tuned, a rail only moves the weak point elsewhere. Rails also add moving mass to a toolhead or gantry, so an MGN12 carriage on an X axis can lower the usable acceleration unless the stiffness gain outweighs the extra weight.

In everyday language

A linear rail works like a very precise drawer slide. A steel block glides along a steel track. Tiny balls roll between them, so the motion is smooth and almost silent.

In a 3D printer, the rail keeps the print head moving in a perfectly straight line. It does not wobble or tilt, even at high speed. That is why prints come out sharper. The price is higher cost and some care when installing it.

Seen in the real world

A maker running an older Cartesian bed slinger with V-slot wheels notices ringing artifacts around sharp corners and a slight wobble in the toolhead when printing at accelerations above 3,000 mm/s². The eccentric nuts must be readjusted every few weeks as the wheels wear.

The maker installs an MGN12 rail with a Z0 carriage on the X axis, bolted to the aluminum extrusion with a straightedge for alignment, and cleans and greases the carriage first. After recalibrating input shaping, the measured resonance frequency rises noticeably, the printer runs at 5,000 mm/s² with cleaner corners, and the X axis no longer needs periodic adjustment.