Google has discontinued the pixel 4 and pixel 4 XL. Both devices are out of stock in Google’s store in the US. Some versions are still available in other regions for the time being.
Pixel 4 will continue to get software and security updates for at least three years from when the device first became available on the Google store in the US.
The pixels 2 and 3 were on sale for around 18 months each. Google stopped sales roughly six months after the introduction of their predecessors.