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
Crypto
Crypto Profit Calculator
Calculate crypto profit or loss after fees. Net gain, ROI percentage, and total fee drag. Enter units owned and buy price to see net gain after fees.
Crypto
Crypto Investment Calculator
Crypto investment calculator. Enter amount, expected annual return, and years to see projected value and total return on your crypto position.
Crypto
Crypto Portfolio Calculator
Crypto portfolio calculator. Enter quantities and prices across multiple coins to see total value, allocation percentages, and concentration risk.
Formula Used
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.
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.
(£20,000 + £180) ÷ 0.5 = $40,360.00.
Inputs
| Total Cost (incl fees) | $20,180.00 |
|---|---|
| Coins Purchased | 0.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?
Multiple purchases?
What about staking/airdrops?
Trading vs investment?
Related Calculators
Crypto Profit Calculator
Calculate crypto profit or loss after fees. Net gain, ROI percentage, and total fee drag. Enter units owned and buy price to see net gain after fees.
Crypto Investment Calculator
Crypto investment calculator. Enter amount, expected annual return, and years to see projected value and total return on your crypto position.
Crypto Portfolio Calculator
Crypto portfolio calculator. Enter quantities and prices across multiple coins to see total value, allocation percentages, and concentration risk.
More Crypto Calculators
Crypto
Crypto Investment Calculator
Crypto investment calculator. Enter amount, expected annual return, and years to see projected value and total return on your crypto position.
Crypto
Crypto Portfolio Calculator
Crypto portfolio calculator. Enter quantities and prices across multiple coins to see total value, allocation percentages, and concentration risk.
Crypto
Crypto Profit Calculator
Calculate crypto profit or loss after fees. Net gain, ROI percentage, and total fee drag. Enter units owned and buy price to see net gain after fees.
Crypto
Mining Rig ROI Calculator
Calculate crypto mining rig payback period and net profit. Enter rig cost and hashrate (TH/s) to estimate payback period and net profit.
Crypto
Stablecoin Yield Calculator
Stablecoin yield calculator. Project yield on USDC, USDT, or DAI holdings at user-supplied APY — fiat-denominated math without crypto price volatility.
Explore Other Financial Tools
Business & Startup
Financial Leverage Calculator
Calculate financial leverage (the equity multiplier) from total assets and total equity — the bigger picture behind a debt-to-equity ratio.
Startup & VC
Employer Stock Purchase Program Calculator
Calculate employer stock purchase program immediate discount benefit from contribution amounts, stock price, and the purchase discount percentage.
Investing
Stocks vs Bonds Allocation Calculator
Suggest a stocks vs bonds asset allocation from age, risk tolerance, and years to retirement using the classic age-in-bonds heuristic plus tweaks.
Spotted something off?
Calculations or display — let us know.