Look in Settings
Go to Settings > General > About. To the right of model number, you'll find the part number. To find the model number, tap the part number.
Look on your device
To find the model number on an iPhone 8 or later model that has a SIM tray, remove the SIM tray and look in the slot. Make sure that you're in a place with bright light overhead. The model number is on the top side — the side with the display.
iPhone models that only support eSIM don't have a SIM tray. To find the model number, look in the Lightning connector. Make sure that you're in a place with bright light overhead. You can find the model number on the top side of the Lightning connector — the side with the display.
On an iPhone 7 or earlier, an iPad or an iPod touch, find the model number on the back of your device.