Skip to content
GEEKnodes

3D printing

The Perfect First Layer in 3D Printing: Z Offset and Adhesion

How to get a perfect first layer: Z offset, first layer height and speed, bed cleaning, brim and live tuning with babystepping, plus a quick diagnosis table.

Most failed prints are decided in the first two minutes. If the first layer isn’t well stuck and even, everything on top inherits the problem: corners that lift, parts that come loose halfway through or warped bases. In this guide you’ll learn to recognize a good first layer, which slicer settings control it and how to correct it live without canceling the print.

In short

  • The Z offset matters most: the nozzle should slightly squish the filament against the bed.
  • The first layer should be thicker, wider and slower than the rest, with the part cooling fan off or nearly off.
  • A grease-free bed sticks better than any trick; fine-tune live with babystepping.

First things first: a level bed

This guide assumes the bed is level or that you have an active probe mesh. If not, no first layer setting will make up for it. You’ll find the full process, including how to measure the Z offset with paper, in how to level a 3D printer bed.

What a good first layer should look like

The first layer isn’t laid down: it’s squished. The gap between nozzle and bed is a bit smaller than the natural thickness of the strand, so the plastic spreads out and merges with the line next to it.

Three first layer cross-sections: nozzle too high with separate round lines, correct squished and joined, and too low with ridges
The first layer isn’t laid down: it’s squished, with no gaps or ridges
SymptomMost likely causeWhat to do
Round, separate lines with gaps between themNozzle too highLower the Z offset in 0.02 mm steps
Lines that peel off when you run a finger over themNozzle too high or dirty bedLower the Z offset and clean the bed
Flat, smooth surface, joined lines without ridgesCorrectSave the value
Rough surface, ridges, ripples at the sidesNozzle too lowRaise the Z offset
See-through areas or no plastic, nozzle scrapingFar too low: the extruder can’t pushRaise the Z offset and check whether the extruder is slipping
Elephant’s foot: the base bulges outwardToo low or bed too hotRaise the Z offset slightly or lower the bed temperature
Good in one area, bad in anotherBed out of level or mesh not loadedCheck the leveling

A quick test: print a single-layer square and peel it off. It should come away as one whole sheet, with no holes and the lines fused together.

The slicer settings that matter

First layer height

With a 0.4 mm nozzle, 0.2 to 0.3 mm is typical. A first layer somewhat thicker than the rest is more forgiving of small bed irregularities: a 0.05 mm error is a quarter of 0.2 mm, but only a sixth of 0.3 mm.

Line width

Many slicers let you use a wider first layer line, for example between 110 and 150% of the nozzle diameter. Wider lines mean more contact area.

Speed

The first layer is printed slowly: 15 to 30 mm/s is a common range. That gives the plastic time to melt properly and stick, and gives you time to see it and correct it.

Temperatures and fan

  • Nozzle: a few degrees more on the first layer helps adhesion, without overdoing it.
  • Bed: whatever the filament manufacturer recommends. Hotter doesn’t always stick better; with PLA, too much heat causes elephant’s foot.
  • Part cooling fan: off or very low on the first layer. Cooling the plastic before it’s squished reduces adhesion.
SettingFirst layerOther layers
Height (0.4 nozzle)0.2–0.3 mm0.1–0.28 mm
Line width110–150%about 100–120%
Speed15–30 mm/sPer profile
Fan (PLA)0% or very lowHigh

Cleaning the bed

Finger grease is enemy number one. Touching the bed just once is enough to make that spot stick worse.

SurfaceUsual cleaningWhat to avoid
Smooth or textured PEIIsopropyl alcohol (IPA) between prints; now and then, hot water with dish soap and drying it completelyAcetone on smooth PEI, unless the manufacturer allows it
GlassIPA or soapy waterScratching it with metal blades
Coated magnetic surfacesPer the manufacturer; usually IPAFlexing them while hot

Steps for a deep clean of a PEI sheet:

  1. Take the sheet off and wash it with hot water and a few drops of dish soap.
  2. Rinse it well so no soap residue is left.
  3. Dry it with lint-free paper.
  4. From then on, touch the sheet only by the edges.

IPA works for daily maintenance, but it doesn’t always remove all the built-up grease; washing with soap does.

Adhesion: when you need help

If the bed is clean and the Z offset is right, PLA and PETG usually stick without help. Adhesion aids make sense in these cases:

  • Brim: a flange of several lines around the part. It increases the surface area and holds down the corners. Useful for parts with a small base or materials that shrink, like ABS and ASA.
  • Mouse ears: small discs at the corners only. Less plastic than a full brim.
  • Raft: a full base under the part. Rarely needed with a modern bed, and it leaves a worse bottom finish.
  • Adhesives (glue stick, dedicated sprays): useful on glass or for difficult materials. On PEI with PETG, some people use them as a release layer, because PETG can stick so well that it tears chunks out of the sheet.
Top view of one part with a brim around it, another with mouse ears at the corners and another on a raft
Brim, mouse ears or raft: more grip area when a clean bed isn’t enough

If the problem is corners lifting hours later, it’s not the first layer but warping, which has its own diagnosis in the 3D printing problems guide.

Live tuning with babystepping

Babystepping moves the nozzle in Z while printing. It’s the fastest way to fine-tune: start a test square and keep correcting while you watch.

Babystepping workflow: print a test, adjust Z in 0.02 mm steps, watch the lines and save the value
Correct in 0.01–0.02 mm steps while printing and save the value at the end

Steps:

  1. Start a test print that covers a good part of the bed.
  2. While the first layer is printing, open the Z adjustment option on the screen (in Marlin it’s usually called Babystep Z; in Klipper, from the web interface or with commands).
  3. Correct in small steps, 0.01 to 0.02 mm, and wait to see a couple of lines before the next change.
  4. Once it looks right, save the value; otherwise it’s lost on restart.

In Marlin, if the firmware has babystepping enabled:

M290 Z-0.02
M500

M290 moves live. If the firmware has babystepping linked to the probe offset, the adjustment is added to the Z offset and M500 saves it to EEPROM.

In Klipper:

SET_GCODE_OFFSET Z_ADJUST=-0.02 MOVE=1
Z_OFFSET_APPLY_PROBE
SAVE_CONFIG

Z_OFFSET_APPLY_PROBE transfers the adjustment to the probe offset (with a mechanical endstop you use Z_OFFSET_APPLY_ENDSTOP). SAVE_CONFIG restarts Klipper, so do it after the print finishes.

Remember the sign: negative brings the nozzle closer to the bed, positive moves it away.

Common mistakes

  • Correcting with a cold bed. The bed and nozzle expand when they heat up; always adjust at printing temperature.
  • Changing the Z offset in big jumps. Steps of 0.1 mm jump from “doesn’t stick” to “scrapes”.
  • Touching the bed with your fingers right after cleaning it.
  • Raising the bed temperature for everything. If the nozzle is too high, more heat won’t fix it.
  • Mistaking a first layer issue for extruder calibration. If the squares come out with gaps even though the Z offset is right, check the extruder e-steps.
  • Not saving the babystepping when you’re done.

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor