Skip to main content
Stock profit calculator

See your real gain, after every fee.

Enter what you paid, what you sold for, and any commissions. See your net profit or loss, return on investment, the price you need just to break even, and how the trade looks across a range of exit prices.

The trade

$
$
Commissions and income
$
$
$
mo
Net profit
$0
after commissions, plus any dividends

Did this trade pay off?

    Cost basis vs proceeds

    What you put in vs what you took out

    Profit across exit prices

    Return scorecard

    Scenario table

    How this position would turn out at sell prices from 20% below to 40% above your buy price, holding shares and commissions fixed.

    Sell priceChangeProceeds Net profitROI

    Stock profit, explained

    How Stock Profit Is Calculated

    Stock profit is the difference between the total sale proceeds and the total cost basis. The cost basis includes the purchase price of all shares plus any buying commissions. Net profit subtracts selling commissions as well. The formula is: Profit = (Sell Price - Buy Price) × Shares - Buy Commission - Sell Commission.

    Understanding Return on Investment (ROI)

    ROI measures the percentage return relative to your total investment. It is calculated as (Net Profit / Total Cost) × 100. A positive ROI means you gained money; a negative ROI means a loss. ROI helps compare the profitability of different investments regardless of the dollar amounts involved.

    Common questions

    Does this include taxes on stock gains?

    This calculator shows the gross profit before taxes. Capital gains taxes depend on how long you held the stock. Short-term gains (held less than one year) are taxed as ordinary income. Long-term gains (held over one year) are taxed at 0%, 15%, or 20% depending on your income.

    How do commissions affect my profit?

    Commissions reduce your net profit directly. Many modern brokers offer commission-free trading, but some charge per-trade or per-share fees. Enter any fees in the commission fields to see their impact on your return.

    What if I sold at a loss?

    If the sell price is lower than the buy price, the calculator will show a negative profit (loss). Stock losses can be used to offset capital gains on your taxes, and up to $3,000 in net losses can be deducted against ordinary income per year.

    Estimates for planning only. This shows gross results before taxes. Your actual after-tax return depends on your holding period, tax bracket, wash-sale rules, and broker fees. Verify every figure and consult a tax professional before you act.