Stock profit and loss calculator
Enter the price you bought at, the price you sold at, the number of shares and the total commissions. You get the net profit or loss, the return as a percentage and your cost basis.
Net Profit/Loss
$2,490.00
Return
49.70%
Cost Basis
$5,010.00
How it works
Net profit is the sell price minus the buy price, multiplied by the shares, minus the commissions you entered.
The percentage return divides the net profit by your cost basis, which is what you paid for the shares plus the commissions.
A worked example
Buy 50 shares at $100 and sell at $150 with $10 in commissions: the net profit is $2,490 and the cost basis is $5,010, a return of about 49.7%.
Common questions
Does this include tax?
No. Profit is shown before tax. Use the capital gains tax calculator to estimate the tax on a gain.
How do I enter a short sale?
This calculator is for buying first and selling later. For a short sale, the result sign works the other way, so treat the figures with care.
Should I count fees twice, once to buy and once to sell?
Enter the total of all commissions for the trade in the one commissions field.
Related calculators
Putting the numbers to work? Compare funds with the ETF compare tool or check what you really own with the Portfolio X-Ray.
Results are estimates based on the numbers you enter and are not a forecast. Educational information, not financial, tax or investment advice.