Diagnosis typically involves a combination of medical history, physical examination, and laboratory tests. A digital rectal exam (DRE) may be performed to check for prostate tenderness. Urine and blood tests can help identify bacterial infections, while imaging studies like ultrasound may be used to rule out other conditions.