📈 Stock Return Calculator

Calculate your total and annualized return on a stock trade — including capital gain, dividends, and fees — and see how much each contributed.

📈 Trade Details
$
$
$
$
📊 Results
Net Profit
Total Return %
Annualized Return %
Capital Gain

Return Breakdown

Total Invested
Total Proceeds
Capital Gain
Dividends Received
Brokerage / Fees
Net Profit
Return Components
Total vs Annualized Return
This calculator reports pre-tax figures only and does not account for capital gains tax, which varies by jurisdiction and holding period. Results are mathematical estimates, not investment advice, and past performance does not predict future results.
📈

Enter Your Trade Details

Fill in shares, buy/sell price, dividends, fees, and holding period to calculate your return.

Guide

What Is the Stock Return Calculator?

Last updated: July 2026 · Reviewed by the NeftCal editorial team

A stock return calculator measures the real return on a stock trade — not just how far the share price moved, but the complete picture once dividends received and brokerage fees paid are folded in. Enter the number of shares, your buy and sell price, dividends collected, fees paid, and how long you held the position, and NeftCal's calculator returns your total return percentage, an annualized (CAGR-style) return, and a clear breakdown of how much of your profit came from capital gain versus dividend income.

Two trades with identical price movement can produce very different outcomes once dividends and fees are counted — and two trades with the same total return can represent very different investment quality once you annualize for holding period. This stock profit calculator turns those raw numbers into figures you can actually compare, whether you're reviewing a single closed trade or checking in on a position you still hold.

Who Should Use This Calculator

This tool is useful for individual investors reviewing a closed trade, active traders comparing performance across multiple positions, long-term holders checking an unrealized gain on a stock they still own, and anyone trying to separate how much of their return came from price appreciation versus dividend income. It's equally useful as a quick post-trade sanity check or as part of a broader portfolio review.

Why It Matters for Financial Planning

Looking only at price change hides two things that matter: dividends, which can meaningfully boost returns even on a flat or falling stock, and fees, which quietly eat into profit on every trade — especially smaller or frequent ones. Annualizing your return also matters for planning, since it lets you compare a 6-month trade against a 5-year holding, or against other goals like a target retirement growth rate, on the same footing. Getting this comparison right helps you judge which holdings, or which strategies, are actually working.

Common Scenarios

  • Reviewing a closed trade to see the true return after dividends and brokerage fees
  • Checking an unrealized gain on a stock you still hold by entering today's price as the sell price
  • Comparing a short-term trade against a multi-year holding using annualized return rather than total return
  • Separating capital gain from dividend income to understand what's really driving a stock's performance — see the Dividend Yield Calculator for income-focused analysis
  • Sanity-checking a broker or portfolio app's reported return figure with an independent calculation
  • Comparing a stock trade's annualized return against a target growth rate from the Present Value Calculator or a project's IRR Calculator result

Tips for Accurate Results

  • Include all dividends received during the holding period, not just the most recent payment, for an accurate total return figure
  • Enter combined buy + sell commissions in the Fees field — the calculator nets them against your invested amount automatically
  • Use annualized return, not total return, when comparing this trade against another investment held for a different length of time
  • Enter holding period as a decimal (e.g., 1.5 for 18 months) for a more precise annualized figure
  • Remember this is a pre-tax calculation — actual take-home profit will be lower after capital gains tax, which depends on your jurisdiction and how long you held the position
Formula

How Stock Return Is Calculated

Combining price change, dividends, and fees into one clear return figure

Invested & Proceeds
Total Invested = (Shares × Buy Price) + Fees
Total Proceeds = (Shares × Sell Price) + Dividends

Gain & Return
Capital Gain = Shares × (Sell Price − Buy Price)
Net Profit = Total Proceeds − Total Invested = Capital Gain + Dividends − Fees
Total Return % = (Net Profit ÷ Total Invested) × 100
Annualized Return % = [(Total Proceeds ÷ Total Invested)(1 ÷ Holding Years) − 1] × 100

Where: Shares = number of shares traded, Buy/Sell Price = price per share, Dividends = total dividend income received, Fees = combined buy + sell brokerage/commissions, Holding Years = time position was held (decimals allowed)
💰

Capital Gain vs Dividends

Capital gain comes purely from the price change; dividends are separate cash income paid out while you held the shares. Total return combines both, which is why it's usually a fuller picture than price change alone.

