A medical history and pelvic examination will help to determine the cause of dyspareunia. The following tests or procedures may be used: