kapy academy

Pressure advance and clean corners

14 min readUpdated Nov 2026

You print a calibration cube and the corners come out bulged, each followed by a thin stretch, although the flow ratio is right and the straights measure what they should. The right amount of plastic comes out, but it comes out late: between the extruder gear and the tip, the filament and the molten plastic behave like a spring, and flow always trails motion. Pressure advance corrects this: the firmware pushes extra filament while the head accelerates and pulls a little back while it decelerates, so the flow keeps up with the head.

The spring between the gear and the tip

Klipper, Prusa's firmware and OrcaSlicer call it pressure advance; Marlin calls it linear advance; Bambu Lab calls it "Flow Dynamics".

To push plastic through a 0.4 mm orifice, every flow rate needs a certain pressure in the melt zone, and to a first approximation that pressure rises with flow. Before it can rise, the gear has to load the column: the melt compresses, the Bowden tube (if there is one) gives, and the solid filament shortens slightly. Every extra mm³/s of flow leaves a fraction of a millimeter of filament stored in the column: hundredths with a direct drive, tenths with a Bowden. An elastic column draining through a restriction has its own time constant.

The pressure advance model is a proportion: the stored filament is proportional to the speed at which filament is fed.

stored filament (mm) = K × filament speed (mm/s)

That is why K is measured in seconds: roughly, it is the time constant of the lag. Klipper's pressure_advance, the K of Marlin's Linear Advance 1.5 and later, Prusa's M572 S and the K a Bambu printer stores are all the same quantity: millimeters of filament per mm/s of filament speed.

Run the numbers. An outer wall of 0.45 × 0.20 mm (0.09 mm²) at 200 mm/s calls for 18 mm³/s (Volumetric flow sets the speed). Divide by the 2.405 mm² cross-section of 1.75 mm filament and you get 7.5 mm/s of filament. With a direct drive and K = 0.04, the steady state holds 0.04 × 7.5 = 0.30 mm of filament: about 0.72 mm³, or 8 mm of bead. That is the plastic missing at the start of a line, and the plastic that keeps oozing once the head stops.

Repeat it for a Bowden with K = 0.5. The column now holds 3.7 mm of filament: about 9 mm³, or 100 mm of bead. The lag lasts close to half a second, longer than many lines take at 200 mm/s, and the flow never settles. A typical Bowden K is about ten times a direct drive's (Extruders: direct drive or Bowden). A fast Bowden without pressure advance will not give clean walls.

Fast machines made pressure advance mandatory. The misplaced plastic grows with speed (K × v): on a legacy bedslinger at 50 mm/s it is a quarter of what it is at 200 mm/s, and barely shows. At 5,000 mm/s² the head brakes from 200 mm/s to almost nothing in about 0.04 s, the same order as a direct drive's K, and the whole lag lands on the corner. A modern bedslinger ships with input shaping and pressure advance as standard.

What K depends on:

  • Bowden tube. The tube, and the filament inside it, give.
  • Soft filament. TPU is readily compressed; on the same machine it needs a higher K than PLA (TPU and flexible filaments).
  • Long melt zone. A Volcano-style block or a high-flow hotend holds more molten plastic to compress (Hotends and how much they can melt).
  • Small nozzle. It needs more pressure for the same flow.
  • Temperature. Hotter means less viscous: K drops slightly.

K depends on the machine (Bowden or direct, hotend) and, within a machine, on each filament and nozzle.

What the firmware does

GearColumn of filamentand molten plasticNozzleHead speedSet speedCorner speedNozzle flow without pressure advanceTarget flowExcess: bulged cornerShortfall: thin stretchExtruder feed with pressure advanceNozzle flow with pressure advanceExtra push while acceleratingLess push while brakingTime
Without pressure advance, flow at the nozzle follows head speed with a lag: there is too much plastic as the head brakes into the corner and too little as it accelerates out. With pressure advance, the extruder pushes less while the head brakes and more while it accelerates, and nozzle flow matches the target.

Pressure advance only acts while the flow is changing: when accelerating, when braking, or when the line width changes, as with Arachne's variable-width walls. At constant flow it does nothing: it neither lengthens the print nor uses more filament. On very short moves that never reach cruising speed it is acting the whole time, and that is where a value set too high shows first.

Watch the names. The slicer's "flow" ("Flow ratio", the flow multiplier) decides how much plastic comes out in total; pressure advance decides when it comes out, never how much. It will not fix an over-extruded part.

