Crypto Tax Lot Identifier
Free crypto tax lot calculator for FIFO, LIFO, and HIFO cost basis assignment. Track capital gains and losses on every crypto disposal with detailed lot matching.
How the Crypto Tax Lot Identifier Works
The crypto tax lot identifier helps you calculate capital gains and losses when you sell, trade, or spend cryptocurrency. The IRS requires you to report each disposal of crypto, and the method you choose to assign cost basis to your disposals directly affects your tax bill. This tool supports the three most common lot identification methods: FIFO (first in first out), LIFO (last in first out), and HIFO (highest in first out).
Start by entering your acquisition transactions. Each acquisition records when you bought or received crypto, how much you acquired, and the total cost basis in fiat currency. Acquisition types include purchases, mining rewards, staking rewards, airdrops, and gifts. Each type has different tax treatment at acquisition, but all establish a cost basis for future disposals.
Next, enter your disposal transactions. Each disposal records when you sold, traded, or spent crypto, how much you disposed of, and the fair market value per unit at the time of disposal. Disposal types include sales for fiat, trades for another cryptocurrency, and purchases of goods or services. Each disposal is a taxable event.
Select your cost basis method and the tool matches each disposal against your available acquisition lots. The results show exactly which lots were consumed, the capital gain or loss on each matched lot, whether the gain is short term or long term based on the 365 day holding period, and a summary of total short term and long term gains and losses for your tax return.
Step by step
- Enter your acquisition transactions with dates, asset, quantity, cost basis, and acquisition type.
- Enter your disposal transactions with dates, asset, quantity sold, fair market value, and disposal type.
- Select FIFO, LIFO, or HIFO method and review the matched lots, gains, losses, and tax summary.
Worked Example
Suppose you bought 1 BTC on January 15 2023 for $20000, then bought 0.5 BTC on June 1 2023 for $15000, and bought 2 BTC on January 10 2024 for $80000. On March 1 2024, you sell 1 BTC at $50000 per coin. Under FIFO, the first lot acquired (January 2023) is matched, giving a cost basis of $20000 and a gain of $30000. Since the holding period exceeds 365 days, this is a long term capital gain.
Under LIFO, the most recently acquired lot (January 2024 at $40000 per coin) is matched first, giving a cost basis of $40000 and a gain of only $10000. Under HIFO, the highest cost basis lot is matched, which is also the January 2024 lot at $40000 per coin. The method you choose can significantly reduce your tax liability in rising markets.
When to Use This Calculator
Use the crypto tax lot identifier before filing your taxes to calculate your capital gains and losses from crypto transactions. Run the calculator with different lot identification methods to compare which method minimizes your tax liability. If you have made many crypto trades throughout the year, this tool helps you identify exactly which lots were consumed and track your remaining inventory.
Pair this tool with the capital gains holding period calculator to understand how holding periods affect your tax rate. The crypto equity allocator helps you determine the right allocation between crypto and traditional assets based on your risk tolerance and tax situation.
Common Mistakes
A common mistake is failing to report crypto to crypto trades as taxable events. Many traders assume only cashing out to fiat triggers a tax obligation, but the IRS treats every trade of one cryptocurrency for another as a disposal. Another frequent error is not tracking cost basis across multiple wallets and exchanges, leading to inaccurate gain calculations.
Not considering the holding period is another pitfall. Short term gains are taxed at ordinary income rates while long term gains receive preferential rates. By choosing HIFO, you may minimize total gains, but you should also consider whether specific lot identification can shift gains from short term to long term. Always consult a tax professional before making lot selection decisions.
Crypto Tax Lot Formula
Sort tax lots by selected method:
FIFO: acquisition date ascending
LIFO: acquisition date descending
HIFO: cost basis per unit descending
For each disposal:
remaining = disposal quantity
while remaining > 0 and lots exist:
lot = next available lot
matched qty = min(remaining, lot remaining quantity)
cost basis = matched qty x cost per unit
proceeds = matched qty x disposal price per unit
gain/loss = proceeds - cost basis
holding period = disposal date - acquisition date
long term = holding period > 365 days
Summary:
Short Term Gains = sum of gains where holding <= 365 days
Long Term Gains = sum of gains where holding > 365 days
Net Gain/Loss = Short Term + Long Term
Tax lot identification methods produce different results in rising and falling markets. FIFO typically produces the largest gains in bull markets. HIFO minimizes total taxable gains regardless of market direction. LIFO can minimize gains in sustained uptrends. Consult IRS Publication 550 and a qualified tax professional for your specific situation.
Limitations and Assumptions
This calculator provides educational estimates for crypto tax lot identification only. It does not account for wash sale rules under Section 1091, which may apply to crypto transactions under proposed regulations. Transaction fees, gas costs, and transfer fees are not included in cost basis calculations. Multi chain transactions, DeFi protocol interactions, and NFT disposals require specialized tracking. The 365 day holding period threshold is a simplification. Consult a qualified tax professional or CPA for your specific tax situation and to verify compliance with current IRS guidance.
Key Terms
- Cost Basis
- The original value or purchase price of a cryptocurrency asset used to determine capital gain or loss on disposal. Includes purchase price plus any acquisition fees.
- Tax Lot
- A specific batch of cryptocurrency acquired at a particular date and price. Each lot is tracked separately for cost basis assignment when disposals occur.
- Holding Period
- The length of time between acquiring and disposing of a cryptocurrency asset. Holding over 365 days qualifies gains for preferential long term capital gains tax rates.
Compare Alternatives
The crypto tax lot identifier works alongside the capital gains holding period calculator to help you understand how long term versus short term holdings affect your tax rate. Use the crypto equity allocator to determine optimal crypto allocation based on your overall portfolio and tax situation.
For stock investors, the tax harvest planner helps identify opportunities to offset crypto gains with stock losses. The dividend tax comparator shows how different income types are taxed relative to crypto capital gains.
FAQ
What is the difference between FIFO, LIFO, and HIFO?
FIFO (first in first out) assumes the earliest acquired coins are sold first. In a rising market, this typically produces the largest capital gains because old coins have low cost basis. LIFO (last in first out) assumes the most recently acquired coins are sold first, which can reduce gains in a bull market. HIFO (highest in first out) assumes the coins with the highest cost basis are sold first, minimizing total taxable gains regardless of when they were acquired.
Do I need to report crypto to crypto trades?
Yes. The IRS treats every trade of one cryptocurrency for another as a taxable disposal event, even if you never converted to fiat currency. Each trade requires you to calculate the capital gain or loss based on the fair market value of the crypto disposed of minus its cost basis. This tool tracks all disposal types including trades between cryptocurrencies.
What counts as a long term capital gain for crypto?
A crypto disposal qualifies for long term capital gains treatment if you held the cryptocurrency for more than 365 days before disposing of it. Long term gains are taxed at preferential rates of 0, 15, or 20 percent depending on your income. Short term gains are taxed at your ordinary income tax rate, which can be as high as 37 percent. The holding period starts on the day after acquisition and ends on the disposal date.
Can I change my lot identification method between years?
The IRS has not provided clear guidance on whether taxpayers can change lot identification methods year to year. Most tax professionals recommend choosing a method and applying it consistently. Once you sell specific lots, you cannot retroactively change which lots were sold. This calculator lets you compare methods before filing so you can make an informed decision with your tax advisor.
How do airdrops and staking rewards affect cost basis?
Airdrops and staking rewards are taxed as ordinary income at their fair market value on the date received. That fair market value becomes your cost basis for future disposals. Mining rewards follow the same treatment. Gifts received have a carryover basis from the donor. This tool lets you record each acquisition type separately so cost basis is tracked accurately regardless of how you acquired the crypto.
Can I use this calculator on my phone or tablet?
Yes. The Crypto Tax Lot Identifier runs entirely in your mobile browser with the same formulas as desktop. Optional localStorage may remember inputs on your device when enabled in browser settings. No app download required.
Where is my data stored when I use this calculator?
Nowhere on our servers. Calculations execute locally in your browser. Optional localStorage saves transaction data on your device only and never transmits financial data over the network. Your crypto transaction data never leaves your computer.
Should I rely on this calculator for tax filing?
No. The Crypto Tax Lot Identifier provides educational calculations only. Tax laws vary by jurisdiction and change frequently. The calculator does not account for wash sale rules, specific state tax treatments, or complex multi chain transactions. Consult a qualified tax professional or CPA before filing your tax return based on these calculations.
Related Tools
Use the Capital Gains Holding Period Calculator to understand how holding periods affect tax rates. The Crypto Equity Allocator helps determine optimal crypto portfolio allocation. The Tax Harvest Planner identifies opportunities to offset crypto gains with losses from other assets.