FIFO (First In, First Out)

FIFO (First In, First Out) is a cost basis method that treats the earliest-acquired units of a crypto asset as the first ones sold. The matched cost basis is then used to calculate the gain or loss on a sale.

When the same coin is bought several times at different prices, each purchase forms a separate lot with its own cost basis. On a sale, FIFO matches the units sold against the oldest lots first. Other methods include LIFO (newest lots first), HIFO (highest-cost lots first) and specific identification, where the holder chooses which lots were sold, which requires detailed records. In the US, FIFO is the default when specific lots are not identified.

For example, someone buys 0.5 ETH for $1,000, later buys another 0.5 ETH for $1,500, then sells 0.5 ETH for $1,800. Under FIFO the first lot is treated as sold, giving an $800 gain. Matching the sale to the second lot would give a $300 gain instead. The trade is identical, but the reported gain changes.

The method matters because it changes taxable gains and can affect whether a gain counts as short- or long-term, since older lots have been held longer. When prices have risen over time, FIFO often produces larger gains, because the oldest lots tend to have the lowest cost. In other conditions it can produce smaller ones.

Rules differ by country, and some tax systems use other approaches, such as averaging. In the US, basis is tracked per wallet or account, so FIFO applies to the lots held where the sale happens rather than across all holdings combined. Switching between methods without clear records can lead to reporting problems.

Learn more

Related terms