---
tag: m0502
title: Factory Reset
brief: Restore all settings to factory defaults.
author: thinkyhead

group: eeprom

codes: [ M502 ]

notes:
  - This command can be used even if `EEPROM_SETTINGS` is disabled.

parameters:

examples:
  -
    pre: Reset settings and save them to EEPROM
    code:
      - M502 ; reset
      - M500 ; saved

---

Reset all configurable settings to their factory defaults.

To also reset settings in EEPROM, follow with [`M500`](/docs/gcode/M500.html).
