Pressure Advance (Klipper) or Linear Advance (Marlin) compensates for the pressure build-up in the nozzle, giving you sharp corners without bulges and even walls. Otherwise, when the print head decelerates before a change of direction, molten filament oozes out uncontrollably – resulting in bulging, rounded corners and dimensional deviations, followed by brief under-extrusion as the head accelerates out of the corner. In this guide we explain how the compensation works, which K-values make good starting points and how to calibrate the optimum value in OrcaSlicer, Bambu Studio, Klipper, Marlin and Cura.

1. The physics behind it: melt elasticity and pressure fluctuations in the nozzle

Filament in the hotend does not behave like a rigid rod but like a compressed spring or a viscoelastic column of fluid. For plastic to flow through the narrow nozzle orifice, pressure has to build up in the melt chamber – and the faster you print, the higher this pressure. The extruder, however, feeds filament strictly in proportion to the travel speed of the print head. When the speed changes, the pressure in the nozzle lags behind.

  • When decelerating before the corner: the extruder motor does slow the feed, but the residual overpressure in the melt chamber keeps pushing material out. The corner becomes thick and rounded and protrudes outwards (corner bulging).
  • When accelerating after the corner: it takes a few milliseconds for the target pressure to build up again. The result is local under-extrusion – thin spots or small gaps directly after the change of direction and at the start of long lines.

In modern high-speed FDM printing at speeds of 200 mm/s and more and accelerations of several thousand mm/s², this effect becomes particularly noticeable. Printing more slowly reduces it, but does not solve it.

Pressure Advance works predictively: when accelerating, the firmware briefly feeds a disproportionately large amount of filament to build up chamber pressure immediately, and reduces the feed in good time before decelerating – down to a minimal retraction – so that the nozzle stops exactly on point without oozing. The K-factor describes how strongly the extrusion is corrected depending on the change in speed. The result is sharp 90° edges and consistent wall thicknesses regardless of print speed.

2. Pressure Advance, Linear Advance & Flow Dynamics: terms and firmware commands

The physical goal is identical across all systems, but the names, commands and units differ:

Firmware / ecosystemNameCommand / where to set itNote
KlipperPressure Advance (time constant in seconds)[extruder] pressure_advance or SET_PRESSURE_ADVANCE ADVANCE=0.035Additionally pressure_advance_smooth_time (default 0.040 s)
MarlinLinear Advance (K-factor)M900 K0.04, save to EEPROM with M500Must be enabled in the firmware (LIN_ADVANCE)
RepRapFirmware (Duet)Pressure AdvanceM572 D0 S0.05D = extruder number
Prusa (MK4 / XL / Core One)Pressure AdvanceM572 S… in the filament start G-code of the PrusaSlicer profilesOlder MK3 firmware uses Linear Advance with M900 K…
Bambu Lab / OrcaSlicerFlow Dynamics (K-value) or Pressure AdvanceStored in the filament profile; calibration via the calibration menuAutomatic measurement before printing, depending on the model

Example Klipper configuration:

[extruder]
pressure_advance: 0.028
pressure_advance_smooth_time: 0.040

# Oder dynamisch im Filament-Start-G-Code des Slicers:
SET_PRESSURE_ADVANCE ADVANCE=0.028 SMOOTH_TIME=0.040

Marlin or RepRapFirmware:

; Marlin: K-Faktor setzen und dauerhaft speichern
M900 K0.04
M500

; RepRapFirmware (Duet): Pressure Advance für Extruder 0
M572 D0 S0.04

In practice, it is best to store the command not globally but in the slicer’s filament start G-code. That way, each filament profile automatically loads its own value.

3. Reference matrix: typical K-factors for direct drive vs. Bowden extruders

The optimum compensation value depends above all on the length of the path between drive gear and nozzle (direct drive vs. Bowden tube) and on the elasticity and viscosity of the material. The following values are approximate starting ranges for Klipper PA or Marlin LA 1.5 with a 0.4 mm nozzle – only a test on your own printer will give you the exact value:

