Stock Profit Calculator
Estimate what a stock trade may leave you after commissions and estimated tax, then compare the result with your investing goals.
- 2026 figures, checked October 26, 2026
- 1 official source
- Private: runs in your browser
- How we check our work
Result
…
Verify before you act: review these results with a fiduciary financial planner and, for tax questions, a CPA before making any decision based on them.
Suggestions for your numbers
Updated as you type, from your inputs only. General information, not personal advice; confirm any change with a qualified professional.
See it over time
Hover over or tap the chart to see the numbers for any point.
What is stock profit?
Stock profit is the amount left when you subtract what you paid for shares and trading fees from the money you receive when you sell. If the result is below zero, the trade has a loss.
This stock calculator uses your share count, buy price, sell price and commissions to estimate the trade’s gain or loss. It also applies the tax rate you enter to estimate tax on a gain. The stock gain calculator is a planning tool, not a record of your complete investment taxes.
Why stock profit matters
A sale price alone does not tell you what you kept. The purchase price and commissions affect your result, and tax can reduce the amount left after a profitable sale. Estimating these pieces can help you compare a possible sale with holding the shares or using the money for another goal.
You can use the result when reviewing your portfolio, planning cash for a purchase, or deciding whether a trade fits your investing plan. Compare estimates at different selling prices, but remember that a calculator cannot predict what a stock will be worth or whether a trade is right for you.
How to use this stock profit calculator
- Enter the number of shares you bought or plan to sell.
- Enter your buy price per share and the sell price you want to evaluate.
- Enter any buy and sell commissions. Use the same currency units for prices and fees.
- Enter a tax rate for the estimate. If you do not want to estimate tax, use a rate that reflects your planning assumption or review the pre-tax result separately.
- Select Calculate and review the gain or loss, return, estimated tax and after-tax profit. Try another sell price or fee amount to compare scenarios.
Stock profit calculator example
Worked example
With Shares 100, Buy price 50, Sell price 62, Buy commission 0, Sell commission 0 and Tax rate on the gain 15, the result is Profit $1,200.00. Cost (with fees) is $5,000.00, proceeds (after fees) are $6,200.00, gain or loss is $1,200.00, and return is 24.00%. Estimated tax is $180.00, leaving after-tax profit of $1,020.00. The estimate follows the formula: shares x sell price minus sell fees minus shares x buy price plus buy fees.
How to read your stock profit results
Cost (with fees) is the purchase amount plus buy commission. Proceeds (after fees) is the sale amount less sell commission. Gain or loss is proceeds minus cost, so it reflects the trading fees you entered.
Return expresses the gain or loss as a percentage of the cost. In the example, the $1,200.00 gain divided by the $5,000.00 cost produces a 24.00% return. This is a trade-level calculation, not a measure of your full portfolio performance over time.
How to improve your stock trade outcome
- 01
Compare fees before placing a trade
Review the commission and other charges shown by your brokerage before buying or selling. Enter the fees in the calculator so you can see whether they materially change the result.
- 02
Set a sale plan before emotions take over
Write down why you bought the shares and what would lead you to sell. Compare possible sale prices with your original plan rather than making a rushed decision after a sharp price move.
- 03
Check the after-tax estimate
A larger pre-tax gain does not always mean the same amount of spendable cash. Consider how the sale may affect your taxes and cash needs before acting. Ask a tax professional to confirm your tax treatment and estimated liability.
- 04
Compare the trade with your broader plan
Consider whether selling changes your mix of investments or moves money away from a goal such as retirement. Avoid treating one trade’s return as proof that your whole investment plan is on track.
Common stock profit calculator mistakes
Leaving out commissions
Entering zero fees when you will pay commissions makes the estimated gain too high. Include both buy and sell fees when you know them.
Using a tax rate as if it were a final tax bill
The entered rate is an estimate, not a full tax calculation. Your actual tax treatment can depend on details the calculator does not request, including your tax situation and the character of the gain. IRS Topic 409 explains capital gains and losses; ask a tax professional about your circumstances.
Confusing return with a forecast
The return shown is based on the prices and fees you enter. It does not predict future prices or account for every investment cost, dividend or portfolio change.
Treating a loss as a tax answer
A loss in this calculator does not determine how that loss may affect your taxes. Tax rules and your other transactions can matter, so confirm the treatment with a qualified tax professional.
The stock profit formula
Profit = shares x sell price - sell fees - (shares x buy price + buy fees).
Key terms
- Gain or loss
- The sale proceeds after sell fees minus the purchase cost including buy fees.
- Return
- The gain or loss expressed as a percentage of the purchase cost used in the calculation.
- Commission
- A fee charged for buying or selling shares. Enter buy and sell commissions separately.
- Capital gain
- A profit from selling an asset for more than its cost. Tax treatment depends on details beyond this calculator.
Stock profit questions
Does this calculator include dividends?
No. It calculates the gain or loss from the share purchase and sale prices and the commissions you enter. Add dividends separately when reviewing your total investment outcome.
Does the result show the exact tax I will owe?
No. The calculator applies your entered tax rate to estimate tax on a gain. It does not determine your complete tax liability or account for every tax detail. IRS Topic 409 covers capital gains and losses, and a tax professional can help assess your situation.
Can I use it before I sell?
Yes. Enter a possible sell price to compare scenarios. The result is an estimate based on the information you enter, not a prediction of the stock’s future price.
What does a negative result mean?
It means the proceeds after the entered sell fees are lower than the purchase cost with buy fees. The calculator’s loss estimate does not establish how that loss will be treated for tax purposes.
Sources
Before you act on this result. Cordwell calculators and guides are educational estimates, not legal, tax, investment, lending or other professional advice. They rely on the numbers you enter and on simplified rules, and they can't see your full situation. Before you file, sign, borrow, invest, hire, change your withholding or form a business based on anything here, meet with a fiduciary financial planner and, for tax questions, a CPA who can review your specific facts and confirm the numbers. Rules change, and official agency guidance always controls.