Skip to content
GEEKnodes

3D printing

How to Calibrate Pressure Advance and Linear Advance Step by Step

What Pressure Advance (Klipper) and Linear Advance (Marlin) are, why they fix bulging corners and how to calibrate them with OrcaSlicer, a tower or a line pattern.

Do your parts have bulging corners, with the straight sections right after them coming out a little thinner? It’s not a temperature or flow problem: it’s the pressure inside the nozzle, which always lags behind. Pressure Advance (in Klipper) and Linear Advance (in Marlin) correct exactly that.

In this guide you’ll see what they do, why it’s worth calibrating for each filament and how to find your value in just a few minutes.

In short

  • When the toolhead speeds up and slows down, nozzle pressure arrives late: there’s too much plastic in the corners and too little coming out of them.
  • Pressure Advance pushes the extruder ahead when accelerating and holds it back when decelerating to compensate.
  • In Klipper it’s pressure_advance; in Marlin, the K factor of M900. Same concept.
  • Calibrate it after e-steps and flow, and per filament.
  • Ballpark values: low on direct drive (hundredths), much higher on Bowden.

Why corners come out bulging

Molten plastic isn’t water: it’s a paste that needs pressure to come out. When the toolhead accelerates, the extruder pushes the filament, but the pressure in the nozzle takes a moment to build. When it slows down, the pressure takes time to drop and plastic keeps coming out.

The typical result:

  • Bulging corners: the toolhead slows down to turn and there’s too much plastic.
  • Thin line after the corner: there’s not enough pressure when accelerating.
  • Uneven seams and line starts.

On a Bowden extruder the effect is stronger, because the filament compresses inside the tube like a spring, just as it does with retraction.

Comparison of a square printed without Pressure Advance, with bulging corners and thin lines, and with Pressure Advance, with clean corners
Without compensation, there’s too much plastic when slowing down and too little when speeding up.

Pressure Advance and Linear Advance: the same thing by another name

KlipperMarlin
NamePressure AdvanceLinear Advance
Parameterpressure_advanceK factor
Change on the flySET_PRESSURE_ADVANCE ADVANCE=0.05M900 K0.05
SaveIn the [extruder] section of printer.cfgM500 or in the start G-code
RequirementAlways availableFirmware compiled with LIN_ADVANCE

Many current printers calibrate it on their own (sometimes it’s called flow dynamics calibration). Even so, it’s worth understanding the value and repeating it with new filaments.

Before you start

Pressure Advance fine-tunes extrusion; if the basics are off, the result won’t be any good. Check in this order:

  1. The extruder’s e-steps or rotation_distance, using the guide to calibrating e-steps.
  2. The right temperature for the filament.
  3. Flow (extrusion multiplier).
  4. Dry filament: moisture causes irregularities that confuse the test. See how to dry filament.

Method 1: OrcaSlicer (the easiest)

OrcaSlicer includes the test in the Calibration → Pressure advance menu. It offers three variants: tower, line pattern and corner pattern (PA pattern).

  1. Pick the printer, filament and plate you’re going to use.
  2. Open the calibration and select direct drive or Bowden: the program suggests a suitable range of values.
  3. Choose the line pattern if it’s your first time: it’s quick and easy to read.
  4. Print it and look for the most uniform line, with no bulges or gaps where the speed changes.
  5. Note that line’s value (it’s printed next to it) and enter it in the filament profile, under the Pressure advance option.
Pressure Advance line test: with a low value the lines get thicker, with a high value they get thinner, and the middle line is the most uniform
Look for the line that’s the same thickness from start to finish.

Method 2: calibration tower in Klipper

The Klipper documentation suggests printing a hollow square tower while the value increases with height. First, lower the square corner velocity and the acceleration so the effect is clearly visible:

SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005

Use FACTOR=.005 on direct drive and FACTOR=.020 on Bowden. Start the print right after those commands (the Klipper tower is printed at high speed, with a single wall and no infill).

When it’s done:

  1. Look at the corners of the tower and find the band where they look sharpest.
  2. Measure its height in millimeters with a caliper or a ruler.
  3. Calculate: pressure_advance = START + height × FACTOR. For example, on direct drive with the best band at 9 mm: 0 + 9 × 0.005 = 0.045.
  4. Save it in printer.cfg:
[extruder]
pressure_advance: 0.045

Restart with RESTART and your next prints will use it. If you’re not using Klipper yet, the Klipper explained guide shows you how to install it.

Calibration tower with the band of sharp corners marked and the formula PA equals start plus height times factor
Measure the height of the best band and apply the formula.

Method 3: Linear Advance pattern in Marlin

With Marlin, first check that your firmware has Linear Advance. Send M900 from the console: if it replies with the K value, it’s enabled. If not, you’ll need to enable LIN_ADVANCE and compile, as in the guide to configuring Marlin.

  1. Use your slicer’s Pressure Advance test (OrcaSlicer also generates it for Marlin) or a K-factor pattern generator.
  2. Print it and pick the most uniform line.
  3. Apply and save the value:
M900 K0.08
M500

Another option is to add M900 K0.08 to the start G-code of each filament profile, so each material uses its own value.

Ballpark values

These only help you tell whether your result is reasonable; the right one is whatever your test shows:

ExtruderTypical range
Direct driveapprox. 0.02–0.10
Short Bowdenapprox. 0.2–0.6
Long Bowdenapprox. 0.4–1 or more

PETG and TPU usually need somewhat different values than PLA, and a nozzle with a different diameter also changes the result.

Common mistakes

  • Calibrating with the flow set wrong: fix e-steps and flow first.
  • One value for every filament: save it in each filament profile.
  • Excessive values on Bowden: with too much Pressure Advance the extruder works in jerks and can skip steps or grind the filament.
  • Drivers in silent mode: on some boards running Marlin, Linear Advance causes problems with certain drivers in stealthChop mode. If the extruder makes strange noises, check its configuration and the drivers.

FAQ

Does Pressure Advance replace retraction? No, but they complement each other. Because it lowers the pressure before slowing down, it often lets you use a bit less retraction. Recalibrate retraction afterward.

Do I have to redo it if I change filament? Ideally, do it once per filament type and brand. Between identical spools from the same manufacturer, the same value is usually enough.

Does it affect print speed? It doesn’t slow it down. Quite the opposite: it lets you print fast with clean corners, which is key at high speeds and with good volumetric flow.

Why doesn’t the line I picked match the tower? Each method prints at different speeds and accelerations. Small differences are normal; choose the value from the method that’s closest to how you actually print.

Accessibility preferences

Quick profiles

Text and reading

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

Colour

Motion and orientation

Cursor