If you have an infection, you'll usually be given antibiotics. Depending on the cause of the infection, you may be given antibiotic injections or tablets, or a combination of both.
You should start to feel better within a few days, but it may take up to 2 weeks to fully recover.
It's important to finish the whole course of antibiotics, even if you start to feel better.
There are some things you can do while you recover to help ease pain and swelling and prevent any further problems.
take painkillers, such as paracetamol or ibuprofen, to help with the pain – if you have a history of fits, NSAIDs such as ibuprofen should not be taken with some antibiotics used to treat epididymitis; speak to a pharmacist about the best painkiller to use if you're unsure
hold a cold pack (or a bag of frozen peas wrapped in a tea towel) on your groin
wear underwear that supports your scrotum