Crypto Profit & Loss Calculator (Fees Included)
Calculate crypto profit or loss after buy and sell fees, see your ROI and the exact break-even sell price, and work by coin quantity or by amount invested.
How to use this calculator
First choose how to describe the position. Quantity mode takes the number of coins, which suits a trade you have already made. Amount invested mode takes the total dollars spent, fees included, and works out how many coins that buys. Switching modes converts the number in the box, so the scenario stays the same.
Enter the buy price and the sell price you want to test. The sell price can be a real fill or a hypothetical target. Then add the percentage fee for each side, plus any flat fees, such as a fixed card charge when buying or a withdrawal fee when you move funds out. Leave the flat fees at 0 if they do not apply.
The tiles show profit or loss, ROI, total fees, the break-even sell price and the quantity. The note under them spells out what break-even means for your numbers. For a slower, step-by-step walk-through of the same math, see how to calculate crypto profit and loss.
Tip: Use the prices from your trade history rather than the chart price. Real fills already include the spread, the gap between buy and sell quotes that our guide to maker, taker and spread costs explains.
How it’s calculated
Cost = P_buy × Q × (1 + f_buy) + F_buy Proceeds = P_sell × Q × (1 − f_sell) − F_sell P&L = Proceeds − Cost ROI = P&L ÷ Cost Fees = P_buy × Q × f_buy + F_buy + P_sell × Q × f_sell + F_sell Break-even = (Cost + F_sell) ÷ (Q × (1 − f_sell))
P_buy and P_sell are the buy and sell prices per coin, Q is the quantity, f_buy and f_sell are the percentage fees written as decimals (0.1% = 0.001), and F_buy and F_sell are flat fees in dollars. In amount mode the quantity comes from the amount you entered: Q = (Amount − F_buy) ÷ (P_buy × (1 + f_buy)).
This follows the usual cost-basis logic. FINRA describes cost basis as the purchase price plus the commissions and fees paid, and IRS guidance on digital assets (as of September 2026) adds buy-side fees to basis and subtracts sale-side fees from the amount realized.
Worked example
Suppose you bought 0.5 ETH at $2,000 and sold it at $2,400, paying 0.1% on each side and no flat fees. The prices are hypothetical.
- Cost = 2,000 × 0.5 × 1.001 = $1,001.00
- Proceeds = 2,400 × 0.5 × 0.999 = $1,198.80
- P&L = $1,198.80 − $1,001.00 = $197.80
- ROI = $197.80 ÷ $1,001.00 = 19.76%
- Fees = $1.00 + $1.20 = $2.20
- Break-even = $1,001.00 ÷ (0.5 × 0.999) = $2,004.00
A $400 move on half a coin looks like a $200 gain, but fees take $2.20 of it. In amount mode, a $1,000 budget buys 0.4995005 ETH at the same price and fee, and the same sale returns $197.60.
Now suppose the price falls to $1,500 instead, with a $2 flat buy fee and a $5 withdrawal fee. Cost rises to $1,003.00, proceeds drop to $744.25, and the result is a loss of $258.75, or −25.80%. The break-even price climbs to $2,018.02, because every fee has to be earned back before the trade turns positive. Our guide to the crypto break-even price looks at that effect in detail.
Limitations
- Results are before tax. Tax treatment and which lots count as sold vary by country; check with a qualified professional.
- The tool assumes one buy and one sale. For several buys at different prices, find your blended cost with the average cost calculator first and use it as the buy price.
- Percentage fees are applied to the trade value in dollars. Some platforms deduct the fee from the coins you receive instead, which changes the result only slightly.
- Slippage and spread are included only if your prices already contain them.
- ROI covers the whole holding period. To compare trades of different lengths, annualize the result with the ROI and CAGR formulas.
Frequently asked questions
How do I calculate crypto profit after fees?
Subtract your total cost from your net proceeds. Total cost is the buy price times the quantity plus every buy-side fee, and net proceeds are the sell price times the quantity minus every sell-side fee. For 0.5 ETH bought at $2,000 and sold at $2,400 with 0.1% fees on each side, that is $1,198.80 minus $1,001.00, or $197.80 rather than $200.
What is a break-even price in crypto?
It is the sell price at which your net proceeds exactly repay your total cost, so the profit after fees is zero. Because fees are charged when you buy and again when you sell, the break-even price sits above the price you paid whenever fees are above zero. In the example on this page, a purchase at $2,000 breaks even at $2,004.00.
Should I enter the quantity or the amount invested?
Use whichever number you know. Quantity mode suits a trade you already made, since the quantity appears in your trade history. Amount mode suits planning: type the total you would spend, including fees, and the calculator works out how many coins that buys at your price. Both modes use the same formulas, and switching converts the number you entered.
Does this calculator include taxes?
No. It shows profit before tax. How gains are taxed, and which purchases count as sold, depends on where you live. In the US, for example, IRS guidance says your basis includes the fees you paid to buy, and fees on the sale reduce the amount you realize. Rules vary by country, so check with a qualified professional.
Related guides
Sources
- Cost Basis Basics — FINRA
- Frequently asked questions on digital asset transactions — Internal Revenue Service
This content is for education only and is not financial, investment, tax or legal advice. Crypto assets are volatile and you can lose money. Examples use hypothetical numbers. See our disclaimer and editorial policy.