How to Calculate Stock Profit

๐Ÿ“ FORMULA

Gross Profit = (Sell Price โˆ’ Buy Price) ร— Shares
Net Profit = Gross Profit โˆ’ Buy Commission โˆ’ Sell Commission โˆ’ Tax
ROI % = (Net Profit รท Total Cost) ร— 100

Total cost = (Buy Price ร— Shares) + Buy Commission

Example: 100 shares of Apple bought at $150, sold at $210. $10 commission each side.

  • Gross profit: ($210 โˆ’ $150) ร— 100 = $6,000
  • After commissions: $6,000 โˆ’ $20 = $5,980
  • After 15% long-term CGT: $5,980 โˆ’ $897 = $5,083 net profit
  • ROI: $5,083 รท ($150 ร— 100 + $10) = 33.8%
๐Ÿ“ˆ OPEN A FREE BROKERAGE ACCOUNT โ€” START TRADING TODAY
Webull
Commission-free stocks, ETFs and options. Advanced charting for traders.
โœ“ Up to 12 free stocks on signup
Open Account โ†’
eToro
Trade stocks and crypto. Copy top traders automatically.
โœ“ $100K virtual portfolio to practice
Start Trading โ†’
moomoo
Pro-grade platform with real-time level 2 data and low commissions.
โœ“ Up to 15 free stocks for new users
Claim Stocks โ†’
* Sponsored. FinCalc may earn a commission. Investing involves risk.

How Broker Fees Impact Your Returns

Many modern brokers offer commission-free trading for US stocks. But fees still appear in options, foreign stocks, and currency conversion:

BrokerUS StocksOptionsBest For
Webull$0$0 + $0.55/contractActive traders
Fidelity$0$0 + $0.65/contractLong-term investors
Charles Schwab$0$0 + $0.65/contractAll investors
Interactive Brokers$0โ€“$0.005/share$0.15โ€“$0.65/contractInternational traders
eToro (UK/EU)$0N/ABeginners, copy trading
Hargreaves Lansdown (UK)ยฃ11.95N/AUK investors, ISA wrapper

US Capital Gains Tax on Stocks 2026

The IRS taxes stock profits differently based on how long you held the shares:

Filing StatusIncomeShort-Term RateLong-Term Rate
SingleUp to $47,02510%โ€“22%0%
Single$47,025โ€“$518,90022%โ€“35%15%
SingleOver $518,90037%20%
Married Filing JointlyUp to $94,05010%โ€“22%0%
Married Filing Jointly$94,050โ€“$583,75022%โ€“35%15%
โš ๏ธ KEY TAX STRATEGY

Holding stocks for at least 366 days before selling converts short-term gains (taxed as ordinary income, up to 37%) into long-term gains (max 20%). On a $50,000 gain, this one decision saves up to $8,500 in federal taxes.

UK Capital Gains Tax on Stocks 2026/27

In the UK, profits from selling shares outside an ISA are subject to Capital Gains Tax:

  • Annual CGT allowance: ยฃ3,000 (2026/27) โ€” gains below this are tax-free
  • Basic rate taxpayers: 18% on gains above allowance
  • Higher/additional rate taxpayers: 24% on gains above allowance
  • ISA wrapper: All gains completely tax-free โ€” always use your ยฃ20,000 ISA allowance first

Calculate Your Exact Stock Profit & Tax

Enter your buy price, sell price, shares, commissions and tax rate. Get instant net profit and ROI.

Use Free Stock Calculator โ†’

Worked Examples

Example 1: S&P 500 ETF (VOO) โ€” Long-Term Hold

Bought 50 shares of VOO at $380 ($19,000) in January 2023. Sold at $510 ($25,500) in February 2026. 3 years = long-term gains. $0 commission (Fidelity). 15% long-term CGT rate.

  • Gross profit: $25,500 โˆ’ $19,000 = $6,500
  • Tax: $6,500 ร— 15% = $975
  • Net profit: $5,525  |  ROI: 29.1%

Example 2: Tesla โ€” Short-Term Trade

Bought 20 shares at $250, sold 6 months later at $310. $10 commission each side. 32% marginal tax rate (short-term).

  • Gross profit: ($310 โˆ’ $250) ร— 20 = $1,200
  • After commissions: $1,200 โˆ’ $20 = $1,180
  • Tax (32%): $1,180 ร— 0.32 = $378
  • Net profit: $802  |  ROI: 16.1% (vs 24% pre-tax)

How to Legally Minimize Your Stock Tax Bill

  1. Use tax-advantaged accounts โ€” Roth IRA (US) and ISA (UK) allow all gains to grow completely tax-free. Priority #1.
  2. Hold for 12+ months โ€” converts short-term to long-term rates, saving up to 17% in federal taxes.
  3. Tax-loss harvesting โ€” sell losing positions to offset gains in the same tax year. A $5,000 loss offsets $5,000 of gains entirely.
  4. Donate appreciated stock to charity โ€” you avoid CGT entirely and get a full market-value deduction.
  5. FIFO vs specific lot identification โ€” choosing which shares to sell can significantly affect your taxable gain. Selling highest-cost shares first minimizes tax.

Frequently Asked Questions

Do I pay tax on unrealized stock gains?

No โ€” in the US and UK, you only pay capital gains tax when you actually sell your shares and realize the gain. Unrealized gains (paper profits on shares you still hold) are not taxed. This is why long-term buy-and-hold investing is so tax-efficient โ€” you can defer taxes indefinitely.

What is the wash-sale rule in the US?

The wash-sale rule prevents you from claiming a tax loss if you repurchase the same (or substantially identical) security within 30 days before or after the sale. If you want to tax-loss harvest while maintaining exposure, you must buy a different but similar ETF for at least 31 days. Note: this rule does not currently apply to cryptocurrency in the US.

Can I carry forward stock losses to future years?

Yes โ€” in the US, if your capital losses exceed your capital gains in a year, you can deduct up to $3,000 against ordinary income and carry the rest forward to future tax years indefinitely. In the UK, losses can be carried forward indefinitely and offset against future capital gains.

Are dividends taxed differently than capital gains?

Yes. Qualified dividends in the US are taxed at long-term capital gains rates (0%, 15% or 20%). Non-qualified (ordinary) dividends are taxed as ordinary income. In the UK, dividends have a separate ยฃ500 annual allowance, with rates of 8.75% (basic), 33.75% (higher) and 39.35% (additional rate) above that allowance.