https://www.irs.gov/newsroom/irs-virtual-currency-guidance pointing to https://www.irs.gov/pub/irs-drop/n-14-21.pdf
With the big question first:
Q-1: How is virtual currency treated for federal tax purposes?
A-1: For federal tax purposes, virtual currency is treated as property. General tax principles applicable to property transactions apply to transactions using virtual currency.