What is the Stock Return Calculator?
A stock return is the money you make from owning shares, and it comes from two places: the price rise and the dividends. Buy 100 shares at ₹500, sell at ₹750, and collect ₹10 a share a year in dividends for three years, and you have made ₹25,000 on the price and ₹3,000 in dividends — ₹28,000 in all on ₹50,000 invested. A calculator that counts only the price rise understates the return by the dividends, which is why this one counts both.
This calculator works from the prices you type in. Enter the number of shares, the buy price, the sell price, the dividend per share per year, and the holding period. It shows the final value including dividends, the amount invested, the total dividends, the total gain or loss, the overall return, and the CAGR — the annualised return that lets you compare a three-year shareholding with anything else.
This calculator gives you the answer in a second: the sale value, the amount invested, the total gain, the overall return, and the annualised return (CAGR) so you can compare holdings of different lengths. It does not fetch live prices — you enter the buy and sell prices yourself. Everything runs in your browser, so your numbers never leave your device.
How the Stock Return Calculator works
The formula is total gain = (sell price − buy price) × shares + total dividends, where total dividends = dividend per share per year × shares × years. The annualised return, or CAGR, is (final value ÷ invested)^(1 ÷ years) − 1. Dividends matter: in the default example they add ₹3,000 to a ₹25,000 capital gain, lifting the total return from 50% to 56%.
Here is the default on this page, step by step. Quantity 100 shares, buy price ₹500, sell price ₹750, dividend ₹10 a share a year, three years. The amount invested is 100 × 500 = ₹50,000. The capital gain is (750 − 500) × 100 = ₹25,000. The dividends are 10 × 100 × 3 = ₹3,000. The total gain is ₹28,000, the final value is ₹78,000, the total return is 56%, and the CAGR is about 16% a year.
Small changes in the inputs move the answer a lot, which is why it pays to test a range instead of trusting one number. Try the same plan at a lower rate and a higher rate, and with five more years, before you decide anything. A ROI calculator or a CAGR calculator can help you compare the same money in a different product, so you can see which shape of saving fits your goal.
The Sell price, explained
The sell price is the input that decides the answer, and it is a guess about a future nobody can predict. At a sell price of ₹750, 100 shares bought at ₹500 make ₹25,000 before dividends. At ₹900 they make ₹40,000. At ₹600 they make only ₹10,000. A ₹50 change in the price moves the gain by ₹5,000 on this quantity — and a single share can move ₹50 in a day on news, results, or a market fall.
Set the sell price from the business, not from the chart. A share is worth the earnings it will produce, so look at the company's profits, its growth, and what similar companies sell for. Test three sell prices: the price today, a modest rise, and a strong rise. If the investment only works at the strong rise, it is a hope, not a plan — and the dividend is the part of the return you can count on while you wait.
The honest way to pick this number is to look at what the product actually paid in the past and what it pays now, not what an advertisement promises. Rates change, and the rate you type should be one you can defend. For a second opinion on the same money, a CAGR calculator looks at it from a different angle, and comparing the two answers is usually more useful than trusting either one alone.
A worked example: 50 shares bought at ₹1,000, sold at ₹1,200 in 5 years
Take a slower winner: 50 shares bought at ₹1,000, sold at ₹1,200 after five years, with a dividend of ₹25 a share a year. The amount invested is ₹50,000. The capital gain is (1,200 − 1,000) × 50 = ₹10,000. The dividends are 25 × 50 × 5 = ₹6,250. The total gain is ₹16,250, the final value is ₹66,250, and the total return is 32.5%.
The CAGR is (66,250 ÷ 50,000)^(1 ÷ 5) − 1, about 5.8% a year — barely above a fixed deposit, despite a 20% price rise and five years of dividends. That is the honest number, and it is why the CAGR matters: a 32.5% total return sounds good until it is spread over five years. The dividend did real work here, contributing more than a third of the total gain.
Compare this with the default: 100 shares at ₹500 rising to ₹750 in three years gains ₹28,000 at 16% a year — nearly three times the annual rate of the five-year example, on the same ₹50,000. The difference is the holding period and the price move, not the amount invested. Time spreads returns thin, and a big price rise over a short period beats a modest rise over a long one.
Who uses a Stock Return Calculator, and why it matters
Investors use it before selling, to check whether a share actually beat the alternatives once dividends are counted. A share that rose 30% in five years sounds like a winner until the CAGR shows 5.4% a year — below a fixed deposit. The calculator turns a story about a good stock into a number that can be compared with anything else.
An income tax calculator is the other half of this calculation — the gain shown here is before tax, and long-term gains above ₹1.25 lakh a year are taxed at 12.5% while short-term gains are taxed at 20%, so the tax calculator shows what you actually keep.
Portfolio reviewers use it to rank holdings: the shares with the lowest CAGR over the same period are the first candidates to sell, whatever the story behind them. Tax planners use it too, because the gain shown here is before tax — long-term gains above ₹1.25 lakh a year are taxed at 12.5% for FY 2025-26, and short-term gains at 20%.
Stock Return Calculator vs Dividend Calculator
A stock return calculator and a dividend calculator look at the same share from opposite ends. The stock return calculator counts everything — price rise plus dividends — over a holding period, and gives one total return. The dividend calculator counts only the income: how much cash the shares pay you each year, and what that income is worth over time.
The practical difference is simple. Use the Stock Return Calculator when you want the total profit on a share, including the price rise and the dividends together. Use the Dividend Calculator when you want to know how much income a dividend-paying portfolio produces each year. A XIRR calculator is worth running alongside, because it answers the same question with different assumptions — and when two calculators agree, you can trust the plan more than when only one does.
Use both when you are choosing between a growth share and an income share. The growth share may win on total return while paying no dividend; the income share may pay 4% a year while its price barely moves. The right choice depends on whether you need cash now or growth for later — and the two calculators give you the two numbers that decide it.
Common stock return calculator mistakes
The first mistake is counting only the price rise. Dividends add 1–3% a year for many large Indian companies, and over a decade they can be a third of the total return. A share that looks flat on price may have been a good investment once dividends are counted — and this calculator counts them for exactly that reason.
The second mistake is comparing returns over different periods. A 56% gain over three years is a 16% CAGR; the same 56% over ten years is only 4.5% a year. Always compare by CAGR, never by total return, or the longest-held shares will always look like the best ones.
The third mistake is forgetting brokerage, STT and tax. Buying and selling shares costs brokerage and securities transaction tax, and the gain is taxed — 20% if held under 12 months, 12.5% above ₹1.25 lakh a year if held longer, for FY 2025-26. The calculator shows the gain before these costs, so the money you keep is less.
The fourth mistake is judging one share by the market's average return. The Nifty's 11–13% long-term average says nothing about a single share, which can double or halve in a year. A single share is a bet on one business, not on the market — so its return should be compared with what the business earned, not with the index.
How to use this Stock Return Calculator
Start with the quantity you own or plan to buy, then enter the price you bought at — or the price today if you are planning a purchase — and the price you expect to sell at. Set the holding period in years. The results update as you move the sliders, so drag the sell price slowly and watch the gain and the annualised return move.
Read the results in order. The headline number is the total sale value. Below it, the amount invested and the total gain show whether the trade made money at all, and the return and CAGR show whether it made money well: a 20% gain over two years is very different from the same gain over ten years, and only the CAGR shows that.
This tool does not fetch live prices — you type the buy and sell prices yourself, from your jeweller, your broker, or the market rate you see. Test three sell prices before you decide: a cautious one, the price you actually expect, and an optimistic one. Nothing you type here is stored or sent anywhere. For a related check, try the dividend calculator — it answers the next question most people ask after this one.