📅

Why Annualize

A 40% total return means very different things over 6 months versus 5 years. Annualizing converts total return into a steady yearly rate, letting you compare trades of any length fairly.

💡

Watch Out For

  • Fees quietly reduce net profit on every trade, especially small ones
  • This calculator is pre-tax — capital gains tax will reduce your actual return
  • Short holding periods can produce misleadingly large annualized figures

⚙️ Why This Formula Works

Total return is a simple ratio: everything you got back (sale proceeds plus dividends) minus everything you put in (purchase cost plus fees), divided by what you put in. Annualized return applies the same logic used to reverse a compound-growth calculation — if total proceeds grew from total invested over some number of years, the annualized rate is the constant yearly growth rate that would produce the same ending ratio, found by taking the (1 ÷ years) root of the proceeds-to-invested ratio.

🎯 When to Use This Calculator

  • Reviewing the return on a single closed stock trade
  • Checking an unrealized gain on a position you still hold
  • Comparing trades of different holding periods on equal footing via annualized return
  • Separating capital gain from dividend contribution to total return

📋 Assumptions

  • All figures are pre-tax — no capital gains tax is deducted
  • Fees are combined into a single figure added to the invested side
  • Dividends are treated as received in cash, not automatically reinvested
  • The holding period is a single continuous span, not multiple separate purchase lots

⚠️ Limitations of the Formula

  • Does not account for capital gains tax, which varies by jurisdiction and holding period
  • Cannot model multiple purchase lots bought at different times and prices (dollar-cost averaging)
  • Does not model dividend reinvestment compounding — dividends are treated as a lump cash total
  • Short holding periods can produce annualized figures that look extreme when projected over a full year
Walkthrough

Step-by-Step: How to Use the Stock Return Calculator

From trade details to total and annualized return in seconds

Enter the number of shares

Input the total number of shares you bought and later sold (or are evaluating as if sold today, for an unrealized position).

Enter your buy and sell price per share

Input the price you paid per share and the price you sold (or could sell) per share. These drive the capital gain calculation directly.

Add dividends received and fees paid

Enter total dividend income collected while holding the shares, and the combined buy + sell brokerage or commission fees — both are optional but improve accuracy.

Enter the holding period in years

Use a decimal like 1.5 for 18 months or 0.5 for six months — this drives the annualized return calculation.

Click Calculate and review your results

See net profit, total return %, annualized return %, and a full breakdown of invested, proceeds, capital gain, dividends, and fees, plus charts comparing return components.

Example

Worked Example

A realistic stock trade calculation, step by step

Scenario

Suppose you bought 100 shares of illustrative Stock XYZ at $50 per share, later sold them at $68 per share, collected $150 in dividends along the way, and paid $20 total in brokerage fees, over a 2-year holding period.

Shares100
Buy Price$50.00
Sell Price$68.00
Dividends$150.00
Fees$20.00
Holding Period2 years
Step 1 — Total invested and proceeds: Total Invested = (100 × $50) + $20 = $5,020. Total Proceeds = (100 × $68) + $150 = $6,950.
Step 2 — Capital gain and net profit: Capital Gain = 100 × ($68 − $50) = $1,800. Net Profit = $6,950 − $5,020 = $1,930.
Step 3 — Total return: Total Return % = ($1,930 ÷ $5,020) × 100 ≈ 38.45%.
Step 4 — Annualized return: Annualized Return % = [($6,950 ÷ $5,020)(1/2) − 1] × 100 ≈ 17.66% per year.
Net Profit
$1,930.00
Total Return
+38.45%
Annualized Return
+17.66%

Explanation: Of the $1,930 net profit, $1,800 came from capital gain (the price moving from $50 to $68) and $150 came from dividends, with $20 in fees trimmed off the top. The 38.45% total return looks large, but it was earned over 2 years — annualizing brings it down to a more comparable 17.66% per year, which is the figure you'd want to use when comparing this trade against a different investment or a different holding period.

Interpretation

Understanding Your Results

What your annualized return actually tells you

Annualized return is the most useful single number for judging a trade, because it puts any holding period on the same yearly footing. There's no official pass/fail threshold, but the general reference ranges below are a reasonable starting point for a rough read.

