How much
Deposits vary a lot by city: Bengaluru is known for high deposits, often several months' rent, while a few months' rent is more usual in most other metros. When a flatmate joins, they usually pay their share of the deposit to the tenant who paid the owner.
Getting it back
Agree in writing what can be deducted (painting, damage, unpaid bills) and how many days after leaving the refund is made. Take dated photos of the room when you move in and when you leave.
Notice between flatmates
Agree a notice period, usually one month, and whether the person leaving must find a replacement. Write it down and both sign it, even if it is only a WhatsApp message both confirm.
General information to help you ask the right questions, not legal advice. Rules change; check with the sub-registrar’s office or the police portal for your city.
