Crypto Profit Calculator: Calculate Gains and Losses in 2026

Bifu Editorial · 2026-06-03 · 9 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:

DateAmountPrice per BTCCapital Spent
Entry 10.1 BTC$65,000$6,500
Entry 20.1 BTC$72,000$7,200
Entry 30.1 BTC$80,000$8,000
Total0.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.

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.

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.

Read more market education

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

Learn more