Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Stock Sell Calculator
Stock Market Calculators

Stock Sell Calculator

Published onApril 30, 2026 Updated onOctober 27, 2026 1:20 pm

“I bought at $50 and sold at $80” sounds like a $30 per share gain. Then the brokerage statement arrives: buy commission, sell commission, and suddenly the gain is smaller than the story. Add dividends received while holding, and the true number moves again. Most investors never compute the real figure; they remember the prices and forget the plumbing.

The Stock Sell Calculator below reconstructs the full sale: total cost basis including buy fees, net proceeds after sell fees, dividends added back, realized profit or loss, ROI, profit per share, and the break-even sell price most tools skip. It answers the sale side of the trade completely.

Stock Sell Calculator
True proceeds, profit, and break-even price
$
$
$
$
$
Net profit / loss
$0
Total cost (incl. buy fees)$0
Net proceeds (after sell fees, incl. dividends)$0
Return on investment0%
Profit per share$0
Break-even sell price$0
Pre-tax figures. Capital gains tax depends on your holding period and bracket: run the profit through a capital gains calculator for the after-tax number.

Quick Answer

Quick answer: buying 100 shares at $50 and selling at $80, with $25 in dividends and $10 in fees on each side, nets a $3,005 profit: $5,010 total cost, $8,015 net proceeds, 59.98% ROI, $30.05 per share. The break-even sell price was $49.95: dividends already received pushed it below the $50 buy price.
On this page
  • Quick Answer
  • What “selling a stock” actually nets you
  • Worked example, checked against this exact tool
  • The break-even price traders forget
  • Short-term vs long-term: why holding period changes the after-tax answer
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

What “selling a stock” actually nets you

The sale side of a trade has six moving parts, and retail investors routinely track two. The full accounting:

Total cost = buy price x shares + buy fees
Net proceeds = sell price x shares – sell fees + dividends received
Net profit = net proceeds – total cost
Break-even sell price = (buy price x shares + buy fees + sell fees – dividends) / shares

Counts toward your result

  • Buy price x shares
  • Commissions on the buy
  • Commissions on the sell
  • Dividends received while holding
  • Any other transaction costs

Does not count (yet)

  • Capital gains tax (computed separately after the sale)
  • Opportunity cost of the capital
  • Inflation over the holding period
  • Unrealized gains on shares you still hold

Worked example, checked against this exact tool

FigureValueHow
Total cost$5,010.0050 x 100 + 10
Net proceeds$8,015.0080 x 100 – 10 + 25
Net profit$3,005.008,015 – 5,010
ROI59.98%3,005 / 5,010
Profit per share$30.053,005 / 100
Break-even sell price$49.95(5,000 + 10 + 10 – 25) / 100

Enter the pre-filled values and the tool reproduces every line. The naive “$30 per share” story overstates the gain by $0.05 a share here; on larger positions with percentage-based broker fees, the gap is far wider. For fractional share positions, the same six-part math applies with fractional share counts.

The break-even price traders forget

Break-even is the sell price at which the trade nets exactly zero, and it is the most underused number in retail trading. Notice it sits below the buy price here ($49.95 vs $50.00) because the $25 of dividends already received covers part of the cost. Every dividend payment quietly lowers your break-even; every fee raises it. Before entering any trade, compute the break-even and place it on the chart: it is the line the stock must stay above for you to win. If your dividend income is substantial, break-even can sit several percent below your entry, which changes stop-loss placement entirely.

Short-term vs long-term: why holding period changes the after-tax answer

The calculator reports pre-tax profit, but the tax bill on that profit depends on how long you held. In the US, gains on assets held one year or less are taxed as ordinary income (your marginal rate, up to 37%), while gains on assets held more than one year qualify for long-term capital gains rates (0%, 15%, or 20% for most taxpayers). On the worked example’s $3,005 profit, the difference between a 32% short-term rate and a 15% long-term rate is $511 in tax.

This is why the calendar matters as much as the price chart. Selling on day 364 versus day 366 can change the after-tax outcome by hundreds of dollars on a modest position. If you are close to the one-year mark and the investment thesis is intact, waiting is often the highest-return trade available. Run the pre-tax profit from the calculator above through a capital gains tax calculator with your bracket and holding period to see your specific number.

