---
tag: m0163
title: Set Mix Factor
brief: Set a single mix factor for a mixing extruder.
author: thinkyhead

group: mixing
requires: MIXING_EXTRUDER

codes: [ M163 ]
related: [ M164, M165, M166 ]

notes: Requires `MIXING_EXTRUDER`.

parameters:

- tag: S
  optional: true
  description: Component index
  values:
  - tag: index
    type: int

- tag: P
  optional: true
  description: Mix factor
  values:
  - tag: factor
    type: float

examples:

- pre: 'Save a 60/40 mix as tool index 5:'
  code:
  - M163 S0 P0.6
  - M163 S1 P0.4
  - M164 S5

- pre: 'Save a 3/5 mix as tool index 4:'
  code:
  - M163 S0 P3
  - M163 S1 P5
  - M164 S4

---

Set a single mix factor (in proportion to the sum total of all mix factors). The mix must be committed to a virtual tool by [`M164`](/docs/gcode/M164.html) before it takes effect.
