Home
🆕 New Tool

Stock Profit Calculator

Compute your stock profit, ROI, breakeven, after-commission returns, and 2026 US tax — with multi-buy averaging.

📝 Your Trade

Most brokers now offer $0 commissions. Enter if yours charges.

≥ 366 days in the US = long-term capital gains (lower tax).

📌 5 Stock Profit Tips

How Stock Profit Is Calculated

Stock profit is the difference between what you received when you sold and what you originally paid (your cost basis). The basic formula is:

Profit = (Sell Price × Shares) − (Buy Price × Shares) − Buy Commission − Sell Commission

For multiple buys at different prices, your average entry price is the share-weighted average:

Avg Entry = (Σ Price × Shares) / Σ Shares

The breakeven price is what the stock needs to be at when you sell for you to net zero (not lose, not profit):

Breakeven = (Total Cost + Buy Commission + Sell Commission) / Total Shares

US 2026 Capital Gains Tax Brackets

Stocks are taxed based on how long you held the shares:

⏱ Short-term (≤ 1 year)

Taxed as ordinary income at your marginal rate.

  • 10% — $0 to $11,925
  • 12% — $11,925 to $48,475
  • 22% — $48,475 to $103,350
  • 24% — $103,350 to $197,300
  • 32% — $197,300 to $250,525
  • 35% — $250,525 to $626,350
  • 37% — above $626,350

📅 Long-term (> 1 year)

Preferential rates — much lower for most holders.

  • 0% — income up to $47,150 (single)
  • 15% — income $47,150 to $518,900
  • 20% — income above $518,900
  • + 3.8% NIIT for high earners (MAGI > $200K single / $250K joint)

This is a US-only guide. Canada, UK, EU, and Australia have different rules. The numbers above are 2026 federal rates; state income tax may also apply in the US.

Frequently Asked Questions

How do I calculate stock profit with multiple buys?

Use the Multiple Buys mode. Enter each buy as a separate row with its price and the number of shares you bought. The calculator sums up your total cost basis (including all commissions) and divides by the total shares to get your share-weighted average entry price. Then it computes profit against your sell price. This matches how the IRS treats cost basis for stocks (FIFO, LIFO, or specific identification, depending on your accounting method).

What if I bought the same stock on different dates?

Add them all as separate rows in Multiple Buys mode. The price you paid is the actual executed price on that date, the shares are the total you received, and the commission is what your broker charged for that specific buy. The calculator sums up your total cost basis and shares regardless of when you bought them.

Does this calculator handle dividends or stock splits?

No — this calculator handles only capital gains from buying and selling shares. Dividends are separate income events (qualified dividends get long-term rates; ordinary dividends are taxed at your income rate). Stock splits change the number of shares and price per share but not your total cost basis — adjust your inputs accordingly after a split. For comprehensive treatment, use dedicated portfolio tracking or tax software.

Is this tool private? Do you store my data?

Yes, 100% private. All calculations happen in your browser using JavaScript — your buy prices, share counts, and trade history are never sent to any server. We use Google Analytics to count page views (anonymously) but it doesn't see the numbers you enter. Close the tab and your inputs are gone.

What about wash-sale rules for stocks?

Unlike crypto, the IRS DOES enforce the 30-day wash-sale rule for stocks. If you sell a stock at a loss and buy the same or a "substantially identical" stock within 30 days before or after the sale, the loss is disallowed and added to the cost basis of the replacement shares. This calculator does not track wash sales — consult a tax professional if you're tax-loss harvesting.

Disclaimer: This calculator provides estimates for educational purposes only. It is not tax, legal, or financial advice. Stock prices are volatile and past performance does not guarantee future results. Tax laws change frequently — consult a qualified tax professional for your specific situation. Calculations assume a US tax context with 2026 federal brackets; state taxes are not included.

You Might Also Like

Crypto Profit Calculator ROI Calculator Investment Fee Calculator Dividend Reinvestment CAGR Calculator