Crypto Profit Calculator: Calculate Gains and Losses in 2026

Bifu Editor · 2026-06-02 · 11 min read


Table of contents

Learn how to calculate crypto profits, losses, cost basis, ROI, and fees accurately in 2026. Formulas, worked examples, and key mistakes to avoid.

Knowing exactly what you made — or lost — on a trade is not optional for serious traders. It determines whether a strategy is working, shapes your tax position, and informs every sizing decision that follows. Yet many traders rely on rough estimates, omit fees, or mix up cost basis methods in ways that distort the real picture. This guide presents a complete calculation framework: the formulas, the edge cases, the common errors, and the disciplines that separate traders who track their performance from those who guess at it.

The Core Formula

Every profit calculation starts with the same foundation:

Net Profit = (Exit Price − Entry Price) × Quantity − Total Fees

Return (%) = ((Exit Price − Entry Price) / Entry Price) × 100

These two numbers answer different questions. Net profit tells you the dollar outcome. Return percentage tells you how efficiently your capital was deployed — a $500 gain on a $5,000 position is a 10% return; the same $500 gain on a $50,000 position is 1%. Both figures matter.

Worked example (illustrative, not advice):

A trader buys 0.5 BTC at $70,000 and sells at $82,000.

  • Gross profit: ($82,000 − $70,000) × 0.5 = $6,000
  • Trading fees (0.1% entry + 0.1% exit on notional): entry fee ≈ $35, exit fee ≈ $41, total ≈ $76
  • Net profit: $6,000 − $76 = $5,924
  • Return: ($82,000 − $70,000) / $70,000 × 100 = 17.14%

Without the fee deduction, the return looks clean. With fees included — as it must be — the net figure is the only one that matters for strategy evaluation.

Calculating Cost Basis Across Multiple Entries

Most traders do not enter a position in a single transaction. Dollar-cost averaging (DCA) — spreading purchases over time at different prices — is common, and it requires calculating a weighted average cost basis before any profit or loss figure is meaningful.

Average Cost Basis = Total Capital Deployed ÷ Total Units Acquired

Worked example (illustrative, not advice):

A trader accumulates BTC in three tranches:

Date Amount Price per BTC Capital Spent
Entry 1 0.1 BTC $65,000 $6,500
Entry 2 0.1 BTC $72,000 $7,200
Entry 3 0.1 BTC $80,000 $8,000
Total 0.3 BTC $21,700

Average cost basis: $21,700 ÷ 0.3 = $72,333 per BTC

Any sale above $72,333 generates a realized gain. Any sale below generates a realized loss. The cost basis is the baseline — every P&L calculation depends on having it right.

Accounting for Fees: Where Most Traders Undercount

Fees are the most commonly underestimated drag on returns. There are three distinct fee types that apply at different points in a trade lifecycle.

Trading fees are charged by the exchange on each order execution. Maker-taker structures are standard — taker fees (market orders that execute immediately against existing liquidity) typically run 0.05%–0.1% on major platforms. On a $10,000 position round-tripped 50 times in a month, even a 0.1% taker fee both ways produces $1,000 in trading costs. That is before any other fee category.

Network fees (gas) apply to on-chain transactions — transfers to or from self-custody wallets, DeFi interactions, or cross-chain moves. On Ethereum, gas fees have ranged from under $1 during low-congestion periods to $50 or more during high-demand spikes. A short-term trade that clears $30 in gross profit can turn negative after a single high-gas withdrawal.

Withdrawal fees are fixed charges applied when moving assets off an exchange. They vary by asset and network. These are often overlooked in profit calculations because they sit outside the trade ticket itself, but they reduce realized net proceeds.

On Bifu's trading platform, fees are displayed transparently before order confirmation so the cost is known before execution, not reconstructed afterward.

The correct approach: include all three fee categories when calculating net profit on any position.

Unrealized vs. Realized Profit: The Distinction That Matters

Unrealized profit (also called paper gains) is the mark-to-market value of a position you still hold. If you bought 1 ETH at $2,000 and the current price is $3,200, your unrealized gain is $1,200. It exists on paper only — it has not been locked in.

