Trading and Investing

How To Calculate Crypto Cost Basis: All You Need To Know About Tracking Cost Basis Across Wallets And Exchange

April 6, 2021
Written By


    Crypto assets have been the subject of a lot of stress and confusion when it comes to taxes. Despite its ambiguous guidance, the tax agency sent thousands of letters to crypto traders and investors warning them to pay the tax that they owe or face fines and other penalties.

    Let's take a look at some of the cost basis accounting methods like LIFO/FIFO for filing crypto taxes, the challenges associated with tracking cost basis—especially across different wallets and exchanges—and how to resolve them.

    How To Calculate Crypto Cost Basis?

    The cost basis is the amount that you spent to acquire an asset, including the purchase price, transaction fees, brokerage commissions, and any other relevant cost.

    Simple Cost Basis Formula

    To calculate crypto cost basis, there is a simple equation to follow: (Purchase Price + Fees) / Quantity

    For example, suppose that you invested $150 into Bitcoin on April 1, 2021, for $6,537 with a 1.49% transaction fee. Your cost basis would be your total purchase price of $152.24 ($150 + 1.49%*150) divided by 0.023 ($150/$6,537) — or $6,619 per BTC.

    The cost basis also depends on your accounting method:

    • Calculating Crypto Taxes with FIFO (First in First Out) - The cost basis for a sale is the cost basis of the earliest crypto that you acquired.
    • Calculating Crypto Taxes with LIFO (Last in First Out) - The cost basis for a sale is the cost basis of the last crypto that you acquired.
    • Calculating Crypto Taxes with HIFO (Highest in First Out) - The cost basis for a sale is the cost basis of the most expensive crypto that you acquired.

    For example, suppose that you're using FIFO for crypto tax calculation and you acquired one Bitcoin in 2019 and two Bitcoins in 2020. If you sell two Bitcoins in 2021, you would use the cost basis for the 2019 purchase and one of the 2020 purchases.

    The cost basis is important because it's used to calculate your taxable gains. The capital gain or loss of a position is the difference between your cost basis and sale price—or the fair market value at the time of the sale.

    Crypto-to-Crypto Transactions

    The cost basis is relatively straightforward for cash-to-crypto transactions, but crypto-to-crypto transactions are a different story and involve an extra step in the process.

    Suppose that you sold one Bitcoin to acquire the equivalent value in Litecoin. The cost basis for Litecoin would be the fair market value of the Bitcoin at the time of sale in U.S. dollars plus any fees. For example, $6,500 plus a 1.49% transaction fee of $96.85 divided by 144—or, $45.88 per LTC.

    You should keep a record of each transaction to ensure that you have the right cost basis on file. Otherwise, you may have to short through historical data to find the fair market value for different cryptocurrencies at different times. The good news is that you can use reputable price indexes in the process.

    Initial Coin Offerings (ICOs)

    The cost basis can also be complicated by the lack of liquidity. For example, how do you know the cost basis of a thinly traded initial coin offering (ICO)?

    ICOs were initially designed to finance early-stage blockchain projects using a crowdfunding approach. Investors received tokens (e.g. vouchers) that they could use to pay for future services being developed by the issuing firm. These 'utility tokens' have been replaced by 'tokenized securities'.

    While the cost basis for ICO investors is fairly straightforward, the cost basis for issuers is a little less certain. The IRS says that the issuance of 'utility tokens' for cash, crypto, or other property will be treated as the sale of property in which the issuer has a zero-cost basis.

    Cost Basis Of Airdrops & Forks

    The cost basis of a hard fork or airdrop is zero since you're not paying anything to acquire the new cryptocurrency. When you sell the asset, you must pay tax on the entire amount.

    Hard forks and airdrops also create an immediate tax obligation for the current tax year. In other words, you owe tax on the cost basis (or fair market value at the time of acquisition) of the new crypto in the current tax year. The only requirement is that you have technical control over the asset.

    The good news is that there has been a lot of pushback among lawmakers for better solutions. After all, many crypto holders don't have an option when it comes to being on the receiving end of a hard fork or airdrop and they may not realize any cash gains if they don't sell it.

    How to Determine Cost Basis Across Multiple Wallets & Crypto Exchanges

    Many exchanges prepare cost basis reports where possible, but they don't know how you originally acquired cryptocurrencies that you've imported into your account. If you use multiple wallets or exchanges, you cannot rely on exchanges to accurately report your cost basis figures.

    Exchange cost basis calculations don't work if you've:

    • Bought or sold digital assets from elsewhere
    • Sent or received digital assets from elsewhere
    • Stored digital assets on an external device
    • Participated in an initial coin offering
    • Used different accounting methods than the exchange

    You must merge transactions from all of your exchanges and wallets into a single data set to determine cost basis:

    • Aggregate transactions from every exchange by exporting to CSV or other file formats that can be easily compared
    • Merge the transactions and sort them by date to understand when each transaction occurred
    • Determine the cost basis for each transaction based on your accounting method (crypto taxes with FIFO, LIFO, HIFO, Actuals, etc.)

    Automating the Process With A Cost Basis Tax Calculator

    The process of manually aggregating, merging, and sorting data from multiple exchanges and wallets is tedious and time-consuming. Fortunately, crypto tax software can automate the process and help you avoid making costly mistakes.

    ZenLedger Crypto Tax

    ZenLedger simplifies the cost basis by stitching together your trading history and exporting based on the accounting method you select. After importing transactions from multiple sources, the platform automatically computes your capital gains and losses and pre-fills popular IRS forms, like Form 1040 Schedule D and 8949. ZenLedger crypto tax software provides an easy-to-use solution to find a cost basis for crypto traders who use multiple exchanges and wallets.

    Final Thoughts on Crypto Cost Basis

    Cost basis is one of the most important concepts in crypto accounting and taxes. While it can be fairly straightforward, there are some important considerations to keep in mind, particularly with airdrops, forks, ICOs, and other edge cases.

    If you're using multiple exchanges, you must also aggregate transactions to ensure that you're properly calculating your cost basis. Crypto tax software, like ZenLedger, can simplify the process and ensure that you are accurately reporting data.


    1. How to calculate cost basis crypto?

    There are two simple ways to calculate crypto cost basis, here's an example:
    Calculate your crypto by taking the initial investment amount, say $10,000 and divide it with a new number of shares that you hold, say 2,000 shares. By doing so, you'll arrive at the new per-share cost basis ($10,000/2,000=$5.00).

    2. What is the cost basis tracking of Cryptocurrency?

    Crypto cost basis is the accumulated fair market value of the currency you have, plus the profits of your assets at the time they are sold. These are used in the calculation to know if the capital is a gain or loss.

    3. How to calculate cost basis crypto for an investment property?

    Here are three simple steps that will help you calculate crypto cost basis in real estate:
  1. Begin with the original investment in the property
  2. Then, add the cost of the major improvements
  3. Finally, subtract the amount of allowable depreciation + casualty + theft losses
  4. 4. What is the best method to account cost basis crypto?

    Crypto tax filing with FIFO is considered one of the best, most conservative, and widely recommended methods since it is the preferred cost basis accounting method of the IRS. If you want to save yourself a tax audit or if you are a beginner in the crypto universe, crypto tax filing with FIFO could be your safest bet.

    ZenLedger easily calculates your crypto taxes and also finds opportunities for you to save money and trade smarter. Get started for free now or learn more about our tax professional prepared plans!

    Get Started Now

    Simplifying DeFi, NFT, and Crypto Taxes for Investors and Tax Professionals

    FB logolinkedin logotwitter logoyoutubrmedium

    Copyright © 2022 ZenLedger
    10400 NE 4th St, Floor #5,
    Bellevue, WA 98004, USA