Using a passcode on Apple mobile devices with iOS 8 such as the iPad helps to secure the device. If you forget your passcode, you cannot recover it, but Apple provides a few options for recovering the iPad for use. Using iTunes, you can restore your iPad to its original factory condition and apply a backup. If you previously set up the Find My iPhone feature on the iPad, use this application with your iCloud account to erase the device -- including the forgotten passcode -- and then restore the most recent backup.
All the options to access an iPad without knowing the passcode erase the content on the iPad and restore it to its original condition, as if it is brand new, or restore it using a backup from the last time you synced the iPad and saved a backup. If you never backed up the iPad to either iTunes or iCloud, you can only restore the device to its original factory condition.
Restore iPad With iTunes
Plug in the iPad to the computer you normally use to back up your device. If iTunes is not set to open automatically when the iPad is plugged in, open iTunes manually. Click the iPad icon at the top of the screen.
ITunes may sync automatically when the iPad is plugged in. If not, sync the device by clicking the Sync button.
Select the Summary screen tab and click on Restore Backup to erase the data.
The restore process uses your most recent backup. Apps and downloads added after that last saved backup can be downloaded again from the iTunes and App Stores.
Erase iPad Using Find My iPhone
If you have Find My iPhone turned on for the iPad, you can use this application to erase the device. Go to the iCloud Sign In screen and sign in using your Apple ID. This is the same login information used to update your device, access iTunes, make purchases or change your iTunes account settings.
Click on All Devices in the Web browser window after logging in. Locate your iPad listed among the devices in your account. If the iPad is your only device connected to Find My iPhone, it is the only item in the device list.
Click on Erase iPad. This erases the iPad data, including the forgotten passcode.
Use the Setup Assistant to set up the iPad again. The prompts appear on the iPad to guide you, and they include information on loading a backup from iTunes on a computer or from iCloud.
If you did not set up Find My iPhone for this iPad, you will have to put the device in Recovery Mode and then sync to iTunes.
Using Recovery Mode to Restore an iPad
Unplug your iPad if it's charging or connected to the computer. Power off the iPad by holding down the Sleep/Wake button on the top edge of the device.
With the iPad off, press the Home button and hold it while plugging in the iPad to your computer. If the iPad doesn't turn on right away, while keeping the Home button pressed, press the top Sleep/Wake button and power on the device. Continue holding down the Home button.
When you see Connect to iTunes on the iPad screen, release the Home button. ITunes will often open automatically, but if it doesn't, open the program on the computer. An alert informs you that the iPad is in Recovery Mode. Click OK and then Restore iPad.
After you regain access to your iPad, click Settings and then Passcode to add a new passcode to your iPad. Otherwise, it remains unlocked.