The HRA exemption is the portion of house rent allowance that is not taxed under the old regime. It is the least of three amounts: the HRA actually received, rent paid reduced by a set share of salary, and a share of salary that is larger for employees living in notified metro cities. Rent receipts and, above a limit, the landlord's PAN are needed.
In plain words
Of three possible amounts, the smallest one is your tax-free HRA.
Example
An employee's HRA is large, their rent is modest and they live in a non-metro city. Of the three amounts, the rent-based one comes out smallest, so only that part is exempt even though they receive more HRA. Moving to a metro city or paying more rent could change which of the three is lowest.
Illustrative figures, not a statutory calculation.