๐Ÿ‡บ๐Ÿ‡ธ USC
Investing & Retirement
๐Ÿ“ˆ

Stock Return Calculator

Total gain, total return % and annualized return, dividends included

โœ…

Last updated October 2026

Method: Total return uses (sale proceeds + dividends โˆ’ cost basis) รท cost basis. Annualized return uses the compound-growth formula (ending value รท cost basis)1/years โˆ’ 1, the same approach as a CAGR.

Included: Capital gain or loss on the share price, dividend income, optional fees entered separately for the buy and sell side, total gain in dollars, total return %, and annualized return.

Not included: Income tax and capital-gains tax, reinvested dividends, inflation, currency effects, and purchases made at multiple prices. Results are pre-tax estimates, not investment advice.

๐Ÿ“ˆ Trade details

years
$
$
$
Commissions & fees (optional)
$
$

Buy-side fees are added to your cost basis; sell-side fees are subtracted from the sale proceeds. Check your broker's fee schedule or trade confirmations.

๐ŸŽฏ Total return

+65.00%
+$3,250.00 net gain
Total gain / loss
+$3,250.00
Annualized return
+18.17%

Annualized return spreads your 65.00% total return across 3 years of holding, so you can compare it against a savings rate or an index fund.

๐Ÿงพ Breakdown

Cost basis (100 ร— $50.00)$5,000.00
Sale proceeds (100 ร— $80.00)$8,000.00
Capital gain / loss (price only)+$3,000.00
Dividend income$250.00
Total received (proceeds + dividends)$8,250.00
Net profit+$3,250.00

๐Ÿ“Š Where the return came from

SourceAmount% of cost basis
Price appreciation+$3,000.0060.00%
Dividends+$250.005.00%
Total return+$3,250.0065.00%
Estimate only, not investment advice or a guarantee of future results. Past performance does not predict future returns. Total return uses (sale proceeds + dividends โˆ’ cost) รท cost; annualized return uses (ending value รท cost basis)1/years โˆ’ 1. Taxes are not included.

Stock return calculator: total and annualized return explained

A stock return calculator finds your total gain and annualized return from the shares you bought, your buy and sell price, dividends received, and any fees. Buy 100 shares at $50 ($5,000), collect $250 in dividends, and sell at $80 ($8,000): your total return is 65% over three years, about 18.2% per year annualized. The tool separates the price gain from dividends so you see where the return came from. These are the calculator's default inputs, and the same stock calculator works for ETFs, mutual funds and other assets you buy and sell.

This page measures a stock you have already bought and sold. To plan future retirement saving instead, use the 401(k) Calculator for employer-match contributions, the Roth IRA Calculator for tax-free growth, the Traditional IRA Calculator for tax-deferred contributions, or the Retirement Calculator to check whether your nest egg lasts.

The formulas behind the calculator

Two numbers do most of the work. Total return compares everything you received against everything you put in:

Total return % = (Sale proceeds + Dividends โˆ’ Cost) ÷ Cost × 100

Annualized return then converts that whole-period gain into a per-year rate, so investments held for different lengths of time can be compared fairly:

Annualized % = ((Ending value ÷ Cost)1 ÷ years − 1) × 100

Here Cost is shares ร— buy price (plus buying fees), Sale proceeds is shares ร— sell price (minus selling fees), and Ending value is sale proceeds plus dividends. The exponent 1 รท years is what turns a multi-year gain into a smooth yearly rate, the same math used for a compound annual growth rate (CAGR).

How to use this calculator

You only need a few figures from your brokerage statement or trade confirmations:

  1. Number of shares: how many shares (or units) you bought and later sold.
  2. Holding period: how long you held them, in years. Use decimals for partial years, for example 0.5 for six months or 1.5 for eighteen months. Leave it at 0 if you only want the total return.
  3. Buy price per share: your purchase price. If you bought in several lots, use your average cost per share.
  4. Sell price per share: the price you sold at (or the current price, if you want an unrealized estimate).
  5. Total dividends received: the sum of all cash dividends over the whole period. Leave it at zero for non-dividend stocks.
  6. Commissions & fees (optional): the fees you paid when buying and when selling, from your trade confirmations. Leave them at $0 if your broker charged nothing.

The result updates as you type. Read the headline total return %, then check the breakdown to see your net profit in dollars, the split between price appreciation and dividends, and your annualized return.

Who this calculator is for

Anyone who wants to measure how an individual holding actually performed:

  • Long-term investors reviewing a position they have held for years and want a clean per-year number.
  • Dividend investors who need to fold income into the return, not just the share-price change.
  • New investors learning the difference between a price gain and a true total return.
  • Anyone comparing a stock pick against a benchmark such as a low-cost index fund or a savings rate.
  • ETF and fund holders who treat distributions like dividends and units like shares.

