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.


Get GameChanger (my second book) + Pranav's Travel Training Kit  GameChanger (hardcopy is now available for ₹279 (249 +30 for shipping) and the Travel Training Kit is available for immediate download for ₹150.

Register for the Kolkata DIY Investor meet:  May 28th2017

Get free, yet comprehensive calculators, tools and analysis delivered to your mailbox! Subscribe to get posts via email

Your subscription is successful if you are directed to the "Welcome Page"

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)


Buy our New Book!

You Can Be Rich With Goal-based Investing A book by  P V Subramanyam ( & M Pattabiraman. Read more about the book and pre-order now!
Practical advice + calculators for you to develop personalised investment solutions

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. Naveen

    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. Ankush

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

  3. KV

    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. KV

        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. lakshminarasimman

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

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

    1. praveen

      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. Abhishek Kumar

    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.


Do let us know what you think about the article