Machines/8 min exploration

How does a Cartesian 3D printer work?

A Cartesian 3D printer moves along three axes, each with its own motor, to stack melted plastic into layers.

One motor moves the head (X), one moves the bed (Y) and two lift the gantry on leadscrews (Z). An extruder grips 1.75 mm filament and pushes it at a set feed rate into a heated block, where it melts, and the nozzle lays it down as thin beads that stack into layers. The bead's width follows conserved volume: at a fixed flow, a faster pass or a taller layer leaves a thinner bead. In this model you can jog each axis, open the hot end in a cutaway and watch a square wall grow bead by bead.

How does a 3D printer turn a spool of plastic thread into a solid part?

3D model

Explore the model and follow its moving parts.

Read the full explanation ↓
Drag to rotate · Pinch or Ctrl-scroll to zoom · Select a part
What the printer does

What to remember

The three drives only position the nozzle; the part itself comes from metered volume. At a fixed flow, a faster pass or a taller layer leaves a thinner bead, and the whole part is just those beads stacked one layer at a time.

The printer runs at 20 mm/s while the extruder meters 3.1 mm³/s of melt onto 0.20 mm layers. The print speed is doubled to 40 mm/s with the flow and layer height unchanged. What happens to each bead?

Follow the explanation

Back to the model ↑

How the parts work together

  1. One motor, one direction

    Choose “Move the axes yourself” and jog each slider. The X motor pulls its belt and slides the carriage along the gantry; nothing else moves. The Y motor slides the bed itself under the nozzle. The two Z motors turn their leadscrews and lift the whole gantry. Any point above the plate needs all three working together, which is what makes the layout Cartesian: one motor owns one axis, and the nozzle never moves in Y at all.

  2. A metered bead of melt

    Open the cutaway. The drive gear and its idler grip the filament and push it down at the feed rate you set; the heater cartridge melts it in the block while the thermistor reports temperature. The nozzle squeezes the melt into a bead, and its width is not free: the volume laid per second must equal the bead's cross-section times the pass speed. Raise the print speed or the layer height at the same feed rate and each bead comes out thinner; raise the feed and it comes out fatter.

  3. Layer on layer

    Back on the bed view, watch the end of a layer: both Z motors lift the gantry exactly one layer height, and the next wall loop starts on top of the last. Each layer of the demo part is two beads side by side, so the wall is one bead wide on each face. A taller layer setting makes fewer, fatter layers for the same part height and a shorter job; a thinner one makes more, finer layers and takes longer. That trade is the slicer's, not the printer's.

The main parts

Frame
Base plate, two uprights, top crossbar, the two Z rails on the uprights and the Y rails under the bed. Every other part mounts to it, and it never moves.
Control board
Turns the sliced toolpath into timed pulses for the five motors and switches heater power using the temperature sensors. Drawn as a placed board, not a simulated circuit.
Filament spool & holder
Holds the wound filament on a bracket behind the gantry and turns as filament is drawn from its underside.
Filament
The 1.75 mm thread of thermoplastic. It runs from the spool down to the extruder's inlet, is gripped by the drive gear, passes through the hot end's bores and leaves the nozzle as the deposited bead.
Y-axis motor & pulley
A stepper under the back of the bed. Its pulley pulls the Y belt, which slides the bed itself back and forth: on this layout the nozzle never moves in Y.
Y belt & idler
A 2 mm pitch belt looped around the motor pulley and a fixed idler. The belt moves one pulley circumference, 40 mm, per motor turn.
Heated build plate
The plate the part is built on, at a fixed height, riding the Y rails under the back and front pulleys. The heater that warms it is drawn, but its temperature control is not simulated.
Left Z motor & leadscrew
A stepper with a T8 leadscrew, 2 mm pitch with four thread starts, so 8 mm of lift per turn. It raises the left end of the gantry one layer at a time.
Right Z motor & leadscrew
The matching screw on the right upright. Both Z motors turn together; if they disagreed, the gantry would tilt and the layers would not be level.
X gantry
The horizontal beam that carries the X rail, the X motor and the whole print head. It rides the two Z rails, so lifting it is what gives the printer its Z axis.
X-axis motor & pulley
A stepper at the left end of the gantry. Its pulley pulls the X belt and slides the hot end's carriage along the gantry: one motor turn moves it 40 mm.
X belt & idler
The 2 mm pitch belt loop along the gantry's front. Like the Y belt, it moves 40 mm of carriage per pulley turn, and its teeth are what keep the position exact.
X carriage & belt clamp
Rides the gantry and carries the print head. Its clamp grips the moving belt, which is why the belt's motion becomes the carriage's position.
Extruder & drive gear
The motor, drive gear and idler that grip the filament and push it toward the hot end at the set feed rate. The gear's rim speed equals the filament feed, so the extruded volume is metered here.
Hot end
Heatsink, heat break, heater block and nozzle. A cartridge heater melts the filament in the block while a thermistor reports temperature; the nozzle's 0.4 mm orifice sets the finest bead it can lay.
The printed part
The demo part itself: a 36 mm square tube wall that grows one layer per circuit. Each layer is two beads side by side, laid on top of the layer below.

