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.).
Interest deemed earned on seller-financed sales or low-interest loans, where the parties’ stated interest rate is below the applicable IRS federal rate.