How crypto profit and loss is calculated
Crypto profit is the difference between what you received on selling and what you paid on buying, after every fee on both sides. Fees are easy to overlook and disproportionately large on small trades — a position that looks marginally profitable on price alone can be a loss once trading and network fees are counted.
The other figure that matters is the percentage return, which is what makes trades of different sizes comparable. A 5,000 gain on a 20,000 position and a 5,000 gain on a 5,00,000 position are not remotely the same outcome.
Worked example
Buying 0.5 BTC at 40,000 per coin and selling at 52,000, with 60 in combined trading and network fees.
| Input | Value |
| Quantity | 0.5 BTC |
| Buy price | 40,000 |
| Sell price | 52,000 |
| Gross position value | 20,000 to 26,000 |
| Total fees | 60 |
| Net profit | 5,940 |
| Return | 29.6% |
Fees cost only 0.3% here, but the proportion rises sharply on smaller positions and on frequent trading. A strategy making many small trades can be fee-negative even when most individual trades are directionally correct.
How to use this calculator
- Enter the quantity actually acquired, after any fee deducted in the asset itself.
- Enter your real average buy price rather than a remembered round number.
- Enter the sell price, or the current price to evaluate an open position.
- Add all fees — exchange fees on both sides, network fees, and withdrawal charges.
- Read the percentage return, not just the absolute figure, when comparing trades.
Frequently asked questions
How do I calculate profit across multiple buys?
Compute a weighted average buy price: divide the total amount spent, including fees, by the total quantity acquired. Use that average as the buy price in the calculation.
Is unrealised profit taxable?
In most jurisdictions tax applies on disposal rather than on paper gains, but rules vary considerably and some events such as crypto-to-crypto swaps may count as disposals. Check the current rules where you are resident.
Which fees should be included?
All of them: maker or taker fees on both trades, blockchain network fees, and any withdrawal or conversion charges. Excluding them systematically overstates returns.
How do I compare returns across different holding periods?
Annualise them. A 30% gain in three months and a 30% gain in three years are very different; converting both to an annual rate makes the comparison meaningful.
What if I am paid in crypto rather than buying it?
Your cost basis is generally the fair market value at the time you received it. That value becomes the buy price for any later profit calculation, and receiving it may itself be a taxable event.
This calculator is an educational tool. Results are estimates based on the inputs you provide and do not constitute financial advice. Verify figures with your bank, broker or a qualified advisor before acting on them.