Prostatitis is inflammation of the prostate, a small gland located just under the bladder in men.

The prostate is responsible for producing seminal fluid, which transports sperm and makes up 50 to 75 percent of semen. Although prostatitis begins in the prostate gland, the inflammation may spread to the area around your prostate.

Types of prostatitis include the following:

  • Chronic prostatitis. This is the most common type of prostatitis, and it often lasts for months. Any chronic prostatitis without bacteria present falls into this category.
  • Acute bacterial prostatitis. This is the most severe and least common form of prostatitis. It’s caused by a bacterial infection. It appears suddenly with severe symptoms, such as fever, chills, and bloody semen. This type requires immediate treatment.
  • Chronic bacterial prostatitis. This is a milder and less common infection that may come and go over time. Symptoms may be similar to acute bacterial prostatitis but notably less severe.
  • Asymptomatic prostatitis. Doctors will occasionally discover prostate inflammation while conducting an unrelated exam. Without symptoms, treatment is not necessary.

The symptoms of prostatitis vary for each of the three symptomatic types.

If you have acute bacterial prostatitis, you may experience:

  • pain in your lower abdomen, lower back, or rectum
  • pain around your penis or scrotum
  • an urgent need to urinate
  • difficulty urinating or emptying your bladder completely
  • pain when urinating
  • pain when ejaculating
  • chills
  • a fever
  • nausea or vomiting

You may also have foul-smelling or cloudy urine. If you have chronic bacterial prostatitis, you may have similar symptoms, but they will be less severe.

In cases of both chronic and acute bacterial prostatitis, bacteria can also enter the urinary tract and cause a urinary tract infection (UTI).

The primary symptom of chronic prostatitis is pain or discomfort in your:

  • lower back
  • abdomen
  • rectum
  • genital area

You may still experience mild versions of many of the symptoms listed above.

If you have asymptomatic inflammatory prostatitis, you won’t notice any symptoms.

Most prostatitis is caused by bacteria, which can also cause a bladder infection or UTI.

One of the more common bacteria involved in prostatitis, particularly in people over age 35, is Escherichia coli (E. coli). Sexually transmitted infections (STIs), including gonorrhea and chlamydia, can also cause bacterial prostatitis.

In many cases, the exact cause of chronic prostatitis is unknown, though it can be linked to prostate injuries or an immune system condition.

Prostatitis can occur at any age, though incidence peaks in people between ages 20 and 40 and people over age 70. For men under 50, prostatitis is the most common urinary tract problem.

Other factors can also increase your risk, including having:

  • a urinary catheter inserted
  • a bladder infection
  • pelvic trauma
  • past bouts of prostatitis
  • an enlarged prostate

Having sex without a condom or other barrier method and being HIV-positive also increase your chances of developing prostatitis.

Many cases of prostatitis aren’t preventable because the cause is often unknown. But there are ways to minimize your risk of bacterial prostatitis.

Maintaining good genital hygiene helps keep bacteria at bay. Because STIs can lead to prostatitis, practicing sex with a condom or other barrier method can also reduce your risk of developing this condition.

If you suspect you have prostatitis, make an appointment with your doctor. They’ll need to rule out other possible causes of your symptoms. For example, an enlarged prostate, cystitis, and some other conditions can cause similar symptoms.

Your doctor will perform a physical exam, also known as a digital rectal exam (DRE). During this exam, which allows your doctor to feel around part of the prostate for swelling or tenderness, a prostate massage may also be performed.

Massaging the prostate causes the release of seminal fluid built up in the gland, which your doctor may want to test for bacteria.

In some cases, your doctor may recommend an additional diagnostic step. This could be:

  • a CT scan
  • an MRI, particularly if your rectal exam was atypical
  • a transrectal ultrasound
  • a cystoscopy, a procedure in which a small tube is inserted into your urethra to look at your bladder and prostate gland

Your doctor will also likely want to take samples of blood, urine, or semen for laboratory testing. These can help determine the type of prostatitis you have or the specific bacteria causing it.

If you receive a diagnosis of bacterial prostatitis, your doctor will prescribe antibiotics. The type of antibiotic and length of treatment will vary, depending on the type of bacteria that’s causing your symptoms.

Your doctor may also prescribe pain relievers or alpha-blockers. Alpha-blockers reduce muscle spasms of the urethral sphincter, which is the muscle that helps you control the flow of urine. The sphincter may spasm in response to the inflammation of prostatitis.

Your doctor may also recommend anti-inflammatory medications, heat therapy, or regular prostate massages to reduce pain.

Treatment for nonbacterial prostatitis is generally intended to reduce discomfort and pain, and it can vary greatly depending on your specific symptoms.

If you experience regular flare-ups of chronic prostatitis symptoms, talk with your doctor about alternative strategies such as physical therapy that may lessen their frequency and intensity.

Most people respond well to treatment for acute bacterial prostatitis. Chronic prostatitis is harder to cure, but it can often be managed.

Ask your doctor about your specific condition, treatment plan, and outlook.

Prostatitis is an extremely common and sometimes chronic condition that affects up to 10 percent of all men.

Though it has a number of unknown causes and can be linked to other health concerns, it can also be caused by a bacterial infection in the urinary tract.

Consult a doctor if you feel unusual pain or tenderness in your genital or rectal area, particularly if you are also experiencing aches, a fever, or any similarly widespread symptoms.