Updated: August 2026.
A crypto profit calculator should answer a simple question: after the purchase cost and every relevant fee, how much did you actually gain or lose? The answer becomes less obvious when you make several purchases, hold more than one asset, or compare a short trade with a long-term portfolio.
This guide gives you the formulas, two worked examples, and a practical workflow for calculating crypto profit, loss, ROI, break-even price, and portfolio returns. If you prefer to enter the numbers instead of doing the arithmetic manually, use the free Forvest Crypto Profit Calculator. It works without registration and lets you include investment and exit fees.
Crypto Profit Formula: The Quick Answer
For a completed buy-and-sell transaction, calculate profit in four steps:
| Step | Formula |
|---|---|
| Total cost basis | Purchase cost + entry fees + other acquisition costs |
| Gross sale proceeds | Actual sell price × quantity sold |
| Net sale proceeds | Gross sale proceeds − exit fees − other disposal costs |
| Crypto profit or loss | Net sale proceeds − cost basis of the units sold |
ROI formula:
ROI (%) = Crypto profit or loss ÷ cost basis × 100
Use actual execution or fill prices whenever possible. If you use the actual fill price, the effect of spread and slippage is already reflected in that price; subtracting the same estimate again would double-count the cost.

Worked Example: Crypto Profit After Entry and Exit Fees
Assume an investor buys 0.05 BTC at an actual fill price of $40,000 and later sells it at $46,000. The exchange charges 0.20% on entry and 0.20% on exit.
| Calculation | Arithmetic | Result |
|---|---|---|
| Purchase cost | 0.05 × $40,000 | $2,000.00 |
| Entry fee | $2,000 × 0.20% | $4.00 |
| Total cost basis | $2,000 + $4 | $2,004.00 |
| Gross sale proceeds | 0.05 × $46,000 | $2,300.00 |
| Exit fee | $2,300 × 0.20% | $4.60 |
| Net sale proceeds | $2,300 − $4.60 | $2,295.40 |
| Net profit | $2,295.40 − $2,004 | $291.40 |
| ROI | $291.40 ÷ $2,004 × 100 | 14.54% |
This result is lower than the 15% price increase because both fees reduce the amount the investor keeps.