What competing calculators miss

Dividends ignored. Most stock profit tools compute (sell – buy) x shares and stop. Dividends received are part of total return: ignoring $25 here understates the outcome by nearly a percent. Ours adds them as a first-class input.

Buy and sell fees lumped or skipped. Tools that include fees usually offer one fee field. Buy-side and sell-side fees enter the math differently (one raises cost basis, the other reduces proceeds), and separating them keeps the break-even exact.

No break-even price. We checked: the top-ranking stock profit calculators show profit and ROI but not the break-even sell price, arguably the most actionable number for managing an open position. Ours leads with it in the results.

Taxes presented as part of the trade. A few tools subtract estimated tax inside the profit figure, mixing a trade outcome with a personal tax situation. We keep the trade math clean and pre-tax, then point you to the capital-gains step, because tax depends on holding period and bracket, not on the trade.

Key takeaways

  • True profit = (sell x shares – sell fees + dividends) – (buy x shares + buy fees).
  • 100 shares, $50 to $80, $25 dividends, $10 fees/side: $3,005 profit, 59.98% ROI.
  • Break-even was $49.95, below the buy price, because dividends covered part of the cost.
  • Keep trade math pre-tax; handle capital gains as a separate step.

Frequently asked questions

Net profit = (sell price x shares – sell fees + dividends received) – (buy price x shares + buy fees). The fees and dividends are what separate the real number from the “sell minus buy” shortcut.

The per-share price at which the trade nets exactly zero: (buy price x shares + buy fees + sell fees – dividends) / shares. Sell above it for profit, below it for a loss. Dividends you already received lower it below your buy price.

Yes. Total return is price appreciation plus income. A stock that went nowhere on price but paid 4% annually for five years returned over 20% on dividends alone. Excluding them understates buy-and-hold outcomes systematically.

No, and deliberately: capital gains tax depends on your holding period (short vs long term), your bracket, and your jurisdiction. Per IRS Publication 550, compute the pre-tax profit here, then apply your tax situation as a second step.

Enter only the shares sold, with the buy price as your average cost per share across all lots. The remaining shares keep their unrealized gain separate. For precise lot-level accounting (FIFO vs specific identification), your broker’s cost-basis report is authoritative.

If you sell at a loss and repurchase a substantially identical security within 30 days before or after, the IRS disallows the loss deduction and adjusts your cost basis instead. This calculator reports the economic loss; the tax treatment follows the wash-sale rules in IRS Publication 550.

Add This Calculator to Your Website

Embed the Stock Sell Calculator on your own site. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. U.S. Securities and Exchange Commission, “Investor Bulletin: Understanding Investment Returns” – how returns are calculated. SEC Investor Education. Accessed October 19, 2026.
  2. Internal Revenue Service, “Publication 550, Investment Income and Expenses” – capital gains, dividends, wash sales. IRS Publication 550. Accessed October 19, 2026.
  3. FINRA, “Stocks” – investor education on equity mechanics and costs. FINRA: Stocks. Accessed October 19, 2026.
  4. U.S. Securities and Exchange Commission, “Capital Gains, Losses, and Sale of Home” – tax treatment of sales. IRS Topic 409: Capital Gains and Losses. Accessed October 19, 2026.
  5. Morningstar, “Cost Basis” – investor education on tracking investment costs. Morningstar: Cost Basis. Accessed October 19, 2026.

Related calculators

Stock Market CalculatorsBeta Calculator: Measure Stock Risk & Market ExposureBeta compresses a stock's relationship with the market into a single number.Stock Market CalculatorsStock Price Change CalculatorYou bought at $50 and the stock now trades at $65.Stock Market CalculatorsStock Margin CalculatorBuying stock on margin means the broker lends you part of the purchase price, and this calculator prices that...Stock Market Calculators Shares CalculatorHow many shares does your money buy? What will a block of shares cost once the broker takes its cut?Stock Market CalculatorsMarket Cap To Price CalculatorIf you know what a whole company is worth but not what one share should cost, the conversion is a single division: market capitalization divided by shares outstanding.Stock Market CalculatorsValue Of Stock Calculator Owning 100 shares means little until you price them.

We use cookies to analyze traffic and to serve ads that keep our calculators free. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search