How to Calculate Crypto Profit and Loss

Sold some crypto and not sure if you actually came out ahead? The math is simpler than it looks. Your profit is what you received when you sold, minus what you paid to buy, minus every fee along the way. Write it as a formula: Profit = Proceeds – Cost Basis – Fees. If the answer is positive, you gained; if it is negative, you took a loss. This guide walks through each piece with a clear example.

Quick Answer
To find crypto profit, subtract your total cost from your total proceeds. Profit = Proceeds – Cost Basis – Fees. Cost basis is the buy price plus the buy fee. Proceeds are the sell price minus the sell fee. A positive result is a gain; a negative result is a loss. To get a percentage return (ROI), divide profit by cost basis. All prices below are examples only and change constantly.

The Crypto Profit Formula

Every profit-and-loss calculation comes down to one simple idea. You compare what you got out against what you put in.

The core formula is short and worth memorizing:

  • Profit = Proceeds – Cost Basis – Fees
  • Cost Basis = the amount you paid to buy, including the buy fee.
  • Proceeds = the amount you received when you sold, after the sell fee.

Fees matter in both directions, so count the buy fee and the sell fee. A positive result means you made money. A negative result is a loss, shown as a minus number. The same formula works for any coin or token.

The crypto profit formula as three blocks Proceeds minus cost basis minus fees equals profit or loss. Proceeds is shown in green, cost basis and fees in blue, and the result box on the right. The Profit Formula Proceeds what you got Cost Basis what you paid Fees buy + sell = Profit or loss A positive answer is a gain. A negative answer is a loss.
Profit equals your proceeds minus your cost basis minus all fees.

What Counts as Your Cost Basis

Your cost basis is the full price you paid to own the crypto. It is the starting point for every profit calculation.

Cost basis is more than the sticker price of the coin. It includes the trading fee you paid to buy. So if you spend $1,000 on a coin and pay a $10 buy fee, your cost basis is $1,010, not $1,000.

Counting the buy fee matters because it lowers your real profit. Skipping it makes a trade look better than it was. Keep a record of the buy price, the amount bought, and the fee for every purchase.

What Counts as Your Proceeds

Proceeds are the money you actually receive when you sell. This is the other half of the formula.

Just as fees raise your cost basis, they shrink your proceeds. If you sell a coin for $1,500 and pay a $15 sell fee, your proceeds are $1,485, not $1,500. The exchange takes its cut before the cash reaches you.

So both fees work against you: the buy fee adds to what you paid, and the sell fee subtracts from what you got. Counting both gives you an honest profit number.

A Worked Example, Step by Step

Numbers make this clear. Imagine you buy and later sell a small amount of ETH. These figures are examples only and do not reflect real prices.

  1. Buy: 0.5 ETH at $2,000 each = $1,000. Add a $10 buy fee. Cost basis = $1,010.
  2. Sell: 0.5 ETH at $3,000 each = $1,500. Subtract a $15 sell fee. Proceeds = $1,485.
  3. Profit: $1,485 – $1,010 = $475.

That $475 is your realized profit on the trade. Notice how the two fees, $25 in total, came straight out of the gain. Without them the profit would have looked like $500.

How Profit Changes at Different Sell Prices

The sell price drives the result. Using the same $1,010 cost basis and a $15 sell fee, here is how profit shifts as the price moves. These are illustrative figures.

Profit on 0.5 ETH at four different sell prices A bar chart. At a $2,000 sell price the result is a small loss of $25. At $2,500 profit is $225, at $3,000 it is $475, and at $3,500 it is $725. Bars rise as the sell price rises. Profit at Different Sell Prices (example) $0 -$25 $225 $475 $725 Sell $2,000 Sell $2,500 Sell $3,000 Sell $3,500
Profit rises as the sell price rises. Below a break-even point, the trade turns into a loss.

At a $2,000 sell price the trade is a small loss, because the cost basis and fees are higher than the proceeds. That negative $25 shows how a loss appears as a minus number.

This points to a useful idea: your break-even price. It is the sell price where proceeds exactly cover your cost basis plus the sell fee, so profit is zero. Below that price you lose money, and above it you gain. In the example, you need proceeds of $1,010 to break even, which means selling the 0.5 ETH for about $1,025 before the $15 fee. Knowing your break-even keeps expectations realistic.

Turning Profit Into a Percentage (ROI)

A dollar figure is useful, but a percentage lets you compare trades of any size. This is your return on investment, or ROI.

