Usually there is a 2 year exclusion period in a life insurance policy when it comes to death resulting from a suicide.
That means, if you commit suicide within 2 years of buying your life insurance policy, there will be no coverage.
However, if you commit suicide after 2 years of owning the life insurance policy, the insurance company would pay out a claim.
In some states, like Colorado, there is a 1 year exclusionary period, so after owning the life insurance for one year the life insurance would pay out on a death resulting from suicide.
However, you should review your life insurance policy, the suicide clause, and all exclusions that may apply to your life insurance coverage to determine how it works., as some life insurance plans may differ.