Crypto Cost Basis Calculator

    Your cost basis is what you actually paid for crypto, including fees — and it is the figure that determines your taxable gain when you sell. Enter your purchase amount, quantity, trading fee and network fees to get your total cost basis, your per-coin cost basis and the effective price you paid.

    Last reviewed: July 2026

    Quick answer

    With purchase price per coin of $2,000, quantity purchased of 2, trading fee of 0.2%, the total cost basis is $4,023.00. Adjust the inputs below for your own numbers.

    Inputs

    $
    %
    $

    Results

    Total cost basis
    $4,023.00
    Use this on your tax return
    Per-coin cost basis
    $2,011.50
    Purchase subtotal
    $4,000.00
    Fees added to basis
    $23.00

    Breakdown

    • Purchase cost$4,00099%
    • Fees$23.001%

    How much of your total cost basis is the purchase versus trading and network fees.

    Worked example

    With purchase price per coin $2,000, quantity purchased 2, trading fee 0.2%, network / transfer fee $15, this calculator returns total cost basis $4,023.00.

    Cost basis by quantity at $2,000.00 per coin

    QuantityCost basis
    0.25$516.00
    0.5$1,017.00
    1$2,019.00
    2$4,023.00
    5$10,035.00
    10$20,055.00

    Uses the purchase price, trading fee and network fee currently entered above.

    How to calculate cost basis for crypto

    Cost basis is the total amount you paid to acquire an asset, and for crypto that means more than just the price. The correct formula is: (price per coin × quantity) + trading fees + network and transfer fees. Tax authorities including the IRS allow you to add acquisition costs to your basis, which lowers your taxable gain when you eventually sell. Skipping the fees inflates your reported profit and means you pay more tax than you owe — this calculator captures every component so your basis is accurate.

    Why per-coin cost basis matters

    When you sell only part of a holding, you need the cost basis of the specific coins you sold. Dividing total basis by quantity gives your per-coin basis, the figure used to compute gain on a partial sale. If you bought in multiple lots at different prices, each lot has its own basis, and your accounting method (FIFO, LIFO or specific identification) decides which lot's basis applies first. Start by getting each individual purchase right with this tool.

    Fees that count toward basis

    Includable costs generally cover exchange trading commissions, maker/taker fees, and blockchain network (gas) fees paid to acquire or transfer the asset into your wallet. Costs that typically do not count include ongoing custody fees and interest. When you receive crypto from staking, mining or an airdrop, your basis is usually its fair market value at the time you received it — a different calculation from a straight purchase.

    Keep records for every acquisition

    Cost basis is only useful if you can prove it. Save the trade confirmation, the fee breakdown and the network fee for every purchase. When you sell years later, this documentation supports the basis you report and protects you in an audit. Run each buy through this calculator and store the result alongside your records. Crypto exchanges differ on maker/taker fees, funding rates and maintenance-margin tiers, and tax rules vary by country. Treat these results as a planning baseline and confirm against your exchange statements and a qualified tax professional before acting.

    Frequently asked questions

    What is cost basis in crypto?

    It is the total you paid to acquire the crypto — purchase price plus trading and network fees. It is subtracted from sale proceeds to calculate your taxable capital gain.

    Do fees count toward cost basis?

    Yes. Trading commissions and network/gas fees paid to acquire or move the asset are generally added to your cost basis, reducing your taxable gain.

    How do I find cost basis if I bought multiple times?

    Calculate the basis of each purchase separately, then apply an accounting method (FIFO, LIFO or specific ID). The average cost calculator blends multiple buys into one average.

    What is cost basis for staking or airdrop rewards?

    Usually the fair market value of the crypto at the moment you received it, which also counts as income at that time in many jurisdictions.

    Sources & method

    How this is calculated: Total cost basis = (price per coin × quantity) + trading fee (charged on the purchase subtotal) + network/transfer fee. Per-coin cost basis = total cost basis ÷ quantity.

    Source: Investopedia — Cost Basis · Estimate only, not financial advice.

    Add this calculator to your website — free

    Copy this into your page. It's free to use — just keep the credit line under the widget.

    Related calculators