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.
If your pattern prints the value beside each block (OrcaSlicer, Bambu Studio and Ellis' generator do), just read that number. Counting is for unlabelled lines.
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
- Calibrate rotation_distance and nozzle temperature first. Klipper says both affect pressure advance.
- 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). - Before printing, send
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500to slow the corners and exaggerate the effect. - Send the
TUNING_TOWERcommand 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. - 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.
- Enter the height above, put
pressure_advancein the[extruder]section ofprinter.cfgand sendRESTART, which also returns acceleration and corner speed to normal.
OrcaSlicer: tower
- Choose your printer, filament and process, then open Calibration → Pressure Advance → Tower. Pick the direct drive or Bowden version to match your extruder.
- 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.
- Examine each corner and the seam, and mark the height that gives the best overall result.
- 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)
- Pattern (recommended by Ellis, who designed it to fix problems with the old line test): nested corner shapes, each labelled with its value. Pick the sharpest corner that shows no under-extrusion. Bambu suggests a 0.002 step; in their PLA Basic example the best corner was 0.018, between 0.016 and 0.020.
- Line: quick, but it depends on a good first layer (Orca suggests bed mesh levelling), and Bambu notes it tends to give a lower, less reliable K than the pattern.
- Marlin K-factor pattern: each line prints 20 mm slow, 40 mm fast, 20 mm slow, and K rises by the step on every new line. Pick the line where the speed changes are barely visible or invisible.
Reading the result
| Too low | Too high | |
|---|---|---|
| Corners | Bulging or blobby corners | Rounded corners, divots or gaps at corners |
| Line starts and ends | Thin start, blob at the end | Over-extruded start, starved end |
| Walls | Gaps between straight perimeters | Gaps 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 / slicer | Where | Example |
|---|---|---|
| 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 |
| OrcaSlicer | Filament profile: pressure advance (enable_pressure_advance + pressure_advance). Save the profile. | 0.016 |
| Bambu Studio | Calibration → 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:
| Source | Figure | Context |
|---|---|---|
| Klipper docs | 0.050–1.000 | Typical range; the high end is usually Bowden. No real improvement by 1.000 means PA is unlikely to help. |
| Klipper docs | 0.258 | Worked example: 0 + 12.90 mm × .020 (Bowden factor) |
| Marlin docs | about 0.1–2.0 | Linear Advance 1.5 K. Old LA 1.0 values were about 30–130 and are not interchangeable. |
| OrcaSlicer wiki | 0.016 | Tower and line examples |
| Bambu Lab wiki | 0.015 auto, 0.018 manual | Bambu 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
- New filament brand or type. Klipper recommends calibrating for each spool; Ellis says different colours of the same filament usually only differ a little.
- A different nozzle size, a worn or replaced nozzle, or a new hotend, extruder or Bowden tube length.
- A big change in print temperature, or changing max volumetric speed in Bambu Studio.
- Turning input shaping on or off (Ellis).
- After a large flow ratio change. OrcaSlicer notes the two affect each other slightly.
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 PA | Flow (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
- 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.
- Klipper documentation: TUNING_TOWER. FACTOR, BAND, STEP_DELTA/STEP_HEIGHT and SKIP formulas used in this calculator.
- OrcaSlicer Wiki: Pressure Advance calibration. Tower formula and 0 + 0.002 × 8 = 0.016 example, pattern and line methods.
- OrcaSlicer Wiki: Material flow ratio and pressure advance. Setting names, adaptive PA format and example measurements.
- OrcaSlicer Wiki: Calibration Guide. Calibration order.
- Marlin documentation: Linear Advance. K units and ranges, the K-factor test pattern,
M900andLIN_ADVANCE_K. - 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.
- 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.