Stock Profit Calculator

Calculating stock profit isn't just buy price vs sell price. You need to account for commissions on both sides, dividends received during the holding period, and the impact of holding time on annualized return. Our calculator handles all of this — enter buy and sell prices, share count, commissions, dividends, and holding days to get net profit, profit %, total return %, annualized return %, and the break-even sell price needed to cover all costs.

star 4.9
auto_awesome AI
New

Stock Profit Calculator calculator

candlestick_chartTrade Details

trending_upProfit / Loss

Net Profit
$2,000
20.00% return
Buy Value
$10,000
Sell Value
$12,000
Gross Profit
$2,000
Commissions
$0
+ Dividends
$2,000
Annualized
N/A
Break-Even Sell Price
$100.00

tips_and_updates Tips

  • Always include commissions in P&L calculations, even with zero-commission brokers
  • Dividends can add 2-4% per year to total return on income stocks
  • Annualized return matters more than total return for short holds
  • Break-even price = total cost basis ÷ shares (helps set stop-loss)
  • Long-term capital gains (>1 year) get preferential tax rates
  • Wash sale rule: can't claim loss if you rebuy same stock within 30 days
  • Track total return (with dividends) not just price return for income strategies

How to Use the Stock Profit Calculator

1

Enter buy + sell prices

Per share.

2

Enter share count

Number of shares traded.

3

Add commissions if any

Most US brokers are free now.

4

Optional: dividends + holding days

For total return + annualized.

5

Review profit + percentages

Net + total + annualized return.

The Formula

Always include both buy and sell commissions in your cost analysis. Even with $0 commission brokerages today, there are still spreads, SEC fees, and FINRA TAF fees on sells. Dividends boost total return — for dividend stocks, ignoring them understates returns by 2-4% per year.

Net Profit = (Sell × Shares − Sell Commission) − (Buy × Shares + Buy Commission)

lightbulb Variables Explained

  • Buy Value Buy Price × Number of Shares
  • Sell Value Sell Price × Number of Shares
  • Total Cost Basis Buy Value + Buy Commission
  • Net Profit Sell Value − Sell Commission − Total Cost Basis
  • Total Return Net Profit + Dividends Received

tips_and_updates Pro Tips

1

Always include commissions in P&L calculations, even with zero-commission brokers

2

Dividends can add 2-4% per year to total return on income stocks

3

Annualized return matters more than total return for short holds

4

Break-even price = total cost basis ÷ shares (helps set stop-loss)

5

Long-term capital gains (>1 year) get preferential tax rates

6

Wash sale rule: can't claim loss if you rebuy same stock within 30 days

7

Track total return (with dividends) not just price return for income strategies

Stock profit calculation seems simple — sell price minus buy price — but accurately determining your real return requires accounting for trading commissions, taxes, dividend income, holding period, and the opportunity cost of capital. A stock purchased at $50 and sold at $65 shows a 30% gross gain, but after $10 in round-trip commissions on a small lot and 15% long-term capital gains tax, the after-tax profit drops significantly. Our stock profit calculator computes your complete return picture: gross profit or loss, percentage return, annualized return (critical for comparing investments held for different periods), commission impact, estimated tax liability based on holding period (short-term vs long-term capital gains), and total net profit after all costs. Whether you are evaluating a completed trade, planning a sell decision, or comparing the performance of multiple positions, this calculator provides the full financial picture that your brokerage's simple P&L statement doesn't show.

Gross vs net profit and the impact of fees

Gross stock profit is straightforward: (Sell Price - Buy Price) × Shares. But net profit must account for commissions, SEC fees, and taxes.

While most major brokers now offer zero-commission stock trades, options still carry per-contract fees ($0.50-0.65), and some brokers charge for OTC stocks, foreign shares, or large block trades. The SEC regulatory fee (currently $8 per $1,000,000 of sales) is negligible for small trades but visible on large transactions.

For active traders, the bid-ask spread is effectively a hidden cost — buying at $50.10 and selling at $49.90 on a $50 stock costs 0.4% round-trip even with zero commissions. On 100 shares, that spread costs $20 in implicit transaction costs.

Annualized return vs total return

Total return shows the percentage gain over the entire holding period, but annualized return enables fair comparison across investments held for different durations. A 50% gain over 5 years equals approximately 8.4% annualized (using the formula: (1 + total return)^(1/years) - 1), while a 20% gain over 6 months annualizes to 44%.

This distinction matters enormously for portfolio analysis — a stock that doubles in 10 years (7.2% annualized) has underperformed one that gains 50% in 3 years (14.5% annualized). When comparing against benchmarks, always use annualized figures.

Including dividends in total return (total return = price appreciation + dividends received / cost basis) gives a more accurate picture, especially for income stocks where dividends contribute 30-50% of total return.

Tax implications of stock profits

The holding period determines your tax rate on stock profits. Shares held over one year qualify for long-term capital gains rates:

  • 0% for taxable income under $47,025 (single)
  • 15% for income up to $518,900
  • 20% above that threshold

