MeshMath

Pressure advance calculator

Print the tuning tower, measure the best corner height, and get the exact value to put in your config.

Your tuning tower

Pressure advance—
Config line—
Range—

Enter the height of the best-looking corner on your tower.

The formula

pressure_advance = start + best_height × factor
example: 0 + 12.90 × 0.020 = 0.258

Typical Klipper values are 0.050 to 1.000, the high end usually on Bowden. Stringing and ooze: how to fix stringing. Retract settings: retraction calculator.

What pressure advance does

Pressure builds inside the nozzle when the extruder pushes plastic through it. When the toolhead accelerates, flow lags; when it slows for a corner, extra plastic keeps oozing out. The result is thin starts and blobs at corners. Pressure advance (Marlin: linear advance) pushes slightly more filament during acceleration and pulls it back during deceleration to compensate.

The right value depends on the extruder, nozzle and filament, so it is tuned per printer and per spool. This calculator only does the arithmetic from your tuning tower so you do not have to do it by hand.

pressure_advance = start + measured_height × factor

Worked examples

Worked example

Direct drive and long Bowden, Klipper tuning tower

Direct drive tower commandTUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005
Best corner measured at18.00 mm
Pressure advance0 + 18.00 × 0.005 = 0.090
Long Bowden tower commandSTART=0 FACTOR=.020
Best corner measured at12.90 mm
Pressure advance0 + 12.90 × 0.020 = 0.258 (the example in the Klipper docs)

Put the result in the [extruder] section as pressure_advance: 0.090 and run RESTART. When two heights look equally good, pick the lower one.

How the test works

The tower changes the pressure advance value on every layer. Low layers have blobs at the corners, layers above the ideal value get rounded corners and thin extrusion going into them. You measure the height with the best corners and convert it to a value with start + height × factor.

Test settings (from the Klipper documentation)

SettingValue
ModelLarge hollow square (docs/prints/square_tower.stl in the Klipper repo)
SpeedHigh, for example 100 mm/s
InfillZero
Layer heightAbout 75% of the nozzle diameter
Before printingSET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500
Slicer featuresTurn off dynamic acceleration control and scarf-joint seams

Settings quoted from the Klipper pressure advance guide. Marlin and other firmware use a similar idea (Marlin calls it linear advance, set with a K value). Enter the start value and per-millimetre step that your own test used, because the numbers are not interchangeable between firmware.

How to tune pressure advance

  1. Tune e-steps / rotation distance and nozzle temperature first. E-steps calculator.
  2. Slice the hollow square with the settings above and run the matching TUNING_TOWER command at the start of the print.
  3. Print it. You can cancel early once corners clearly get rounded and thin.
  4. Measure the height of the best corners with calipers. Ignore the corner where the layer change happens.
  5. Enter start, factor and height above. Set the result as pressure_advance and restart.
  6. Repeat for each filament. Different brands and pigments can need very different values.

Common mistakes

Troubleshooting

SymptomLikely causeFix
Corners still bulge at the best heightFlow too high or temperature too hotCheck flow first, then lower temperature 5 °C
No clear best bandPressure advance may not help on this setupKeep it disabled or use a small value
Extruder clicks after setting a high valueNot enough torque during accelerationLower acceleration or pick a lower value
Different value for each spoolFilament brand or pigment differsRe-run the tower for each filament

FAQ

What is a good pressure advance value?

Klipper's documentation says typical values are between 0.050 and 1.000, with the high end usually only on Bowden extruders. Direct drive printers are normally at the low end. Tune it with a tower instead of copying a number.

How do I calculate pressure advance from the tower?

Measure the height of the best corners, then use start + height × factor. With start 0, factor 0.020 and a height of 12.90 mm, the value is 0.258.

Which factor should I use?

Use the same factor you gave the TUNING_TOWER command. Klipper's docs use 0.005 for direct drive and 0.020 for long Bowden extruders.

Does this work for Marlin linear advance?

The idea is the same, but Marlin tests use their own start and step values. Choose Custom and enter the numbers your test used.

Do I still need retraction?

Yes. Klipper's docs suggest keeping a small retract (for example 0.75 mm) and using wipe on retract if available, and disabling z-lift on retract.

Why does the value change between filaments?

Different manufacturers and pigments flow differently, so Klipper recommends calibrating each spool.

Recommended gear

Some links are affiliate links. MeshMath earns a commission on purchases made through Overture and Anycubic (via Awin) links, at no extra cost to you. Picks are chosen for usefulness, not paid placement.

Related tools

See all tools →