Print DiagnosisTo diagnose peritonitis, your healthcare professional talks with you about your medical history and gives you a physical exam. Your symptoms alone may be enough to diagnose the condition if your peritonitis is linked to peritoneal dialysis. If more tests are needed to confirm a diagnosis, your healthcare professional may suggest: Blood tests. A sample of your blood may be taken to see if you have an increase in disease-fighting white blood cells. This is usually a sign of an infection or inflammation. You also might have a blood culture test to find out if bacteria are in your blood. Imaging tests. You may have an X-ray exam to check for holes or other tears in your digestive tract. You also may have a test that uses sound waves to make images inside your body, called ultrasound. In some cases, you may have a CT scan. Peritoneal fluid analysis. In this test, a thin needle is used to take a sample of the fluid in your peritoneum. You're more likely to have this test if you get peritoneal dialysis or if you have fluid in your abdomen from liver disease. An increased white blood cell count in this fluid usually points to an infection or inflammation. A culture of the fluid may be used to spot bacteria. More InformationCT scanUltrasoundX-ray TreatmentSpontaneous bacterial peritonitis can be life-threatening. You'll need to stay in the hospital. Treatment includes antibiotics. It also includes supportive care to ease your symptoms. You'll also need to stay in the hospital for secondary peritonitis. Treatment may include: Antibiotics. You'll likely take antibiotic medicine through a needle in a vein. This clears out the infection and keeps it from spreading. The type of antibiotic you'll need and how long you'll have to take it will vary. It depends on how serious your condition is and the kind of peritonitis you have. Surgery. This is often needed to remove infected tissue, treat the cause of the infection, and prevent the infection from spreading. Surgery is important if your peritonitis is due to a ruptured appendix, stomach or colon. Other treatments. Depending on your symptoms, your treatment while in the hospital will likely include: Pain medicines. Fluids given through a tube, called intravenous fluids. Oxygen. In some cases, a blood transfusion. If you get peritoneal dialysisIf you have peritonitis, your healthcare professional may suggest that you receive dialysis in another way. You may need this other type of dialysis for several days while your body heals from the infection. If your peritonitis lingers or comes back, you may need to stop having peritoneal dialysis completely and switch to a different type of dialysis.More InformationBlood transfusion By Mayo Clinic Staff Request an appointment Symptoms & causes Aug. 08, 2025 Print Show references Yu ASL, et al., eds. Peritoneal dialysis. In: Brenner & Rector's The Kidney. 11th ed. Elsevier; 2020. https://www.clinicalkey.com. Accessed Oct. 14, 2022. Ferri FF. Peritonitis, secondary. In: Ferri's Clinical Advisor 2025. Elsevier; 2025. https://www.clinicalkey.com. Accessed March 25, 2025. Treatment methods for kidney failure: Peritoneal dialysis. National Kidney and Urologic Diseases Information Clearinghouse (NKUDIC). https://www.niddk.nih.gov/health-information/kidney-disease/kidney-failure/peritoneal-dialysis. Accessed Oct. 14, 2022. Runyon BA. Spontaneous bacterial peritonitis in adults: Treatment and prophylaxis. https://www.uptodate.com/contents/search. Accessed March 25, 2025. Acute abdominal pain. Merck Manual Professional Edition. https://www.merckmanuals.com/professional/gastrointestinal-disorders/acute-abdomen-and-surgical-gastroenterology/acute-abdominal-pain?query=acute%20abdominal%20pain. Accessed March 25, 2025. Doherty GM, ed. Peritoneal cavity. In: Current Diagnosis & Treatment: Surgery. 16th ed. McGraw Hill; 2025. https://accessmedicine.mhmedical.com. Accessed March 25, 2025. Johnson RJ, et al., eds. Complications of peritoneal dialysis. In: Comprehensive Clinical Nephrology. 7th ed. Elsevier; 2024. https://www.clinicalkey.com. Accessed March 25, 2025. Salzer WL. Peritoneal dialysis-related peritonitis: Challenges and solutions. International Journal of Nephrology and Renovascular Disease. 2018; doi:10.2147/IJNRD.S123618. Spontaneous bacterial peritonitis (SBP). Merck Manual Professional Edition. https://www.merckmanuals.com/professional/hepatic-and-biliary-disorders/approach-to-the-patient-with-liver-disease/spontaneous-bacterial-peritonitis-sbp. Accessed March 25, 2025. Burkart JM. Clinical manifestations and diagnosis of peritonitis in peritoneal dialysis. https://www.uptodate.com/contents/search. Accessed March 25, 2025. Li PK, et al. ISPD peritonitis recommendations: 2022 update on prevention and treatment. Peritoneal Dialysis International. 2022; doi:10.1177/08968608221080586. Related Associated Procedures Blood transfusion CT scan Ultrasound X-ray Show more associated procedures Products & Services A Book: Mayo Clinic Family Health Book Newsletter: Mayo Clinic Health Letter — Digital Edition Show more products and services from Mayo Clinic PeritonitisSymptoms&causesDiagnosis&treatment Advertisement Mayo Clinic does not endorse companies or products. Advertising revenue supports our not-for-profit mission. Advertising & Sponsorship Policy Opportunities Ad Choices Mayo Clinic Press Check out these best-sellers and special offers on books and newsletters from Mayo Clinic Press. NEW: Mayo Clinic Guide to Better Sleep Listen to Health Matters Podcast Mayo Clinic on Incontinence The Essential Diabetes Book FREE Mayo Clinic Diet Assessment Mayo Clinic Health Letter - FREE book CON-20376231 Diseases & Conditions Peritonitis