Geranium can last with its optimal blooming capacity within two years. They can last for a few more years but they will start to become too woody and produce fewer blooms.
Make sure to use some cuttings from the mother geranium plant during its life. Grow new plants from the cuttings that will replace the old one once it stops blooming flowers.