If you have an iPhone 4s, 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 as usual and the iPhone will reset your passcode.