
Pressure advance is one of the most effective quality settings on a modern FFF printer, yet it confuses many PrusaSlicer users because there is no obvious checkbox for it. That is by design: pressure advance is a firmware feature, and PrusaSlicer controls it by placing the right firmware command in your G-code.
Once you understand where that command lives, tuning it per filament becomes straightforward. If supports are still your main headache, start with our PrusaSlicer tree supports guide and come back here afterwards.
What pressure advance does
Molten plastic in the nozzle behaves a little like a spring. When the print head accelerates, pressure lags behind, so lines start thin. When it slows for a corner, pressure is still high, so excess plastic bulges out. Pressure advance predicts this by pushing a little extra filament during acceleration and pulling back slightly during deceleration. The result is sharper corners, even line widths and fewer blobs at seams.
Different firmware families use different names and commands:
| Firmware | Feature name | Command |
|---|---|---|
| Prusa Buddy firmware 5.0+ (MK4/S, MK3.9/S, XL, MINI/+) | Pressure Advance | M572 S<value> |
| Prusa MK3 family and Marlin | Linear Advance | M900 K<value> |
| Klipper | Pressure Advance | SET_PRESSURE_ADVANCE ADVANCE=<value> |
Prusa's documentation notes that on Buddy firmware, older M900 K commands are converted one-to-one into a pressure advance value, so legacy G-code still works.
Where pressure advance lives in PrusaSlicer
Switch to Expert mode and open the Filaments tab, then Custom G-code → Start G-code. This is the right place for pressure advance because the ideal value depends on the material: PLA, PETG and flexible filaments behave very differently. Prusa's own help pages stress that the value belongs in the filament section, not the printer section.
On Prusa printers with tested profiles, you will usually find the command already there. Prusa's default start G-code for MK4-family printers includes an M572 line whose S value changes with nozzle diameter, and Prusa recommends keeping that default for most applications. You only need to change it for exotic filaments or very specific results.
M572 parameters on Prusa printers
- S: the pressure advance value. Zero disables pressure advance.
- W: the smoothing time window in seconds, used to average extruder velocity. The default is 0.04.
- D: the extruder number, relevant on the multi-tool XL.
Writing per-nozzle values with placeholders
PrusaSlicer's custom G-code supports a macro language with placeholders and conditions, so one filament profile can serve several nozzle sizes. A simplified example of the pattern looks like this:
M572 S{if nozzle_diameter[0]==0.4}0.04{elsif nozzle_diameter[0]==0.6}0.03{else}0.05{endif} ; example values only
Treat the numbers above purely as placeholders for your own measured values. Every printer, nozzle and filament combination needs its own calibration.
For Klipper printers
Klipper users can set a default in printer.cfg under the extruder section and override it per filament by adding a line such as SET_PRESSURE_ADVANCE ADVANCE=0.045 to the filament start G-code. Because the filament start G-code runs after the printer start G-code, the filament value wins.
For Marlin printers
Marlin firmware must be compiled with Linear Advance enabled. If it is, add M900 K<value> to the filament start G-code. If the firmware lacks the feature, the command is simply ignored.
How to tune pressure advance with a PrusaSlicer tower
PrusaSlicer does not generate calibration prints by itself, but you can build a reliable tuning tower with its layer-based custom G-code feature:
- Load a tall, thin-walled test object with sharp corners, such as a hollow square tower about 60 mm high.
- Use a single perimeter and no top layers so corners are easy to judge, and keep print speed realistic for your normal prints.
- Slice the model and open the Preview. On the vertical layer slider, move to a height such as 10 mm, click the plus icon and choose Add custom G-code.
- Enter your firmware's command with the first test value, for example
M572 S0.02. Repeat every 10 mm with a higher value. - Print the tower and look for the band where corners are sharpest without gaps or rounding. Note the value used in that band.
- Enter that value in the filament profile's start G-code and save the filament preset under a new name.
Reading the result: too little pressure advance shows bulging corners and thick line ends. Too much shows gaps or thin spots right after corners. The best value sits between those two signs.
Do not confuse it with the Pressure equalizer
PrusaSlicer has a separate Expert setting called the Pressure equalizer, found under Print Settings → Speed. It limits how fast the volumetric extrusion rate may change between features, which smooths transitions such as moving from fast infill to slow perimeters. It works on the slicer side and can complement pressure advance, but it does not replace it.
Practical tips
- Calibrate each filament type separately; PETG and TPU often need very different values than PLA.
- Re-check the value after changing nozzle size, hotend or extruder.
- Calibrate after input shaping or speed changes, since acceleration settings influence what looks best.
- If you print the same filament on several printers, store printer-specific values with conditions rather than separate presets.
Troubleshooting pressure advance problems
The value seems to have no effect
Check which command your firmware understands. Marlin without Linear Advance compiled in ignores M900, and Klipper ignores Marlin commands entirely. Also confirm the line is in the filament start G-code of the filament preset you actually selected, then search the exported G-code for the command to make sure it is there.
Another value overrides mine
Commands run in order. If the printer start G-code sets pressure advance after the filament start G-code runs, the printer value wins. Look through both sections and keep only one source of truth, ideally the filament profile.
Corners improve but extrusion becomes inconsistent
Values that are far too high can cause gaps, under-extrusion after corners or extruder clicking. Step back to the last good value from your tuning tower, and make sure retraction settings were not tuned with pressure advance disabled, since the two interact.
Frequently asked questions
Where is the pressure advance setting in PrusaSlicer?
There is no single field. Add your firmware's command, such as M572, M900 or SET_PRESSURE_ADVANCE, to Filament Settings → Custom G-code → Start G-code.
Do Prusa printers already use pressure advance?
Yes. MK4-family, XL and MINI printers on firmware 5.0 or newer use Pressure Advance, and Prusa's default profiles include M572 values.
Is Linear Advance the same as pressure advance?
They solve the same problem. Linear Advance is Marlin's implementation; Prusa's newer firmware converts M900 K values one-to-one into pressure advance.
Can PrusaSlicer generate a pressure advance test?
Not automatically, but you can build a tuning tower by adding custom G-code at different heights with the layer slider in the preview.
What does the W parameter in M572 do?
It sets the smoothing time window used to average extruder velocity, with a default of 0.04 seconds on Prusa firmware.
Conclusion
Pressure advance in PrusaSlicer is a firmware command stored per filament, which is exactly why it is so flexible. Identify your firmware's command, place it in the filament start G-code, and use the layer-slider tuning tower to find the right value for each material. If you would rather have built-in calibration generators, our OrcaSlicer vs PrusaSlicer comparison explains how the two slicers differ.