Tax Accounting & Digital Assets โ€ข IRS Notice 2014-21 & Rev. Rul. 2019-24

Crypto Capital Gains & HIFO Tax Calculator

Compare HIFO (Highest-In, First-Out), FIFO (First-In, First-Out), and LIFO accounting methods to minimize cryptocurrency capital gains taxes.

Governed by IRS (United States)

Input Parameters

disposal_amount
Units
Total Bitcoin, ETH, or token units sold
sale_price_usd
$ / unit
Gross price realized at execution
lot1_units
Units
Earliest acquisition lot
lot1_price
$ / unit
Purchase price of Lot 1
lot1_days
Days
>365 days qualifies for Long-Term Capital Gains
lot2_units
Units
Second purchase lot
lot2_price
$ / unit
Purchased near recent peak
lot2_days
Days
<365 days = Short-Term Ordinary Income Tax
lot3_units
Units
Third purchase lot
lot3_price
$ / unit
Purchase price of Lot 3
lot3_days
Days
>365 days = Long-Term Capital Gains
ordinary_tax_rate
%
Marginal tax bracket applied to short-term gains
lt_cap_gains_rate
%
0%, 15%, or 20% (+3.8% NIIT if applicable)

Calculated Outputs

Taxable Capital Gain (HIFO Method) โ€”
Taxable Capital Gain (FIFO Method) โ€”
Immediate Tax Savings with HIFO โ€”
Estimated Tax Liability (HIFO) โ€”
Estimated Tax Liability (FIFO) โ€”

Verified Mathematical Identity

Proceeds = Units ยท P_sale | Gain = Proceeds - CostBasis | HIFO sorts by max(CostBasis) | Tax = (ST_Gain ยท Rate_ord) + (LT_Gain ยท Rate_lt)

Analytical Derivation & Methodology

1
1. IRS Specific Identification Guidance

Under IRS Revenue Ruling 2019-24, cryptocurrency investors who maintain detailed records (transaction IDs, timestamps, cost basis) are legally permitted to use Specific Identification, including HIFO (Highest-In, First-Out).

2
2. HIFO vs FIFO Tax Mechanics

FIFO (First-In, First-Out) assumes the earliest coins acquired are sold first, which typically results in the lowest cost basis and largest taxable capital gain. HIFO matches sales against the highest acquisition prices first, immediately maximizing cost basis deductions and generating tax-loss harvesting benefits.

3
3. Holding Period Bifurcation

Assets held 365 days or less are classified as short-term capital gains and taxed as ordinary income (up to 37% federal). Assets held greater than 365 days receive preferential long-term capital gains tax rates (0%, 15%, or 20%).

๐Ÿค–

AI Agent & LLM Integration

Feed verified mathematical context directly into ChatGPT, Claude, and Gemini, or call our programmatic REST endpoint.

Human Chat Prompt

Copy active parameters and system instructions to eliminate model hallucinations.

Programmatic REST API

Sub-15ms edge compute endpoint returning floating-point & radical invariants.

Frequently Asked Questions

Yes. Under IRS Notice 2014-21 and FAQ 39-41, taxpayers can use specific identification (including HIFO) if they can document the date/time acquired, cost basis, fair market value, and wallet address of each lot.

HIFO sells your highest-priced purchases first. This minimizes your net taxable gain in the current year, and can even trigger legal capital losses (up to $3,000 per year against ordinary income) to lower your tax bill.

You can select specific identification on each individual sale transaction as long as you maintain consistent cryptographic accounting records and avoid double-counting previously sold lots.