Terry53029
Level 14
Level 14

Suggest you start with Pub 551. https://www.irs.gov/publications/p551