Pressure Advance Calculator

Pressure advance (Marlin calls it Linear Advance, Bambu Lab calls it Flow Dynamics or the K factor) stops blobby corners and thin line starts. Print a test, measure or read the best spot, and this calculator turns it into the value to save, with the exact line for Klipper, Marlin, OrcaSlicer or Bambu Studio.

Pressure advance

Plan a Klipper tuning tower

Pick the FACTOR before you print. The value climbs by FACTOR every millimetre, so the top of the tower sets the highest value you test. Klipper's docs suggest .005 for direct drive and .020 for long Bowden extruders.

How to run each test

Klipper: tuning tower

  1. Calibrate rotation_distance and nozzle temperature first. Klipper says both affect pressure advance.
  2. Slice Klipper's docs/prints/square_tower.stl (a large hollow square) at a high speed such as 100 mm/s, zero infill and a coarse layer height, about 75% of the nozzle diameter. Turn off "dynamic acceleration control" and scarf joint seams. Other settings can stay at defaults (2–3 perimeters, normal retraction).
  3. Before printing, send SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500 to slow the corners and exaggerate the effect.
  4. Send the TUNING_TOWER command from the planner above (it has to be sent at the start of every test print), then print. You can stop early once corners are clearly getting worse.
  5. Find the height with the best corners using digital calipers. Ignore the corner where layers change (the seam) and choose a value that suits the other three. When in doubt, pick the lower height.
  6. Enter the height above, put pressure_advance in the [extruder] section of printer.cfg and send RESTART, which also returns acceleration and corner speed to normal.

OrcaSlicer: tower

  1. Choose your printer, filament and process, then open Calibration → Pressure Advance → Tower. Pick the direct drive or Bowden version to match your extruder.
  2. The value rises from the start value at the bottom by one step per millimetre. The tower is cut to your range, so the top is exactly the end value.
  3. Examine each corner and the seam, and mark the height that gives the best overall result.
  4. Value = start + step × height. Orca's own example: 0 + 0.002 × 8 mm = 0.016. Save it in the filament profile.

The tower doesn't depend on your first layer, which is why Orca keeps it alongside the pattern and line tests. Marlin printers need Linear Advance enabled in firmware (M900). On Bambu Lab printers, don't tick "Flow calibration" when sending an Orca test print.

Pattern and line tests (OrcaSlicer, Bambu Studio, Marlin)

Reading the result

Too lowToo high
CornersBulging or blobby cornersRounded corners, divots or gaps at corners
Line starts and endsThin start, blob at the endOver-extruded start, starved end
WallsGaps between straight perimetersGaps between perimeters at corners

Summarised from Ellis' Print Tuning Guide, Klipper's pressure advance guide and Marlin's Linear Advance page. Pressure advance only moves material around (it pushes a little extra when speeding up and pulls back when slowing down). Klipper notes it doesn't change print time or the total filament used.

Where to save the value

Firmware / slicerWhereExample
Klipper[extruder] section of printer.cfg, then RESTART. Test live with SET_PRESSURE_ADVANCE ADVANCE=…pressure_advance: 0.258
Marlin (LIN_ADVANCE enabled)End of the slicer's start G-code, so each filament profile can have its own K. Or LIN_ADVANCE_K in Configuration_adv.h and reflash.M900 K0.12
OrcaSlicerFilament profile: pressure advance (enable_pressure_advance + pressure_advance). Save the profile.0.016
Bambu StudioCalibration → Flow Dynamics → enter it under Factor K and name it, or set the K value per slot in the material dialog on the Device page.0.018

What values to expect

There is no universal right number. It depends on the extruder, nozzle and filament, and Klipper says different brands or even pigments can need noticeably different values. These are the ranges and examples the sources themselves give:

SourceFigureContext
Klipper docs0.050–1.000Typical range; the high end is usually Bowden. No real improvement by 1.000 means PA is unlikely to help.
Klipper docs0.258Worked example: 0 + 12.90 mm × .020 (Bowden factor)
Marlin docsabout 0.1–2.0Linear Advance 1.5 K. Old LA 1.0 values were about 30–130 and are not interchangeable.
OrcaSlicer wiki0.016Tower and line examples
Bambu Lab wiki0.015 auto, 0.018 manualBambu PLA Basic, 0.4 mm nozzle, Smooth PEI plate

Bambu says auto results jitter by about 10% between runs, and the A1 and H2D eddy-current calibration is deliberately set a little higher than the manual pattern result to avoid corner bulges. That's normal.

When to recalibrate

Calibration order

