It depends – on whether your have dialysis (or a kidney transplant) or not.
At stage 5 CKD, your GFR will be under 15 ml/min (normal is 90-120 ml/min), and you will be very unwell.
Stage 5 CKD is also called end-stage renal disease (ESRD) or kidney failure. It means that you will need dialysis or a kidney transplant soon.
If you do not have dialysis, you may live 1-3 months (upto 6 months, usually).
If you have dialysis, you may live 5 years, on average. If you have advanced CKD, when your kidneys fail, they cannot get better. Your life expectancy depends on many things, especially your age, and the cause of the kidney failure.
This graph below shows average survival for patients of different ages with CKD5, compared to the general population.

Another way of looking at survival, is to look at the % chance of surviving 5 years from the start of dialysis.

As you can see, survival with ESRD is less than many types of cancer.
Note. So either type of transplant can significantly prolong your life.
Dialysis (and/or a kidney transplant) can help people with kidney failure live for many years. The outlook is very variable depending on your age and the cause of ESRD.
And it is true that overall mortality is about 15 times higher than the general population for patients receiving dialysis.
The main cause of death in patients receiving dialysis is cardiovascular disease, followed by infections. Thus far, studies have shown a comparable outlook for HD and peritoneal dialysis.
We have described what is the life expectancy for people with CKD5. We hope it has been helpful.