Annualized ReturnGeneral ReadTypical Context
Below 0%Loss after all costsPrice decline outweighed dividends and fees
0% – 8%Modest returnBelow typical long-term diversified equity expectations
Above 8%Solid to strong returnIn line with, or above, typical long-term equity expectations

Reading total return: total return tells you the overall outcome of the trade but says nothing about how long it took to get there — a 20% total return is excellent over 6 months and mediocre over 10 years. Always pair it with the annualized figure before drawing conclusions.

Reading the capital gain vs. dividend split: a return driven mostly by dividends tends to be steadier and less dependent on the exact timing of your sale; a return driven mostly by price appreciation is more sensitive to when exactly you bought and sold.

Risk considerations: this calculator reports what already happened (or an unrealized snapshot), not a forecast. It doesn't measure volatility, downside risk, or the likelihood of repeating this return in the future.

ℹ️

Stock market returns are inherently uncertain, and past performance is not indicative of future results. This tool provides mathematical estimates based on figures you enter, for educational purposes only, and does not constitute investment advice. Consult a licensed financial advisor before making investment decisions.

Use Cases

Practical Use Cases for the Stock Return Calculator

Where this stock return calculator earns its keep

📈

Post-trade review

Check the real return on a stock you already sold, including dividends and fees.

👀

Unrealized gain check-in

Enter today's price as the sell price to see your return on a position you still hold.

⚖️

Comparing trades fairly

Use annualized return to compare a short-term trade against a multi-year holding.

💸

Dividend contribution check

See exactly how much of your total return came from dividends versus price change.

🧾

Broker figure verification

Cross-check a broker or portfolio app's reported return with an independent calculation.

🎯

Benchmark comparison

Compare a trade's annualized return against a personal target growth rate.

💼

Portfolio review

Run each holding through the calculator individually to see which positions are actually performing.

🧮

Fee-impact analysis

See how much brokerage fees are quietly reducing your net profit on smaller trades.

📊

Investment education

Learn how capital gain, dividends, and fees combine into a single return figure.

🕰️

Historical trade analysis

Revisit an old trade from your records to see what it actually returned once fully accounted for.

Pros & Cons

Advantages and Limitations

What this stock return calculator does well, and where it can't replace professional advice

✅ Advantages

  • Combines capital gain, dividends, and fees into one clear return figure
  • Reports both total return and annualized return for fair comparisons
  • Free, instant, and requires no signup or personal information
  • Runs entirely in your browser — your trade data is never sent to a server
  • Works for both closed trades and unrealized (still-held) positions
  • Separates capital gain from dividend contribution visually with charts
  • Accepts decimal holding periods for precise annualized results
  • Downloadable plain-text summary of your results
  • Simple enough for a quick check, detailed enough for real analysis
  • Mobile-friendly and fast-loading
  • No ads blocking the calculator itself

⚠️ Limitations

  • Does not account for capital gains tax, which varies by jurisdiction and holding period
  • Cannot model multiple purchase lots bought at different times (dollar-cost averaging)
  • Does not model dividend reinvestment compounding
  • Reports historical or hypothetical figures — not a forecast of future returns
  • Doesn't measure volatility, drawdown, or risk-adjusted performance
  • Assumes a single continuous holding period, not partial sells over time
  • Not a substitute for a broker's official tax-lot accounting
  • Not a substitute for licensed financial or tax advice
Reference

Return Metrics Compared

How stock return relates to other growth measures on NeftCal

MetricTotal ReturnAnnualized ReturnCAGR
What it measuresOverall gain/loss, whole periodEquivalent steady yearly rateSteady yearly growth rate, any metric
Best forSingle-trade summaryComparing trades of different lengthsComparing investments/portfolios over years
Includes dividends/feesYes (on this calculator)Yes (on this calculator)Depends on inputs used
Where to calculateThis calculatorThis calculatorCAGR Calculator

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Comparing total return across trades with very different holding periods instead of annualizing first
  • Forgetting to include dividends, understating the true return on income-paying stocks
  • Ignoring brokerage fees, especially on frequent smaller trades where they add up
  • Treating this pre-tax figure as your actual take-home profit
  • Using an inaccurate holding period (whole years only) when the position was open partway through a year

