You must consider research and living costs as well as tuition fees.
The University operates a two-tier postgraduate fees scheme. Non-UK, non-EU students are required to pay student fees at a higher rate.
In addition, you will be required to pay research costs. These will depend on the nature of the research to be conducted.
Research costs for projects involving molecular biological techniques, for example, may be as high as £8,000 per year, and sometimes more.
The level of research costs should be discussed and established with your intended supervisor.
You will also need about £10,000 per year to live on. This is the current level of stipend for Research Council Studentships.
Thus the real cost of studying as supervised PhD student at the University and living in Edinburgh may be as high as £30,000 per year, or more, for up to four years.