Crypto Cost Basis Calculator
See your average buy price per coin.
Result
How it is calculated
The tool gives the average price you paid per coin: cost basis per coin = total invested ÷ total coins. Total invested is all the dollars you spent across your buys, and total coins is the number of coins you received for them; the answer is in dollars per coin. Add up your purchases yourself before entering them. If you bought at several prices, the average is weighted by quantity, because dividing totals counts larger buys more. Coins must be above zero and the invested amount cannot be negative. The tool shows the cost per coin to two decimals, so a coin worth less than a cent displays as $0.00. It does not subtract fees unless you include them in the invested amount, and it does not handle sales, so a partly sold holding needs the remaining cost and coins.
Worked example
You made two purchases: $2,000 for 0.05 coins and $3,000 for 0.0734 coins. Total invested: 2,000 + 3,000 = 5,000. Total coins: 0.05 + 0.0734 = 0.1234. Cost basis: 5,000 ÷ 0.1234 = $40,518.64 per coin. If the market price is above that, the position is in profit before any fees; if it is below, you are at a loss compared with your average purchase price.
Common mistakes
- Averaging the unit prices of the buys instead of dividing the totals. Two buys at 30,000 and 50,000 of very different sizes do not average to 40,000; the larger buy counts more.
- Leaving trading fees out of the invested amount. If you want the fee to count as part of the cost, add it to the dollars invested.
- Entering the number of coins held now, after a sale, but the total invested before the sale. Both numbers must refer to the same set of coins.
- Using this for a coin worth fractions of a cent. The result is rounded to two decimals and shows $0.00, so it cannot tell such coins apart.
- Assuming it follows the lot-matching method your tax rules require (FIFO, specific lot and so on). It gives one blended average only.
Sources
- Digital assets — Internal Revenue Service
About this calculator
The cost basis of a crypto holding is the average price paid per coin across all your purchases, calculated by dividing total dollars invested by the total number of coins held — this is the reference point every future gain or loss gets measured against. This calculator takes your total invested amount and coins held (across one or many buys, potentially at different prices) and returns your average cost basis per coin.
Knowing your cost basis is essential for tax reporting, since capital gains or losses on a sale are calculated relative to it, and it's equally useful for gut-check decisions — comparing the current market price to your average buy price tells you at a glance whether a position is in profit or underwater, without digging through every individual transaction.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
Include trading and network fees in the invested amount, otherwise the average understates what each coin really cost you. With 12,000 spent for 3.5 coins the basis is 3,428.57 per coin. This is a single blended average, and some tax rules ask for lot-by-lot records, so ask an accountant which method applies to you. Do you keep purchase records per lot or only as running totals?