Key terms, defined

  • Cost basis: what you paid in total: shares ร— buy price, plus any buying fees. This is the denominator for your return.
  • Capital gain (or loss): the price-only profit, shares ร— (sell price โˆ’ buy price). It ignores dividends.
  • Dividend: cash a company pays shareholders out of profits. It adds to your return on top of any price change.
  • Total return: capital gain plus dividends, net of fees, as a percentage of your cost basis; it is the most complete single measure.
  • Annualized return (CAGR): the steady yearly rate that would turn your cost basis into your ending value over the holding period.
  • Realized vs. unrealized: a return is realized once you sell; until then it is unrealized (on paper) and can still change.

Worked example: a dividend stock held five years

You buy 200 shares at $30 ($6,000 cost), receive $1,200 in dividends over five years, and sell at $42 ($8,400 proceeds). Your capital gain is $2,400 and dividend income is $1,200, for a net profit of $3,600. Total return is $3,600 รท $6,000 = 60%, which annualizes to roughly 9.9% per year. Notice that dividends supplied a third of the total profit; leaving them out would understate the return badly.

Worked example: a loss softened by dividends

You buy 50 shares at $100 ($5,000 cost) and the price slips to $92 ($4,600 proceeds) after two years, but you collected $600 in dividends. The capital loss is $400, yet the $600 of income flips the overall result positive: net profit is $200, a 4% total return, or about 2% per year. This is exactly why price change alone can mislead; the calculator shows the full picture.

Worked example: a short hold

You buy 10 shares at $200 ($2,000) and sell six months later at $230 ($2,300) with no dividends. Total return is a tidy 15%, but because you only held for half a year, the annualized return is about 32%, because the per-year math scales the half-year gain up. Annualizing very short holds can produce dramatic-looking rates, so treat them with caution.

Stock return by sell price: a worked scenario matrix

This table holds the inputs fixed (100 shares bought at $50, a $5,000 cost basis, $200 in dividends, no fees) and varies only the sell price, so you can read your total gain, total return, and annualized return straight off the row that matches your exit. The last two columns show how the same total return annualizes differently over a 3-year versus a 5-year hold.

Sell price Proceeds Capital gain Total gain Total return Annualized (3 yr) Annualized (5 yr)
$40$4,000โˆ’$1,000โˆ’$800โˆ’16.0%โˆ’5.6%โˆ’3.4%
$50$5,000$0$2004.0%1.3%0.8%
$60$6,000$1,000$1,20024.0%7.4%4.4%
$70$7,000$2,000$2,20044.0%12.9%7.6%
$80$8,000$3,000$3,20064.0%17.9%10.4%
$100$10,000$5,000$5,200104.0%26.8%15.3%

Total return = (proceeds + $200 dividends โˆ’ $5,000 cost) รท $5,000. Annualized = (ending value รท cost)^(1 รท years) โˆ’ 1.

Total return vs. price return vs. dividend yield

Three numbers get loosely called "return," and confusing them is an easy mistake to make. Price return is the change in share price alone, ignoring any income; it is what most price charts show. Total return adds the dividends you actually received on top of the price change, which is the figure this calculator reports and the one that reflects your real profit. Dividend yield is a separate, forward-looking ratio (annual dividends per share divided by the current price) that tells you the income rate but says nothing about price movement; the Dividend Yield Calculator computes it, and to project income from a yield, the Dividend Calculator is the right tool. A dividend-heavy utility stock might show a flat price return yet a healthy total return, while a fast-growing technology stock might post a large price return with almost no dividend contribution. When you compare two holdings, make sure you are comparing the same measure: stacking one stock's price return against another's total return is apples to oranges and usually flatters whichever happened to pay the larger dividends.

Annualized return vs. average return

It is tempting to add up each year's percentage gain and divide by the number of years, but that simple average overstates what you actually earned. Because percentages compound, a stock that drops 50% and then rises 50% has an "average" of 0% yet is down 25%; the annualized (geometric) return correctly reports the loss. This calculator always uses the compound, geometric method, which is why its annualized figure can sit below a naive average of yearly returns, especially for volatile holdings. For long-term planning where you contribute regularly rather than buying once, the same compounding math drives the Compound Interest Calculator and the Investment Calculator. The lesson: trust the geometric annualized return, not the arithmetic average, whenever you are judging real performance over multiple years.

Total return to annualized return conversion chart

Have a total return but need the per-year (annualized) rate? Find your total return in the left column and read across to your holding period. A 100% total return, for instance, is a spectacular 100% in one year but only about 7.2% per year when it took ten years to get there.

