Back to Tools

Trading and Crypto

Trade P&L Calculator

Work out the profit or loss on a stock, crypto or other trade, long or short, after fees and trading costs, with the exit price you'd need to break even.

What are you trading?

Trade direction

Leave blank if you didn't use leverage.

Fees and costs (optional)

Fee type

Borrow fees, funding or overnight financing, in total.

Your profit or loss will appear here

Enter the entry price, exit price and quantity. Fees, costs and leverage are optional.

The method

How it works

The calculator multiplies each price by the quantity to get the entry and exit values. A long trade gains when the exit value is higher; a short trade gains when it's lower. Fees on each side and any other costs, such as a borrow fee or funding, come off the gross result to give the net profit or loss.

The break-even exit price is the price where the net result is exactly zero. With leverage, the dollar result doesn't change, but it's measured against the margin you put up, so the percentage return, up or down, is larger.

The formulas

  • Long gross = (exit โˆ’ entry) ร— quantity
  • Short gross = (entry โˆ’ exit) ร— quantity
  • Net = gross โˆ’ fees โˆ’ other costs
  • Return = net รท entry value
  • Margin = entry value รท leverage

Worked example: a short sale

You short 100 shares at $50 and buy them back at $48, paying $5 in fees each way and a $10 borrow fee. Gross profit is (50 โˆ’ 48) ร— 100 = $200, and net profit is 200 โˆ’ 5 โˆ’ 5 โˆ’ 10 = $180. The break-even buy-back price is (5,000 โˆ’ 20) รท 100 = $49.80.

Worked example: crypto with percentage fees

You buy 0.5 BTC at $60,000 ($30,000) and sell at $66,000 ($33,000), with a 0.1% fee each way: $30 and $33. Net profit is 3,000 โˆ’ 63 = $2,937, a 9.79% return. To break even you'd need to sell at $60,120.13 or more.

What you get

Key features

  • Long and short trades

    Work out profit or loss whether you bought first and sold later, or sold short and bought back.

  • Break-even exit price

    The exit price at which the trade covers every fee and cost, rounded so it doesn't show a price that still loses.

  • Leverage and margin

    Enter a leverage multiple to see the margin used and the return on that margin, with a warning when a loss would exceed it.

  • Private by design

    Your figures stay in this page in your browser. Nothing is saved or sent anywhere, and there are no live prices.

Read before relying on it

Assumptions

  • It works out one closed trade: one entry and one exit of the same quantity. Partial exits and several buys at different prices aren't covered; for those, use your average price.
  • Fees are either flat amounts or a percentage of that side's trade value. Borrow fees for a short, funding payments or overnight financing go in "Other costs" as one total.
  • Values and fees are rounded to the cent, so gross profit minus costs equals net profit exactly. Prices under $1 are shown with more decimals.
  • Return on the position is net profit รท entry value. With leverage, margin is entry value รท leverage. Real margin rules, maintenance margin and liquidation prices differ by broker and exchange and aren't modelled.
  • Amounts are shown in dollars but work the same in any currency, as long as prices and fees use the same one. Tax on gains isn't included; it depends on where you live and how long you held.

It's an arithmetic tool for trades you enter, not investment advice or a trading signal. Trading, especially short selling and leverage, can lose more than you expect. The figures stay in your browser: they aren't saved or sent anywhere, and refreshing the page clears them.

Questions

Frequently asked questions

Where this comes from

Sources

Standard formula, see How it works.

Last reviewed: October 2026. Built and maintained by FinCalcBox; see About.