Advertisment:

How to Calculate Crypto Profit & Loss (2026 Guide)

Table of Contents

How to Calculate Crypto Profit & Loss (2026 Guide)

Here’s a mistake almost every beginner makes: they look at their buy price, look at the current price, and think they know their profit. But that ignores fees, partial sales, and the difference between potential gains and actual gains. The real number, what you’ll actually walk away with, is almost always different.

In this guide, you’ll learn the exact formulas used to calculate crypto profit and loss correctly: covering basic P&L, ROI percentage, realized vs unrealized gains, how fees eat into your returns, and how to handle partial sells. No jargon, just clear examples with real numbers.

And if you’d rather skip the math entirely, the free Crypto Profit Loss Calculator does all of it instantly, including fees, in seconds.

Key Terms You Need to Know First

Before we get into the formulas, here are four terms you’ll see everywhere in crypto P&L tracking. Understanding these makes everything else click into place.

 

Term What It Means Example
Cost Basis What you paid for the crypto, including all fees Buy 1 ETH at $3,000 + $20 fee = $3,020 cost basis
Proceeds What you received when you sold, minus sell-side fees Sell 1 ETH at $4,000 − $15 fee = $3,985 proceeds
Realized P&L Actual profit/loss after you’ve sold You sold → P&L is locked in. Taxable event.
Unrealized P&L Paper gain/loss on coins you still hold You haven’t sold yet → P&L can still change.

 

Realized P&L is what matters for taxes; it only counts when you sell, swap, or spend crypto. Unrealized P&L is just a snapshot of where you stand right now. It can disappear overnight if the market drops.

The Core Formula: Calculating Basic Crypto Profit or Loss

This formula works for any straightforward buy-and-sell trade:

Profit / Loss Formula

Profit or Loss  =  (Sell Price × Quantity Sold)  −  (Buy Price × Quantity Bought)  −  Total Fees

 

If the result is positive → you made a profit.

If the result is negative → you took a loss.

 

Example 1: Simple Bitcoin Trade (Profit)

You buy 0.5 BTC at $60,000 per BTC  →  Total investment: $30,000

You sell 0.5 BTC at $80,000 per BTC  →  Total proceeds: $40,000

Exchange fee (0.1% each way):  $30 buy fee + $40 sell fee = $70 total fees

 

Profit  =  $40,000  −  $30,000  −  $70  =  ⟨✓⟩  $9,930

Example 2: Solana Trade (Loss)

You buy 50 SOL at $180 per SOL  →  Total investment: $9,000

Price drops. You sell 50 SOL at $130 per SOL  →  Total proceeds: $6,500

Total fees: $25

 

Loss  =  $6,500  −  $9,000  −  $25  =  ⟨✗⟩  −$2,525

 

How to Calculate ROI (Return on Investment) on Crypto

Dollar profit tells you how much you made. ROI percentage tells you how efficient your investment was. It lets you compare two trades of different sizes fairly.

ROI Formula

ROI (%)  =  (Net Profit  ÷  Total Investment)  ×  100

 

Or, using the full version with buy/sell prices:

ROI (%)  =  [(Sell Price − Buy Price) ÷ Buy Price]  ×  100

ROI Comparison Example

Imagine you made two trades:

 

Trade Invested Profit ROI % Verdict
Trade A (ETH) $5,000 $800 16% Decent
Trade B (SOL) $500 $400 80% Much better efficiency

 

Trade A made more dollars, but Trade B was 5x more efficient with the capital used. ROI percentage is the real measure of investment quality — not just raw dollar profit.

Why Fees Matter More Than You Think

This is the most overlooked part of crypto P&L. Fees don’t just reduce your profit, on tight trades, they can turn a profitable position into a loss. According to Economic Times, the broader crypto market lost about $1.2 trillion in value recently during a downturn — showing how volatility directly impacts traders’ potential profits and losses.. There are four types of fees that affect your calculation:

  • Trading fees: The percentage charged by an exchange on each buy or sell. Typically 0.1% on Binance, up to 0.6% on Coinbase for smaller accounts.
  • Gas fees: On-chain transaction fees on networks like Ethereum. These can be anywhere from $1 to $50+, depending on network congestion.
  • Withdrawal fees: Flat fees charged when you move crypto off an exchange. These are part of your cost basis if you then sell elsewhere.
  • Spread: The hidden cost between the buy and sell price on some platforms. Not always shown explicitly, but always affects your net result.

 

Real Fee Impact Example

You make a $500 profit on a $10,000 trade.

 

With Binance fees (0.1% each way):  Fee = $10 + $10.10 = $20.10  →  Net profit: $479.90  (96% of your gain kept)

With Coinbase fees (0.6% each way): Fee = $60 + $60.30 = $120.30  →  Net profit: $379.70  (76% of your gain kept)

 

Platform choice cost you $100 on a single trade. On 20 trades a year, that’s $2,000.

 

How to Calculate Profit on a Partial Sell

Most traders don’t sell their entire position at once. They take partial profits. Here’s how to handle that correctly:

Partial Sell Formula

Cost Basis per Coin  =  Total Amount Paid (incl. fees)  ÷  Total Coins Bought

Profit on Partial Sell  =  (Sell Price − Cost Basis per Coin)  ×  Coins Sold  −  Sell Fees

Partial Sell Example

Step 1: You buy 100 ADA at $0.80 each = $80 total + $0.50 fee. Cost basis = $80.50 ÷ 100 = $0.805 per ADA.

