Stock Calculator Profit

This stock calculator profit tool takes your shares, buy price, sell price and fees, then shows your gain or loss, percent return, annualized return, estimated tax and break-even price. Change any number and every result updates at once.

Profit or loss before tax

 

Return on your cost
 
Annualized return
 
Estimated tax on the gain
 
Profit after tax
 
Break-even sell price
 

I spent 18 years as a credit union loan officer, and the habit I saw most often with investment accounts was calling the price change “the profit.” Fees, taxes and time all sit between the price move and the money you actually keep, so the calculator above shows each one.

How do I use the stock profit calculator?

Fill in the seven boxes from your trade confirmation or brokerage statement. If you still own the shares, use today’s price as the sell price and you get a “paper profit” you can compare against your goal.

  • Number of shares: fractional shares are fine, so 12.5 works.
  • Buy and sell price: the price per share, not the total. Buying 10 shares for $5 each means you enter $5, not $50.
  • Fees on the buy and sell: the total dollars charged on each trade. Many US brokers charge $0 commission on stocks, so zero is often correct.
  • Months held: this drives the annualized return and tells you which tax rate to pick.
  • Tax rate on the gain: your own federal rate plus state, if any. Leave it at 0 to see a before-tax picture only.

The tax box applies one flat rate to the whole gain. That is a fine estimate for a single sale, but your real bill depends on your other income, which the tax section below explains.

How is stock profit calculated?

Every result follows plain arithmetic, so you can check it on paper or in a spreadsheet:

  1. Profit = (sell price minus buy price) times shares, minus the buy fee, minus the sell fee.
  2. Return = profit divided by your cost, where cost is shares times buy price plus the buy fee.
  3. Annualized return = (1 + return) raised to the power of 12 divided by months held, then minus 1.
  4. Estimated tax = profit times your tax rate, only when profit is above zero.
  5. Profit after tax = profit minus estimated tax.
  6. Break-even price = (shares times buy price, plus both fees) divided by shares.

Return uses cost as the denominator because it answers a simple question: for every dollar I put in, how many came back as profit? Annualized return exists so a 30% gain over 6 months and a 30% gain over 5 years do not look the same.

Worked example: 100 shares from $50 to $65

These are the calculator defaults. You buy 100 shares at $50 with a $5 fee, hold them 18 months, then sell at $65 with a $5 fee. Your cost is $5,000 plus $5, so $5,005. The sale brings in $6,500 minus $5, so $6,495.

Timeline of a stock trade: $1,500 price move, $5 buy fee, $5 sell fee, ending at $1,490 profit
Two $5 fees trim the $1,500 price move to a $1,490 profit before any tax.

The price move alone is $1,500 (15 dollars times 100 shares). Take off $10 in fees and your profit is $1,490. Divide by $5,005 and the return is 29.77%. Spread over 18 months, that works out to about 19% a year.

Holding 18 months means long-term treatment. At 15%, the tax is $223.50, which leaves $1,266.50 after tax, or about 25.3% on your cost. The break-even sell price is $50.10, ten cents above your buy price, because the two $5 fees spread across 100 shares.

What changes your stock profit the most?

The price move and the share count scale your profit in a straight line. Double the shares and you double the dollars, but the percent return stays the same. Fees behave differently, because they are a fixed dollar amount.

Small trades feel fees most

A $10 round trip on a $500 position costs 2% of your money before the stock moves at all. On a $20,000 position the same $10 is invisible.

Holding time changes two things. It flips your tax rate once you pass one year, and it shrinks the annualized return as the months stretch out. A 20% gain in 3 months looks spectacular annualized, but it is not a forecast. Treat annualized figures on holds under a year as a comparison tool, not a promise.

Short-term vs long-term: what tax applies in 2026?

Shares held one year or less produce short-term gains, taxed at your ordinary income bracket of 10% to 37%. Shares held more than one year get lower long-term rates. For 2026, long-term gains are taxed at 0% up to $49,450 of taxable income for single filers ($98,900 married filing jointly), 15% up to $545,500 ($613,700 joint), and 20% above that.