💡 Expert Tips & Best Practices

  • Always check annualized return before comparing two trades of different lengths
  • Enter the holding period as a precise decimal for a more accurate annualized figure
  • Track fees separately from your mental math — they're easy to underestimate
  • Re-run the calculation with today's price periodically to monitor an open position's unrealized return
  • Pair this tool with the Dividend Yield Calculator to understand income versus price-driven performance
FAQ

Frequently Asked Questions

Common questions about stock returns

What is a stock return calculator?
A stock return calculator works out the real return on a stock trade — combining price change (capital gain), dividend income, and fees — expressed as both a total return percentage and an annualized rate. It's a quick way to see exactly how a trade performed, or to compare two trades held for different lengths of time on equal footing.
What's the difference between total return and annualized return?
Total return is the overall percentage gain or loss over the entire holding period, regardless of how long you held the stock. Annualized return converts that into an equivalent steady yearly rate, which makes it possible to fairly compare a stock held for 6 months against one held for 5 years.
Why annualize a stock return?
Without annualizing, a 40% total return over 5 years looks the same as a 40% return over 6 months, even though the second is a dramatically better rate of growth. Annualizing puts different holding periods on equal footing so you can compare performance across trades and against benchmarks like index fund returns fairly.
Does this calculator account for taxes?
No. Capital gains tax treatment varies significantly by country, holding period (short-term versus long-term), and individual tax bracket, so this calculator reports pre-tax figures only. Check your local tax rules or a tax professional to estimate the after-tax return on a real trade.
How do dividends affect total return?
Dividends add directly to your total return alongside capital gains — a stock with a falling price can still post a positive total return if dividend income outweighs the price decline, which is why "total return" investing looks at price change plus dividends together, rather than price movement alone. See the Dividend Yield Calculator to explore dividend income separately.
Does holding period length matter beyond taxes?
Yes. Short-term holdings are more exposed to price volatility and trading costs relative to the size of the move, while long-term holdings give compounding and dividend reinvestment more time to work — which is part of why annualized return, not just total return, is the more meaningful number for comparing trades of different lengths.
How are fees and brokerage commissions handled?
Enter your combined buy-side and sell-side commissions or brokerage fees in the Fees field. NeftCal adds this amount to your total invested cost, so it's automatically subtracted from your net profit and reflected in both total and annualized return.
What is the formula for stock total return?
Total Return % = (Net Profit ÷ Total Invested) × 100, where Net Profit = Total Proceeds − Total Invested, Total Proceeds = (Shares × Sell Price) + Dividends, and Total Invested = (Shares × Buy Price) + Fees.
What is the formula for annualized stock return?
Annualized Return % = [(Total Proceeds ÷ Total Invested)^(1 ÷ Holding Years) − 1] × 100. This is the same compounding logic used in a CAGR calculation, converting a multi-year (or partial-year) total return into an equivalent steady annual rate.
What counts as a good annualized stock return?
There's no universal answer — it depends on the risk you took and what you're comparing against. As a general reference point, many long-term diversified equity investors target annualized returns in the mid-to-high single digits to low double digits over full market cycles; a single stock trade can reasonably fall well outside that range in either direction.
Can this calculator show a loss instead of a gain?
Yes. If your sell price plus dividends is less than what you invested (including fees), net profit, total return, and annualized return will all show as negative, reflecting a loss on the trade.
How is capital gain different from net profit?
Capital gain is purely the price-driven portion: Shares × (Sell Price − Buy Price). Net profit is the full picture — capital gain plus dividends received, minus fees paid — which is what total return and annualized return are actually based on.
Is this stock return calculator free to use, and is my data safe?
Yes, it's completely free with no signup. All calculations run locally in your browser using JavaScript — the trade details you enter are never transmitted to or stored on a server.
Can I use this for a stock I still own (haven't sold yet)?
Yes. Enter the current market price as the Sell Price to see your unrealized total and annualized return as if you sold today — a useful way to check in on an open position without actually closing it.
How is this different from the Dividend Yield Calculator?
The Dividend Yield Calculator focuses specifically on income — dividends as a percentage of share price or purchase cost. This Stock Return Calculator looks at the whole trade, combining price change, dividends, and fees into one total and annualized return figure.
Can I download or export my stock return results?
Yes, click Download Result after calculating to save a plain-text summary of your trade inputs and results for your own records.
Learn More

Authoritative Resources on Stock Investing

Official guidance to complement this calculator — not a substitute for licensed financial advice

Related Calculators

Other investment and growth tools