High earners also pay a 3.8% Net Investment Income Tax. Short-term gains (held under one year) are taxed as ordinary income — potentially 22-37% federal. This difference is substantial: on a $10,000 profit, long-term treatment saves $700-1,700 compared to short-term rates.

Tax-loss harvesting — selling losing positions to offset gains — can reduce your tax bill, but watch the wash-sale rule that disallows losses if you repurchase substantially identical securities within 30 days. Consider holding winning positions past the one-year mark when possible.

How to Calculate Stock Profit Percentage Correctly

Profit percentage should be measured against your total cost basis, not the sell price. The correct formula is Profit % = Net Profit ÷ (Buy Price × Shares + Buy Commission) × 100.

Buying 100 shares at $100 with a $5 commission gives a $10,005 cost basis; a $1,990 net profit is a 19.89% return, not a flat 20%. Dividing by the sell value instead understates the return.

Using cost basis as the denominator gives the true return on the capital you actually deployed — the figure you should compare against benchmarks and other trades.

Including Dividends in Total Return

Price gain alone understates the return on dividend-paying stocks. Total return = (Sell Value − Buy Value − Commissions + Dividends Received) ÷ Cost Basis.

Over long horizons, reinvested dividends have historically contributed a large share of equity total return — often a third or more for income-oriented stocks. If you collected $200 in dividends on a position that gained $1,990 in price, your true return is $2,190, materially higher than the price-only figure.

Always track total return, not just capital appreciation, when comparing income strategies against growth strategies.

Break-Even Price and Setting Stop-Losses

Your break-even sell price is the level where proceeds exactly cover your cost basis plus both commissions: Break-Even = (Buy Price × Shares + Buy Commission + Sell Commission) ÷ Shares. Below it you are losing money; above it you are in profit.

Knowing this number helps you place stop-loss orders intelligently — a stop set just below cost basis caps downside while leaving room for normal volatility.

For zero-commission trades the break-even is essentially your purchase price, but for fee-heavy markets or small lots the commission drag can move it noticeably higher.

Short-Term vs Long-Term Capital Gains Tax

Holding period decides your tax rate, and the difference is large. According to the IRS (Topic 409), shares held more than one year in the US qualify for long-term capital gains rates of 0%, 15%, or 20% depending on income; shares held one year or less are taxed as ordinary income, up to 37%.

On a $10,000 gain, long-term treatment can save several thousand dollars versus short-term.

Other markets differ:

  • the UK applies a CGT annual exemption then flat rates
  • Canada taxes a portion of gains at your marginal rate

Factor your jurisdiction's rules in before treating pre-tax profit as money in hand.

The Hidden Cost of the Bid-Ask Spread

Even with zero commissions, every trade still carries small SEC and FINRA regulatory fees on sales, and pays the bid-ask spread — the gap between what buyers bid and sellers ask.

Buy at the $50.10 ask and sell at the $49.90 bid and you lose $0.20 per share, or 0.4% round-trip, before the price moves at all. On liquid large-caps the spread is a penny or two and barely matters; on thinly traded small-caps, OTC stocks, or after-hours trading it can dwarf any commission.

Frequent traders should treat the spread as a real cost and fold it into break-even and profit calculations, especially on small or illiquid positions.

Averaging Down and a Blended Cost Basis

When you buy the same stock at different prices, your cost basis is the weighted average of all purchases: Total Cost ÷ Total Shares.

Buy 100 shares at $100 then 100 more at $80 and your basis is ($10,000 + $8,000) ÷ 200 = $90 per share. Profit on a later sale is measured against this blended figure, not your first entry.

Brokerages may report basis using FIFO, average cost, or specific-lot methods, which affects taxable gain when you sell only part of the position — choose the method deliberately for tax efficiency.

Worked Example: A Complete Trade From Buy to Sell

Suppose you buy 200 shares at $45 with a $5 commission, collect $120 in dividends, and sell a year later at $58 with another $5 commission.

  • Cost basis = 200 × $45 + $5 = $9,005
  • Proceeds = 200 × $58 − $5 = $11,595
  • Net profit = $11,595 − $9,005 = $2,590, a 28.8% return on cost
  • Total return = adding $120 in dividends gives $2,710 (30.1%)

Held about 365 days, the annualized return is roughly 30%. This is exactly the full picture the calculator produces — gross profit, net of fees, with dividends, and annualized.

Common Stock Profit Calculation Mistakes

The most common errors are:

  • dividing profit by sell price instead of cost basis
  • ignoring both-side commissions
  • leaving dividends out of total return
  • comparing trades of different lengths without annualizing

Many investors also forget taxes entirely, treating a pre-tax gain as spendable cash, or overlook the bid-ask spread on illiquid names. Another trap is mixing currencies on foreign shares without converting consistently.

Run every trade through the same disciplined formula — cost basis, all fees, dividends, holding period — so your reported return reflects what actually landed in your account.

Frequently Asked Questions

sell

Tags