Step 2: ADA rises to $1.20. You sell 50 ADA. Sell proceeds = 50 × $1.20 = $60.00 − $0.30 fee = $59.70.

Step 3: Profit on the 50 sold = $59.70 − (50 × $0.805) = $59.70 − $40.25 = $19.45 profit.

Step 4: You still hold 50 ADA with a cost basis of $0.805 each. Their current value is 50 × $1.20 = $60.00. That’s an unrealized gain of $19.75 — not profit until you sell.

Realized vs Unrealized Profit: What’s the Difference?

 

Realized P&L Unrealized P&L
When it happens After you sell, swap, or spend crypto While you still hold the coins
Can it change? No — it’s locked in Yes — changes every second with price
Taxable? Yes — triggers a taxable event No — not taxable until realized
How to calculate Proceeds − Cost Basis − Fees (Current Price − Buy Price) × Quantity
Example Sold 1 BTC at $90K, bought at $60K: $30K profit Holding 1 BTC bought at $60K, now worth $85K: $25K paper gain

A critical thing to remember: unrealized gains can evaporate quickly. Many traders watch a “paper profit” of $50,000 turn into a loss within days. Locking in realized profits with partial sells is how experienced traders protect their gains.

How to Calculate Your Break-Even Price

Your break-even price is the minimum price you need to sell at to avoid a loss. It’s particularly useful when planning your exit or setting stop-loss orders.

Break-Even Formula

Break-Even Price  =  Total Cost (buy price × quantity + all fees)  ÷  Quantity Held

 

Example:  You buy 200 XRP at $0.50 = $100, fees = $1.00.

Break-even = ($100 + $1) ÷ 200 = $0.505 per XRP

You need XRP to reach at least $0.505 before you can profit.

Skip the Math: Use the Free Crypto P&L Calculator

Doing this manually for every trade gets tedious fast, especially once you have multiple positions across different coins. The free Crypto Profit Loss Calculator on ToolsTecique handles all of it instantly.

Here’s what you can calculate with it:

  1. Enter your buy price, quantity, and fees to get your exact cost basis
  2. Enter your sell price and sell-side fees to get your net proceeds
  3. See your realized profit or loss in both dollar amount and ROI percentage
  4. Model different sell prices to find your break-even point and target exit

For tracking your full portfolio performance across multiple coins, pair it with the Crypto Portfolio Tracker — which gives you a real-time overview of all your unrealized and realized positions in one place.

A Quick Note on Crypto Taxes and P&L

In most countries, every time you realize a crypto profit, it’s a taxable event. In the US, the IRS treats crypto as property, and as of 2026, exchanges are required to report your transactions via Form 1099-DA. This means the IRS already has visibility into your trades, whether you report them or not.

  • Short-term gains (held under 1 year): taxed as ordinary income (up to 37% in the US)
  • Long-term gains (held over 1 year): taxed at preferential capital gains rates (0%, 15%, or 20% in the US)
  • Losses can offset gains: if you sold at a loss, that loss can reduce your taxable gains for the year — this is called tax-loss harvesting

Use the Crypto Tax Calculator to estimate what you might owe on your gains before tax season arrives.

Frequently Asked Questions

Does swapping one crypto for another count as a taxable event?

Yes, in the US and most other jurisdictions. When you trade ETH for SOL on an exchange, the IRS treats it as selling ETH at its current market value. Any gain on the ETH since you bought it is a taxable event, even though you didn’t cash out to USD. Always record the fair market value of both coins at the time of the swap.

How do I calculate profit if I bought the same coin multiple times at different prices?

You need to use a cost basis accounting method. The three most common are: FIFO (First In, First Out — oldest coins sold first), LIFO (Last In, First Out — newest coins sold first), and HIFO (Highest In, First Out — most expensive coins sold first, minimizing taxable gains). The method you choose changes your calculated profit and your tax bill. HIFO often results in the lowest tax liability since you’re “selling” your most expensive coins first.

What if I can’t remember my original buy price?

Check your exchange transaction history — all reputable exchanges (Coinbase, Binance, Kraken) maintain records of every trade with timestamps and prices. If you transferred coins between wallets, blockchain explorers can show you the on-chain transaction history. If you genuinely have no records, the IRS guidelines suggest using $0 as your cost basis, which means the entire sale amount is treated as profit. This is why keeping records from day one matters.

Do gas fees count as part of my cost basis?

Yes. Any fee directly related to acquiring a crypto asset — including gas fees paid to complete a purchase on-chain — is added to your cost basis. This slightly reduces your eventual taxable gain. Similarly, gas fees paid to sell or transfer crypto out can be deducted from your proceeds, reducing your taxable income.

Know Your Numbers Before You Trade

Most crypto traders have a rough idea of whether they’re up or down. The ones who actually build wealth are the ones who track their exact profit, ROI, break-even prices, and tax liability on every trade. It’s not complicated — the formulas in this guide cover 95% of real-world situations.

Start with the free Crypto Profit Loss Calculator on ToolsTecique for your next trade. Plug in your numbers, see your real ROI, and know exactly where you stand before you ever think about your next move.

Share with:

Picture of Faique Ahmad

Faique Ahmad

I’m Faique Ahmad, a fintech enthusiast and creator of online finance and crypto tools. I build practical calculators and resources to make complex financial topics simple and useful for everyone.

On this website, I share insights, guides, and data-driven tools related to finance and cryptocurrency. My goal is to help people understand digital finance better and make smarter money decisions using accurate and easy-to-use online tools.

All Posts

Advertisment:

Scroll to Top