Hi there! 👋
It’s not unusual for a new iPhone to take a while when updating to the latest iOS during setup — especially if it’s downloading and installing a large update like iOS 26. However, 40 minutes of just spinning gears with no progress bar usually means the process might be stuck.
Here’s what you can try:
Force restart your iPhone:
Quickly press and release Volume Up,
Quickly press and release Volume Down,
Then press and hold the Side button until you see the Apple logo.
After it restarts, check if the setup resumes or if you get the option to start over.
If it stays stuck, connect your iPhone to a computer with Finder (Mac) or iTunes (Windows) and choose Update (not Restore). This will reinstall iOS without erasing data.
Make sure your internet connection is stable and the device is charged or plugged in during setup.
If none of that works, you can put your iPhone into Recovery Mode and restore it from there — Apple has a guide here: If you can’t update or restore your iPhone.
Hope this helps!