A health care professional can diagnose STIs. They will ask personal questions about your sex history. It’s important to be honest so you can get help. They may take a sample of fluid from the vagina or penis, or a blood test to confirm the problem. Laboratory tests can show what, if any, bacterial or viral STIs are present.