Stock Return Calculator
Total gain, total return % and annualized return - with dividends
๐ Trade details
Commissions & fees (optional)
Added to your cost on the buy side and subtracted from proceeds on the sell side. Most brokers are now $0 for stock trades.
Last updated June 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 commissions on both 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.
Stock return calculator: total and annualized return explained
Suppose you bought 100 shares at $50 ($5,000 invested), collected $250 in dividends, and sold three years later at $80 for $8,000. Your net profit is $3,250, a total return of 65%, which works out to about 18.2% per year on an annualized basis. The price change alone (the "capital gain") was $3,000; the remaining $250 came from dividends. This stock return calculator separates those pieces so you see not just whether you made money, but where the return actually came from and how strong it was per year. If you would rather isolate the pure per-year growth rate between a single starting and ending value, the CAGR Calculator does exactly that.
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 commissions), Sale proceeds is shares ร sell price (minus commissions), 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:
- Number of shares: how many shares (or units) you bought and later sold.
- 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.
- Buy price per share: your purchase price. If you bought in several lots, use your average cost per share.
- Sell price per share: the price you sold at (or the current price, if you want an unrealized estimate).
- Total dividends received: the sum of all cash dividends over the whole period. Leave it at zero for non-dividend stocks.
- Commissions & fees (optional): any trading fees. Most U.S. brokers are now $0 for online stock trades, but enter fees if you paid them.
Press Calculate return and 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 commissions. 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 - 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% - the per-year math scales the half-year gain up. Annualizing very short holds can produce dramatic-looking rates, so treat them with caution.
Total return vs. price return vs. dividend yield
Three numbers get loosely called "return," and confusing them is the single most common mistake investors make. Price return is the change in share price alone, ignoring any income - it is what most chart tools and headlines quote. 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; 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.
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.
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:
- To project growth from regular contributions over time, use the Investment Calculator.
- To see how a lump sum compounds at a fixed rate, use the Compound Interest Calculator.
- For a general profit-and-cost return on any project or purchase, use the ROI Calculator.
- For the pure per-year growth rate of any single starting and ending value, use the CAGR Calculator.
- To estimate income from a dividend-paying position, use the Dividend Calculator.
- To estimate the tax owed once you sell at a profit, use the Capital Gains Tax Calculator.
- To plan retirement saving with employer match, use the 401(k) Calculator; for tax-free growth in a retirement account, use the Roth IRA Calculator.
Sources
- U.S. Securities and Exchange Commission (Investor.gov) - Stocks: how they work and how returns are earned.
- U.S. Securities and Exchange Commission (Investor.gov) - Dividend (definition).
- Internal Revenue Service (IRS) - Topic No. 409, Capital Gains and Losses.
โ ๏ธ 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 - 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 - your take-home return is lower than the headline.
❓ 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, and total cost is your shares times the buy price plus any commissions. 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 over long periods they can make up a large share of an investment's total return. 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. Capital gains and qualified dividends are taxed at different rates depending on how long you held the shares and your income, and rules vary by account type (a taxable brokerage account is taxed, while a Roth IRA generally is not). Treat the result as a gross figure and apply your own tax situation to estimate the after-tax amount.
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. Most major U.S. brokers now charge $0 commission on online stock trades, but options contracts, broker-assisted trades, and some funds still carry fees. Enter your total fees and the calculator folds them into the cost basis and proceeds.
What counts as a good annualized stock return?
There is no guaranteed number, but a common long-run benchmark is the broad U.S. stock market's historical average of roughly 7% per year after inflation (around 10% before inflation) over many decades. A single stock can do far better or far worse. Compare your annualized return against a low-cost index fund to judge whether the extra risk of picking one stock paid off.
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.
๐ก Good to know
Dividends are part of the return
Over long periods, reinvested dividends have historically supplied a large share of the stock market's total return. 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 S&P 500 index fund over the same period to see whether picking a single stock actually rewarded the extra risk.
Related Calculators
Retirement Calculator
Find out if you are on track to retire comfortably
Investment Calculator
Calculate investment growth with contributions and returns
401(k) Calculator
Project your 401(k) balance at retirement with employer match
Roth IRA Calculator
Estimate tax-free growth of your Roth IRA at retirement
Compound Interest Calculator
See how your money grows with compound interest over time
ROI Calculator
Calculate return on investment and annualized ROI