MaterialDirect drive extruderBowden extruderCharacteristics / melt behaviour
PLA / PLA-CFapprox. 0.015 – 0.035approx. 0.25 – 0.60Dimensionally stable, low compression, uncomplicated
PETG / PETG-CFapprox. 0.025 – 0.055approx. 0.40 – 0.80More viscous, prone to bulging at corners and seam
ABS / ASAapprox. 0.020 – 0.035approx. 0.30 – 0.70Even flow behaviour, especially in a heated enclosure
PA12-CF / PA6-CFapprox. 0.018 – 0.038approx. 0.20 – 0.65Short fibres reduce melt elasticity; hardened nozzle required
TPU 95A (flexible)approx. 0.08 – 0.25not recommended (values often above 1.0)Very elastic, compresses in the extruder; only practical with direct drive
Filled speciality filaments (wood, silk, glow)test separatelytest separatelyFillers change the viscosity significantly compared with the base material

Key factors influencing the value:

  • Nozzle: diameter (0.4 vs. 0.6 mm), design (e.g. high-flow nozzles with a multi-channel melt zone) and material (brass, hardened steel) change the back pressure – re-measure after every nozzle change.
  • Temperature: a hotter, more fluid melt tends to need a slightly lower value. If you change the temperature by more than approx. 10–15 °C, it is worth checking.
  • Marlin versions: the ranges above apply to Linear Advance 1.5, whose K-values are of a similar order of magnitude to Klipper PA. Values from the old Linear Advance 1.0 (two-digit K-values) are not transferable.

4. The 3 test methods: line test, pattern test & corner tower

Three methods have become established for determining the K-value. The time and material figures are rough guide values:

MethodDuration (approx.)Material (approx.)Evaluation & suitability
Line test (PA Line)5–8 minunder 2 gQuick; look for the line with an even width, without necking or thickening
Pattern test (PA Pattern)10–12 minunder 4 gVery clear in OrcaSlicer; direct assessment of sharp corners
Corner tower (PA Tower / Tuning Tower)25–35 minapprox. 10–15 gRealistic, on real walls; measure the height of the sharpest corner
  • Line test: the printer draws parallel lines with an abrupt change in speed, e.g. 20 mm slow (20 mm/s), 40 mm fast (120 mm/s), then 20 mm slow again. Each line gets a slightly higher PA value (roughly 0.000 to 0.080 in steps of 0.005 for direct drive). The correct one is the line whose width remains completely even, including at the transitions.
  • Pattern test: nested angles or a zigzag pattern are printed. If the value is too low, the tips bulge out; if it is too high, gaps appear just before and after the tip. The best value produces sharp, clean corner points.
  • Corner tower: a narrow, square hollow body is printed with a single wall or in vase mode, with the PA value increasing linearly with Z height. Using callipers, you determine the height at which the 90° outer corner is square and free of burrs, and convert it into the K-value.

Evaluation tip: examine the test print under raking light and run your fingernail over the corners. If the optimum lies between two test steps, choose the average or repeat the test with a finer step size over a narrower range.

5. Step by step: OrcaSlicer, Bambu Studio, Klipper, Marlin & Cura

OrcaSlicer

  1. Select the printer and filament profile; dry the filament and clean the nozzle beforehand.
  2. Open the Calibration → Pressure Advance menu and select the extruder type (direct drive or Bowden) and method (PA Line, PA Pattern or PA Tower).
  3. Set the range – proven starting points: direct drive 0.010 to 0.060 in steps of 0.002; Bowden 0.100 to 1.000 in steps of 0.050. Then refine over a narrower range if necessary.
  4. Print the test and identify the line or corner with no bulge and no gap.
  5. Enable and enter the value in the filament settings under Pressure Advance. Newer OrcaSlicer versions also offer an adaptive variant that adjusts the value depending on flow rate and acceleration – useful if you print at widely varying speeds.

Bambu Studio / Bambu Lab printers

Bambu Lab calls Pressure Advance Flow Dynamics. Depending on the model, the printer can determine the K-value automatically before each print (the ‘Flow Dynamics Calibration’ option in the print dialogue). Alternatively, start a manual calibration with a line or pattern test under Calibration → Flow Dynamics and save the value for the respective filament/nozzle combination. For frequently used filaments, a value that has been carefully determined manually once and saved is often more reproducible than the automatic measurement before every print.

Klipper: Tuning Tower

  1. For the test, lower the acceleration and corner velocity so that the effect is clearly visible: SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500.
  2. Prepare the tower: TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005 (direct drive) or FACTOR=.020 (Bowden).
  3. Print a hollow single-wall cube (e.g. 30 × 30 mm) at high speed.
  4. Measure the height of the best corner and calculate: PA = START + FACTOR × measured height in mm. Example: 6 mm × 0.005 = 0.030.
  5. Enter the value in printer.cfg under [extruder] or set it per filament in the slicer start G-code; then run RESTART to reset the test limits.

