1. Calculators
  2. Crypto & Digital Assets

Crypto Tax Calculator

Enter your purchases and sales of a coin to see which lots each sale used, the cost basis, short-term and long-term gains, an estimate of the US federal tax and the lots you still hold. Compare FIFO, LIFO and HIFO side by side.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

Enter purchases and sales of one coin. Sales are matched to purchase lots by the method you choose, and the tax estimate uses US federal rules for 2026.

Purchases (and other acquisitions)
Date (YYYY-MM-DD)CoinsPrice per coinFee
$
$
$
$
$
$
$
$
Fees are in dollars and added to the cost basis. Coins received as income go here at their value when received.
Sales (and other disposals)
Date (YYYY-MM-DD)CoinsPrice per coinFee
$
$
$
$
Fees are subtracted from the proceeds. Swaps into another coin and purchases paid in crypto count as sales.
Lot matching method
$
Taxable income after deductions, not counting these crypto gains.
Net investment income tax (3.8%)

Results

Estimated federal tax on 2026 sales$518.48FIFO matching; 15.0% of the net gain
Net gain in 2026
$3,456.50
Short-term gain (held 1 year or less)
$0.00
Long-term gain (held more than 1 year)
$3,456.50
Proceeds from 2026 sales
$12,279.00
After selling fees
Cost basis of the coins sold
$8,822.50
Including purchase fees
Net investment income tax
$0.00
MAGI estimated at $104,557
Coins still held
60
Cost basis $2,806.50, $46.78 per coin

Of the $3,456.50 net gain, $0.00 is short-term and taxed like wages, while $3,456.50 is long-term and taxed at 0%, 15% or 20%. HIFO would give a lower estimate here ($368.18), but only with records that identify the units sold.

2026 gains and estimated tax by matching method

Short-term gainLong-term gainEstimated tax
-$1K$0$1K$2K$3K$4KFIFOLIFOHIFO

Sales matched to purchase lots

SoldLot boughtCoinsProceedsCost basisGainTerm
2026-02-202024-03-1590$4,491.00$3,609.00$882.00Long
2026-09-152024-03-1510$649.00$401.00$248.00Long
2026-09-152024-11-2050$3,245.00$3,008.00$237.00Long
2026-09-152025-06-0560$3,894.00$1,804.50$2,089.50Long
Total210$12,279.00$8,822.50$3,456.50

Proceeds are after the sale fee, split across lots by coins. Cost basis includes the purchase fee.

Purchase lots still held

BoughtCoins leftCost per coinCost basis
2025-06-0520$30.08$601.50
2026-01-1240$55.13$2,205.00

Method comparison for 2026 sales

MethodShort-term gainLong-term gainEstimated tax
FIFO$0.00$3,456.50$518.48
LIFO$782.25$2,273.75$513.16
HIFO-$209.00$2,663.50$368.18

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the crypto tax calculator

  1. Enter every purchase of the coin with its date (YYYY-MM-DD), the number of coins, the price per coin and the fee in dollars. Coins you received as staking or mining income count as purchases at their dollar value on the day you received them, because that value was already taxed as income.
  2. Enter every sale or other disposal. Selling for dollars is the obvious one, but swapping one coin for another and paying for goods with crypto are disposals too. For a swap, use the dollar value of what you received as the sale price.
  3. Choose a matching method: FIFO, LIFO or HIFO. The results show your choice, and the comparison table shows all three.
  4. Enter your filing status and other taxable income, meaning taxable income after deductions without these gains. The calculator stacks the crypto gains on top to find the rate that applies.
  5. Include or leave out the 3.8% net investment income tax. It only applies at higher incomes, and the calculator estimates your modified adjusted gross income to check.

Enter one coin per calculation, and only lots held in the same wallet or exchange account. If your sales cover more than one calendar year, the estimate covers the latest year; earlier sales still use up lots.

How crypto gains are calculated

Cost basis per coin = (Coins × Purchase price + Purchase fee) ÷ Coins
Proceeds = Coins sold × Sale price − Sale fee
Gain = Proceeds − Cost basis of the lots matched to the saleWhen one sale uses several lots, the proceeds are split across the lots in proportion to the coins taken from each. A gain is long-term when the coins were held for more than one year: sold after the anniversary of the purchase date.

The tax estimate follows the order in which the tax code applies:

Net short-term = short-term gains − short-term losses
Net long-term = long-term gains − long-term losses
Tax on short-term = Income tax(other income + short-term) − Income tax(other income)
Tax on long-term = 0%, 15% or 20% on long-term gains stacked above ordinary incomeIf one net figure is a loss, it offsets the other first. A net loss for the year offsets up to $3,000 of ordinary income, with the rest carried forward. Brackets are federal figures for 2026.

A worked example

The example buys a coin four times between March 2024 and January 2026, 270 coins in total, and sells 210 of them in two sales during 2026. With FIFO, each sale uses the oldest coins first.

The two sales bring in $12,279.00 after fees. The coins they used cost $8,822.50 including purchase fees, so the net gain is $3,456.50. Every lot FIFO reached for was bought more than a year before the sale, so the whole amount is a long-term gain: $3,456.50.

With $85,000 of other taxable income as a single filer, the long-term gain falls in the 15% bracket and the estimated federal tax is $518.48. You still hold 60 coins with a cost basis of $2,806.50.

FIFO, LIFO and HIFO compared

The method decides which lots a sale uses, and therefore both the size of the gain and how much of it is short-term. For the same trades:

