Stock Position Return Calculator
Your brokerage app shows a percentage for each holding, but it rarely shows the whole story in dollars: what you put in, what the position is worth now, how much of the gain came from price and how much from dividends, and what the gain works out to per year. Rebuilding that from a statement takes five minutes of arithmetic most people never do, so the position gets judged by the price chart alone.
The Stock Position Return Calculator below does that arithmetic for a holding you still own. Enter the shares you hold, the price you paid per share, the current price per share, and the total dividends you have received: it returns your initial investment, the current value, the capital gain, the total return in dollars and percent, and the annualized return over your holding period. It works for any stock or ETF, because the math is position math, not fund math.
One honest note about the old name of this page. This calculator used to carry the SPY name, but the tool has never contained SPY prices, SPY dividend data, or any fund data at all, and this page is not affiliated with State Street or the SPDR funds. Every figure comes from you. If your holding happens to be SPY, the pointer section below covers what is genuinely specific to that fund, with sources.
Position math only: it does not account for commissions, fees, taxes, or dividend reinvestment timing. Not investment advice.
Quick Answer
Key takeaways
- Total return is capital gain plus dividends. Judging a holding by price alone understates it whenever the position pays out.
- Always pair a total return with its holding period: 25.50% over 3 years is 7.87% a year, and over 10 years the same total is only 2.30% a year.
- Enter dividends as one total dollar figure for all shares, the same total your statement reports, not a per-share amount.
- This tool prices a position at today's price. It does not need a sale, and it does not subtract fees or taxes.
- Quick Answer
- A position you still hold is a different question from a sale
- How the position math works
- Worked example: 100 shares from $400 to $500
- Total return is not a yearly rate
- If your holding is SPY: what is actually specific to that fund
- What competing calculators miss
- Where this calculator stops
- Frequently asked questions
- Add This Calculator to Your Website
A position you still hold is a different question from a sale
Most stock calculators on the web assume you have sold: they ask for a sell price, subtract commissions on both sides, and hand you a realized profit. That is the right math for a closed trade, and the wrong frame for the holding sitting in your account today.
This calculator values the position at the current price instead. Nothing is realized, no sell fee exists yet, and the result is the honest mark-to-market answer: what the holding is worth, what it has earned in dollars, and what that earning rate is per year. When the day comes to exit, the stock sell calculator reconstructs the full sale, with buy and sell fees, net proceeds, and profit per share. Use this page while you hold, that one when you sell.
How the position math works
The whole calculation is three lines: price change times shares gives the capital gain, dividends are added for the total return, and the total is divided by the amount you put in for the percentage.
Finance textbooks call the percentage the holding period return, and the annualized figure is that same return restated as a compound yearly rate. The two numbers answer different questions, so the result prints both. One handling note: if your broker reinvested your dividends, those reinvested dollars still count as dividends received here. They were paid to you and put back in; excluding them would understate the position, and counting both the reinvested amount and the extra shares it bought would double count.
Worked example: 100 shares from $400 to $500
Every figure below was produced by the calculator above with its pre-filled values: 100 shares, $400 purchase price, $500 current price, $200 of dividends, 3 years. Type them in and click Calculate to reproduce each row.
| Figure | Value |
|---|---|
| Initial investment (100 × $400) | $40,000.00 |
| Current value (100 × $500) | $50,000.00 |
| Capital gain | $10,000.00 |
| Dividends received | $200.00 |
| Total return | $10,200.00 (25.50%) |
| Annualized return over 3 years | 7.87% |
The same tool, run on the two situations investors actually meet, shows why the breakdown matters:
| Scenario | Inputs | Total return | Annualized |
|---|---|---|---|
| Price fell, no dividends | 50 shares, $120 to $90, 2 years | −$1,500.00 (−25.00%) | −13.40% |
| Price flat, dividends only | 200 shares, $250 to $250, $1,000 dividends, 5 years | $1,000.00 (2.00%) | 0.40% |
Read the second row carefully: a position can go nowhere on price for five years and still have paid you. A price chart calls that holding dead money; the total return line gives it its real, if modest, grade.
Total return is not a yearly rate
A total return without its holding period is half a fact. The same 25.50% is an excellent result earned in one year and a weak one stretched over ten, and the annualized line is what exposes the difference.
Each bar is the worked example's 25.50% total return annualized over a different holding period, computed by the tool itself. Compare holdings, funds, and savings rates on the annualized figure, because it is the only version that puts different time spans on one scale. If you need that rate solved in the other directions, for a target end value or a required starting amount, the CAGR return calculator runs the same identity backwards.
If your holding is SPY: what is actually specific to that fund
Nothing in the calculator changes for SPY, and that is the point of this section: the fund facts below are context for one holding, not inputs the tool uses. This page is not affiliated with State Street, and no SPY data is embedded in the calculator.
SPY is the SPDR S&P 500 ETF Trust from State Street, listed in January 1993 and benchmarked to the S&P 500 Index. Its gross expense ratio is 0.0945%, according to State Street's SPY fund page, and it distributes dividends quarterly. Two consequences follow for your position math. First, the expense ratio needs no field here: like every fund fee it is taken inside the fund before prices and distributions reach you, a mechanism the SEC explains in its investor bulletin on mutual fund and ETF fees. Second, the dividends field is where SPY's quarterly payouts belong, added up across your whole holding period.
What this page will not give you is SPY's historical return, because that is a different question with a data table behind it. If you want what the index itself returned over a past period, with dividends reinvested or not, the S&P 500 returns calculator works from the index's actual 2014 to 2024 figures. Your position will rarely match either index number exactly: you bought on your date, at your price, and your dividends were yours.
What competing calculators miss
We checked the widely used stock return and holding period tools before rewriting this page. The gaps repeat in the same three places.
No annualized rate. The closest per-share rival, TechBullion's stock return calculator, states outright that its result "is not an annualised return" and sends you to a second calculator for the yearly rate. Here the annualized figure is printed in the same result whenever you supply the holding period, because a total return on its own invites bad comparisons.
Dividends estimated instead of entered. Several tools ask for a dividend yield percentage and manufacture your income from it, which turns an assumption into a reported earning. This calculator takes the total dividends you actually received, the figure your statement already reports, and adds exactly that.
Aggregate values only. The standard holding period return tools, including the educational ones from Wall Street Prep and OnlyCalculators, want a beginning and ending dollar value, so you multiply shares by price on a scratch pad before you can start. The per-share position is the natural unit of a brokerage holding, and it is the unit this form takes.
Where this calculator stops
Four limits are worth knowing before you quote a result. Commissions and account fees are outside the math: with most brokers at zero commission the gap is small, but a fee-heavy account should subtract its costs from the total return. Taxes are outside it too: a gain measured here is pre-tax, and the IRS treats capital gains and dividend income under different rules, set out in Topic No. 409 on capital gains and losses and Publication 550 on investment income. Multiple purchases at different prices collapse into one average cost per share, which you supply. And dividends are counted as cash received, with no reinvestment growth modelled: a position on a dividend reinvestment plan will have quietly bought extra shares, which belong in your share count.
Neighbouring questions need neighbouring tools. If you want to know what a holding could grow into from here, with regular contributions added, that is a projection rather than a measurement: the ETF investment calculator projects growth with contributions, an expense ratio, and dividend yield. And remember that every return here is nominal: at 3% inflation a 7.87% annualized gain buys roughly 4.7% more each year, a conversion the Bureau of Labor Statistics documents with its CPI inflation calculator.
Frequently asked questions
Multiply the price change by your shares and add the dividends you received: that is your total return in dollars. Divide by what you paid (shares times purchase price) for the percentage. The calculator above runs exactly this, valuing the position at the current price, so nothing needs to be sold to measure it.
Capital gain is price movement only: (current price minus purchase price) times shares. Total return adds the dividends received on top. On the worked example the capital gain is $10,000 and the total return is $10,200, because $200 arrived as dividends.
Annualized return = (1 + total return divided by initial investment) raised to the power of 1 over years, minus 1. It converts a multi-year result into the steady yearly rate that would have produced it: 25.50% over 3 years is 7.87% per year.
Multiply the dividends per share by the number of shares you held when they were paid, then enter that total. This calculator takes one combined dollar figure for all dividends received, the same total your year-end statement reports.
Yes. The math is identical for any stock or ETF: shares, buy price, current price, dividends. This page is not affiliated with State Street or SPDR, and it holds no fund data; for SPY's own figures, including its 0.0945% gross expense ratio, use State Street's fund page.
Broker apps often show a money-weighted figure that reacts to when you added money, or a time-weighted figure that strips deposits out. This calculator measures one lot bought once: shares times buy price against shares times current price, plus dividends. Multiple purchases at different prices need your average cost per share in the purchase price field.
Broker fees and taxes are not included, so subtract any commissions yourself for an after-cost figure. A fund's expense ratio needs no separate entry: it is already deducted inside the fund's price and distributions, so your position math captures it automatically.
The calculator reports the loss plainly. 50 shares bought at $120 and now at $90 with no dividends gives a total return of minus $1,500 (minus 25.00%), and over 2 years that annualizes to minus 13.40%. A negative annualized figure is still the right comparison number against other holdings.
Add This Calculator to Your Website
References
- State Street Global Advisors, "SPY: SPDR S&P 500 ETF Trust" - the fund's own page: gross expense ratio 0.0945%, benchmark S&P 500 Index, inception January 22, 1993, quarterly distributions. State Street: SPY Fund Page. Accessed October 21, 2026.
- U.S. Securities and Exchange Commission, Investor.gov, "Mutual Fund and ETF Fees and Expenses: Investor Bulletin" - explains expense ratios and why fees and expenses reduce the value of an investor's returns, including costs paid out of fund assets. Investor.gov: Mutual Fund and ETF Fees and Expenses. Accessed October 21, 2026.
- U.S. Securities and Exchange Commission, Investor.gov, "Compound Interest Calculator" - the SEC's compounding tool, the reference frame for the annualized (compound) rate this calculator reports. Investor.gov: Compound Interest Calculator. Accessed October 21, 2026.
- FINRA, "Using the FINRA Fund Analyzer" - documents FINRA's tool for comparing the fees, expenses, and hypothetical performance of real mutual funds and ETFs. FINRA: Using the FINRA Fund Analyzer. Accessed October 21, 2026.
- Internal Revenue Service, "Topic No. 409, Capital Gains and Losses" - how capital gains and losses are taxed, supporting this page's taxes-excluded note. IRS: Topic No. 409, Capital Gains and Losses. Accessed October 21, 2026.
- Internal Revenue Service, "Publication 550, Investment Income and Expenses" - the IRS reference for dividend and investment income treatment. IRS: Publication 550, Investment Income and Expenses. Accessed October 21, 2026.
- U.S. Bureau of Labor Statistics, "CPI Inflation Calculator" - converts dollar amounts between years using CPI-U data, the official basis for the nominal-versus-real note in this article. BLS: CPI Inflation Calculator. Accessed October 21, 2026.
- Nasdaq, "How to Calculate the Annualized Holding Period Return" - the annualizing method worked through with a long-run stock example, matching the method this calculator applies. Nasdaq: How to Calculate the Annualized Holding Period Return. Accessed October 21, 2026.
