Skip to content
Qorenthera

    Crypto Cost Basis Calculator

    Work out crypto cost basis per wallet with FIFO, HIFO or LIFO and get Form 8949 rows. Reads Coinbase files in your browser; nothing is uploaded.

    Loading tool…

    Runs on your device. This page is blocked from sending your data anywhere.How we know

    What this calculator does

    Crypto Cost Basis Calculator works out what every coin you sold, swapped or spent cost you, and the gain or loss on it, the way US federal tax rules ask: separately for each wallet or exchange account, oldest units first unless you identified others before selling, and with each lot’s exact holding period. You get Form 8949 rows to hand to your accountant or type into tax software, your income from rewards, and the coins you still hold at the end of the year.

    How to use it

    1. In Coinbase, generate a transaction history report and download it as a CSV file. For any other wallet or exchange, fill in the template: one row per transaction with the date, type, asset, amount and dollar value.
    2. Drop all the files on the calculator. A file counts as one wallet unless its rows name their own.
    3. Pick the tax year. Keep FIFO unless you recorded a different choice before each sale.
    4. Read What needs your attention: it points to every row with a missing cost or value, by file and row number.
    5. Download the Form 8949 rows, and keep the year-end lots file to start next year from.

    A worked example

    You bought 1 BTC in January 2025 for $40,000 plus a $100 fee, and another in June 2025 for $60,000. In March 2026 you sell 1.5 BTC for $150,000 and pay $150 in fees. Under FIFO the January coin leaves first: its share of the proceeds is $99,900 against a cost of $40,100, a long-term gain of $59,800, because you held it for more than a year. The half coin from June cost $30,000 and brings in $49,950, a short-term gain of $19,950. Half a bitcoin stays in the wallet with a cost of $30,000, ready for next year.

    What it handles

    What it never guesses

    A row without a dollar value, or coins sold that no file shows you acquiring, is never filled in with an invented number. Each one is listed with its file and row, and kept out of the totals until you add the missing history. Dollar stablecoins without a value can be counted at $1.00 a unit, and the result says how many rows that affected.

    Limitations

    Frequently asked questions

    Which cost basis method does the IRS use for crypto?

    First in, first out within each wallet or account, unless you identify other units no later than the sale. Highest cost (HIFO) and last in, first out (LIFO) are ways of identifying units, so they only count when chosen before you sell, for example as a standing order. For coins held at an exchange, IRS Notice 2026-20 lets that standing order live in your own records through 31 December 2026.

    Why does cost basis have to be tracked per wallet?

    Since 1 January 2025 the Treasury regulations require it: coins on Coinbase and coins on your hardware wallet are separate pools. A sale on Coinbase can only use Coinbase lots. Coins you move between your own wallets keep their original cost and purchase date, which is why the calculator pairs each send with its receive.

    How does this relate to my Form 1099-DA?

    It gives you your own figures to check the form against. For 2025 sales, brokers report proceeds. For 2026 sales they also report cost, but only for coins bought in that same account from 2026 on; coins you transferred in are reported without one. Your own records fill that gap.

    Are staking rewards and other income included?

    Yes. Rewards count as income at their value when you received them, which is how Rev. Rul. 2023-14 treats staking, and that value becomes their cost basis. Income belongs on Schedule 1 or C, not Form 8949, so it is shown and downloaded on its own.

    Is my transaction history uploaded anywhere?

    No. The files are read inside this page, which is blocked from sending data to other sites. There is no wallet connection and no account to create. You can open the page, switch off the internet and run the whole calculation offline.

    Related tools