Pressure advance: what it does and how to tune it
An extruder pushes filament into a nozzle, but the plastic does not leave the nozzle at the same instant. Melted plastic is compressible and the path from drive gear to nozzle tip has some give, so flow lags behind every change in speed. Pressure advance is the firmware correction for that lag. Tuned well, it gives sharp corners, even lines and a smaller seam; tuned badly, it makes gaps you will blame on something else.
Why flow lags behind motion
When the print head starts a line, the extruder starts turning at the same moment, but the first part of that movement only compresses the filament between gear and melt zone and builds pressure in the molten plastic. Plastic only flows at the intended rate once that pressure is built. At the end of the line the opposite happens: the extruder has stopped, but the stored pressure keeps pushing plastic out for a moment.
The result is predictable. Lines start thin and end fat. On a corner the head slows down, so plastic piles up and the corner bulges; as it accelerates out of the corner the line goes thin. The effect grows with the amount of compliance between gear and nozzle, which is why a Bowden tube of several hundred millimetres needs far more correction than a direct-drive extruder sitting on top of the hotend.
What the correction does
Pressure advance makes the extruder lead the motion. While the head accelerates, the firmware feeds extra filament on top of the normal amount; while it decelerates, it feeds less or briefly pulls back. In Klipper the extra filament position is pressure advance × extruder velocity, which is why the value is in seconds: it is roughly the time by which flow lags behind motion. Marlin's linear advance (version 1.5, in current builds) uses the same idea with its K factor.
Klipper also smooths the extra extruder movement over a short window, set by pressure_advance_smooth_time (0.040 s by default), so the extruder is not asked for instant jumps. Leave that at the default unless you have a specific reason.
Pressure advance only changes how flow is distributed along a line. It cannot fix wrong total flow (that is e-steps and flow ratio, see the extruder calibration guide), and it cannot make a hotend melt faster than its limit (see max volumetric speed).
Before you tune
- Calibrate flow first. Over-extrusion makes every corner bulge regardless of pressure advance, and under-extrusion makes every gap look like a value that is too high.
- Use dry filament at your usual temperature. Wet filament spits at every restart, which looks like random blobs on the test.
- Print at your real speeds. The correction matters most where speed changes a lot. A test printed far slower than your normal profile will not show the effect clearly, and Klipper's own tower procedure deliberately uses a fairly high speed.
- Turn off things that mask the result. Disable slicer coasting and keep wipe and seam gap at defaults while testing; they act on the same few millimetres at the end of a line.
- Firmware support. Klipper always has it. Marlin needs
LIN_ADVANCEenabled at build time; ifM900returns an unknown-command message, it is not compiled in. Marlin's linear advance notes also warn that a TMC extruder driver in stealthChop mode can cause problems with it.
Tower, pattern or line test
Tower
A tall, thin-walled square tower is printed while the value rises steadily with height. In Klipper the standard command is TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005 for direct drive and FACTOR=.020 for Bowden, and Klipper's procedure also lowers square corner velocity and acceleration for the test so that the corners are dominated by pressure, not by vibration. OrcaSlicer generates its own tower and prints the start and step on the model.
To read it, look at the corners and the faces just after them, under light coming from the side. Low on the tower the corners bulge; high on the tower they round off and gaps appear after them. Find the height where the corners are sharpest without gaps, measure it from the bed with calipers, and compute start + height × step. Example: direct drive, factor 0.005, best height 8.5 mm gives 0.0425. Bowden, factor 0.020, best height 26 mm gives 0.52.
Pattern
OrcaSlicer's pattern test prints a row of nested V-shaped corners on one or a few layers, each with a different value and a printed label. You compare them directly: the right value has a sharp tip, no bulge at the apex and no thin section on the leg after it. Because all values are printed at once at the same height and temperature, it is the easiest test to judge, and it takes only a few minutes.
Line
The line test prints a series of single lines, each with a slow, a fast and a slow section, with the value increasing from line to line. With too little correction, a line thickens where it slows down and thins where it speeds up; with too much, the reverse. Pick the line with the most even width along its length. Read it with a magnifier or a phone camera. It depends heavily on a good first layer: a nozzle slightly too high makes every line look thin.
| Test | Good for | Weakness |
|---|---|---|
| Tower | Any slicer or firmware, sees the effect over many layers | Reading the exact height is subjective; one value per height |
| Pattern | Fast, side-by-side comparison, labelled values | Only a few layers, so layer-to-layer noise can mislead |
| Line | Quick, very little filament | Needs a flawless first layer; hard to see on dark filament |
Whichever test you use, finish by printing something real with corners and a seam, such as a calibration cube, and check the corners. The pressure advance calculator does the tower arithmetic and gives the line to save in Klipper, Marlin or the slicer.
Typical values and units
| Setup | Klipper / OrcaSlicer / Bambu Studio | Marlin linear advance (K) |
|---|---|---|
| Direct drive | about 0.02 – 0.08 | about 0 – 0.2 |
| Bowden | about 0.3 – 1.0 | about 0.3 – 1.5 |
These are orientation ranges, not targets. A value far outside them usually means a test problem (wrong start or step, a misread height) or a mechanical one: a long or loose-fitting Bowden tube, a worn tube end, or a soft filament. Very old Marlin builds with linear advance 1.0 used a completely different scale with numbers in the tens; do not copy K values from old forum posts into a current build.
Save the result where it belongs: pressure_advance in the [extruder] section in Klipper, M900 K… followed by M500 in Marlin, or the pressure advance field in the filament profile in OrcaSlicer and Bambu Studio, which sends it with each print. Some printers run an automatic flow dynamics calibration before printing; if yours does, you only need a manual test when the automatic result looks wrong.
Speed, acceleration, temperature and filament
- Speed and acceleration. In theory the value is independent of speed, because the correction already scales with velocity. In practice the model is a simplification, and the best value drifts a little between slow and very fast profiles. Tune at the speeds and accelerations you actually print, and if you run two very different profiles, check both.
- Extruder limits. Higher print acceleration means the extruder has to add and remove filament faster. With a high value, especially on Bowden, the extruder motor can skip. If corners got worse after raising acceleration, the extruder may be the limit, not the setting.
- Temperature. Hotter plastic is less viscous, so less pressure is needed to push it through the nozzle and the best value tends to fall slightly. Retest after a big temperature change, for example when switching to a high-speed profile.
- Filament. Soft and viscous materials need more. TPU on a direct drive can need a value several times that of PLA, because the filament itself compresses; PETG usually sits above PLA. Silk and matte PLAs can differ from plain PLA too.
- Nozzle and hotend. A different nozzle diameter or a high-flow hotend changes the pressure needed and means a new test. See choosing a nozzle size for what else to recheck.
- Input shaping. Input shaping smooths the motion, and pressure advance follows that smoothed motion. If you recalibrate input shaping and see corners change, run a quick pattern test again. Ringing itself is a separate problem — see ringing and ghosting.
Reading a wrong value on a real print
| What you see | Likely value | Check also |
|---|---|---|
| Bulging, rounded-outward corners | Too low | Over-extrusion, outer wall too fast |
| A blob where each wall loop starts or ends | Too low | Seam settings, wet filament |
| Rounded corners with gaps around them | Too high | Under-extrusion, flow limit |
| Notch or hole at the seam | Too high | Seam gap, coasting, retraction |
| Extruder clicks at corners | Too high for the extruder | Acceleration, extruder tension |
Change the value in small steps — about 0.005 for direct drive and 0.05 for Bowden in Klipper units — and look at the same feature each time. The seam is where pressure advance shows most clearly, but seam position and the end-of-loop settings are a separate topic covered in the Z seam guide. For blobs that stay after tuning, see blobs and zits.
Frequently asked questions
Is pressure advance the same as linear advance?
Yes, in practice. Pressure advance is the Klipper name and the name used in OrcaSlicer and Bambu Studio; linear advance is the Marlin feature, set with M900 K. Both add extra filament while the nozzle speeds up and take some back while it slows down, in proportion to the extrusion speed.
Which test is the most accurate?
The pattern test is usually the easiest to read because it shows many values side by side on one layer. The line test is quick but needs a good first layer. The tower is the oldest method and works with any slicer, but reading the best height takes care. If two tests disagree slightly, take the lower value.
Do I need to tune pressure advance for every filament?
For good results, per filament type and ideally per brand. PLA, PETG and TPU usually need noticeably different values, and even two PLAs can differ. Slicers that store the value in the filament profile make this painless.
Does pressure advance replace retraction?
No. It reduces the pressure in the nozzle at the end of a line, which can let you shorten retraction a little, but travel moves still need retraction to stop oozing. Retune retraction after you change pressure advance.
Why does my extruder skip or click after enabling pressure advance?
A high value makes the extruder reverse and accelerate hard at every corner. On Bowden setups and at high print acceleration this can exceed what the extruder motor can do. Lower the value, lower the acceleration of the affected features, or check the extruder current and tension.