Bulging corners? Tune pressure advance or linear advance with one test print
By Sina Esfahani, OmniTechs · Published 27 November 2026
If every corner of a box bulges outwards, lines start thin and end in a blob, or the seam is a lump, the melt in the nozzle is reacting late to speed changes. The filament path behaves like a spring: pressure builds up too late when the head speeds up and keeps pushing plastic out when it slows for a corner.
Pressure advance corrects this: it pushes a little extra filament while the head accelerates and eases off while it decelerates. Marlin calls it linear advance, Bambu Lab flow dynamics. There is no universal value. Tune it per printer and filament with one test print, keep the lowest value that gives sharp corners without gaps, and save it with that filament.
Fix it in this order:
Check that it is pressure: all corners bulge, not just the one where the layer changes.
Calibrate the extruder distance (e-steps or rotation distance) and dry the filament first.
Bambu Lab: run Calibration > Flow Dynamics; on a P1 series printer use the manual pattern with steps of 0.002.
Klipper: print the square tower with TUNING_TOWER, factor 0.005 for direct drive or 0.020 for a long Bowden tube.
Marlin: check that the firmware has linear advance (send M900: it must report a K value), then print the K-factor pattern.
Pick the lowest value with sharp corners and no gap; ignore the seam corner.
Save the value with that filament and retune for a new brand, colour, nozzle or temperature.
Is it really a pressure problem?
What your corners tell you
| What you see | Most likely cause | What to do |
|---|---|---|
| All corners bulge outwards, lines end in a blob | Pressure advance too low or off | Tune it, starting from zero |
| Gaps or thin, rounded lines just before or after corners | Pressure advance too high | Lower the value |
| One corner looks worse, the same one on every layer | The seam or layer change sits there | Ignore it while tuning; see the z seam guide |
| Corners still bulge on a Marlin printer with very low acceleration limits | The head slows down hard at every corner | Raise the acceleration limits, then tune linear advance |
| The test looks the same at every height | The firmware ignores the command | Check that linear advance is compiled in, or change firmware |
| The extruder clicks after tuning | High value plus high acceleration asks too much torque | Lower the acceleration or the value |
| Waves or echoes after a corner | Ringing from frame resonance | Input shaping, a separate fix |
| Corners lift off the bed | Warping, not extrusion | See the warping guide |
A much-read Stack Exchange question came from a Marlin user whose corners stayed round whatever junction deviation they set. The top answer: the bulges come from the head slowing down at each corner, and the cure is higher acceleration limits plus calibrated linear advance. For the other rows, see ringing, ghosting and input shaping, stopping prints warping and hiding the z seam.
What pressure advance changes
Think of the filament between the drive gear and the nozzle as a spring (Marlin). Klipper moves the extruder ahead by the pressure advance value times the extrusion speed, which is why the value is in millimetres per millimetre per second. It smooths that over 0.040 seconds by default, as does Prusa's M572.
Pressure advance does not change the print time, the toolhead path or the total filament used, only when the filament is pushed (Klipper). It lives in the firmware because G-code only describes paths; the firmware decides how the head accelerates along them (accepted answer on the Stack Exchange). Slicer coasting is a rough substitute that only works if the speed hardly changes.
CNC Kitchen's video explains pressure advance in its first chapter, from 1:00, before moving on to automated tuning with a load cell.
What it is called on your printer, and where the value lives
Pressure advance by firmware and printer
| Firmware or printer | Name | How it is set | Where the value lives |
|---|---|---|---|
| Klipper | Pressure advance | pressure_advance in the extruder section; SET_PRESSURE_ADVANCE changes it during a print | printer.cfg |
| Marlin | Linear advance | M900 K followed by the value; only if LIN_ADVANCE was compiled in, which is off in Marlin's default configuration | Firmware default or the slicer's start G-code |
| Prusa MK4/S, MK3.9/S, XL, MINI/+ (firmware 5.0.0 and later) | Pressure advance | M572 S followed by the value; old M900 K values are converted one to one | PrusaSlicer start G-code; Prusa advises keeping its default |
| Prusa MK3 family | Linear advance 1.5 | M900 K | PrusaSlicer filament presets, already tuned for Prusa's filaments |
| Bambu Lab | Flow dynamics (K factor) | Automatic on X1, X2D, A1, H2 series and P2S printers; manual pattern only on P1 | Saved on the printer per filament |
| OrcaSlicer on any of the above | Pressure advance | Tower, pattern or line test, plus an adaptive mode | Filament profile |
Not every Marlin printer has linear advance switched on (OrcaSlicer). In a Creality forum thread, Ender-3 V3 SE owners printed towers that looked identical at every height; one concluded that linear advance is disabled in its stock firmware. Whether moving to Klipper is worth it is covered in what Klipper changes.
How to tune it
Prepare the printer first
Calibrate the extruder distance: rotation_distance on Klipper, e-steps on Marlin (both makers ask for it); see calibrating e-steps or rotation distance. Klipper also wants the nozzle temperature settled. Bambu Lab adds dry filament, a clean nozzle, clean extruder gears and a washed plate. Before you clean the gears, switch the printer off and unplug it (Bambu Lab). In the slicer, disable scarf seams and any dynamic acceleration control for the test (Klipper).
Klipper: the tuning tower
Slice Klipper's square_tower.stl fast, around 100 mm/s, with zero infill and a layer height of about 75% of the nozzle diameter: 0.3 mm for a 0.4 mm nozzle.
Send SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500 to slow the cornering and exaggerate the effect.
Send TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005 for direct drive, or FACTOR=.020 for a long Bowden tube.
Print, then measure with a calliper the height where the corners look best.
Calculate start plus height times factor. Klipper's own example: 0 + 12.90 × 0.020 = 0.258. On a direct drive with the best corners at 8 mm: 0 + 8 × 0.005 = 0.040.
Put pressure_advance = your value in the extruder section of printer.cfg and send RESTART.
Teaching Tech's Klipper guide covers the tuning tower from 4:57, right after its chapter explaining pressure advance.
Bambu Lab: flow dynamics
In Bambu Studio, open the Calibration tab, choose Flow Dynamics, then Auto-Calibration or Manual Calibration. The automatic mode runs on X1, X2D, A1, H2 series and P2S printers; A1 printers need firmware 01.04.00.00 or later, and the P1 series only has the manual mode. For the manual test, choose the Pattern method and an interval of 0.002, then pick the sharpest corner without under-extrusion. In Bambu Lab's own example with Bambu PLA Basic, 0.006 bulged, 0.024 under-extruded and 0.018 was best. The Line method is less accurate and tends to give a lower value (Bambu Lab).
OrcaSlicer on any printer
OrcaSlicer has three tests, each in a direct drive and a Bowden version. The tower takes longest but does not depend on your first layer; the value rises one step per millimetre, so 8 mm at a step of 0.002 gives 0 + 0.002 × 8 = 0.016. The pattern prints corners at a range of values side by side. The line test is quick but depends heavily on the first layer. On a Bambu printer, do not tick the flow calibration option in this test (OrcaSlicer). Save the result in the filament profile.
Marlin: linear advance
Marlin's K-factor pattern prints lines of 20 mm slow, 40 mm fast and 20 mm slow, each at a higher K. The best value shows an even line with an almost invisible change between the speeds. With linear advance 1.5, Marlin expects K between about 0.1 and 2.0, and Bowden printers need higher values than direct drive. Set the result with M900 K in your start G-code.
For Marlin printers, Teaching Tech's linear advance guide explains the feature and shows how to read the calibration pattern to find K.
Which value should you choose?
The lowest value that gives sharp corners. Klipper says to prefer the lower value when in doubt, and a Stack Exchange answer adds that overshooting harms print quality more than undershooting.
Ignore the seam corner. The corner where the layer changes always looks different; pick a value that suits the other three (Klipper, Klipper forum).
If no height looks good, the extruder settings may be off. Klipper's author suggested on the Klipper forum to tune the temperature or lower the flow, by running the test slower than 100 mm/s or with a thinner layer; PETG often needs lower speeds. A tower can also be easier to read than Marlin's line pattern, according to answers on the Stack Exchange.
Published values, and why yours will differ
Pressure advance and linear advance values published by makers
| Source | Situation | Value |
|---|---|---|
| Klipper | Typical range | 0.050 to 1.000; the high end mainly with Bowden extruders |
| Prusa, MK3 family, 0.4 mm brass nozzle | PLA / PETG / ASA and ABS / PC Blend | 0.05 / 0.08 / 0.04 / 0.07 |
| Prusa, MK3 family, 0.6 mm nozzle | PLA / PETG / ASA and ABS | 0.04 / 0.04 to 0.05 / 0.02 to 0.03 |
| Marlin configuration comment | 3 mm PLA, direct drive, about 6.5 cm from drive gear to heat break | About 0.22 |
| Bambu Lab Wiki | Bambu PLA Basic: automatic example / manual pattern example | 0.015 / 0.018 |
Your value depends on the extruder, nozzle, filament and temperature. Filament from another maker, or even another colour, can need a clearly different value (Klipper). Bambu Lab adds that automatic results vary by about 10% between runs, and that on A1 and H2D printers the automatic value is deliberately higher than a manual one, to stop plastic piling up in corners.
When it does not help, or makes things worse
No improvement. If values up to 1.000 bring no clear improvement, pressure advance is unlikely to help; Klipper says to go back to a configuration with it disabled.
Extruder skipping. With a high value (Klipper names over 0.200) and high acceleration, the extruder may lack the torque for the extra filament. Lower the acceleration or the value; see extruder clicking or skipping.
Slower prints on Marlin. Linear advance 1.5 lowers the acceleration of a move when the correction would exceed the extruder jerk limit, most often on Bowden printers with high values.
Clashing slicer features. Once linear advance works, Marlin asks you to switch off coasting, extra restart length, wipe while retract and combing, and to recheck retraction, which may drop a lot. Klipper still suggests a small retraction of about 0.75 mm plus wipe.
Unreliable automatic results. Bambu Lab lists damp filament, transparent filament on X1 printers, a worn or partly blocked nozzle, soft filament such as TPU and a third-party hotend. Fix the cause first; with a 0.2 mm hotend, Bambu Lab recommends the manual pattern.
Very flexible filament. Marlin notes it may not work with linear advance at all.
OrcaSlicer's adaptive pressure advance changes the value with flow rate and acceleration during a print. It helps most on fast printers with high-flow nozzles and adds nothing at one speed, one acceleration and one layer height. It is tested on Klipper only; on Marlin every change makes the printer finish its queued moves first, which can cause hesitations (OrcaSlicer).
When to stop and look elsewhere
If corners are clean but walls are too thin or too thick everywhere, the cause is flow, not pressure: continue with flow rate calibration. If the value keeps drifting or the test never settles, check the hardware: Bambu Lab names worn nozzles and dirty extruder gears, and in the Klipper forum thread one PETG would not tune without the extruder skipping. A firmware without linear advance needs a firmware change, not more tuning.
Next step and related guides
Tuned pressure advance also tightens the seam (OrcaSlicer); hiding the z seam shows where to put what is left. If speed is your goal, print speed and acceleration explains how far you can push before quality drops.