Marlin & Prusa

In Marlin, LIN_ADVANCE must be enabled in the firmware. You can generate the test print with the K-factor test pattern generator for Linear Advance or the OrcaSlicer PA test; set the value you find with M900 K… in the start G-code or filament G-code. On current Prusa printers, suitable values are already stored in the PrusaSlicer filament profiles; for third-party filaments you can adjust the M572 value in the filament start G-code.

Cura

Cura has no dedicated Pressure Advance setting. Enter the command (M900 K… for Marlin or SET_PRESSURE_ADVANCE ADVANCE=… for Klipper) in the start G-code under Printer Settings. For several filaments, we recommend a separate printer profile for each or a plugin that inserts material-specific G-code.

6. The correct calibration sequence

Pressure Advance relies on extrusion that already delivers the correct amount. If you set the K-value before the basics, you end up calibrating errors into it. The following sequence has proven effective (covered in detail in our guide to calibrating your 3D printer with E-steps, flow rate and Pressure Advance):

  1. Check the mechanics: belt tension, play in the extruder, a clean nozzle, a stable hotend temperature.
  2. E-steps or rotation distance: the extruder must feed exactly as much filament as requested.
  3. Determine the printing temperature for the respective filament using a temperature tower.
  4. Set the flow rate (extrusion multiplier) so that walls and top surfaces are closed without over-extruding.
  5. Calibrate input shaping against ghosting and ringing and set the final accelerations.
  6. Calibrate Pressure Advance.
  7. Fine-tune retraction last – a correct PA value already relieves nozzle pressure before travel moves, so less retraction is often needed. You will find details in our guide to preventing stringing & oozing.

If you later change acceleration, speed, nozzle or temperature significantly, quickly double-check the PA value with a line test.

7. Fine-tuning: Pressure Advance, acceleration, smooth time, input shaping & Z seam

A well-tuned K-value ensures consistent wall thicknesses in high-speed printing (above 200 mm/s), regardless of speed. For that last bit of precision, it is worth looking at the interactions:

  • Excessive values strain the extruder: with every small change of direction, the extruder motor has to move rapidly forwards and backwards. A value that is too high leads to rattling, clicking or skipped steps.
  • Smooth time (Klipper): pressure_advance_smooth_time smooths the extruder movements. Higher values (e.g. 0.04–0.06 s) relieve the extruder, especially on Bowden systems, but slightly weaken the effect on very short segments.
  • Driver mode (Marlin): with TMC drivers in StealthChop mode, Linear Advance can cause skipped steps on the extruder – SpreadCycle is the more robust choice for the extruder.
  • Acceleration & jerk: Pressure Advance acts during the acceleration phases. Very high accelerations require a carefully calibrated value; extremely low jerk or corner velocity values, on the other hand, amplify the pressure fluctuations at corners.
  • Input shaping: Input shaping dampens mechanical vibrations of the frame and belts (ghosting, ringing), while Pressure Advance deals exclusively with the pressure in the hotend. Only the two together make very high speeds with clean contours possible – they do not replace each other.
  • Z seam: a correct value reduces the typical blobs at the seam, because the extruder no longer dumps excess plastic when closing the perimeter. Combined with Scarf Seam, the seam becomes almost invisible – find out more in our article Making the Z seam invisible.
  • Volumetric limit: Pressure Advance cannot conjure up melting capacity. If the hotend reaches its maximum volumetric flow rate at high speeds, under-extrusion occurs that no K-value can fix – in that case, limit the speed or set the maximum volumetric speed correctly in the filament profile.

8. Dimensional accuracy, fits & precision manufacturing in Berlin

In jig, fixture and prototype construction, tenths of a millimetre determine whether a part works. Without correctly set Pressure Advance, bulging edges mean that:

  • housing lids and dovetail guides jam and need reworking,
  • rectangular slots for square nuts, magnets or sensors turn out too tight,
  • plug-in and snap-fit connections seat unevenly and tolerances to DIN ISO 2768 are harder to maintain.