2026 filing status 0% rate up to 15% rate up to 20% rate above
Single $49,450 $545,500 $545,500
Married filing jointly $98,900 $613,700 $613,700
Head of household $66,200 $579,600 $579,600

These are taxable-income thresholds, meaning income after deductions and including the gain itself, so one sale can land partly in two brackets. Higher earners also owe the 3.8% net investment income tax. The thresholds are $200,000 single and $250,000 joint, and they are not indexed for inflation. Confirm the figures against the IRS inflation adjustment notice for the year you sell, because the IRS set higher 2027 limits, with 0% up to $51,050 for single filers.

Ten by ten dot grid showing 85 green dots kept after tax and 15 gray dots lost to long-term tax
On the $1,490 example profit, long-term tax at 15% takes $223.50 and you keep $1,266.50.

To see where your ordinary income sits, try the federal income tax rate calculator. If a big sale could leave you under-withheld, the tax underpayment penalty calculator shows what a missed estimated payment might cost. State tax is not modeled here, so add your state rate to the tax box if your state taxes capital gains.

Losses, wash sales and other edge cases

A negative result is a capital loss. The details below are where I see people get surprised:

  • Loss limits: losses first offset gains. If losses are larger, up to $3,000 a year ($1,500 if married filing separately) can reduce ordinary income, and the rest carries forward.
  • Wash sales: if you buy the same or a substantially identical stock within 30 days before or after selling at a loss, the loss is disallowed for now and added to the cost of the new shares.
  • Multiple purchases: your broker picks which shares were sold using a default method. Check it, and use the stock average calculator to find your blended cost across several buys.
  • Reinvested dividends: each reinvestment is a small purchase that raises your cost. The dividend reinvestment calculator shows how those extra shares build up.
  • Dividends received: they are not in the price profit, so add them to your total. The dividend calculator estimates them.

Your broker reports sales on Form 1099-B, and you report them on Form 8949 and Schedule D. If your calculator number and the 1099-B gain differ, the usual cause is a basis adjustment such as a wash sale, a split or reinvested dividends.

Stock profit vs ROI, average cost and options tools

The ROI calculator works for any investment, but this page adds what stock owners need: both fees, an after-tax figure and a break-even price. The percent return is the same ROI math. The difference is how much detail surrounds it.

For options, the math changes because one contract usually controls 100 shares and time decay matters, so use the option profit calculator instead. To project where a holding could be in ten years rather than what a past trade earned, the future value of investment calculator is the right tool.

Mistakes that make your stock profit number wrong

The classic error is entering the total paid in the price box. If you bought 40 shares for $2,000, the buy price is $50, not $2,000, and the profit will be wildly off. The second is leaving out the sell-side fee, which is easy to miss because it is often taken from the proceeds.

I have also watched people use a stock’s closing price instead of what they actually received. Use the executed price on your trade confirmation, since it can differ from the quote you saw on screen.

Try this: Pull up your most recent stock sale in your brokerage account, enter its shares, buy price, sell price and fees, and compare the profit to the gain on the confirmation. If they differ by more than a few cents, look for a missed fee or a basis adjustment.

Last, remember the calculator estimates. Your final tax comes from your whole return, so use the tax result as a planning number and confirm it with your tax software or a preparer.

Stock Calculator Profit: common questions

How do you calculate profit on a stock?

Subtract your buy price from your sell price, multiply by the number of shares, then subtract the fees on both trades. A positive number is a profit and a negative number is a loss.

How do I calculate the percentage gain on a stock?

Divide your profit by what you paid, including any buy fee, then multiply by 100. A $1,490 profit on $5,005 paid is a 29.77% gain.

Does the stock profit calculator include dividends?

No. It measures the price move and fees only. Add the dividends you received to the profit for a total return, or run them through a dividend calculator.

What tax rate should I enter for my stock gain?

If you held the shares more than one year, enter 0%, 15% or 20% depending on your taxable income. If you held them one year or less, enter your ordinary federal bracket, which runs from 10% to 37%, and add any state rate.

What is the break-even sell price on a stock?

It is the sell price at which your profit is exactly zero after both fees. It sits slightly above your buy price whenever you pay any commission.