Sec 54F: a hack that can save lakhs in taxes when you buy a house
10 Jul 2022 - Contact Sayan Sircar
9 mins read
This article shows how to save capital gains taxes under income tax Section 54F when you sell other assets to raise money to buy your first or second house.

If you ever decide that you will sell your mutual funds to buy a house you will be in for a pleasant surprise. Section 54F of the income tax act says that long term capital gains, on selling mutual funds for example, are tax free if you use that money to buy a house.
Table of Contents
- What is Section 54F?
- First section: basic terms, timelines and eligibility
- Second section: a second house reverses the benefit
- Third section:
What is Section 54F?
Introduced in 1983, Section 54F of the Income Tax act, as sourced from the Income Tax website, allows us to save capital gains tax if we sell mutual funds to buy a house.
12. In the Income-tax Act, after section 54E, the following section shall be inserted with effect from the 1st day of April, 1983, namely: —
'54F. Capital gain on transfer of certain. capital assets not to be charged in case of investment in residential house.
The basic premise of this tax exemption is very simple:
- you wish to buy a house in India as an individual or HUF
- you sell Mutual funds, shares, gold etc, to buy the house
- on the date of the MF sale, you do not already own more than one house
- you don’t have to pay capital gains taxes (only if it is long term gains) on the MF/shares/gold you sold
We will now break down and analyse each subsection of 54F to understand the terms and conditions implied.
Recent articles:First section: basic terms, timelines and eligibility
The first section as per the act
(explanation follows below)
(a) if the cost of the new asset is not less than the net consideration in respect of the original asset, the whole of such capital gain shall not be charged under section 45;
(b) if the cost of the new asset is less than the net consideration in respect of the original asset, so much of the capital gain as bears to the whole of the capital gain the same proportion as the cost of the new asset bears to the net consideration, shall not be charged under section 45:
Provided that nothing contained in this sub-section shall apply where the assessee owns on the date of the transfer of the original asset, or purchases, within the period of one year after such date, or constructs, within the period of three years after such date, any residential house, the income from which is chargeable under the head 'Income from house property', other than the new asset.
Explanation.—For the purposes of this section,—
(i) 'long-term capital asset' means a capital asset which is not a short-term capital asset;
(ii) 'net consideration', in relation to the transfer of a capital asset, means the full value of the consideration received or accruing as a result of the transfer of the capital asset as reduced by any expenditure incurred wholly and exclusively in connection with such transfer.
Understanding the first section
- Original asset: this is the asset sold to buy the house. This can be Mutual funds, shares, gold etc. This cannot be another house which comes under Section 54E
- Date of sale (DOS): date on which the original asset was sold
- New asset: the new house that is constructed / purchased. It has to be in India
- What are the timelines: DOS must be within a year of purchase of the new asset. In case the new asset is being constructed, the construction has to finish within three years of DOS
- the tax exemption is available only if you already own not more than one house. This rule is thus beneficial if you are buying your first or second house only. It also means that if you have taken the exemption once for your first house, you can take it again for your second house as well
- the capital gains has to be long term. For equity mutual funds and shares this is one year while for debt mutual funds it is three years.
Related:
How is tax calculated on selling shares/MFs and how do to do tax harvesting?
If your new house costs more the mutual funds you sold, you can save lakhs in capital gains tax
If the cost of the new asset is X and the sale proceeds from original asset sales is Y, then
- if X ≥ Y, i.e. the new house is at least as expensive compared to the sale, then entire capital gains on original assets sale is tax-free
- if X < Y, then the capital gains will be exempt in the ratio of Y used to buy X. For example, you sold 20 lakhs of assets and have a capital gains tax of 4 lakhs. The house costs 15 lakhs. The capital gains exempt from tax will be 15/20 * 4 = 3 lakhs. The other 1 lakh of capital gains will be taxable.
Our new Goal-based investing tool will help you to create and manage all of your goals in one place. Click the image below to get access:

Arthgyaan creates a system for reaching your financial goals by sharing simple, actionable advice backed by research and analysis.
Second section: a second house reverses the benefit
The second section as per the act
(explanation follows below)
Understanding the second section
If another house is constructed/purchases within the same period (1 year for purchase / 3 year for construction) which is eligible for ‘income from house property’ i.e. given on rent, then the tax benefit received on the new asset construction is reversed and has to be paid in the previous financial year. This rule effectively means that:
- you sell 50 lakhs of mutual funds to buy a house (H1). The capital gains tax saved is ₹5 lakhs
- within 3 years of the sale of the MF, you buy/construct another house (H2)
- then the ₹5 lakh tax becomes payable in the financial year preceding the purchase of H2. This is of course not a problem if you don’t buy H2
Third section:
The third section as per the act
(explanation follows below)
Understanding the third section
If the new house is sold within three years of purchase / construction, the capital gains tax becomes payable in the financial year preceding the purchase of the house.
If you liked this article, consider subscribing to new posts by email by filling the form below.More: worked out case studies for goal-based investing
-
Case study: how this double income recently married family can perform DIY goal-based investment planning
This article shows how a young just-married couple can invest for future goals using the Arthgyaan goal-based investing tool.
-
Case Study: How should couples in their 40s with a new baby plan their financial future?
Did you welcome a bundle of joy in your 40s? This article will discuss ways of planning the child’s (and your’s financial future)
-
Case study: how this double income single kid family can perform DIY goal-based investment planning
This article shows how a very typical salaried couple with one child can invest for future goals using the Arthgyaan goal-based investing tool.
Previous and Next articles:

Repo rates are rising - what should investors do?
This article explains how the RBI repo rate drives the values of all your loans and investments and shows what investors should do to best take advantage of the situation.
Published: 6 July 2022
10 MIN READ

Health insurance: what, why, how much to get and from where?
This article explains why health insurance is important, how to choose one that suits your needs, the tax benefits and where to buy it from.
Published: 13 July 2022
10 MIN READ
Latest articles:

Case study: how this double income recently married family can perform DIY goal-based investment planning
This article shows how a young just-married couple can invest for future goals using the Arthgyaan goal-based investing tool.
Published: 7 August 2022
14 MIN READ

Low stress retirement planning calculations: worked out example
This article shows a simple retirement and review plan that anyone can follow in a step-by-step manner.
Published: 3 August 2022
6 MIN READ
Topics you will like:
Asset Allocation (18) Basics (7) Behaviour (10) Budgeting (9) Calculator (11) Case Study (3) Children (7) Choosing Investments (24) FAQ (2) FIRE (8) Gold (6) Health Insurance (2) House Purchase (11) Insurance (8) Life Stages (2) Loans (10) NPS (4) NRI (3) News (5) Portfolio Construction (30) Portfolio Review (18) Retirement (22) Review (7) Risk (6) Set Goals (24) Step by step (4) Tax (12)Next steps:
1. Email me with any questions.
2. Use our goal-based investing template to prepare a financial plan for yourselfOR
use this quick and fast online calculator to find out the SIP amount and asset allocation for your goals.
Don't forget to share this article on WhatsApp or Twitter or post this to Facebook.
Discuss this post with us via Facebook or get regular bite-sized updates on Twitter.
More posts...Disclaimer: Content on this site is for educational purpose only and is not financial advice. Nothing on this site should be construed as an offer or recommendation to buy/sell any financial product or service. Please consult a registered investment advisor before making any investments.
This post titled Sec 54F: a hack that can save lakhs in taxes when you buy a house first appeared on 10 Jul 2022 at https://arthgyaan.com
We are currently at 172 posts and growing fast. Search this site: Copyright © 2021-2022 Arthgyaan.com. All rights reserved.