FixMyCryptoTax 1099-DA reconciler

Tools / 02 · Free

Crypto cost basis calculator

Enter your buys and sells for one coin, pick a lot method, and get the gain or loss on every sale, split short- and long-term. Fees count the way the IRS describes.

  • Runs in your browser
  • FIFO · LIFO · HIFO
  • CSV export

Estimate, not tax advice. Check results against your 1099-DA and ask a tax professional if you're unsure. Rules cited below were checked on Sep 30, 2026. Have Kraken or Coinbase CSV exports, or moved coins between them? The 1099-DA reconciler reads the files and carries basis across transfers.

TypeDateQuantityPrice per coin (USD)Fee (USD)Remove

How the math works

  • Cost basis of a buy = quantity × price + the buy fee.
  • Proceeds of a sale = quantity × price − the sale fee. Brokers "must reduce the proceeds by digital asset transaction costs" on Form 1099-DA, box 1f (IRS, Instructions for Form 1099-DA, revised Apr 30, 2026).
  • Gain or loss = proceeds − the basis of the units sold. When a sale uses part of a lot, that lot's cost is split by quantity.
  • Long-term means held more than one year: the sale date is after the one-year anniversary of the buy date. Otherwise it's short-term. A coin bought Mar 1, 2025 and sold Mar 1, 2026 is still short-term.
  • FIFO sells your oldest coins first. It's what a broker uses if you don't identify units: "If no identification is provided at or prior to the time of the sale, you generally must first report the sale of the earliest units" (IRS i1099da). LIFO and HIFO are specific-identification choices: you have to identify the units at or before the sale. IRS Notice 2026-20 lets you record that identification, or a standing order, in your own books for sales from Jan 1, 2025 through Dec 31, 2026, and says your broker's 1099-DA may then not match your records (IRS Notice 2026-20).
  • Per account. Since Jan 1, 2025, basis is tracked wallet by wallet and account by account, not pooled across exchanges (IRS, final broker regulations). Use one calculation per exchange account.

Why your 1099-DA may show a blank basis

For tax year 2026, brokers report basis only for covered digital assets: ones "acquired after 2025 … in an account for which the broker provided custodial services" (IRS i1099da). Coins you bought on another exchange or held in your own wallet and then transferred in weren't acquired in that account, so they're noncovered there. The broker checks box 9 (noncovered), may leave basis (box 1g) blank, and shows the units and date transferred in (boxes 12a and 12b). Coins bought before 2026 are noncovered too.

A blank basis doesn't mean zero basis. On Form 8949 you report the proceeds shown on the form and enter the correct basis yourself, using box H (short-term) or K (long-term) for sales reported without basis to the IRS (IRS, Instructions for Form 8949). That's what this calculator helps you work out: add the original buy from the other exchange as a row here.

If a sale here uses more coins than your buys cover, the calculator flags the extra as missing basis instead of guessing $0.

What it doesn't do

  • One coin and one account per calculation. No crypto-to-crypto trades, staking income, DeFi, NFTs or margin. Koinly and similar software handle those from imports.
  • No wash-sale adjustments. Form 1099-DA's wash-sale box applies to tokenized securities only (IRS i1099da).
  • Times are treated as UTC calendar dates.

Questions

How is crypto cost basis calculated?

In this calculator, the basis of a buy is quantity times price plus the buy fee, and the proceeds of a sale are quantity times price minus the sale fee. The gain or loss is the proceeds minus the basis of the units sold. Brokers report proceeds net of transaction costs on Form 1099-DA (box 1f). (IRS, Instructions for Form 1099-DA)

FIFO, LIFO or HIFO: which can I use?

FIFO (oldest coins first) is what a broker uses if you do not identify units before a sale. LIFO and HIFO are specific identification: you identify the units at or before the sale. Notice 2026-20 lets you record that identification, or a standing order, in your own books for sales in 2025 and 2026, and your 1099-DA may then not match your records. (IRS Notice 2026-20)

When is a crypto gain long-term?

When you held the coins more than one year: the sale date is after the one-year anniversary of the buy. A coin bought March 1, 2025 and sold March 1, 2026 is still short-term. (IRS, Topic 409: Capital gains and losses)

Can I pool cost basis across exchanges?

No. Since January 1, 2025, basis is tracked wallet by wallet and account by account. Run one calculation per exchange account. (IRS, final broker regulations)

My 1099-DA shows a blank cost basis. Is it $0?

No. A blank basis means the broker did not report it. Enter the correct basis in Form 8949 column (e), using box H or K for sales reported without basis. (IRS, Instructions for Form 8949)

Moved coins between exchanges? The 1099-DA checker reads Kraken and Coinbase exports and carries basis across transfers. More: all crypto-tax guides · 1099-DA missing cost basis · Coinbase 1099-DA

Not tax advice. This page does arithmetic on numbers you enter; you choose the method and you file your own return. The calculation code is readable in this page's source (src/lib/basis/engine.js, with unit tests).