Due to the step-up-basis law, the government does not collect any capital gains not realized prior to death. So if you make 10 million in capital gains on a lucky early stage $5,000 investment, and die without any other assets, the (US federal) government will collect zero in taxes from you, your estate or your heirs.