Skip to content

Stock Calculator

Use this stock calculator to work out the profit or loss on a stock trade. Enter the number of shares, the price you bought at, the price you sold at (or plan to sell at) and any commissions. The calculator shows your total profit or loss, your percentage return and the break-even sell price you need just to cover your costs. Prices are always the numbers you enter; MoneyTools does not supply live quotes.

How it works

Total cost = shares × buy price + buy commission.

Sale proceeds = shares × sell price − sell commission.

Profit or loss = sale proceeds − total cost. Return % = profit ÷ total cost × 100.

Break-even sell price = (total cost + sell commission) ÷ shares.

Formula & methodology

Profit = (Shares × Sell price − Sell fee) − (Shares × Buy price + Buy fee)
Shares
Number of shares traded
Fees
Commissions charged on the buy and the sell

Results are before taxes. Dividends received while holding the shares are not included.

Illustrative example

Illustrative trade: 100 shares of Company A

These numbers are illustrative, not a real stock. You buy 100 shares of Company A at $50 with a $5 commission, for a total cost of $5,005. Later you sell all 100 at $62 with another $5 commission, receiving $6,195.

Profit = $6,195 − $5,005 = $1,190. Return = $1,190 ÷ $5,005 × 100 ≈ 23.78%. The break-even sell price is ($5,005 + $5) ÷ 100 = $50.10 per share.

Hypothetical figures for illustration only.

How the stock profit math works

A stock trade has two sides. On the way in, you pay the share price plus any commission. On the way out, you receive the share price minus any commission. The difference between what you received and what you paid is your profit or loss. Dividing that by what you paid gives the return as a percentage, which lets you compare trades of different sizes.

The break-even price is useful before you sell. It tells you the lowest price per share at which you would get back exactly what you put in once both commissions are paid. Selling below it means a loss, even if the price is above what you originally paid per share.

Why commissions and taxes matter

Commissions look small, but on small trades they take a bigger share of the gain. A $5 fee on each side of a $500 trade is a 2% hurdle before you earn anything. Many brokers now charge no commission on US stock trades, but some accounts, markets and order types still carry fees, so enter whatever your broker actually charges.

Taxes are the other big factor. In the US, profits on stocks held one year or less are generally taxed as short-term capital gains at ordinary income rates, while longer holdings may qualify for lower long-term rates. This calculator shows results before tax; the tax calculator can help you think about income tax on ordinary income. To compare the result with other investments, use the ROI calculator, and to turn a multi-year result into a yearly rate, use the CAGR calculator.

Related tools

Holding a stock for its dividends? The dividend calculator estimates income and reinvestment. For long-term fund investing, try the ETF calculator or browse all investment calculators.

Frequently asked questions

Related calculators

Investment

ROI Calculator

Measure the return on investment for any purchase or project.

Use Calculator
Investment

ETF Calculator

Project ETF growth with monthly contributions and see how much the expense ratio costs over time.

Use Calculator
Investment

Dividend Calculator

Estimate dividend income and the effect of reinvesting.

Use Calculator
Investment

CAGR Calculator

Find the compound annual growth rate between two values.

Use Calculator
Investment

Investment Calculator

Project the future value of your investments with regular contributions.

Use Calculator
Salary

Tax Calculator

Estimate 2025 federal income tax by filing status, with standard deduction, brackets and effective rate.

Use Calculator