HRA is paid as a percentage of basic pay depending on the city of posting.
Cities are classified into X, Y and Z categories based on population, with X-class cities getting the highest rate.
The current rates are revised periodically by government orders, so check the latest DoPT circular.
HRA is not paid if government accommodation is allotted to you.
It forms a significant part of in-hand salary in metro postings.