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

group: eeprom

codes: [ M502 ]
related: [ M500, M501, M503, M504 ]

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

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

---

Reset all configurable settings to their factory defaults. This only changes the settings in memory, not on EEPROM.

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