Accomodation services can provide accomodation for postgraduate students studying for a masters. The most convenient locations for those studying chemistry would be:

All three locations are within easy reach of the School of Chemistry. Get in touch with Accomodation Services as soon as you can to have the best chance of securing the location that's best for you.

You could also rent privately, perhaps with other students. With such a large student population there are lots of flats available to rent in Edinburgh, especially if you get organised early. Gumtree is a great website for arranging accommodation.