In our Berlin print centre, serving customers in Berlin Mitte and Charlottenburg among other areas, we tailor the print profiles to the respective material. For businesses, we produce functional components, housings and fixtures as part of rapid prototyping and small-batch production – including from carbon-fibre-reinforced high-performance polymers.

Dimensionally accurate parts with sharp edges – without the calibration effort?

Upload your STL or 3MF file, choose the process, material and quantity – the price is calculated online instantly.

Upload your part and get an instant price

9. Common defects & solutions

DefectCauseSolution
Bulging, rounded corners (bulging)PA value too low or disabledIncrease the value in small steps, print a line or pattern test
Sunken corners, gaps after changes of directionPA value too high (over-advance)Lower the value, repeat the test over a narrower range
Thin spots at the start of long linesPressure builds up too slowly, PA too low or flow too lowCheck the flow rate, then recalibrate PA
Blobs at the Z seamResidual pressure when closing the perimeterSet PA correctly, use Wipe or Scarf Seam
Extruder rattles or clicksPA too high, StealthChop on the extruder, motor current too lowLower the value, increase smooth time, use SpreadCycle, check the extruder
No clear optimum in the testDamp filament, too little speed contrast, poor first layerDry the filament, speed up the fast section, correct the Z Offset
Value works for PLA but not for PETG or TPUPA is material-dependentSave a separate value for each filament in its filament profile
Bulges return after a nozzle changeDifferent diameter, different melt zone or different nozzle materialRe-measure PA for each nozzle and store it separately
Wall thickness varies between fast and slow sectionsPA missing or maximum volumetric flow rate exceededEnable PA, limit the volumetric speed in the filament profile
Gaps between outer wall and infillPA too high, material missing at the ends of pathsReduce the value, slightly increase the infill overlap

10. Frequently asked questions (FAQ)

Does Pressure Advance need to be recalibrated after a nozzle change?

Yes. When you change the nozzle diameter (e.g. from 0.4 mm to 0.6 mm), switch to a high-flow nozzle or to a different nozzle material (brass to hardened steel), the back pressure in the melt channel changes. Re-measure the value for each nozzle and save it separately.

Does Pressure Advance need to be determined for every filament?

For every type of material, yes, because PLA, PETG, TPU and PA-CF differ significantly in viscosity and elasticity. Within the same filament type from one manufacturer, the values are usually very similar across colours. You should check filled filaments (wood, silk, glow) and temperature changes of more than approx. 10–15 °C separately.

What is the difference between Pressure Advance and retraction?

Retraction pulls the filament back before travel moves to prevent stringing. Pressure Advance works continuously during printing, with every deceleration and acceleration. A correct PA value often also reduces the retraction needed, but it does not replace retraction.

What happens if the Pressure Advance value is set too high?

The extruder removes too much material before corners. Corners look sunken or hollow, gaps appear after changes of direction, and gaps can form between the outer wall and the infill. In addition, the extruder motor often rattles due to the constant rapid forward and backward movements.

Does Pressure Advance also work with Bowden extruders?

Yes, but because of the long PTFE tube the values are significantly higher (roughly 0.25 to 0.8 instead of 0.02 to 0.05), and the extruder has to perform larger, rapid correction movements. A slightly higher smooth time relieves the drive. A Bowden system is not recommended for TPU.

Can I transfer K-values from Marlin to Klipper?

Values from Marlin Linear Advance 1.5 are of a similar order of magnitude to Klipper Pressure Advance and are suitable as a starting point. Values from the old Linear Advance 1.0 are not transferable. In any case, you should print a quick line test after changing firmware.

Do OrcaSlicer and Bambu Studio support automatic calibration?

OrcaSlicer offers line, pattern and tower tests for Pressure Advance in its calibration menu. Bambu Studio calls the function Flow Dynamics; depending on the printer model, the K-value can be measured automatically before printing or determined manually using a test pattern and saved in the filament profile.

Does Pressure Advance replace input shaping?

No. Input shaping compensates for mechanical vibrations of the frame and belts that show up as ghosting or ringing. Pressure Advance exclusively controls the pressure in the nozzle. For fast and precise prints, both functions should be calibrated.


⚡ 3D Bäckerei Berlin
3D printing with 24h express from Berlin
Calculate price online ➔
📱 3D file on your PC?
Send yourself the direct link via Telegram or WhatsApp and upload your STEP/STL file comfortably on your computer:
✓ Link copied to clipboard!