Realized profit is the gain or loss recorded when you close a position. It is the only figure that affects your tax liability, your actual account balance, and your historical track record.

The distinction carries practical weight. Many traders make the error of sizing new positions based on unrealized gains — treating paper profits as capital available for deployment. Until a position is closed, those gains can be reversed by the market. A disciplined approach treats unrealized and realized profit as separate figures that serve different purposes: unrealized for current risk assessment, realized for performance review and tax planning.

Choosing a Cost Basis Accounting Method

When you hold multiple lots of the same asset purchased at different prices and sell a portion, you need an accounting method to determine which units were sold — because the method changes your cost basis, and therefore your taxable gain or loss.

FIFO (First In, First Out): The earliest-purchased units are treated as sold first. In a rising market, FIFO surfaces your lowest-cost lots first, which tends to produce larger taxable gains.

LIFO (Last In, First Out): The most recently purchased units are treated as sold first. In a rising market, LIFO surfaces higher-cost recent purchases first, which tends to reduce near-term taxable gains — though it is not permitted in all jurisdictions.

Specific Identification: You select exactly which lot is being sold. This requires per-lot record-keeping but offers the most flexibility.

The method you choose must be applied consistently within a tax year and should be documented. Switching methods mid-year or across assets without proper records creates reporting errors. In the DCA example above, if the trader sells 0.1 BTC, the gain calculation differs materially depending on whether the $65,000 lot, the $72,000 lot, or the $80,000 lot is treated as the one sold.

Tax Considerations for Crypto Profits in 2026

In most major jurisdictions, realized cryptocurrency gains are subject to capital gains tax when you sell, swap, or spend crypto. The specific treatment varies.

  • United States: Short-term gains (positions held under 12 months) are taxed at ordinary income rates, which can be significantly higher than long-term capital gains rates for positions held longer than 12 months.
  • United Kingdom: Capital gains tax applies on disposal above the annual exempt amount.
  • Brazil: Gains above R$35,000 per month are subject to tax.
  • Singapore and UAE: Currently levy no capital gains tax on cryptocurrency disposals.

Taxable events extend beyond straightforward sales. Swapping one cryptocurrency for another, spending crypto on goods or services, and receiving airdrops or staking rewards are all events that may trigger tax obligations in certain jurisdictions. Staking rewards and airdrops are often treated as ordinary income at the fair market value when received, not when sold.

Maintaining a complete record of every trade — including entry price, exit price, quantity, fees, timestamps, and transaction IDs — is essential for accurate reporting. A regulated platform maintains this data systematically, which is meaningfully more reliable than reconstructing records from memory or screenshots after the fact.

This content is for informational purposes only and does not constitute tax advice. Consult a qualified tax adviser in your jurisdiction for guidance specific to your situation.

Common Calculation Errors and How to Avoid Them

Omitting fees entirely. The most frequent error. Even a 0.1% fee applied twice per trade across dozens of trades in a month can reduce apparent returns by several percentage points on an annualized basis. The fee-excluded number is not the real number.

Conflating unrealized and realized gains. Deploying capital based on positions that have not been closed introduces risk that does not show up in the account balance — until it does.

Inconsistent cost basis methods. Applying FIFO to some positions and LIFO to others, or not tracking which lots were sold, produces a cost basis figure that cannot be reconciled with transaction history. Pick one method and apply it systematically.

Forgetting gas fees on on-chain activity. Traders who move assets between wallets or interact with DeFi protocols need to capture gas costs as part of their fee record. A trade that appears profitable from the exchange ticket alone may be marginal or negative once on-chain costs are added.

Not separating staking rewards and airdrops from capital gains. These are often taxed differently — as income at receipt rather than capital gains at disposal. Mixing them into a single P&L column creates both an accounting error and a tax error.

Position Sizing Informed by Accurate P&L

