Skip to content
FinToolSuite
Updated 2026-04-20 · Crypto · Educational use only ·
Privacy

Crypto Cost Basis Calculator

Crypto cost basis tracking.

Calculate crypto cost basis per coin from purchase amount and transaction fees. Enter coins purchased and amount paid to find your per-coin cost basis.

What this tool does

This calculator computes your all-in cost basis per coin by combining the purchase price with transaction fees. Cost basis represents the total amount you paid per unit and forms the foundation for calculating capital gains or losses when you later sell or trade your holdings. The result is driven primarily by the number of coins acquired, the amount paid before fees, and the size of the transaction fees incurred. A typical scenario might involve tracking multiple purchases across different dates to build a weighted average cost basis for tax or portfolio accounting purposes. The calculator assumes fees are paid upfront and incorporated into your total investment; it does not model ongoing holding costs, price volatility, or the tax treatment of gains in your jurisdiction. The output illustrates your cost foundation for reference only.

Quick answer: with the default values, the result is $40,360.00 (Cost Basis per Coin). Adjust the values below for your own figures.


Enter Values

People also use

Formula Used
Total paid
Fees
Coins

Disclaimer

Results are estimates for educational purposes only. They do not constitute financial advice. Consult a qualified professional before making financial decisions.

Crypto cost basis: total amount paid (including transaction fees) divided by coins purchased. Critical for capital gains calculation when selling. Total cost = purchase amount + exchange fees + transfer fees. Missing fees overstates the gain and can inflate the tax due at sale.

0.5 BTC purchased for 20,000 + 150 exchange fee + 30 transfer fee = 20,180 total cost. Cost basis: 40,360 per BTC. Selling at 50,000/BTC: gain 9,640/BTC × 0.5 = 4,820 reportable gain. Without including fees: gain calculated as 5,000 - overstates by 180.

In most jurisdictions, selling or trading crypto is a disposal that can trigger a capital gain or loss, measured against the cost basis. Tax rules, allowances, and rates vary widely by country and change over time, so this tool does not model them. Several accounting methods exist for matching disposals to acquisitions, including first-in-first-out, last-in-first-out, and average (pooled) cost, where an average cost per unit is applied across holdings of the same coin. Keeping a record of every acquisition and disposal, fees included, is what makes any of these methods possible to apply accurately.

A worked example

With the defaults: coins purchased of 0.5, total paid of 20,000, transaction fees of 180. The tool returns 40,360.00. You can adjust any input and the result updates as you type — no submit button, no reload. That's the real power here: seeing how sensitive the output is to one or two assumptions.

What moves the number most

The result responds to Coins Purchased, Total Paid (excl fees), and Transaction Fees.

The formula behind this

Total cost = paid + fees. Cost basis per coin = total cost ÷ coins. Everything the calculator does is shown in the formula box below, so you can check the math against your own spreadsheet if you want.

Using this well

What this doesn't capture

This is a simplified model that holds its assumptions constant. Real outcomes vary with market conditions, costs, taxes, and timing, so the figure is best read as one scenario rather than a forecast.

Example Scenario

(£20,000 + £180) ÷ 0.5 = $40,360.00.

Inputs

Coins Purchased:0.5
Total Paid (excl fees):£20,000
Transaction Fees:£180
Expected Result$40,360.00
Expected Result breakdown
Total Cost (incl fees)$20,180.00
Coins Purchased0.5000
Transaction Fees$180.00
Effective Fee %0.90%

This example uses typical values for illustration. Adjust the inputs above to match a specific situation and see how the result changes.

Sources & Methodology

Methodology

This calculator computes your average cost basis per coin by combining the purchase price and transaction costs, then dividing by the number of coins acquired. Specifically, it adds the total amount paid for coins to any transaction fees incurred, then divides this combined total by the number of coins purchased. The result represents the average cost per unit. The model assumes all coins are acquired at the same effective price and treats transaction fees as part of the acquisition cost rather than a separate expense category. It does not account for timing differences between purchases, variations in fee structures across transactions, or the impact of subsequent trades or disposals on your overall position.

Frequently Asked Questions

Which fees to include?
Costs that are directly part of acquiring the coins are typically included in cost basis: exchange transaction fees, network or gas fees, wallet transfer fees, custody fees where directly attributable, and the buy/sell spread. Non-monetary factors such as time spent are not a cost. Which fees qualify varies by jurisdiction, so local tax guidance or a qualified professional confirms the treatment for a specific situation.
Multiple purchases?
With multiple purchases of the same coin, a common method is pooled (average) cost: total cost across all purchases divided by total coins held gives an average per-coin basis, applied to each disposal. Some jurisdictions mandate a specific method (pooled, FIFO, or LIFO) rather than letting a holder choose, so the applicable rule depends on where the coins are taxed.
What about staking/airdrops?
Staking rewards, airdrops, and mining proceeds are often treated as income at their value on the day of receipt, and that value can then form the cost basis if the coins are later sold. Exact treatment varies by jurisdiction and can be involved, so many people use dedicated crypto accounting software or a professional for these cases rather than a single-purchase calculator.
Trading vs investment?
Many crypto holders are treated as investors, so capital gains rules apply to disposals. Very active traders can instead be classified as carrying on a trade, which some jurisdictions tax as income rather than as capital gains. Tax authorities generally weigh factors like frequency, intent, and time invested to decide. The classification can change the tax owed, so which rules apply is worth confirming with local guidance or a qualified professional for an active-trading pattern.

Related Calculators

More Crypto Calculators

Explore Other Financial Tools

Spotted something off?

Calculations or display — let us know.