A20. Your gain or loss is the difference between the fair market value of the virtual currency when received (in general, when the transaction is recorded on the distributed ledger) and your adjusted basis in the property exchanged. For more information on gain or loss from sales or exchanges, see Publication 544, Sales and Other Dispositions of Assets.