You can also work out what it asks of the extruder: the extra filament speed is K times the filament's acceleration. With the head at 5,000 mm/s² and a 0.09 mm² bead, the filament accelerates at 187 mm/s². With a direct drive and K = 0.04, the extruder adds 7.5 mm/s to the 7.5 it was already feeding, for a fraction of a second: no trouble. With a Bowden and K = 0.5 it would be 94 mm/s more, against the nozzle's back-pressure, which is beyond what an ordinary extruder can deliver: it clicks and skips steps. You do not tune a Bowden for 5,000 mm/s². Klipper's documentation warns that above 0.2, at high accelerations, the extruder may skip steps; lower the acceleration or the value. To soften those peaks, Klipper spreads them over a pressure_advance_smooth_time window (0.040 s by default); leave it alone unless you know why you are changing it.

With pressure advance calibrated, the pressure is already low when the head stops. With a direct drive a short retraction is then enough (Stringing and blobs), and Cura's coasting (cutting extrusion shortly before the end of a line) is rarely needed. What pressure advance does not prevent is oozing during travel moves: that is retraction's job (Temperature towers and retraction tests). A badly tuned value is also one of the causes of seam marks (Where the seam goes).

Too low and too high: how to tell

CornerLine testToo lowBulgeThin afterSlowFastSlowRightSlowFastSlowToo highGap beforeRoundedSlowFastSlow
Top, an outer-wall corner; bottom, a slow-fast-slow line from the line test. With too little pressure advance the corner bulges and the next stretch prints thin; with too much, the bead thins before the corner and rounds it off. The right value gives an even width.

Too low. A bulge at the corner and a thin or sunken stretch straight after it: the stored plastic keeps coming while the head brakes. Lines that start thin and end in a blob. A bump at the seam, where the outer wall closes. On top layers, the ends of each infill line thicker than the middle.

Too high. Rounded corners short of plastic, with a gap or thin stretch right before the corner, because the firmware has already released the pressure. A notch or hole at the seam. Lines that start with a small blob. Gaps between the walls and the ends of the top infill. With a Bowden or high accelerations, clicking from the extruder as well.

Not pressure advance. Ringing is a series of ripples repeating at regular intervals after the corner and fading out (Acceleration, resonance and input shaping, Wall marks: ringing, VFA and Z-banding); pressure advance leaves a single mark per corner, with no repetition. Walls that are thick everywhere and ridges on the top surface point to the flow ratio (Flow ratio and max flow tests). Strings between parts come from retraction and temperature (Stringing and blobs).

A low value also changes dimensions. A bulge at every braking point closes up small holes and fattens the corners of mating parts (Why holes print small, Parts that print the wrong size). Calibrate pressure advance before you print clearance test pieces.

How to calibrate it

Temperature and flow ratio first: on a profile that over-extrudes, the pressure advance test is hard to read. Resonance compensation and the real print acceleration must already be set, because the result depends on acceleration. The full order is in What to calibrate, and in what order. Calibrate with dry filament and the nozzle you will actually use.

Automatic, if the machine has a sensor. Bambu's Flow Dynamics calibration prints a few lines and measures them: with the lidar on the X1 series, and with an eddy-current sensor on machines such as the A1 and H2D. It stores a K per filament and nozzle on the printer, and can run at the start of every print via the "Flow Dynamics Calibration" checkbox in the send dialog. Uncalibrated, the filament profile's default K is used. On the P1 series it is manual only. Bambu's own wiki advises calibrating by hand with a 0.2 mm nozzle, because the automatic result tends to fail with it. For most parts the automatic calibration is enough; if corners still bulge, check it with a manual test.

