The IRS ruled that bitcoins and other cryptocurrencies are property, not currency. As such, you determine gain or loss in the same was as any other type of property. Compare what you paid for the bitcoins and what you received on the sale (making adjustments for commissions, etc.).
Payments within one tax year of the entire amount due to a participant in a qualified retirement plan. Qualifying lump sums may be directly rolled over tax free, or, in some cases, are eligible for current tax under a favorable averaging method.