Crypto Profit/Loss Calculator
Calculate crypto profit, loss, and capital gains tax liability.
What this calculator does
This calculator works out what a cryptocurrency position actually made or lost you, net of the fees exchanges charge on the way in and out. Enter your total cost, the value at sale or today, and how long you held.
You get the gain or loss in dollars, the return as a percentage of what you committed, and an annualized rate. That last figure matters more in crypto than almost anywhere else, because positions are often held for weeks rather than years and a 40 percent gain over two months is a very different animal from 40 percent over four years.
When to use it
The obvious moment is after closing a position, to see the real number rather than the one the exchange app displays, which often ignores fees entirely. It is equally useful before selling, to size the taxable gain and check whether waiting past the one-year mark would move it from short-term to long-term treatment.
It also has a role at tax time. Because the IRS treats every disposal as a property transaction, you need a per-lot gain figure for each sale and each token-to-token swap. Running them individually here gives you numbers to reconcile against whatever your exchange reports.
Understanding the inputs
Purchase price should be your all-in cost basis: the quantity multiplied by the price paid, plus the exchange trading fee and any network gas fee incurred acquiring or transferring the asset. Gas fees are real money and belong in the basis.
Current or exit value is the position's dollar value today, or your net proceeds after the disposal fee. Holding period drives the annualized figure and accepts decimals, so five months is roughly 0.42. It also happens to be the field that determines whether a gain is short-term or long-term for tax purposes.
How is this calculated?
Gross Profit = (Sell Price − Buy Price) × Quantity. Net Profit = Gross − Fees. Tax Owed = Net Profit × Tax Rate.
A worked example
Say you bought 0.75 BTC at $38,400, a cost of $28,800, and sold fourteen months later at $61,200, making the position worth $45,900. Exchange fees on the two trades came to $185 combined.
Gross gain is $17,100, and net of fees $16,915 — a return of 58.7 percent on your $28,800. Because you held longer than twelve months, that gain qualifies for long-term capital gains rates. Selling two months earlier at the same price would have made it short-term and taxable at your ordinary income rate, potentially costing several thousand dollars more.
Limitations and assumptions
Crypto is among the most volatile asset classes available to retail investors. Past returns emphatically do not predict future ones, and this calculator assumes a single flat return with no volatility, so it cannot convey that assets here have repeatedly fallen 70 percent or more, and that individual tokens have gone to zero.
It does not model staking income, airdrops, hard forks, DeFi liquidity positions, or lending yield, all of which carry their own tax treatment. It is not investment or tax advice. Given the reporting complexity, anyone with more than a handful of transactions should use dedicated tax software or a CPA.
Common Questions
- How is crypto profit calculated?
- Gross profit is the sale price minus the buy price, multiplied by the quantity. Subtract exchange fees on both the purchase and the sale to get net profit. Divide net profit by your total cost to get the return percentage. Network gas fees paid on transfers count toward cost basis too.
- How does the IRS treat cryptocurrency?
- As property, not currency. Every disposal is a taxable event producing a capital gain or loss — including selling for dollars, swapping one token for another, and spending crypto on goods. Held over a year, gains are long-term at 0, 15, or 20 percent; a year or less, they are taxed as ordinary income.
- Do I owe tax if I swap Bitcoin for Ethereum?
- Yes. A crypto-to-crypto trade is a disposal of the first asset at its fair market value in dollars, and that triggers gain or loss even though no dollars touched your bank account. This surprises many traders and is the single largest source of unexpected tax bills after an active year.
- How is staking or mining income taxed?
- As ordinary income at fair market value on the date you gain control of the tokens, not as a capital gain. That value then becomes your cost basis. When you later sell those tokens, you pay capital gains tax on any further appreciation. Mining conducted as a business may also owe self-employment tax.
- Can I deduct crypto losses?
- Yes. Capital losses offset capital gains in full, and up to $3,000 of net loss can be deducted against ordinary income each year, with the remainder carried forward indefinitely. Historically the wash-sale rule has not applied to crypto as it does to securities, though proposals to change that recur.
- What cost basis method should I use?
- FIFO is the default, but specific identification is permitted if your records adequately identify the exact units sold, which usually produces a lower bill in an appreciating market. Recent rules require basis tracking per wallet or account rather than universally, so keeping exchange-level records has become essential.
- Do exchange fees reduce my taxable gain?
- Yes. Fees paid to acquire add to your cost basis, and fees paid on disposal reduce your proceeds. Both work in your favor. On an active trading account these add up quickly — a trader paying 0.4 percent round-trip on a hundred trades has meaningful deductible costs that are easy to forget.
- What if I lost access to my wallet?
- Lost keys are notoriously difficult to claim. Casualty and theft loss deductions for personal assets were sharply curtailed by the 2017 tax law, and abandonment claims require clear evidence of intent and worthlessness. Document everything and take professional advice — do not simply write the loss off on your own return.
- How volatile is crypto compared to stocks?
- Far more. Bitcoin has repeatedly drawn down more than 70 percent from prior highs, and individual altcoins have gone to zero. Annualized volatility often runs three to five times that of the S&P 500. Any return figure calculated here reflects one path through an extremely wide range of possible outcomes.