How does the IRS classify cryptocurrency?
Notice 2014-21 established that cryptocurrency is property for federal tax purposes. Every time you dispose of crypto (sell for USD, trade for another crypto, spend on goods or services, gift above the annual exclusion), you realize a capital gain or loss equal to the difference between your basis and the fair market value at disposition.
Receiving crypto as payment for services, mining rewards, staking rewards, airdrops, hard forks, and most DeFi yield is ordinary income at fair market value on the date of receipt. That income then becomes the cost basis if you later dispose of those tokens.