Most people finish their research within three years, but take a little bit longer to finish their thesis. Many universities publish completion rates and times, it is a factor by which their level of future funding from the research councils is measured. If you are on a research council funded studentship you will have to finish within four years unless you have a valid excuse (usually health, rather than your research not working).