Painless way to kill yourself would be using helium. Grab a helium tank and a mask and slowly add it. This way, your brain doesn't realize that oxygen is getting replaced by helium. Or shotgun to the face.
The most painful way would be burning alive or harakiri. There were more information about this in wikipedia, believe it or not.
Do you know the most painful way to die besides previously mentioned methods?Alone