Many of us have had such thoughts. I know I have. Only those who have considered it, understand how hopeless life can seem at times. Time DOES heal most wounds, however. Even those of us who are alone in this world have friends and activities we enjoy - concentrate on those until the hurt passes. If you find yourself unable to do so, seek help. There are medications for depression, professionals who will listen to your problems and maybe help in some way. Seek that help if you need it. No one can "afford" such care. However, the alternative is to be and have nothing so who cares what it costs? Dead is for a VERY long time!
If you are religious, consider the consequences of such an action. Discuss it with your minister if you feel confident doing so.
Many suicides are an attempt to hurt those left behind. (Does not count those with terminal illnesses etc.) Lousy reason to destroy your OWN life! As said before, permanent solution to temporary problem.
I have some knowledge of the effects to those left behind. My dad shot himself when I was 19, before I came to respect him as an equal and he me. I can never do that. I can never make peace with him. I can never ask for his advice or counsel. He can never share in my accomplishments, shoot my toys, enjoy his grandaughter. He was not there to guide me into manhood, leaving me to attempt the job on my own. I will always remember what he did to those around him, the suffering I have seen all these years. I do not hate him for it nor am I angry anymore, but I will always miss what was taken from all of us.
Take the advice given here by those who do not know you but care for you simply because you are another human being with troubles. Seek out a friend, free or paid and TALK. There are people here who DO care. Let us know how you are.