Saving & investing

Stock and Crypto Trade Profit Calculator

Enter the units sold, both trade prices, costs and distributions to calculate realised profit and return. The tool does not retrieve historical prices or apply tax-lot rules.

Runs privately in your browserMethod reviewed

Your numbers

Enter the total actually received for these units; do not add reinvested amounts twice.
Display currency only. Convert all inputs to this currency before calculation.
Your figures stay on this device.

How the calculation works

This calculation follows the money in a cash purchase and sale of a specified number of units. It is useful for separating a price gain from trading costs and distributions, without importing market history or applying tax rules.

Profit = quantity × sale price − sale fees + cash distributions − quantity × purchase price − purchase fees.
  1. Calculate acquisition cost

    Multiply the purchased units by their unit price and add attributable purchase fees. This forms the capital denominator for the return percentage.

  2. Calculate cash received

    Multiply units by their sale price, deduct sale fees and add the entered cash distributions. Price profit and dividend cash remain identifiable parts of the result.

  3. Compare receipts with cost

    Subtract acquisition cost from total receipts to find profit or loss. Divide profit by purchase cost to express the economic return on that capital.

Worked example: Check Profit or loss

Sample inputs demonstrate the method. They are not a forecast or product offer.

The first example buys ten units at 100 and sells them at 110. The price gain is 100, and the sale fee of 10 reduces the reported profit to 90.

Units sold
10
Purchase price per unit
100
Sale price per unit
110
Purchase fees
0
Sale fees
10
Cash dividends or distributions received
0
Currency for all amounts
Euro (EUR)

Expected result

Profit or loss
€90.00
Worked example: Check Profit or loss

Sample inputs demonstrate the method. They are not a forecast or product offer.

Units sold
2
Purchase price per unit
50
Sale price per unit
40
Purchase fees
2
Sale fees
3
Cash dividends or distributions received
0
Currency for all amounts
Euro (EUR)

Expected result

Profit or loss
-€25.00

Understanding your result

The profit amount can be positive even when some proceeds are distributions rather than price appreciation. The return percentage is cumulative for the trade, not annualised.

This is not a taxable-gain computation. Matching rules, loss relief, foreign-exchange treatment and disposal reporting would need a separate tax calculation.

Questions you might have

What does the result include?

Calculate the realised profit or loss on a cash purchase and sale of shares or crypto assets using your own prices and fees.

Which limits should I check?

Cash trades only. Partial disposals with tax-lot rules require a separate tax calculation.

Choosing the right inputs

Units sold
Use the units sold that correspond to the purchase cost entered. A partial disposal requires an appropriate economic purchase cost for those units.
Purchase fees
Enter the purchase fees attributable to this transaction, not all fees on an unrelated portfolio.
Cash dividends or distributions received
Enter cash distributions actually received for these units. Avoid adding amounts already included in proceeds or counted through reinvested units.

Common mistakes to avoid

  • Do not enter a share price as total proceeds when the form asks for a price per unit.
  • A current or historical market quote is not retrieved automatically; use verified prices for your intended scenario.

Assumptions to check

  • Cash trades only. Partial disposals with tax-lot rules require a separate tax calculation.
  • All calculations run on your device. Figures are scenarios based on your inputs, not investment recommendations.

Sources and method

Read our calculation and testing approach.