Last Updated on May 28, 2021 at 8:01 pm
In this post, I discuss how to calculate the annualized return from a stock investment after accounting for corporate actions like dividends, stock splits, bonuses, buybacks and rights issues. I have made a calculator that will compute the annualized return (CAGR for single investments, IRR for periodic investments and XIRR or investments on random dates)
It also gives me a chance to discuss the methods used for the calculation with readers. If you do not know what is XIRR and how it is calculated, I would suggest that you start here: CAGR vs. IRR: Understanding investment growth measures and then go here: What is XIRR?
I am indebted to Captain Navneet Bindra for discussions on the calculations. Thanks are also due to Vignesh Bhaskar, Ashwin Sheoroy for testing the sheet.
Let us discuss the calculation via examples.
🔥Secure your future with our Robo-advisory tool trusted by over 3,500 investors and advisors. From effortless retirement planning to funding your children’s biggest dreams, turn your financial goals into reality. 🔥
Subscribe for money management solutions via email! (Link takes you to our email sign-up form) Join 32,000+ readers in our community.
👉 New Tool Alert! NaviPlan: A Privacy-Focused Multi-asset Tracker and Goal Planner 👈
Stock XIRR Calculation: buying and selling
Suppose,
- you buy 200 stocks of a company at Rs. 1000 a share on 1st Jan 2010
- You sell 25 of those stocks at Rs. 6000 a share on 7th July 2017 and
- calculate the XIRR as on 8th October 2017 (current market price is Rs. 6100) what is the annualized return?
To do this in Excel
Stock XIRR Calculation: bonus shares
Now suppose the company announces a 1:1 bonus on 2nd Feb 2011.
Since you hold 200 shares, you will be given 200 more shares and the price will fall by half to Rs. 500. This is an internal adjustment will not be used as a cash flow entry for XIRR calculation. The price from this point on will reflect this bonus.
The redemption and valuation entries will be shown as above for all illustrations below.
Stock XIRR Calculation: Stock split
Now on 3rd March a 3:2 split is announced. That is, since you hold 400 shares, half that number or 200 shares will be given to you. This is because
400 x (3/2) = 400 x (1.5) = 400 + 400 * 0.5 = 400 + 200.
So now, you will hold 600 shares. The price will drop by a factor of 1/.5. For example, if the price before the split is Rs. 500, it will drop to 500/1.5 = 333.33.
This will again not be reflected in the cash flow.
Stock XIRR Calculation: Dividends
Now a dividend of Rs. 2 per share is announced on 4th April 2013. Regardless of what you do with the dividend, in order to find the XIRR of the instrument, it will be assumed to be reinvested at the ex-dividend market price.
So the dividend amount of 2 x 600 = 1200 is used to buy imaginary stocks for the XIRR calculation at the ex-div market price of Rs. 200.
So 1200/500 gives 2.4 stocks. Making the total stocks held as 602.4.
Now a second dividend is announced on 9th Sep 2013 for Rs. 5 per share. The actual dividend received is 5 x 600 = 3000. However, due to the first dividend, there are 602.4 stocks assumed to be held for the XIRR calculation. Therefore the dividend that will be assumed to be reinvested is:
5 x 602.4 = 3012. This amount will be used to buy 5.48 imaginary stocks at the ex-dividend price of Rs. 550. Taking the XIRR share tally to 607.88
Many investors are confused by this and say that this wrong. It is, however, important to recognise that a dividend is an action by the instrument and not by us. Reinvesting stock or mutual fund dividends at ex-price is the standard procedure adopted to calculate instrument XIRR.
Stock XIRR Calculation: Rights Issue
On 5th May 2014, the company announces a rights issue. This allows existing investors to buy some shares at a discount.
Suppose you buy 10 stocks at Rs. 950 a share against the then market price of Rs. 1000, the no of actual stocks = 610. The no of XIRR stocks (imaginary) = 617.88
Since we spend money to participate in the rights issue, the 10 x 950 = 9500 will be shown in the cash flow.
Stock XIRR Calculation: Buyback
Now a buyback is announced on 6th June 2015. The price is Rs. 1600 a premium over the then market price of Rs. 1500. Suppose, you decide to sell 200 shares to the company.
The total no of actual stocks held will become 410.
A buyback is similar to a dividend (I am referring to accounting aspects only. There are other differences). In a dividend, the no of stocks remains the same, the price falls to the extent of the dividend.
In a buyback, the no of shares decreases, the market price is not directly affected by the buyback and like a dividend, the investor gets money in hand. Therefore we assume that the money received will be reinvested back at the then market price.
The buyback amount received = 200 x 1600 = 320000. This is reinvested at the market price of Rs. 1500 to buy 213.33 imaginary shares, taking the XIRR tally to 831.21 shares.
Finally, there is a redemption of 25 shares on 7th July 2107 and the XIRR calculation is done on 8th Oct 2017 (as in the above cases).
The XIRR of the annualized return of the stock instrument can be seen in each of the above figures.
We are on Google News
Use this button to add freefincal.com as a preferred personal finance source on Google News.
Add freefincal as a preferred news source
You can also follow freefincal on Google News.
Explore 1,000+ videos on YouTube!
Subscribe to get posts via email!
Join 32,000+ readers and get free money management solutions delivered to your inbox! (Link takes you to our email sign-up form)
Join our WhatsApp Channel
Explore our products
🔥Join our community of 9000+ users! 🔥
Use our Robo-advisory Tool to create a complete financial plan! More than 3,500 investors and advisors use this! Use the discount code robo25 for 20% off. Plan your retirement (early, normal, before, and after), plus non-recurring financial goals (such as child education) and recurring financial goals (such as holidays and appliance purchases). The tool helps anyone aged 18 to 80 plan for retirement, plus six non-recurring and four recurring financial goals, with a detailed cash flow summary.
Our Flagship Course! Learn to manage your portfolio like a pro to achieve your goals regardless of market conditions! More than 3,500 investors and advisors are part of our exclusive community! Get clarity on how to plan for your goals and achieve the necessary corpus no matter the market conditions! Watch the first lecture for free! One-time payment! No recurring fees! Lifelong access to videos! Reduce fear, uncertainty and doubt while investing! Learn how to plan for your goals before and after retirement with confidence.
Join the freefincal investor circle! An exclusive space for investors, advisors, fintech employees and students to access financial planning and insurance tools, mutual fund and stock analysis tools, coding strategies and Excel macros for data extraction. 750+ members are now part of our investor circle.
Increase your income by getting people to pay for your skills! More than 900 salaried employees, entrepreneurs and financial advisors are part of our exclusive community! Learn how to get people to pay for your skills! Whether you are a professional or small business owner seeking more clients through online visibility, or a salaried individual looking for side or passive income, we will show you how to do it by showcasing your skills and building a community that trusts and pays you. (Watch the 1st lecture for free). One-time payment! No recurring fees! Lifelong access to videos!
Track your mutual funds and stock investments with our Google Sheet!
We also publish monthly screeners for
- Equity mutual funds
- Debt and hybrid mutual funds
- Index funds
- ETFs
- Momentum and low-volatility stock screeners
Our Podcast: Let's Get Rich With Pattu
Podcast: Let's Get RICH With PATTU! Every single Indian CAN grow their wealth!
Audible Link: Listen to the Let's Get Rich with Pattu Podcast
You can also watch podcast episodes on the OfSpin Media Friends YouTube Channel
Listen to the Let's Get Rich With Pattu podcast on YouTube.
Now watch Let's Get Rich With Pattu தமிழில் (in Tamil)!
About The Author

