The IRS treats bitcoin and other cryptocurrency transactions as property and not as currency. As such, you must figure gain on the transaction in the same way as with any other type of property. The IRS posted guidance (https://www.irs.gov/pub/irs-drop/n-14-21.pdf) on this matter several years ago, but may revisit the topic, so stay alert.
A retirement account to which up to $4,000 (or $5,000 if you are 50 or over) may be contributed for 2007, but deductions for the contribution are restricted if you are covered by a company retirement plan. Earnings accumulate tax free.