This article explains how to back up the data on your iPad, and then erase your iPad in preparation for trading it in for a newer model, selling it, or giving it away. This information applies to iPads running iPadOS 15 through iPadOS 13 and iOS 12.
How to Erase Your iPad Before Selling It – Factory Reset / Restore Your iPad
Backing up your documents, settings, and other data to iCloud ensures a smooth transition to your new iPad. Simply restore your data after you get your new iPad up and running. Here’s how:
To back up your iPad to iCloud before erasing the data:
Tap the Settings icon.