Orca's calibration guide assumes the extruder is already calibrated (e-steps or rotation distance), then goes temperature → max volumetric speed → pressure advance (this page) → flow ratio → retraction.

OrcaSlicer adaptive pressure advance lines

At higher flow and acceleration, the best PA value usually drops, so Orca's beta adaptive pressure advance takes several measurements and fits a model. Run the pattern test at a few speeds (Orca suggests at least three per acceleration: outer wall, inner wall and your fastest feature) at your slowest and fastest acceleration. Enter each best PA with its flow and acceleration, then paste the result into "Adaptive pressure advance measurements". Orca shows the flow when you colour the preview by flow; you can also work it out with the volumetric speed calculator. The rows below start with Orca's own example.

#Best PAFlow (mm³/s)Acceleration (mm/s²)
1
2
3
4
5
6

Keep a sensible normal PA value set too. Orca uses it as a fallback and when changing tools.

Sources

  1. Klipper documentation: Pressure advance. Test method, FACTOR .005 / .020, the 12.90 × .020 = .258 example, the 0.050–1.000 range, skipping above 0.200, prefer lower values.
  2. Klipper documentation: TUNING_TOWER. FACTOR, BAND, STEP_DELTA/STEP_HEIGHT and SKIP formulas used in this calculator.
  3. OrcaSlicer Wiki: Pressure Advance calibration. Tower formula and 0 + 0.002 × 8 = 0.016 example, pattern and line methods.
  4. OrcaSlicer Wiki: Material flow ratio and pressure advance. Setting names, adaptive PA format and example measurements.
  5. OrcaSlicer Wiki: Calibration Guide. Calibration order.
  6. Marlin documentation: Linear Advance. K units and ranges, the K-factor test pattern, M900 and LIN_ADVANCE_K.
  7. Bambu Lab Wiki: Flow Dynamics Calibration. K factor, manual pattern with 0.002 step, 0.015 / 0.018 examples, 10% jitter, auto vs manual notes.
  8. Ellis' Print Tuning Guide: Pressure / Linear Advance. Signs of too high and too low, pattern vs tower, when PA changes.

Related: input shaper (ringing frequency, shaper, max acceleration) · retraction distance & speed (stringing) · temperature tower · e-steps / rotation distance (do this first) · volumetric speed / max flow · flow rate · steps per mm (X/Y/Z axes) · PLA vs PETG vs ABS

FAQ

What is pressure advance in 3D printing?

It is a firmware feature that compensates for the delay in nozzle pressure. It pushes a little extra filament when the toolhead speeds up and pulls back when it slows down, so corners stay sharp and line ends do not blob. It moves material around rather than adding any.

Is linear advance the same as pressure advance?

Yes. Marlin calls it Linear Advance (the K value, set with M900), Klipper and RepRapFirmware call it pressure advance, and Bambu Lab calls it Flow Dynamics with a K factor. Ellis notes the only practical difference is that Marlin has no smooth time setting.

What is a good pressure advance value?

It depends on your extruder, nozzle and filament, so test rather than copy. Klipper gives a typical range of 0.050 to 1.000 (the high end usually Bowden). Bambu Lab examples for PLA Basic on a 0.4 mm nozzle are around 0.015 to 0.018, and Marlin Linear Advance 1.5 K values are usually about 0.1 to 2.0.

Should I use the tower, pattern or line test?

Ellis recommends the pattern test because it is closest to real prints. The tower is easier for newcomers and does not depend on the first layer, but can be harder to read. The line test is quick but depends on a good first layer, and Bambu Lab says it tends to give a lower, less reliable K.

How do I calculate pressure advance from a Klipper tuning tower?

Measure the height of the best corners with calipers, then pressure_advance = START + height × FACTOR. For example 0 + 12.90 × 0.020 = 0.258. If you used SKIP, subtract it from the height first; if you used BAND, the value is taken from the middle of that band.

Do I need to recalibrate pressure advance for every filament?

Ideally yes. Klipper recommends calibrating per printer and per spool, because brands and pigments can need different values. Also redo it after changing nozzle size, hotend, extruder, Bowden length, a big temperature change or turning input shaping on or off.

Why is my Bambu Lab auto K value higher than my manual one?

Bambu Lab says the A1 and H2D eddy-current calibration deliberately sets K a little higher than the manual pattern to avoid corner bulges, and that results can vary by about 10% between runs. Both are normal.

Does pressure advance change print time or filament use?

No. Klipper notes pressure advance does not change the toolhead path or timing, and does not change the total filament extruded; it only adds extruder movement during acceleration and deceleration.