Calculation discipline is not just retrospective — it feeds forward into how positions are sized. A trader who knows their accurate net return per trade, adjusted for fees, can benchmark strategies against one another with real numbers. A strategy that appears to have a 20% win rate on gross prices might show a 12% win rate net of fees and gas. That difference matters when deciding whether to continue the approach.

Position sizing — determining how much capital to allocate to any single trade — should be informed by the realistic expected outcome per trade, not the idealized gross figure. For a framework on sizing positions relative to account size and risk tolerance, see .

Conclusion: The Discipline Behind Every Profitable Trade

A crypto profit calculator is only as useful as the inputs you feed it. Accurate entry and exit prices, complete fee accounting across all three fee types, correct cost basis using a consistent accounting method, and a clear separation of unrealized from realized profit — these are the inputs that produce a result you can actually rely on.

The traders who consistently improve their outcomes over time are, almost without exception, the ones who measure their performance precisely. Sloppy accounting masks the real cost of bad decisions; rigorous accounting surfaces them — which is exactly what makes it valuable.

Track your trades on Bifu with full fee transparency and detailed trade history. For additional guidance on managing risk in volatile markets, visit the Bifu Blog or explore .

FAQ

What is a crypto profit calculator? A crypto profit calculator computes your net gain or loss on a cryptocurrency trade or investment by factoring in your entry price, exit price, quantity held, and all applicable fees. The result is the actual financial outcome of the trade, not just the price movement.

What is the basic formula for calculating crypto profit? Net Profit = (Exit Price − Entry Price) × Quantity − Total Fees. Return (%) = ((Exit Price − Entry Price) / Entry Price) × 100. Both figures are needed: dollar profit tells you the absolute outcome; return percentage tells you how efficiently capital was deployed.

How do I calculate my cost basis if I bought crypto at multiple prices? Divide your total capital spent by the total units acquired: Average Cost Basis = Total Capital Deployed ÷ Total Units Acquired. For example, buying 0.1 BTC at $65,000, $72,000, and $80,000 produces a total spend of $21,700 for 0.3 BTC, giving an average cost basis of $72,333 per BTC.

What is the difference between unrealized and realized profit? Unrealized profit is the gain on a position you still hold — it exists on paper only and can reverse if the market moves against you. Realized profit is locked in when you close a position. Only realized profit affects your tax liability and your actual account balance.

What fees should I include in my profit calculation? Include all three categories: trading fees charged by the exchange (typically 0.05%–0.1% per order), network or gas fees for on-chain transactions (variable, can be significant on Ethereum), and withdrawal fees charged when moving assets off an exchange. Omitting any category understates your true trading cost.

What is the difference between FIFO and LIFO for crypto cost basis? FIFO (First In, First Out) treats the oldest purchased units as sold first; in a rising market this surfaces lower-cost lots and tends to produce larger taxable gains. LIFO (Last In, First Out) treats the most recently purchased units as sold first, often reducing near-term taxable gains — though it is not permitted in all jurisdictions. The method chosen must be applied consistently.

Are staking rewards and airdrops taxable? In many jurisdictions, staking rewards and airdrops are treated as ordinary income at the fair market value when received, regardless of whether you sell them. This is distinct from capital gains treatment, which applies when you subsequently dispose of the asset. Check the rules in your specific jurisdiction and consult a qualified tax adviser.

Risk note: Trading involves significant risk. Past performance is not indicative of future results. The worked examples above are illustrative only and do not constitute investment or trading advice. Always assess your own risk tolerance and financial situation before trading.

Start tracking your trades with full fee transparency on Bifu. Start Trading

This content is for informational purposes only and does not constitute investment, financial, or trading advice. Trading involves risk, including possible loss of capital. Always do your own research and consider your risk tolerance before trading.

Explore Bifu

Learn how to calculate crypto profits, losses, cost basis, ROI, and fees accurately in 2026. Formulas, worked examples, and key mistakes to avoid.

Start Trading

Disclaimer

This article is for informational and educational purposes only. It does not constitute investment, financial, or trading advice. Digital assets and leveraged products involve risk, including possible loss of capital. Always do your own research and assess your risk tolerance before trading.