Pressure Advance and Linear Advance Explained
Contents
Look closely at the corners of a fast print and you may see them bulge, while the start of the next line looks thin. The straight parts of the wall are fine. The cause is not the printer's motion but the plastic inside the nozzle. Pressure advance, called linear advance in Marlin, is the setting that corrects for it.
This guide explains what it does, which printers support it and how to tune it. It builds on the surface problems in blobs and zits and works best after you have set a good temperature and flow rate.
What it does
Melted plastic is slightly compressible and the nozzle is narrow, so pressure builds up inside it. When the print head accelerates and the extruder pushes more filament, the plastic does not come out right away; the pressure has to build first. When the head slows down, the pressure does not drop right away either, so plastic keeps coming out.
The result is two small flaws:
- At the start of a line, or after a corner, there is not enough plastic, so the line begins thin.
- Into a corner, the head slows but plastic keeps flowing, so the corner bulges.
Klipper's documentation describes pressure advance as compensating for pressure that builds in the nozzle during acceleration and relaxes during deceleration. It reduces ooze during moves without extrusion and reduces blobbing at corners. The firmware does this by moving the extruder a little ahead of the motion: a little more filament as the head speeds up and a little less as it slows down.
Pressure advance does not change print time, the toolhead path or the total amount of filament used. It only adds small extruder movements during acceleration and deceleration.
Which printers support it
- Klipper calls it pressure advance.
- Marlin calls it linear advance, controlled with the M900 command, for example M900 K0.08.
- Prusa printers use M572 on the MK4/S, XL, MINI and CORE One, and M900 on the MK3, according to the PrintPal wiki.
- Many Bambu Lab printers and other newer machines include an automatic calibration of flow dynamics in the slicer. If your printer offers one, use it instead of the manual method below.
Before you start
Pressure advance results depend on other settings, so get these right first.
- Calibrate the extruder so the right amount of filament is pushed. Klipper's guide says to tune the rotation distance before pressure advance. On other printers this is the E-steps calibration.
- Choose a nozzle temperature for the filament. Klipper's guide notes that temperature affects the result, and the PrintPal wiki advises tuning temperature first because hotter plastic oozes more.
- Dry the filament. Wet filament causes bubbles and uneven flow that no setting can fix. See how to dry filament.
- Calibrate each filament separately. Klipper's documentation says to calibrate for each printer and each filament spool, because different brands or pigments can need very different values.
How to tune it on Klipper
The Klipper documentation describes a test print with a hollow square tower. In summary:
- Slice the square tower at about 100 mm/s with zero infill. Set the layer height to roughly 75% of the nozzle diameter. Turn off dynamic acceleration control and scarf joint seams in the slicer for the test.
- Send SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500 to slow the nozzle through corners.
- Start the tuning tower command. For a direct drive extruder use TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005. For a long Bowden setup use a factor of .020.
- Print the tower. The pressure advance value rises with each layer. Layers below the best value show corner blobbing. Layers above it show rounded corners and poor extrusion before the corner. You can cancel the print early once the corners get worse.
- Measure the height of the layer with the best corners using calipers. If you are not sure, take the lower height.
- Calculate the value: pressure advance equals the start value plus the measured height times the factor. For example, 0 plus 12.90 mm times 0.020 gives 0.258.
- Set pressure_advance in the extruder section of the configuration and restart to clear the test settings.
Klipper's documentation gives a typical range of 0.05 to 1.0, with the high values mostly on Bowden extruders. If there is no clear improvement up to 1.0, pressure advance is unlikely to help and you can return to a configuration without it.
How to tune it on Marlin and Prusa firmware
Marlin and Prusa firmware take the value through G-code. In Marlin, M900 K followed by a number sets the factor, for example M900 K0.08. You find the best value with a calibration pattern, where the factor changes along the print, and choose the section where the corners look best and the line starts are even. Prusa printers use the M572 command on newer models and M900 on the MK3, as listed above.
Slicers can add the command for you. In OrcaSlicer, Bambu Studio and PrusaSlicer, the filament profile has a place for the pressure advance or linear advance value, which is written into the start of the G-code.
What to expect and what to watch for
When the value is right, corners are sharper, the beginnings of lines are fuller and the seam looks cleaner. You may also notice less ooze.
Be careful with very high values. Klipper's documentation warns that values above about 0.200 can make the extruder skip when it returns to normal acceleration. If that happens, lower the acceleration or reduce or disable pressure advance.
Pressure advance and retraction
Retraction and pressure advance both deal with pressure, but they do different jobs. The PrintPal wiki gives a clear order: tune pressure advance first, then retraction. Klipper's guide adds that after pressure advance is tuned, a small retraction of about 0.75 mm with wipe on retract can help with ooze, and that z-lift on retract should be turned off. See retraction settings for how to test length and speed.
Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| Corners still bulge | Value too low | Raise the value in small steps and print the test again |
| Corners round off and lines start thin | Value too high | Lower the value |
| Extruder clicks or skips after acceleration | Value very high | Lower the value or acceleration. See extruder clicking |
| Result changes between spools | Different filament behaves differently | Calibrate per filament |
| No improvement at all | Another cause, such as wet filament or wrong flow | Dry the filament and check flow, then retest |
Frequently asked questions
Is pressure advance the same as linear advance?
They do the same job. Klipper calls it pressure advance and Marlin calls it linear advance. The commands and calibration methods differ, but the idea is the same.
Do I need pressure advance for slow prints?
The effect grows with speed and acceleration, so slow prints show less benefit. It is still useful for sharper corners and cleaner seams, but you will notice it most at higher speeds.
Do I need a different value for each filament?
Yes. Klipper's documentation says to calibrate for each filament spool, since different brands or pigments can need very different values. Many slicers store one value per filament profile.
Should I tune pressure advance before or after retraction?
Before. Tune temperature first, then pressure advance, then retraction. Retraction values set before pressure advance may need changing afterwards.
Does pressure advance fix stringing?
It reduces ooze during moves, which helps a little, but stringing mostly comes from retraction, temperature and moisture. See the stringing guide.