The findings could have important implications for how doctors treat prostate cancer in the future, by identifying tumours that are more likely to grow and spread aggressively through the body.
The researchers, from the Cancer Research UK Cambridge Institute and Addenbrooke's Hospital, studied samples of healthy and cancerous prostate tissues from more than 250 men.
By looking for abnormal chromosomes and measuring the activity of 100 different genes linked to the disease they were able to group the tumours into five distinct types, each with a characteristic genetic fingerprint.
However, the findings need to be confirmed in clinical trials with larger groups of men.
Also Read
"Our exciting results show that prostate cancer can be classified into five genetically-different types," said study author Alastair Lamb, from the Cancer Research UK Cambridge Institute.
"These findings could help doctors decide on the best course of treatment for each individual patient, based on the characteristics of their tumour.
"By carrying out more research into how the different diseases behave we might be able to develop more effective ways to treat prostate cancer patients in the future, saving more lives," Lamb said.
The study was published in the journal EBioMedicine.