Crypto Cost Basis Calculator

Calculate your cost basis using FIFO, LIFO, or average cost method.

₿

Cost Basis

Enter your total purchase amount and units to calculate cost basis.

Cost basis per unit
$0
Total gain: $0
Cost basis per unit
$0
Cost of units sold
$0
Sale proceeds
$0
Gain / loss
$0
Return %
0%
Remaining basis
$0

Worked example

With the default inputs shown below, this calculator returns the following results:

InputValue
Total purchase cost ($)$50,000
Total units purchased2.5
Units sold1
Sale price per unit ($)$35,000
Cost basis methodAverage cost
ResultValue
Cost basis per unit$20,000.00
Cost of units sold$20,000.00
Sale proceeds$35,000.00
Gain / loss+$15,000.00
Return %+75.00%
Remaining basis$30,000.00

Values shown are produced by this page in your browser; change any input to update them.

How to use the Cost Basis

  1. Total purchase cost ($) — default $50,000
  2. Total units purchased — default 2.5
  3. Units sold — default 1
  4. Sale price per unit ($) — default $35,000
  5. Cost basis method — default Average cost
  6. Press Calculate to update the results instantly.

Frequently asked questions

Sources & references