The formula is simple:

  • ROI = (Profit / Cost Basis) x 100

Using the example above: $475 profit divided by $1,010 cost basis = 0.47, or about 47 percent. So the trade returned roughly 47 percent on the money you put in. A $100 profit on a $1,000 basis is 10 percent, while the same $100 on a $200 basis is 50 percent. The percentage tells you how hard your money worked, not just how many dollars you made.

Average Cost Across Multiple Buys

Most people buy the same coin more than once, at different prices. To find profit later, you first need one blended cost basis.

The method is to add up every dollar you spent, including fees, then divide by the total units you hold. Here is an example with round numbers:

  • Buy 1: 1 ETH at $2,000 + $10 fee = $2,010.
  • Buy 2: 1 ETH at $3,000 + $15 fee = $3,015.
  • Total: $5,025 for 2 ETH, so average cost = $2,512.50 per ETH.

Now you compare your sell price against that average of $2,512.50, not against either single purchase. A Crypto Profit Calculator can track this blended basis for you as you add buys.

Realized vs Unrealized Gains

One more distinction keeps your numbers honest. There is a big difference between profit on paper and profit in hand.

A realized gain or loss happens only when you sell. The trade is closed, and the result is locked in. An unrealized gain or loss is the change in value while you still hold the coin. It moves up and down with the market and is not final until you sell.

So if a coin you own doubles but you have not sold, that gain is unrealized and can still vanish. Only a realized result counts as money you actually kept or lost.

This guide covers the profit math only. For how gains may be taxed where you live, see Crypto Tax Basics Explained. For spreading buys over time, see Dollar-Cost Averaging Into Crypto.

The Profit-Tracking Process at a Glance

Putting it all together, the workflow from buy to result follows four clear steps.

The four steps from buying to a profit or loss Step one, buy the coin. Step two, track cost basis plus fees. Step three, sell the coin. Step four, the result is a profit or a loss. From Buy to Result 1. Buy the coin 2. Track basis + fees 3. Sell the coin 4. Result profit or loss Record each buy and sell so the final math is accurate.
Track your cost basis and fees from the first buy so the closing math is simple.

Want to skip the hand math? Enter your buy price, sell price, amount, and fees into our Crypto Profit Calculator. It returns your profit or loss and your ROI in seconds, and it handles multiple buys for you.

Frequently Asked Questions About Crypto Profit and Loss

What Is the Formula for Crypto Profit?

The formula is Profit = Proceeds – Cost Basis – Fees. Proceeds are what you received when you sold, after the sell fee. Cost basis is what you paid to buy, including the buy fee. A positive answer is a gain, and a negative answer is a loss.

Do Fees Count When Calculating Crypto Profit?

Yes. Both the buy fee and the sell fee reduce your profit. The buy fee adds to your cost basis, and the sell fee lowers your proceeds. Counting both gives an accurate result. Leaving them out makes a trade look more profitable than it really was.

How Do I Calculate My Crypto ROI Percentage?

Divide your profit by your cost basis, then multiply by 100. The formula is ROI = (Profit / Cost Basis) x 100. For example, $475 profit on a $1,010 cost basis is about 47 percent. A percentage lets you compare trades of different sizes fairly.

What Is the Difference Between Realized and Unrealized Gains?

A realized gain or loss happens when you sell, and the result is locked in. An unrealized gain or loss is the change in value while you still hold the coin. Unrealized amounts move with the market and are not final until you sell. Only realized results are money kept or lost.

How Do I Find My Cost Basis After Several Buys?

Add up every dollar you spent across all purchases, including fees, then divide by the total units you own. That gives your average cost per unit. You then compare your sell price against this blended average, not against any single purchase price.

Can Crypto Profit Be Negative?

Yes. If your proceeds are less than your cost basis plus fees, the result is negative, which is a loss. For example, selling a holding with a $1,010 basis for $985 in net proceeds produces a $25 loss. A loss is simply a profit figure with a minus sign.

Do I Use the Sell Price or the Amount I Received?

Use the amount you actually received, which is the sell price minus the sell fee. That is your proceeds. The raw sell price overstates what reached you, because the exchange takes its fee first. Always base the math on the net amount.

Sources

Authoritative Sources Used in This Article

This article is for general education only, not financial or investment advice. Crypto is volatile and risky, and prices, fees, rewards, and tax rules change fast and vary by country, so do your own research and consult a professional. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 12, 2026.


Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.

Leave a Comment