Dr M Pattabiraman giving a lecture
Dr M. Pattabiraman (PhD) is the founder, managing editor and primary author of freefincal. He is an associate professor at the Indian Institute of Technology, Madras. He has over 14 years of experience publishing news analysis, research and financial product development. He is a patron and co-founder of “Fee-only India,” an organisation promoting unbiased, commission-free, AUM-independent investment advice.
Connect with him via Twitter(X) LinkedIn YouTube
Pattabiraman has co-authored three print books: (1) You can be rich too with goal-based investing (Published by CNBC TV18) for DIY investors.
This book helps you ask the right questions and find the right answers. It also includes nine online calculators to create custom solutions.
(2) Gamechanger: Forget Startups, Join Corporate & Still Live the Rich Life You Want.
This book helps young earners get the basics right from the start! It will also help you travel to exotic places at a low cost!
(3) Chinchu Gets a Superpower! for kids.
Both the boy and girl versions of "Chinchu Gets a Superpower".
Most investor problems stem from a lack of poor decision-making. We made bad decisions and money mistakes when we started earning, and we spent years undoing them. Why should our children go through the same pain?
What is this book about? As parents, what if we had to groom one ability in our children that matters not only for money management and investing but for every aspect of life? My answer: Sound decision-making. So, in this book, we meet Chinchu, who is about to turn 10. The story follows what he wants for his birthday and how his parents plan it, while also teaching him key ideas about decision-making and money management.
What readers say!
Feedback from a young reader after reading Chinchu Gets a Superpower!
Must-read book even for adults! This is something that every parent should teach their kids right from a young age. The importance of money management and decision-making based on their wants and needs. Very nicely written in simple terms. - Arun.
About freefincal & its content policy
Freefincal is a News Media organisation dedicated to providing original analysis, reports, reviews and insights on mutual funds, stocks, investing, retirement and personal finance developments. We do so without conflict of interest and bias. Follow us on Google News.
Freefincal serves more than three million readers a year (5 million page views) with articles based only on factual information and detailed analysis by its authors. All statements made will be verified with credible and knowledgeable sources before publication.
Freefincal does not publish paid articles, promotions, PR, satire or opinions without data. All opinions will be inferences backed by verifiable, reproducible evidence/data. Contact Information: To get in touch, please use our contact form. (Sponsored posts or paid collaborations will not be entertained.)
Our publications
Your Ultimate Guide to Travel
This is an in-depth exploration of vacation planning, including how to find affordable flights, budget accommodations, and practical travel tips. It also examines the benefits of travelling slowly, both financially and psychologically, with links to relevant web pages and guidance at every step. Get the PDF for Rs 300 (instant download)
How to profit from content writing: Our ebook is for those interested in getting a side income via content writing. It is available at a 50% discount for Rs. 500 only!