Rent or buy a house: how to compare the real costs

Renting looks cheaper in the first year because the rent is the only cost you see. Buying looks expensive because the down payment is large. A fair comparison counts the costs of each over the same number of years.
Costs of renting
Rent, any increases you expect, and renter's insurance if you buy it. Keep these monthly.
Costs of buying
- The monthly loan repayment, which is mostly interest in the early years.
- Property tax, maintenance and repairs, which are often underestimated.
- The purchase costs: stamp duty, legal fees and registration.
- The return you could have earned on the down payment if you had invested it instead.
Example
Suppose a home costs 20,000,000 and you pay 4,000,000 as a deposit. Rent for a similar home is 90,000 a month. A loan of 16,000,000 at 16% over 20 years needs about 222,600 a month. Add maintenance of 3,000 a month. The monthly gap is large in the early years, so buying only wins after the house has been held for many years, if it does at all.
Questions a calculator cannot answer
How long will you stay? Is your job secure? Will the rent go up quickly in your area? Use a calculator for the numbers, then decide based on how long you plan to stay.
Related: How to save for a down payment on a house and How to save for a house while renting.
Next step: Write down the rent you pay now, the purchase price you are considering, and how many years you expect to live there.