How are cryptocurrency gains taxed under U.S. federal law?

Under U.S. federal tax law, cryptocurrencies are treated as property for tax purposes. Gains from selling, exchanging, or otherwise disposing of cryptocurrency are subject to capital gains tax if held as a capital asset. The tax rate depends on the holding period: short-term or long-term.