If you have an iPhone 5, there are a few things you can do to reset your passcode.

  1. Open the Settings app and scroll down to the Passcode section.
  2. Tap on the Reset button and enter your old passcode.
  3. The iPhone will reboot and ask you for your new passcode again. Enter it in correctly and the iPhone will restart and be ready to use again.