Calculator: Prepay Home Loan or Invest?

Use this calculator to  analyze if you should  pre-pay your home loan asap or invest instead. This is now republished after correcting a bug pointed out by Ankush.

I had posted an illustration of prepay vs invest in June  but did not post the associated sheet. I have now modified the sheet to include new tax rules. Future changes in rules can also be easily accommodated with user entry.

The money that is free for investments (inevstible surplus) is assumed to grow at some interest rate (can be modified). Whenever there is a need, withdrawals are made from the corpus.  This will work best if you use only long-term goals.


1) Details about your home loan and the lump sum you have. An  amortization table will be created. Will post the amortization sheet separately.

2) Details about retirement and your other financial goals (preferably long-term, 7Y-plus)

The result would look something like this



Green line: This is how your investible surplus would have grown, had you not taken the loan.

The black dot represents the retirement corpus that you need (taking into account existing corpus)

Blue Line: Growth if you invest the lump sum (fully or partially)

Red line: Growth if you pre-paid the home loan with the lump sum (fully or partially)

The bumps in the lines represent withdrawals for different goals (coloured dots).

The sheet is rather complex. Therefore I request you to please play around with it and let me know if you spot anything funny.

My take: This is not an either-or question. Prep-pay in chunks without neglecting investments. Read more: Illustration: Pre-pay Home Loan or invest

Vinay: I will include your suggestions in the amortization sheet to be posted soon.

Noted: Updated with bug pointed out by Ankush. First published: Nov 13 2014.

Download the prepay home loan vs. invest calculator

Thanks to Mohit Pandey for pointing out an error in the section 24 limit cell.

Thanks to Naveen for pointing out an error in the retirement planner sheet.


Want to conduct a sales-free "basics of money management" session in your office?
I conduct free seminars to employees or societies. Only the very basics and getting-started steps are discussed (no scary math):For example: How to define financial goals, how to save tax with a clear goal in mind; How to use a credit card for maximum benefit; When to buy a house; How to start investing; where to invest; how to invest for and after retirement etc. depending on the audience. If you are interested, you can contact me: freefincal [at] Gmail [dot] com. I can do the talk via conferencing software, so there is no cost for your company. If you want me to travel, you need to cover my airfare (I live in Chennai)

Connect with us on social media

Do check out my books

You Can Be Rich Too with Goal-Based InvestingYou can be rich too with goal based investing

My first book is meant to help you ask the right questions, seek the right answers and since it comes with nine online calculators, you can also create customg solutions for your lifestye!Get it now.  It is also available in Kindle format.

Gamechanger: Forget Startups, Join Corporate & Still Live the Rich Life You Want

Gamechanger: Forget Start-ups, Join Corporate and Still Live the Rich Life you want My second book is meant for young earners to get their basics right from day one! It will also help you travel to exotic places at low cost! Get it or gift it to a youngearner

The ultimate guide to travel by Pranav Surya

Travel-Training-Kit-Cover This is a deep dive analysis into vacation planning, finding cheap flights, budget accommodation, what to do when travelling, how travelling slowly is better financially and psychologically with links to the web pages and hand-holding at every step.  Get the pdf for ₹199 (instant download)

Create a "from start to finish" financial plan with this free robo advisory software template

Free Apps for your Android Phone

All calculators from our book, “You can be Rich Too” are now available on Google Play!
Install Financial Freedom App! (Google Play Store)
Install Freefincal Retirement Planner App! (Google Play Store)
Find out if you have enough to say "FU" to your employer (Google Play Store)

About Freefincal

Freefincal has open-source, comprehensive Excel spreadsheets, tools, analysis and unbiased, conflict of interest-free commentary on different aspects of personal finance and investing. If you find the content useful, please consider supporting us by (1) sharing our articles and (2) disabling ad-blockers for our site if you are using one. We do not accept sponsored posts, links or guest posts request from content writers and agencies.

Blog Comment Policy

Your thoughts are vital to the health of this blog and are the driving force behind the analysis and calculators that you see here. We welcome criticism and differing opinions. I will do my very best to respond to all comments asap. Please do not include hyperlinks or email ids in the comment body. Such comments will be moderated and I reserve the right to delete the entire comment or remove the links before approving them.

16 thoughts on “Calculator: Prepay Home Loan or Invest?

  1. Cell B24 in sheet “Retirement Planner” is erroneous as it links to a previous sheet. Hence, the gross pre-tax salary is not calculated correctly and shows a higher number than it should.

  2. Cell B15 on the Retirement Planner tab seems to refer to another sheet. Thought you may want to know.

  3. Hello Pattu,

    Of late, I have been receiving two emails for any new post on your website – one email shows the post made by ‘freefincal’, and the other is shown as made by ‘pattu’.

    I checked on the “Manage your subscriptions” link, and it shows only 1 active subscription on that page for my email ID.

    Can you help me with the settings to receive just one of the emails?


      1. Yes, I have noticed this for a few posts since the past few days.
        Can’t say for sure whether it’s for all the posts or not.

        I will keep an eye on the next few posts and let you know if this is repeating for all of them.

  4. sir do we really need big excel calculation to know the bad effect of home loan ?

    கைப்புண்ணுக்கு கண்ணாடி எதற்கு

    1. It makes sense if
      1. You might need this lumpsum money you may want to use to prepay then investing provides liquidity..
      2. Another important point is if in case of a businessman if he can invest and get better returns than the loan interest rate, the person stands to gain..

  5. Dear Sir.
    Could you please suggest best ELSS fund for investing till my retirement. Am 35 years now. Dont have much knowledge in self choosing

  6. Hi sir

    I have followed your posts for quiet long and this is my first comment. I would request you to consider post about what to decrease if someone is prepaying. I.e should he decrease the EMI or tenure.

Comments are closed.