Total return 1 year 2 years 3 years 5 years 10 years 20 years
10%10.0%4.9%3.2%1.9%1.0%0.5%
25%25.0%11.8%7.7%4.6%2.3%1.1%
50%50.0%22.5%14.5%8.4%4.1%2.0%
60%60.0%26.5%17.0%9.9%4.8%2.4%
100%100.0%41.4%26.0%14.9%7.2%3.5%
150%150.0%58.1%35.7%20.1%9.6%4.7%
200%200.0%73.2%44.2%24.6%11.6%5.6%

Total real return: nominal vs. after-inflation return

The "real" return strips out inflation to show your true gain in purchasing power, using real = (1 + nominal) รท (1 + inflation) โˆ’ 1. This table converts a nominal annualized return into its real equivalent at a few inflation rates, assuming the stated inflation holds every year. At 3% inflation, a 10% nominal return is worth about 6.8% real.

Nominal annualized 2% inflation 3% inflation 4% inflation
4%2.0%1.0%0.0%
6%3.9%2.9%1.9%
8%5.9%4.9%3.8%
10%7.8%6.8%5.8%
12%9.8%8.7%7.7%

Factors that change your result

  • Holding period: the same dollar gain annualizes to a far higher rate over a short hold than a long one.
  • Dividends: for income stocks and funds, distributions can be a large slice of total return.
  • Buy price: your entry point sets the cost basis; a lower buy price raises every return figure.
  • Commissions and fees: they hit you twice (buy and sell) and erode small or frequent trades the most.
  • Reinvestment: this tool treats dividends as cash received; reinvesting them would compound and raise the true return.

Tips for measuring returns well

  • Always use total return when a stock pays dividends; price change alone undercounts your gain.
  • Compare against a benchmark. An annualized return only means something next to an index fund or savings rate over the same period.
  • Adjust for inflation for long holds. A 7% annualized return during a period of 3% inflation is closer to 4% in real purchasing power.
  • Use your average cost if you bought in lots, so the buy price reflects what you actually paid.
  • Remember taxes. The figure here is pre-tax; your after-tax return depends on holding period and account type. The Capital Gains Tax Calculator can estimate what a sale would cost you.

How a stock gain is taxed in 2026

The return above is before tax. In a taxable brokerage account, the IRS treats a sale of shares you held more than one year as a long-term capital gain and taxes it at 0%, 15% or 20%. For 2026 the 0% rate applies to taxable income up to $49,450 for single filers, $98,900 for married couples filing jointly and $66,200 for heads of household; the 20% rate starts above $545,500, $613,700 and $579,600 (IRS Rev. Proc. 2025-32). Shares held one year or less produce a short-term gain, taxed as ordinary income. A 3.8% net investment income tax can apply on top once modified AGI exceeds $200,000 ($250,000 joint). Qualified dividends use the same 0%, 15% and 20% rates. If you sell at a loss, up to $3,000 of net capital losses a year ($1,500 married filing separately) can offset other income, and the rest carries forward. The Capital Gains Tax Calculator estimates the tax on a specific sale.

Limitations and assumptions

This is a planning estimate, not a brokerage statement. Keep these assumptions in mind:

  • It assumes a single buy price and single sell price; it does not model multiple purchase lots or partial sales.
  • Dividends are treated as cash received, not reinvested, so it understates returns if you reinvested distributions.
  • It is pre-tax and ignores capital-gains tax, dividend tax, and the wash-sale rule.
  • It does not adjust for inflation or currency conversion.
  • Annualized return for very short or very long holds can look extreme; read it alongside the total return, not in isolation.

How it compares to related calculators

This page answers "how did this stock actually do?" If your question is different, a sister tool fits better:

Sources

โš ๏ธ Common mistakes & edge cases

Counting only the price change

Reporting just (sell โˆ’ buy) ignores dividends and undercounts your real return. For dividend stocks the income can be a third of the total gain, so always use total return, not the price move alone.

Confusing total return with annualized return

A 60% total return over five years is not 60% per year; it is about 9.9% annualized. Mixing the two makes a long, mediocre hold look like a home run. Compare per-year rates when periods differ.

Annualizing a very short hold

A 15% gain in six months annualizes to about 32%, which sounds spectacular but rests on the assumption that pace continues all year. For holds under a year, lean on the total return figure.

Forgetting taxes and fees

This calculator is pre-tax. Capital gains and dividends can be taxed at meaningfully different rates depending on holding period and account, and commissions hit on both buy and sell, so your take-home return is lower than the headline.

Note: This calculator gives an estimate, not investment advice. Past performance does not guarantee future results, and your actual return depends on taxes, fees and timing.

❓ Frequently asked questions

How is total stock return calculated?

Total return measures everything you got back versus what you put in: (sale proceeds + dividends received โˆ’ total cost) รท total cost ร— 100. Sale proceeds are your shares times the sell price minus any selling fees, and total cost is your shares times the buy price plus any buying fees. Unlike a simple price change, it includes dividend income, so it reflects your real profit.

