Hamlet's suicidal ideation is not a single impulse but a convergence of five crises, each deepening the abyss.
His father dies; his mother marries the uncle within weeks. The court's celebratory tone ("the funeral baked meats / Did coldly furnish forth the marriage tables") mocks his mourning.
Denmark is a prison of corruption: murder, incest, espionage. Hamlet's philosophy ("there is nothing either good or bad but thinking makes it so") collapses when confronted with objective evil.
"To be or not to be" (3.1) is not melodrama—it is a rigorous risk assessment. The "dread of something after death" (the unknown) stays his hand. He fears damnation more than suffering.
The Ghost demands revenge; Hamlet's intellect demands proof; his conscience recoils at murder. He is trapped between filial duty and moral law—inaction breeds guilt, action risks damnation.
Ophelia spies for Polonius; Rosencrantz and Guildenstern spy for Claudius; Horatio loves him but cannot share the burden. He thinks alone.
Hamlet ultimately rejects suicide not from hope but from resolution: "The readiness is all" (5.2). He chooses action—however fatal—over self-annihilation. The tragedy is that his action kills everyone he loves, including himself. But he dies acting, not yielding.