How to Calculate Crypto Profit After Multiple Buys
When you buy the same asset more than once, your first purchase price is no longer the correct reference. Start with the total quantity and the total cost of all purchases.
Average cost per coin = Total cost basis ÷ Total quantity acquired
Consider three BTC purchases with a 0.25% entry fee:
| Purchase | Quantity | Fill price | Purchase value | Fee |
|---|---|---|---|---|
| 1 | 0.020 BTC | $40,000 | $800.00 | $2.00 |
| 2 | 0.015 BTC | $44,000 | $660.00 | $1.65 |
| 3 | 0.010 BTC | $36,000 | $360.00 | $0.90 |
| Total | 0.045 BTC | — | $1,820.00 | $4.55 |
The total cost basis is $1,824.55, so the fee-adjusted average cost is approximately $40,545.56 per BTC. At a current price of $46,000, the gross position value is $2,070. If a hypothetical sale also costs 0.25%, the estimated net value is $2,064.83 and the estimated profit is $240.28.
This is an unrealized estimate until the position is actually sold. For partial sales, lot selection, or a longer transaction history, follow our detailed guide on calculating crypto profit after multiple buys and fees.
Realized vs. Unrealized Crypto Profit
Realized profit or loss comes from units you have sold or otherwise disposed of. It is based on the net proceeds and the cost basis assigned to those units.
Unrealized profit or loss is the difference between the current market value of the units you still hold and their remaining cost basis. It changes with the market and is not a guaranteed outcome.
Do not combine them without labeling the result. A portfolio can show a realized gain from earlier sales while the remaining holdings show an unrealized loss.
How to Calculate Break-Even Price
The break-even price is the sale price at which net profit equals zero after expected exit costs.
Break-even sale price = (Total cost basis + fixed exit costs) ÷ [Quantity × (1 − exit-fee rate)]
In the first example, with no fixed exit cost:
$2,004 ÷ [0.05 × (1 − 0.002)] = $40,160.32
The market price must therefore rise above approximately $40,160.32 before the investor has a positive result after the estimated exit fee. The formula is a planning estimate; the final result should use the actual sell fill and actual costs.
Crypto Profit, ROI and CAGR: What Each Metric Tells You
| Metric | Question it answers | Main limitation |
|---|---|---|
| Profit or loss | How many dollars did I gain or lose? | Does not show the result relative to capital invested |
| ROI | How large was the result compared with cost basis? | Does not account for how long the investment was held |
| CAGR | What constant annual growth rate links the starting and ending values? | Does not handle irregular deposits and withdrawals by itself |
CAGR = (Ending value ÷ Beginning value)1 ÷ years − 1
For example, an investment that grows from $10,000 to $14,400 in two years has a total gain of 44%, but a CAGR of 20% per year. To explore the difference further, see our guide to simple and annualized crypto ROI.
How to Calculate Profit for a Crypto Portfolio
A portfolio calculation should be built asset by asset and then aggregated:
- Calculate the remaining cost basis for each asset.
- Calculate realized profit or loss from completed disposals.
- Calculate unrealized profit or loss from current holdings.
- Add realized and unrealized results to get total portfolio P&L.
- Keep deposits, withdrawals, and transfers separate from investment performance.
Total portfolio P&L = Total realized P&L + Total unrealized P&L
Simple ROI can become misleading when capital enters or leaves the portfolio at different times. For portfolios with irregular cash flows, a money-weighted return or time-weighted return may be more appropriate. At minimum, label your method and measurement dates so comparisons remain consistent.
Use the Forvest Crypto Portfolio Calculator when you want to enter several holdings and review total value, profit/loss, and allocation in one place. For broader strategy context, read our crypto portfolio management guide.
Which Forvest Calculator Should You Use?
| Your question | Recommended tool |
|---|---|
| What is the estimated return for one investment scenario? | Crypto Profit Calculator |
| How do investment and exit fees change the result? | Crypto Profit Calculator |
| What are my total value, P&L, and asset weights across several holdings? | Crypto Portfolio Calculator |
| Which calculator fits a more specialized use case? | Crypto profit calculator comparison |
The Forvest Profit Calculator is public, free, and does not require registration. It supports purchase-date or manual-price inputs, one or more cryptocurrencies, and separate investment and exit fee assumptions. It is useful for scenario planning, but the output is only as accurate as the data entered.
A Reliable Calculation Workflow
- Choose one base currency. Use USD, AED, or another consistent reporting currency.
- Collect the transaction records. Include dates, quantities, actual fill prices, and fees.
- Separate transfers from trades. Moving an asset between your own wallets is not investment performance.
- Build cost basis by asset. Include every purchase that belongs to the position.
- Separate realized and unrealized results. Do not present a changing market value as locked profit.
- Reconcile with exchange and wallet records. Check missing trades, duplicate imports, and fees paid in another asset.
- Record the method and date. A result without a measurement date or calculation method is difficult to audit later.
Common Crypto Profit Calculation Mistakes
- Using chart prices instead of fill prices. Your order may execute at a different price.
- Ignoring one side of the fees. Entry and exit costs both affect the final result.
- Double-counting spread or slippage. Do not subtract an estimate again when it is already reflected in the actual fill.
- Using the first buy as the cost basis. Multiple purchases require total or weighted cost.
- Mixing transfers with returns. Deposits and withdrawals change account value without necessarily creating investment profit.
- Comparing ROI without time. A 20% return over six months is not directly comparable with 20% over four years.
- Treating a performance estimate as a tax calculation. Taxable gain may use different rules and lot methods.
Performance Calculation Is Not Tax Advice
The formulas in this guide measure investment performance; they are not a substitute for a tax calculation. Tax treatment can vary by residence, transaction type, holding structure, lot-identification method, and local rules.
Keep dates, quantities, fill prices, fees, transaction IDs, and wallet or exchange records. FINRA’s cost-basis overview explains the general role of basis and transaction costs. U.S. readers should use current IRS digital-asset guidance; readers elsewhere should check the official tax authority for their jurisdiction or consult a qualified professional.
Final Takeaway
A useful crypto profit calculation starts with actual fills, complete costs, and a clearly defined cost basis. Profit shows the dollar result, ROI puts that result in context, and CAGR adds the time dimension. For a portfolio, keep realized and unrealized results separate and do not confuse cash movements with performance.
Next step: enter a real scenario in the free Forvest Crypto Profit Calculator. If you hold several assets, move to the Portfolio Calculator to review the combined result and allocation.
Disclaimer
This article is for educational purposes only and does not constitute financial, investment, legal, accounting, or tax advice. Crypto assets are volatile and involve a significant risk of loss. Verify your records and assumptions before making an investment decision or preparing a tax filing.