What is annualized return and how is it different from total return?

Total return is the whole gain over your entire holding period; it does not care whether that took one year or ten. Annualized return converts it to a per-year rate using (ending value รท cost basis)^(1/years) โˆ’ 1, so a 60% gain over three years (about 17% per year) can be compared fairly with a 25% gain over one year. Use annualized return to compare investments held for different lengths of time.

Should dividends be included in stock return?

Yes, if you want total return. Dividends are real cash you received from owning the shares, and for income stocks they can be a large part of the profit; in the five-year worked example below they supply a third of it. This calculator adds the dividends you received to your sale proceeds, so the percentage reflects price growth plus income, not just the change in share price.

Does this calculator include taxes?

No. It shows your pre-tax return. In a taxable account, a gain on shares held more than one year is a long-term capital gain, taxed at 0%, 15% or 20%; for 2026 the 0% rate covers taxable income up to $49,450 for single filers and $98,900 for joint filers, and 20% starts above $545,500 and $613,700 (IRS Rev. Proc. 2025-32). Shares held one year or less are taxed as ordinary income. A 3.8% net investment income tax can apply on top above $200,000 of modified AGI ($250,000 joint). A Roth IRA generally owes none of this. Treat the result as a gross figure and apply your own tax situation.

What is the difference between capital gain and total return?

Capital gain is only the price change: shares ร— (sell price โˆ’ buy price). Total return adds dividend income and subtracts commissions, then divides by your cost basis. A stock can have a small capital gain but a strong total return if it pays generous dividends, which is why the breakdown table separates the two.

How do commissions affect my return?

Commissions raise your cost on the way in and reduce your proceeds on the way out, so they lower your net return on both ends. Many online brokers advertise $0 commissions on stock trades, but options, broker-assisted trades and some funds can still carry fees, so check your trade confirmations. Enter the buying and selling fees separately: the calculator adds buy-side fees to your cost basis and subtracts sell-side fees from the proceeds.

What counts as a good annualized stock return?

There is no guaranteed or official number, and a single stock can do far better or far worse than the market. Judge your annualized return against what a simple alternative earned over the same dates: a low-cost index fund's published annualized return, or the Treasury or CD rate you could have locked in when you bought. Also compare it with inflation; the BLS consumer price index rose 3.4% over the 12 months to August 2026, and a return below inflation lost purchasing power.

Can I use this calculator for ETFs, mutual funds, or crypto?

Yes. The math works for any asset you buy at one price and sell at another, as long as you treat 'shares' as units and 'dividends' as any distributions received. For funds, use distributions in place of dividends. For assets that pay nothing, just leave dividends at zero and you get a pure price-based total and annualized return.

What if I sold for less than I paid?

Enter a sell price below your buy price and the calculator shows a negative total gain and a negative return percentage. If dividends received are large enough, your overall total return can still be positive even when the share price fell, because income offsets some of the price loss. The breakdown table shows exactly how price and dividends combined.

Does this account for buying shares at different times?

No. This calculator assumes a single purchase price and a single sale price, which fits a lump-sum buy-and-sell. If you bought in several lots at different prices (dollar-cost averaging), use your average cost per share as the buy price, or use a money-weighted return tool for a precise figure across many transactions.

How do I convert a total return into an annualized return?

Raise (1 + total return) to the power of (1 รท years), then subtract 1. For example, a 60% total return over five years is (1.60)^(1/5) โˆ’ 1 โ‰ˆ 9.9% per year. A 100% total return is 100% if earned in one year but only about 7.2% per year if it took ten years. The conversion chart on this page lists common total returns against holding periods of 1 to 20 years.

What is the total real return and how do I calculate it?

Total real return is your gain after inflation, measured in purchasing power rather than dollars. Compute it as (1 + nominal return) รท (1 + inflation rate) โˆ’ 1. For example, a 10% nominal annualized return during 3% inflation is about (1.10 รท 1.03) โˆ’ 1 โ‰ˆ 6.8% real. A rough subtraction (10% โˆ’ 3% = 7%) is close but slightly overstates it. Real return is the figure that reflects how much your money actually grew in buying power.

๐Ÿ’ก Good to know

Dividends are part of the return

Dividends are cash the shares paid you. In the five-year example above they supplied a third of the profit; leaving them out of your math can make a perfectly good holding look like a dud.

Annualized return is the fair way to compare

Total return ignores time. A stock up 40% in two years and one up 40% in four years have the same total return but very different annualized returns. Use the per-year figure when you compare holdings or benchmarks.

Compare against an index fund

A number means little on its own. Stack your annualized return against a low-cost broad-market index fund over the same period to see whether picking a single stock actually rewarded the extra risk.

Related Calculators