3D printer G-code · Marlin and Klipper

M221: Flow percentage (Marlin & Klipper)

Flow percentage — Multiplies all extrusion by a factor while printing. Useful for a quick test; the better place for a lasting change is the flow or extrusion multiplier in the slicer.

By cnccode · Updated
On this page
  1. What does M221 do?
  2. Parameters
  3. Example
  4. Tips from practice
  5. Related commands
  6. More extrusion commands
  7. Frequently asked questions
PropertyValue
CommandM221
FunctionFlow percentage
FirmwareMarlin and Klipper
GroupExtrusion
SyntaxM221 S<percent>

What does M221 do?

Multiplies all extrusion by a factor while printing. Useful for a quick test; the better place for a lasting change is the flow or extrusion multiplier in the slicer.

Parameters

ParameterMeaning
SFlow in percent, 100 = normal

Example

G-code
M221 S95

Tips from practice

  • M221 is reset at the next print on most printers.

The command works in Marlin and Klipper. Options can differ: Klipper accepts fewer parameters for some M-codes and ignores codes it does not know with an "Unknown command" error.

More extrusion commands

CommandFunctionFirmware
G10Firmware retract (G10 / G11)Marlin and Klipper
G92Set position (G92 E0)Marlin and Klipper
M82Absolute extrusion (M82 / M83)Marlin and Klipper
M900Linear advance factorMarlin
SET_PRESSURE_ADVANCEPressure advance (Klipper)Klipper
SET_RETRACTIONChange firmware retractionKlipper

Test it before you print

Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.

Open the simulator

Frequently asked questions

What does M221 do on a 3D printer?
M221 is flow percentage. Multiplies all extrusion by a factor while printing. Useful for a quick test; the better place for a lasting change is the flow or extrusion multiplier in the slicer.
Does M221 work in Klipper and Marlin?
Yes, both firmwares understand M221.
Was this page helpful?