b2KIT

Crypto Profit/Loss Calculator

Calculate cryptocurrency trading gains and losses with buy/sell prices, fees, and portfolio performance across multiple transactions.

Tested tool guide Tested browser tools Checked August 16, 2026

What Crypto Profit/Loss Calculator does, with a checked example

Enter the quantity traded, its purchase price, its sale price, and the fees charged on each side. The calculator converts those entries into purchase cost, net sale proceeds, profit or loss, and a percentage return, then combines multiple transactions into portfolio totals. A common surprise is that fees affect both sides of the trade: the purchase fee raises the amount invested, while the sale fee lowers the amount recovered. The result measures trading performance, not tax liability.

Worked example

A concrete input and expected output from the current implementation.

Input

Buy: 2 coins at $100 each, with a $2 fee
Sell: 2 coins at $125 each, with a $3 fee

Expected output

Cost including buy fee: $202.00; net sale proceeds: $247.00; profit: $45.00; return on cost: 22.28%.

The purchase costs $200 plus $2, while the sale produces $250 minus $3. The $45 profit divided by the $202 purchase cost is 22.277 percent, which rounds to 22.28 percent.

How the result is produced

1

Trade calculation

For a completed trade, gross purchase cost is quantity multiplied by buy price, and gross sale value is quantity multiplied by sell price. The buy fee is added to cost, while the sell fee is subtracted from proceeds. Net profit or loss is net proceeds minus total purchase cost. A negative difference represents a loss.

2

Multiple transactions

Each transaction contributes its recorded cost, proceeds, fees, and gain or loss to the portfolio result. This permits comparison of several trades without treating one winning percentage as representative of the entire set. The entered transaction data is processed in the browser and is not uploaded, which is relevant when the rows disclose holdings or trading history.

Good uses

  • Checking whether a completed coin sale remained profitable after exchange fees on both transactions.
  • Comparing the net results of several cryptocurrency trades with different quantities and entry prices.
  • Testing a possible sale price to see the resulting gain, loss, and return before placing an order.

Limits and checks

  • Confirm whether each fee is entered as a currency amount or a percentage. Substituting one for the other can materially change the result.
  • Market spread, slippage, network charges, and currency-conversion costs are absent unless included in the entered prices or fees.
  • Portfolio totals do not by themselves determine which purchased units were sold when several acquisition lots have different costs.

Common questions

Does the calculated profit equal my taxable capital gain?

Not necessarily. The calculator reports the difference between the entered purchase cost and net sale proceeds. Tax treatment can depend on jurisdiction, transaction dates, cost-basis records, lot identification, asset transfers, and other facts that are not established by simple trade arithmetic. Use the result as a performance calculation, not as a completed tax return figure.

Can I calculate a partial sale?

Yes, if the transaction uses only the quantity being sold and the corresponding purchase cost for those units. Do not assign the full cost of a larger holding to a smaller sale. When units came from purchases at different prices, enter the intended lots separately; otherwise the result may not represent the cost basis you meant to analyze.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools