For a phone, probably about every... I don't know but I have had a 3gs, 6s. 10 and now 15 pro. You can figure it out.
Mac. A new Air about every 10 years or so. Just replaced my 2017 with an M5 air. Still have an M1 mini for my desktop. Still using a 2012 Cheesegrater for workbench stuff.
iPad. Who knows? M4 pro and only used for a consumption device so I suspect I will hold on to it until it dies.
Ryzen 7, 64gb, 7900XT, 2tb nvme, Debian 13, usually about a 25b LLM installed. Always upgrading that pc. Or was, until the prices of components blew through the roof.