Calculate crypto cost basis using the Specific Identification method. Select exact purchase lots to sell for optimal tax results on each trade.
Specific Identification (Spec ID) is the most flexible cost basis method allowed by the IRS for cryptocurrency transactions. Instead of following a fixed ordering rule like FIFO, LIFO, or HIFO, you select exactly which purchase lots to sell for each transaction. This gives you full control over your taxable gain or loss.
With Spec ID, you can optimize for multiple factors simultaneously — choosing lots that minimize gains, maximize losses, or balance short-term versus long-term holding periods. This is especially powerful for crypto investors who have accumulated positions over many months or years at varying price points.
This calculator lets you enter multiple purchase lots, pick which ones to use for a sale, and see the resulting cost basis and capital gain or loss. It's the ultimate tax planning tool for crypto investors who want maximum control over their tax outcome.
Crypto traders, long-term holders, and DeFi participants benefit from transparent crypto specific id cost basis calculations when planning entries, exits, or portfolio rebalances. Revisit this calculator whenever market conditions shift to keep your strategy grounded in accurate data.
Specific identification gives you the power to handpick lots based on your current tax situation. In some cases, HIFO is best; in others, selecting a long-term lot with a moderate cost basis produces less total tax than a short-term lot with a high cost basis. Spec ID lets you weigh both factors — gain amount and tax rate — to find the true optimum.
Cost Basis = Σ (selected lot quantity × selected lot price) Gain/Loss = (Sale Quantity × Sale Price) − Cost Basis
Result: $24,000 cost basis, $1,000 gain
You choose to sell 0.5 BTC from lot 2 ($48,000/BTC). Cost basis = 0.5 × $48,000 = $24,000. Proceeds = 0.5 × $50,000 = $25,000. Gain = $1,000. Selecting lot 1 instead would give a $15,000 gain ($25K − $10K) but at the lower long-term rate.
Spec ID puts you in complete control of your tax outcome. By choosing the optimal lot for each sale, you can minimize taxes in the current year, strategically realize losses, or manage your bracket by controlling the size of gains.
Before each sale, review your open lots sorted by cost basis and holding period. Calculate the after-tax proceeds for different lot selections. Choose the lot that maximizes your after-tax result, considering both the capital gains rate and the gain amount.
Spec ID pairs well with tax-loss harvesting (selecting underwater lots to realize losses), bracket management (timing gains to stay in lower brackets), and charitable giving (donating low-basis lots to avoid capital gains entirely). It is the foundation of sophisticated crypto tax planning.
You must identify the specific units being sold at the time of the transaction. Records should include the date acquired, quantity, and cost basis of the selected lots. Many crypto tax platforms generate these records automatically when you choose lots.
No. The IRS requires that specific identification be made at the time of or before the transaction. You cannot go back and change which lots were sold after the fact. This is why pre-sale planning is essential.
Spec ID can be better because it considers factors beyond just cost basis — primarily the holding period. A long-term lot at a 15% rate may produce less tax than a short-term lot at 37%, even if the short-term lot has a higher cost basis.
Not all exchanges provide lot-level tracking natively. However, you can maintain your own records using spreadsheets or crypto tax software. The IRS does not require the exchange to track lots — only that you can prove which lots were sold.
You can sell a portion of a lot. The remaining quantity stays in that lot with the same cost basis per unit. For example, if you have 2 BTC at $25,000 each and sell 0.5, the remaining 1.5 BTC retains the $25,000 per-unit cost basis.
For most active traders and significant portfolios, yes. The tax savings from optimal lot selection can easily outweigh the effort of maintaining records. Crypto tax software has made this process much simpler than manual tracking.