Questions worth exploring

How does a 3D printer move its nozzle?

Cartesian printers are characterized by at least three motors moving parts of the printer along the axes of the Cartesian coordinate system: Y back and forth, X left and right, and Z up and down. On this bedslinger layout the X motor slides the head along the gantry, the Y motor slides the bed under it, and the Z motors lift the gantry one layer at a time. CoreXY and delta printers move the head differently, but still place the nozzle in the same coordinate system.

Prusa Knowledge Base · Types of printers: Cartesian printers, FDM/FFF, and the layer-by-layer Z stepWikipedia · Fused filament fabrication: process, print-head kinematics (belts for X/Y, leadscrew for Z, steppers), and heater feedback

What does layer height change in 3D printing?

Layer height is the main factor affecting both print time and vertical resolution. Taller layers shorten the print at the cost of more visible layers; thinner layers (down to about 0.10 mm on a 0.4 mm nozzle) add detail but take longer. It only changes vertical resolution: a shape laid flat looks the same regardless of layer height, and the layer height should stay below about 80% of the nozzle diameter.

Prusa Knowledge Base · Layers and perimeters: layer height, print time, vertical resolution, and the 80% nozzle rule

How is the amount of extruded plastic calculated?

By conserving volume. The extruder meters a flow in mm³/s, and the bead's cross-section times the nozzle's travel speed must equal that flow. Slicers model the bead as a rectangle with semicircular ends, so its area is height × width minus the corners the ends replace; that is why matching flow to speed, and width to layer height, keeps the bead the intended size. This model shows the same relation with live numbers.

Slic3r manual · Flow math: extrusion width, the rectangle-with-semicircular-ends bead shape, and the flow-to-speed ratio

Why do 3D printers use belts for X and Y but leadscrews for Z?

Because of the speeds involved: it is common to use toothed belts for the X and Y drives and a leadscrew for Z. The head whips back and forth thousands of times a print, so belts suit fast motion, while Z only climbs one short layer at a time and benefits from a screw's fine, self-locking motion. The ratios are simple arithmetic: a 2 mm pitch belt on a 20-tooth pulley moves 40 mm per motor turn, and a T8 leadscrew lifts 8 mm per turn.

Wikipedia · Fused filament fabrication: process, print-head kinematics (belts for X/Y, leadscrew for Z, steppers), and heater feedbackKlipper documentation · Rotation distance: 2 mm belt pitch with 20-tooth pulleys, T8 leadscrew 8 mm per turn, hobbed extruder gearing

One discovery leads to another.

MechanicsInside a robotic actuatorElectricityHow does a linear motor move in a straight line?MachinesWhy gears change everythingMachinesInside a rotary engine