Method Short-term gain Long-term gain Estimated tax Basis left in coins held
FIFO: oldest coins first $0.00 $3,456.50 $518.48 $2,806.50
LIFO: newest coins first $782.25 $2,273.75 $513.16 $2,406.00
HIFO: most expensive coins first -$209.00 $2,663.50 $368.18 $1,804.50

HIFO gives the smallest gain here because it sells the costliest coins first, and its short-term loss offsets part of the long-term gain. LIFO produces a smaller total gain than FIFO but turns part of it short-term, taxed at ordinary rates, which is why its tax ends up close to FIFO’s despite the lower gain.

Two cautions. First, a lower gain now usually means a higher gain later: the last column shows that HIFO leaves the least basis in the coins you keep, so their eventual sale will be taxed more. The method mostly moves tax between years, which still has value, but it is not the same as eliminating it. Second, HIFO does not always win. When the highest-cost lots are recent, it can swap long-term gains at 15% for short-term gains taxed at your full income rate.

LIFO and HIFO are specific identification. In the US you need records showing which units you sold, made no later than the sale itself; for coins held at a broker, the identification generally has to be given to the broker. Without that, FIFO is the default, applied account by account. Since 2025 the IRS expects basis to be tracked separately for each wallet or exchange account, which is why the lots you enter should come from one account.

Short-term versus long-term gains

The holding period often matters more than the method. The same gain can be taxed at very different rates:

  • Short-term (one year or less): taxed as ordinary income, at rates from 10% to 37%.
  • Long-term (more than one year): taxed at 0%, 15% or 20% depending on your taxable income.

With only $30,000 of other taxable income, the example’s long-term gain would sit entirely in the 0% band and the federal tax would be $0.00. For a married couple with $300,000 of other taxable income, the tax would be $649.82, which includes $131.35 of net investment income tax: the 3.8% surtax on investment income above a modified adjusted gross income of $200,000 (single) or $250,000 (married filing jointly).

If a sale is close to the one-year mark, checking the date before selling can be worth a lot. Selling on the anniversary itself still counts as short-term; the day after is long-term.

What counts as a taxable event

In the US, these generally create a capital gain or loss:

  • Selling crypto for dollars or another currency.
  • Swapping one coin for another, including stablecoins.
  • Paying for goods or services with crypto.

These generally do not:

  • Buying crypto with dollars and holding it.
  • Moving coins between wallets or accounts you own (network fees may be treated differently; keep records).
  • Giving crypto as a gift, although the recipient generally takes over your cost basis and large gifts can require a gift tax return.

Income is a separate category. Staking rewards, mining income and coins received as pay are taxed as ordinary income at their value when received, and that value becomes their cost basis for a later sale. Our staking rewards calculator and mining calculator cover how that income is earned.

Losses, wash sales and broker reporting

Losses offset gains of either type, and up to $3,000 of a net loss can reduce ordinary income each year, with the rest carried forward. Under current law, the wash sale rule applies to stock and securities, not to crypto, which the IRS treats as property. That means selling a coin at a loss and buying it back soon after does not disallow the loss today, but proposals in Congress have tried to change this more than once, so check the rules for the year you file.

Brokers now report crypto sales on Form 1099-DA, starting with gross proceeds for sales in 2025, with cost basis reporting phasing in for coins acquired from 2026 onward. Coins moved in from another platform or a private wallet may show no basis on the form, so your own purchase records are what make the gain correct.

What this calculator does not include

  • State income tax, which most states charge on capital gains at ordinary rates.
  • Several coins, wallets or accounts at once. Run one coin and one account per calculation.
  • Other capital gains and losses from stocks or funds, which are netted together with crypto on your return.
  • Carryover losses from earlier years and the alternative minimum tax.
  • Special cases such as gifts, inheritances (stepped-up basis), airdrops, hard forks, lost or stolen coins, NFTs taxed as collectibles and business or dealer activity.

The result is an estimate for planning, not a tax return. Brackets come from 2026 federal tables; a tax professional can confirm the treatment of unusual transactions.

Frequently asked questions

How is crypto taxed in the US?
The IRS treats cryptocurrency as property, so selling it, swapping it for another coin or spending it is a disposal that creates a capital gain or loss. The gain is the proceeds minus your cost basis. Coins held for a year or less produce short-term gains taxed at ordinary income rates; coins held longer produce long-term gains taxed at 0%, 15% or 20%.
Which cost basis method should I use for crypto?
FIFO (first in, first out) is generally the default when you do not identify which units you sold. LIFO and HIFO are forms of specific identification, which require records showing the exact units sold at the time of each sale. In the example, the estimated tax is $518.48 with FIFO, $513.16 with LIFO and $368.18 with HIFO.
Does the wash sale rule apply to crypto?
Under current law, the wash sale rule in the tax code applies to stock and securities, and the IRS treats crypto as property rather than a security, so selling a coin at a loss and buying it back soon after does not disallow the loss. Several legislative proposals have tried to extend the rule to digital assets, so check the rules for the year you file.
What is Form 1099-DA?
Form 1099-DA is the information return US crypto brokers, such as custodial exchanges, use to report digital asset sales to you and the IRS. Reporting of gross proceeds began with sales in 2025, and cost basis reporting is being phased in for coins acquired from 2026 onward. Your own records still matter, especially for coins moved between platforms.
Can crypto losses reduce my taxes?
Yes. Capital losses first offset capital gains. If losses exceed gains, up to $3,000 of the net loss a year ($1,500 if married filing separately) can offset ordinary income, and the rest carries forward to future years indefinitely.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.