The first layer largely determines whether a 3D print succeeds or fails. If the nozzle is too far from the bed, the lines only adhere in spots and the part comes loose; if it is too close, it ploughs through the melt, the extruder clicks and an elephant’s foot forms along the bottom edge. In this guide, 3D Bäckerei explains how to set up bed tramming, bed mesh, Z offset and babystepping step by step, which first-layer parameters make sense in PrusaSlicer, OrcaSlicer, Bambu Studio and Cura, and how to reliably recognise typical defects on a test print.
Table of contents
- 1. The physics of first-layer squish: why 100 % line width is not enough
- 2. Step-by-step calibration: tramming, paper test & babystepping
- 3. Tramming, bed mesh & load cell: what each method does
- 4. Z offset in Klipper, Marlin, Prusa & Bambu Lab
- 5. Slicer tuning: layer height, line width, speed & fan
- 6. First-layer matrix: guide values for PLA, PETG, ABS/ASA, PA-CF & TPU
- 7. Elephant’s foot: combining squish and dimensional accuracy
- 8. Diagnosing the test print: too close, too far, perfect
- 9. Defects & solutions
- 10. Frequently asked questions (FAQ)
1. The physics of first-layer squish: why 100 % line width is not enough
In FDM printing, the molten polymer is extruded through the nozzle and pressed against the heated print bed. This contact pressure – known as squish – deforms the round cross-section of the filament strand into a flat oval with almost parallel sides. Only then is a wide contact area created, and the melt flows into the fine recesses of the print surface, such as the texture of a powder-coated PEI sheet.
A round strand that is merely laid down, by contrast, touches the bed only along a narrow strip. Adjacent lines do not fuse together, grooves remain, and thermal stresses pull the part off the bed as it grows taller. Just a few hundredths of a millimetre too much gap is enough for this. If the nozzle is too close, on the other hand, the melt can no longer escape sideways: the back-pressure builds up all the way into the extruder, the drive gear slips or the motor skips steps, and rough ridges form on the top of the layer.
The right squish is therefore not a fixed number but a condition: the lines touch without gaps, without material being pushed up at the sides. The adjustable factors are tramming and bed mesh, the Z offset for fine adjustment and the first-layer parameters in the slicer. Adhesion itself also depends on the print surface, its cleanliness and the bed temperature – these topics are covered in detail in our guide to bed adhesion with PEI, glass and G10.
2. Step-by-step calibration: tramming, paper test & babystepping
Modern printers use inductive sensors, BLTouch/CR-Touch, eddy-current sensors or a load cell in the nozzle. Even so, the Z offset – the distance between the sensor’s trigger point and the actual nozzle tip – remains a value you should check manually at least once. The following sequence has proven effective:
Step 1: Preparation at operating temperature
Heat the bed to the temperature you will print at (e.g. approx. 60 °C for PLA or approx. 100 °C for ABS/ASA) and wait a few minutes until the heated bed and the print sheet have expanded evenly – aluminium beds often bow slightly when hot. Preheat the nozzle to around 150 °C so that filament residue is soft but no material oozes out. Clean the nozzle tip: a drop of solidified plastic will skew any paper test and any load-cell measurement.
Step 2: Mechanical tramming
Tramming aligns the bed parallel to the nozzle’s plane of motion using the adjustment screws. Move to each corner or to the positions above the adjustment screws in turn and adjust the gap so that it is the same everywhere. A bed mesh can compensate for small residual errors but is no substitute for a badly tilted bed: the larger the correction, the more the Z axis has to work during the first few millimetres. Many firmwares offer assistants that calculate the required turn per screw (see section 4).
Step 3: Paper test as a starting value
After homing, move the nozzle to Z = 0. A normal sheet of printer paper (approx. 0.1 mm) or a 0.1 mm feeler gauge should slide between nozzle and bed with light, evenly noticeable resistance. The feeler gauge is more repeatable than paper, whose thickness varies with type and humidity. The paper test only provides a starting value – the actual fine-tuning happens during printing.
Step 4: Live babystepping during the test print
Print a large single-layer pattern, such as a 100 × 100 mm square, or alternatively five smaller squares (e.g. 40 × 40 mm) in the four corners and in the centre. The five-square variant also shows whether tramming and mesh are correct across the whole surface. Adjust the Z offset during the print via the display or web interface in steps of 0.01 to 0.02 mm until the lines merge into a closed, smooth surface. Watch a few lines after each change before correcting further.
Step 5: Check and save the result
Once cooled, the layer can be lifted off the bed as a single coherent film. A good first layer stays intact when bent, without individual lines separating, and feels smooth on top when you run a finger over it. If lines can be pulled apart, the nozzle was too far away; if the film is very thin, translucent and rough on top, it was too close. You then need to save the value you found permanently – on many firmwares a babystep adjusted only live is lost after a restart.
3. Tramming, bed mesh & load cell: what each method does
No heated print bed is perfectly flat: manufacturing tolerances, stresses in the aluminium and thermal expansion create slight dips, bulges or tilts. The methods intervene at different levels:
| Method | Operating principle | Strength | Typical source of error |
|---|---|---|---|
| Manual tramming | Aligning the bed parallel to the XY plane using adjustment screws | Fundamentally eliminates mechanical tilt | Subjective paper feel, measurement when cold |
| Bed mesh (ABL) | Sensor probes a grid; the firmware corrects Z during XY movement | Compensates for dips and bulges in the plate | No substitute for a badly tilted bed; Z offset must still be correct |
| Adaptive mesh | Only the area occupied by the part is probed, with a denser grid | Shorter preparation, finer resolution in the relevant area | Requires the slicer to be correctly configured to export object boundaries |
| Load cell / nozzle probing | The nozzle itself touches the bed; contact is detected by force | No offset between sensor and nozzle, Z offset largely automatic | Filament residue on the nozzle tip skews the measurement |
Adaptive meshing: Originally known as the KAMP macro collection (Klipper Adaptive Meshing and Purging), this function is now integrated into Klipper and several manufacturer firmwares. It requires the slicer to write the object boundaries into the G-code (the “Label objects” option).
Fade height: With a fade height, the mesh correction is gradually reduced to zero over the first few millimetres so that a dip in the bed is not reproduced in every layer. In Klipper this is done via fade_start and fade_end in the [bed_mesh] section (e.g. 1 and 10 mm as a guide value), in Marlin via M420 Z with the desired height.
4. Z offset in Klipper, Marlin, Prusa & Bambu Lab
Names and signs differ between firmwares. What matters is the direction: does the change move the nozzle closer to the bed or further away? Check this with a small step the first time.
- Klipper:
PROBE_CALIBRATEdetermines the sensor offset via a paper test, andSAVE_CONFIGsaves it. During printing, Mainsail and Fluidd adjust the offset viaSET_GCODE_OFFSET Z_ADJUST=…(negative values move the nozzle closer).Z_OFFSET_APPLY_PROBE– orZ_OFFSET_APPLY_ENDSTOPwith endstops – transfers the value found live into the configuration. For tramming,SCREWS_TILT_CALCULATEcalculates the required turn per adjustment screw; the mesh is created withBED_MESH_CALIBRATE, adaptively with the parameterADAPTIVE=1. - Marlin: The sensor offset is set with
M851 Z…and saved withM500. Babystepping is done via the display orM290 Z…; depending on the configuration, the babystep is applied directly to the probe offset. The mesh is created withG29and activated withM420 S1, and withG35Marlin supports assisted tramming – if enabled. - Prusa: Older models with an inductive sensor use “Live Adjust Z” in the calibration menu. Newer models with a load cell determine the gap themselves; here, a clean nozzle tip is what matters most.
- Bambu Lab: Levelling and Z determination run automatically via the printer’s sensors; a manual Z offset is not part of the normal workflow. If problems occur, enable bed levelling, clean the plate and nozzle and check the plate type in the slicer.
5. Slicer tuning: layer height, line width, speed & fan
Besides the mechanics, the slicer profiles determine how forgiving the first layer is of small residual errors. The following guide values refer to a 0.4 mm nozzle and have proven themselves both for prototypes in rapid prototyping and for functional parts:
- First layer height: approx. 0.20–0.28 mm, even if the part itself is printed at 0.12 mm. A thicker first layer is much more forgiving of small irregularities, because a deviation of a few hundredths carries less weight relative to the layer thickness. The upper limit is about 50–75 % of the nozzle diameter, i.e. approx. 0.4 mm with a 0.6 mm nozzle.
- First layer line width: approx. 120–140 % of the nozzle diameter (around 0.48–0.55 mm). Wider lines increase the contact area and bridge small height errors. With very soft TPU, less extra width is sufficient.
- Speed: approx. 15–30 mm/s for the first layer, plus reduced acceleration on fast printers. Slower lines give the melt time to wet the surface, and sharp corners do not lift when changing direction.
- Temperature: A nozzle temperature about 5 °C higher for the first layer lowers viscosity and can improve wetting. Be careful with the bed: too much heat encourages elephant’s foot.
- Part cooling fan: Off (0 %) for the first one to three layers, then ramp up gradually for PLA. This prevents the layer from shrinking prematurely.
- First-layer flow: Slightly increased first-layer flow can fill small gaps, but often merely masks a Z offset that is too large. Set the gap correctly first and calibrate the extrusion multiplier separately – our guide to flow rate and E-steps describes the procedure.
Where to find the settings:
| Slicer | First layer | Elephant foot compensation |
|---|---|---|
| PrusaSlicer | Print Settings → Layers and perimeters (height), Advanced (extrusion width), Speed (first layer) | Print Settings → Advanced → Elephant foot compensation |
| OrcaSlicer / Bambu Studio | Quality → first layer height and line width; Speed → First layer | Quality → Elephant foot compensation |
| Cura | Initial Layer Height, Initial Layer Line Width, Initial Layer Speed, Initial Layer Flow | Initial Layer Horizontal Expansion (negative value) |
6. First-layer matrix: guide values for PLA, PETG, ABS/ASA, PA-CF & TPU
Every material requires a slightly different squish. The following values are starting points, not fixed specifications – manufacturer data, build plate and printer shift the optimum.
| Material | Bed temperature (guide value) | First layer / line width | Squish & special notes |
|---|---|---|---|
| PLA / PLA-CF | approx. 55–65 °C | 0.20–0.25 mm / 120–140 % | Medium squish for a smooth, closed surface; no adhesive needed on clean PEI |
| PETG / PETG-CF | approx. 75–85 °C | 0.24–0.28 mm / 110–125 % | Slightly less squish (offset approx. 0.02–0.04 mm higher); use a release agent on smooth PEI |
| ABS / ASA | approx. 95–110 °C | 0.20–0.24 mm / 130–150 % | Strong squish, enclosed build chamber to prevent warping |
| PA / PA12-CF | approx. 80–105 °C | 0.24–0.28 mm / 120–130 % | Strong squish, calibrate Z offset when hot, G10 or PA adhesive |
| TPU (flexible) | approx. 35–50 °C | 0.25–0.30 mm / approx. 100–110 % | Little squish (offset approx. 0.03–0.05 mm higher), print slowly |
Textured PEI sheets often need a little more squish than smooth ones, because the melt has to flow into the valleys of the texture – so a quick test print is worthwhile after changing plates. PETG and TPU bond so strongly to smooth PEI that they can tear pieces out of the coating; a thin film of glue stick acts as a release layer here. For flexible TPU, choose a rather large Z offset so that the soft material does not build up in front of the nozzle. If an ABS, ASA or nylon part lifts at the corners despite a good first layer, this is usually due to the material’s shrinkage; countermeasures such as an enclosure, brim and mouse ears are explained in the guide Preventing warping with ABS, ASA and nylon.
7. Elephant’s foot: combining squish and dimensional accuracy
Strong squish is good for adhesion but has a side effect: the bottom layer bulges sideways beyond the nominal contour. On top of that comes the weight of the layers above, which push the still-soft material further outwards, especially when the bed is hot and the underside stays above the glass transition temperature for a long time. The result is elephant’s foot – a bulge along the bottom edge that narrows snap fits, holes and mating surfaces.
- Slicer compensation: Elephant foot compensation pulls the outer contour of the first layer inwards, by 0.1–0.2 mm as a guide value. In Cura, the equivalent is a negative value for Initial Layer Horizontal Expansion.
- Check the Z offset: If the bulge is very pronounced and the first layer is rough, the nozzle is probably too close. Correct the offset first, then compensate.
- Bed temperature: If the bed is well above the manufacturer’s recommendation, it helps to lower the temperature by a few degrees or reduce it slightly from the second layer onwards, once adhesion is secured.
- Design: A small chamfer of about 0.5 mm on the bottom edge makes the bulge invisible and makes assembly easier.
You can find more details on causes and compensation in the guide Eliminating elephant’s foot in 3D printing. How the first layer fits into the overall dimensional accuracy of a part is shown in the article on dimensional accuracy, shrinkage and XY compensation.
8. Diagnosing the test print: too close, too far, perfect
The three basic states can be told apart on the test pattern with the naked eye and with your finger:
- Nozzle too far away: The lines stay round, do not touch at the sides or only in places, and grooves or gaps are visible between them. At edges and small curves, the filament does not stay put but is dragged along. The part often comes loose after a few layers. Correction: move the nozzle closer in small steps, 0.02–0.05 mm as a guide value.
- Nozzle too close: The layer is very thin and partly translucent, rough burrs form where lines meet, and the top feels ridged. The extruder may click; in extreme cases the nozzle scrapes across the plate and damages the coating. Correction: move the nozzle further away in small steps, 0.02–0.03 mm as a guide value.
- Perfect gap: A homogeneous, closed surface without gaps or raised burrs, smooth when you run your hand over it. Once removed, the underside evenly shows the texture of the build plate.
If the result differs between the five test squares – for example perfect on the left, too far on the right – the problem lies not with the Z offset but with the tramming or the mesh. In this case, correct the mechanics first and re-measure the mesh with the bed heated. If the part comes loose despite a visually perfect layer, a greasy film on the plate is usually the cause.
For express orders in Berlin and robust functional parts, we tailor the build plate, material and first-layer parameters to each individual part.
Precise 3D prints without the calibration effort?
Upload your STL or 3MF file, choose the process, material and quantity – the price is calculated online instantly.
9. Defects & solutions
| Defect | Cause | Solution |
|---|---|---|
| Stripy surface with gaps between the lines | Z offset too large, nozzle too far away | Move the nozzle closer in steps of 0.01–0.02 mm, watching a few lines after each change |
| Rough burrs, translucent layer, extruder clicks | Nozzle too close, melt cannot escape | Raise the Z offset; check the nozzle for clogging if necessary |
| One side of the bed perfect, the other too far or too close | Bed tilted, mesh outdated or measured cold | Repeat tramming, recreate the mesh with the bed heated |
| First layer varies from print to print despite mesh | Filament residue on the nozzle, loose sensor, bed not fully heat-soaked | Clean the nozzle before probing, check the sensor mounting, preheat the bed for a few minutes |
| Bulging bottom edge (elephant’s foot) | Too much squish, bed too hot | Elephant foot compensation approx. 0.1–0.2 mm, check offset, lower bed temperature |
| Part comes loose despite a closed layer | Greasy film on the plate, wrong bed temperature | Wash the plate with warm water and washing-up liquid; temperature as per manufacturer’s specification |
| Corners lift after a few millimetres | Material shrinkage, draughts | Brim or mouse ears, enclosure, fan off for the first layers |
| PETG or TPU tears pieces out of the PEI sheet | Bond with smooth PEI too strong, too much squish | Glue stick as a release layer, textured PEI, raise offset slightly |
| Small details and contours get dragged along | First layer too fast, acceleration too high | Reduce speed to approx. 15–30 mm/s, limit first-layer acceleration |
| Suddenly poor first layer after a nozzle change | New nozzle is minimally longer or shorter | Recalibrate the Z offset and save it permanently |
10. Frequently asked questions (FAQ)
How often does the Z offset need to be recalibrated?
Once properly set, the Z offset usually remains stable for a long time. You should check it again after every nozzle or hotend change, after working on the sensor, when switching to a build plate of a different thickness and if you permanently print at significantly different bed temperatures, for example when switching from PLA to ABS.
How do I recognise the perfect Z offset during printing?
The lines merge into a closed, homogeneous surface without gaps, raised burrs or wave patterns. The top feels smooth to the touch, and once cooled the layer can be bent as a coherent film without individual lines tearing apart.
Should the bed be levelled at room temperature or at printing temperature?
Always when heated. The heated bed and print sheet expand with heat and often bow slightly. Heat the bed to the temperature you will print at, wait a few minutes and only then carry out tramming, mesh probing and Z offset calibration.
Does an automatic bed mesh replace manual tramming?
No. The mesh compensates for small dips and bulges in the plate, but a badly tilted bed should be aligned mechanically first. In addition, the mesh only measures relative height differences – the absolute distance between nozzle and bed is still defined by the Z offset.
Why does my part not stick to the print bed despite the bed mesh?
The most common cause is an invisible greasy film from fingerprints. Wash the plate with warm water and washing-up liquid, then wipe it down with isopropyl alcohol. Other causes include a bed that is not fully heat-soaked, a Z offset that is too large or a print surface unsuitable for the material.
Why does PETG tear pieces out of smooth PEI sheets?
PETG bonds so strongly to smooth PEI that the adhesion during removal can exceed the hold of the coating itself. For PETG, use a textured PEI sheet or a thin film of glue stick as a release layer, and print the first layer with slightly less squish than for PLA.
What does elephant foot compensation do in the slicer?
The function pulls the outer contour of the first layer inwards by a set amount, 0.1 to 0.2 mm as a guide value. After being pressed onto the bed, the bottom edge is then flush with the layers above, and fits and holes are not narrowed at the bottom.
Does the Z offset change with a different nozzle size?
The mechanical gap stays the same for the same nozzle length, but the first layer height should match the diameter. As a rule of thumb, around 50 to 75 percent of the nozzle diameter applies, i.e. about 0.28 mm for 0.4 mm and about 0.4 mm for 0.6 mm. Since nozzles vary slightly in length, a test print is still worthwhile after a change.
Which first layer height and line width make sense?
For a 0.4 mm nozzle, a first layer height of 0.20 to 0.28 mm and a line width of 120 to 140 percent of the nozzle diameter have proven effective as guide values. The thicker, wider layer compensates for small irregularities in the bed and increases the contact area; with TPU, less extra width is sufficient.

