The wiki goes on to show examples of how it works when you invest a single sum, covers topics such as using a loss from one tax lot to offset the capital gains from another, donating low basis shares to a charity, and how the stepped-up cost basis works at death.