- Home
- Finance & Loans
- Stock Profit Calculator
Stock Profit Calculator
Work out what you made or lost on a stock trade. Enter the number of shares, the price you bought and sold at, and any commissions to get the profit, the percentage return, your break-even price and, optionally, the profit left after capital gains tax.
Reviewed by William Hampton, CPA, certified public accountant, on
- Return on investment
- 30%
- Total cost
- $5,000.00
- Net proceeds
- $6,500.00
- Break-even sell price
- $50.00
- Profit after tax
- $1,500.00
Saved setups
Save a set of inputs you reuse — your usual rate, your loan, your room sizes — and load it back in one tap.
Your recent calculations
Results you calculate here are kept on this device so you can come back to them.
Formula
How to use it
- Enter the number of shares and the price paid per share.
- Enter the price you sold at, or a target price to test.
- Add commissions and a capital gains tax rate if they apply.
Worked examples
100 shares bought at $50 and sold at $65 with no commission
- Profit or loss
- $1,500.00
- Return on investment
- 30%
- Total cost
- $5,000.00
- Net proceeds
- $6,500.00
- Break-even sell price
- $50.00
- Profit after tax
- $1,500.00
500 shares bought at $12.40 and sold at $15.10 with a $5 commission each way and 15% tax
- Profit or loss
- $1,340.00
- Return on investment
- 21.6%
- Total cost
- $6,205.00
- Net proceeds
- $7,545.00
- Break-even sell price
- $12.42
- Profit after tax
- $1,139.00
40 shares bought at $212 and sold at $187
- Profit or loss
- -$1,000.00
- Return on investment
- -11.79%
- Total cost
- $8,480.00
- Net proceeds
- $7,480.00
- Break-even sell price
- $212.00
- Profit after tax
- -$1,000.00
Tax on stock profits
In the US, shares held for more than one year are taxed at long-term capital gains rates of 0%, 15% or 20% depending on your income. Shares held a year or less are short-term and taxed as ordinary income. Losses can offset gains, and up to $3,000 of net losses a year can offset other income.
Higher earners may also owe the 3.8% net investment income tax on dividends and capital gains: it applies to the smaller of your net investment income and the amount by which your modified adjusted gross income exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). The tax rate field does not add it, so include it yourself if it applies to you.
If you sell at a loss and buy the same or a substantially identical security within 30 days before or after, the wash-sale rule disallows the loss for now. This calculator gives an estimate, not tax advice.
Several purchases at different prices
If you bought in stages, use your average cost per share: total dollars spent divided by total shares. Your broker’s default method for tax lots is usually first in, first out unless you choose otherwise.
Questions people ask
How do I calculate profit on a stock?
Multiply the shares by the difference between sell and buy price, then subtract fees. 100 shares bought at $50 and sold at $65 is a $1,500 profit, a 30% return.
How do I calculate the percentage gain or loss?
Divide the profit by what you paid. 40 shares bought at $212 and sold at $187 is a $1,000 loss on $8,480, or −11.79%.
What price do I need to sell at to break even?
Your total cost plus the selling commission, divided by the shares. 500 shares at $12.40 with a $5 commission each way break even at $12.42.
Keep exploring
Goes well with
- Finance & LoansROI CalculatorReturn on investment as a percentage, a dollar gain and a yearly rate.
- Finance & LoansDividend CalculatorDividend income and yield from your shares, per payment and per year.
- Finance & LoansCAGR CalculatorCompound annual growth rate between a starting and ending value.
- Finance & LoansInvestment CalculatorProject an investment with monthly contributions, returns and inflation.
- MathPercent Change CalculatorPercentage change from an old value to a new one, up or down.
- Finance & LoansIRR CalculatorInternal rate of return for an investment and its yearly cash flows.
More in Finance & Loans
- Gold Value Calculator
- Payback Period Calculator
- Compound Interest Calculator
- FIRE Calculator
- NPV Calculator
- 401(k) Calculator
- Future Value Calculator
- Present Value Calculator