Manual. There are three tests. Orca has all three in its calibration menu, and Bambu Studio has the same ones in its manual calibration.

  1. Lines (Marlin's K-factor pattern): one line per value, each with a slow, a fast and a slow section. Pick the one with no step where the speed changes, neither thicker nor thinner.
  2. Pattern (Ellis's): nested chevrons, one group per value. Pick the group with the sharpest corners and no gap before the tip. It is the easiest test to read on a fast machine.
  3. Tower (tuning tower in Klipper; Orca has its own): the value rises with height. Measure the height of the best corners with callipers and compute value = start + height × step. In Klipper, TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005 for a direct drive and FACTOR=.020 for a Bowden; the documentation says to print it at around 100 mm/s with 500 mm/s² acceleration and SQUARE_CORNER_VELOCITY=1 to exaggerate the effect. If the best corners are at 8 mm: 0 + 8 × 0.005 = 0.040.
A row of nested-chevron patterns in gray PLA on a textured PEI plate under raking light: from left to right, the tips go from bulged to sharp and then to rounded with gaps
A row of nested-chevron patterns in gray PLA on a textured PEI plate under raking light: from left to right, the tips go from bulged to sharp and then to rounded with gaps

Read the test from above, under raking light, looking at the corners and the line ends. If two neighboring values look the same, take the lower one: overshooting is worse than falling slightly short, because it starves the corners and loads the extruder. Typical values are 0.02–0.06 for a direct drive and 0.3–0.8 for a Bowden. A result far outside those ranges points to another problem: wet filament, a partial clog, a slicer setting overriding yours. If a Bowden's corners do not improve at any value between 0 and 1.0, pressure advance is not the problem.

Where the value lives. In the filament profile, one value per filament and nozzle, because it changes with them. In Orca, the "Enable pressure advance" and "Pressure advance" fields. PrusaSlicer has no field: its profiles write M572 in the filament start G-code (M900 K only on the MK3S and earlier, with Prusa's Marlin; on Buddy firmware, a legacy M900 is converted 1:1 to the same value). Cura has no setting of its own: it goes in the start G-code or comes from a Marketplace plugin. Bambu stores it on the printer, but a Bambu Studio filament profile can force a different value, and then that one wins (Orca, Bambu Studio, PrusaSlicer and Cura). The classic failure is a value in printer.cfg or the printer start G-code that the filament profile overrides, or the other way round: the last command wins (Firmware: Marlin, Klipper and closed systems, Printer, filament and process profiles).

In Marlin, M900 only works if the firmware was built with LIN_ADVANCE, and the stock firmware on many cheap bedslingers lacks that option. With TMC drivers, set the extruder driver to SpreadCycle: in StealthChop, Linear Advance can make it skip steps or vibrate.

One K is a compromise

Molten plastic is shear-thinning: the faster it flows, the lower its viscosity. Pressure rises more slowly than flow, so the optimal K falls as flow and acceleration rise. The sample data on Orca's wiki shows it: at 1,000 mm/s², about 0.036 at any speed; at 4,000 mm/s², from 0.032 at low speed down to 0.024 at high speed. A value tuned on a slow outer wall is slightly high for fast infill, and vice versa.

In practice, calibrate once per filament and nozzle, at the outer wall's speed and acceleration, because that is the surface you see, and recalibrate if you change the hotend, the nozzle or the input shaper. Klipper's tower is printed at low acceleration (500 mm/s²) on purpose, which is why a pattern printed at a fast machine's real acceleration usually gives a somewhat lower value.

Orca's filament profile includes adaptive pressure advance, still in beta as of late 2026. You print the pattern at several speeds and accelerations: the basic matrix is 3 accelerations by 4 speeds, 12 tests. You enter each set of pressure advance, flow and acceleration, and the slicer picks the K for every line. Orca has only validated it on Klipper; it is untested on Marlin and Bambu. Keep a sensible fixed K as a fallback. It pays off on a fast Klipper machine where the outer wall and the infill run at very different flow rates; it is not where you start. Orca's overhang option and bridge-specific pressure advance are covered in Overhang and bridge settings.

When it fails

Pressure advance symptoms
Symptom Cause Fix
Bulged corner, thin stretch after it Pressure advance too low Calibrate it or raise it
Gap before the corner, notch at the seam Pressure advance too high Lower it
Extruder clicks on fast walls after raising the value K × acceleration asks for more than the extruder can give Lower the acceleration or the value; leave the smooth time alone
Marlin: extruder clicks or vibrates with Linear Advance on Extruder driver in StealthChop Switch it to SpreadCycle
The calibrated value changes nothing Another K arrives later (printer.cfg versus filament G-code) Keep it only in the filament profile
Marlin: M900 has no effect Firmware built without LIN_ADVANCE Build the firmware with the option or move to Klipper
Corners get worse after changing spool or material The value is fixed in the printer configuration Move it to the filament profile
Clean corners in PLA, blobs in TPU TPU needs its own, higher K Calibrate every TPU
Bambu automatic calibration erratic with a 0.2 mm nozzle The automatic measurement fails with that nozzle Run the manual test
Bulges return after fitting a high-flow hotend or a long block More molten plastic in the melt channel Recalibrate
Corners improve when you slow the outer wall Pressure advance not calibrated Calibrate it instead of slowing down
A mark that repeats in ripples after the corner Ringing, not pressure Acceleration, resonance and input shaping

See also

Design it in KapyCAD

Design parts sized for your printer and your nozzle.

Free plan, no card. Runs in your browser, nothing to install.

Open the editor

Still have a question?