What are the factors affecting demand for houses?

When the supply of any product decreases the demand increases. When there is a large amount of houses available on the market, it is easier for buyers to pick and choose, and negotiate price. (Buyers' market) When there is a limited amount of houses on the market, sellers can easily negotiate higher sales prices due to lack of availability. (Sellers' market)