Crypto Specific ID Cost Basis Calculator

Calculate crypto cost basis using the Specific Identification method. Select exact purchase lots to sell for optimal tax results on each trade.

Purchase Lots

$
$
$
$
Total Sold
0.5 units
Spec ID Cost Basis
$24,000.00
Sale Proceeds
$25,000.00
Capital Gain/Loss
$1,000.00
Gain
Planning notes, formulas, and examples

About the Crypto Specific ID Cost Basis Calculator

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.

Use the result to map token-release or fee scenarios and revisit the model when market conditions, unlock terms, or portfolio assumptions change.

When This Page Helps

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.

How to Use the Inputs

  1. Enter your purchase lots with date, quantity, and price per unit.
  2. Enter the quantity you want to sell and the sale price.
  3. Select which specific lots to apply to this sale.
  4. The calculator computes the cost basis from the selected lots.
  5. View the gain or loss and effective cost basis.
  6. Adjust lot selections to compare different tax outcomes.
Formula used
Cost Basis = ฮฃ (selected lot quantity ร— selected lot price) Gain/Loss = (Sale Quantity ร— Sale Price) โˆ’ Cost Basis

Example Calculation

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.

Tips & Best Practices

  • Always consider both the gain amount and the applicable tax rate (short-term vs long-term) when selecting lots.
  • Document your lot selection before or at the time of the sale โ€” retroactive selection is not allowed.
  • Spec ID requires your exchange or record system to support lot-level tracking.
  • Consider harvesting losses by selecting lots with the highest cost basis when selling at a loss.
  • For very large portfolios, crypto tax software automates optimal lot selection.
  • You can use Spec ID for some transactions and let FIFO apply as the default for others.

The Power of Specific Identification

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.

Spec ID in Practice

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.

Combining Spec ID with Tax Strategies

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.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • 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.