← Browse all calculators
FINANCE

Stock profit.

Calculate a gain or loss on a share purchase and sale after trading fees.

Compare scenarios

The table changes sell price per share and keeps your other inputs fixed.

Sell price per shareCalculated result

How to use the Stock profit calculator

Enter buy price per share, sell price per share, number of shares, and total trading fees. Choose the currency for your inputs and read the result as you change the values.

How it works and formula

Net gain = (selling price per share − buying price per share) × shares − total fees.

Worked example

Example inputs in USD
Buy price per share40
Sell price per share52
Number of shares10
Total trading fees5

Result
Net gain or loss $115.00

Choosing your inputs

Use average per-share prices for the same quantity of shares and enter trading fees from both sides of the trade. Enter all figures in one currency. For multiple purchases, use a share-weighted average buy price.

How to interpret the result

Ten shares bought at $40 and sold at $52 generate $120 before fees. With $5 in fees, the gain is $115. Selling at $40 instead leaves a $5 loss. A negative result means sale proceeds fell short of purchase cost and fees.

Frequently asked questions

What should I enter for fees?

Combine the purchase and sale fees for the trade. The calculation excludes dividends and taxes.

How do I find the break-even sale price?

Divide total trading fees by shares sold and add the result to the purchase price per share. In the worked example, break-even is $40.50.

Related calculators

Profit margin ↗Asset appreciation ↗Asset depreciation ↗