Flank Pain

Pain in the side and back between the lower ribs and hip

Last updated June 9, 2026

Quick Facts

  • Type: Pain symptom
  • Common causes: Kidney stones, kidney infection, muscle strain
  • Location: Side and back below the ribs
  • Seek urgent care: Severe pain with fever, blood in urine, vomiting

Overview

Flank pain is discomfort felt in the flank, the area on either side of the body between the bottom of the rib cage and the top of the hip, toward the back. It can be sharp, dull, cramping, or come in waves, and it may stay in one spot or spread toward the groin, lower abdomen, or back. Flank pain can affect one side or both.

Because the kidneys sit in this region, flank pain is often linked to kidney and urinary problems, but it can also come from muscles, the spine and nerves, or organs in the abdomen. The character of the pain, what makes it better or worse, and the symptoms that go with it all help point to the cause. A steady ache that worsens with movement often comes from muscles, while pain that builds in intense waves frequently signals a kidney stone. Severe flank pain, especially with fever or blood in the urine, needs prompt medical attention, as it can reflect a kidney infection or a blocked urinary tract that requires timely treatment.

Common Causes

Flank pain has many possible sources, ranging from muscle strain to urinary tract problems.

  • Kidney stones: A classic cause of severe, cramping flank pain that comes in waves and may radiate to the groin, often with blood in the urine.
  • Kidney infection (pyelonephritis): Infection of the kidney causing flank pain, fever, chills, and painful urination.
  • Urinary tract infection: Lower tract infections can sometimes cause side discomfort.
  • Muscle strain: Overuse or injury of the back and side muscles.
  • Spine and nerve problems: A pinched nerve, shingles, or arthritis of the spine can cause flank pain.
  • Other organ causes: Problems with the gallbladder, pancreas, or, less often, the abdominal aorta can be felt in the flank.

Associated Symptoms

The symptoms that accompany flank pain help narrow down the cause and reveal how urgent it is.

  • Blood in the urine or pink, red, or cola-colored urine
  • Painful, frequent, or urgent urination
  • Fever, chills, or feeling generally unwell
  • Nausea and vomiting, common with kidney stones
  • Pain that spreads to the lower abdomen or groin
  • A rash or blistering on one side of the body (suggesting shingles)
  • Pain that worsens with movement or pressing on the muscles (suggesting a muscle or spine cause)

Fever with flank pain raises concern for a kidney infection, which needs prompt treatment.

Diagnosis & Evaluation

A clinician evaluates flank pain by asking about its onset, character, and associated symptoms, then examining the back, abdomen, and side. Tests depend on the suspected cause.

  • Urine tests: Check for blood, infection, or crystals that suggest stones.
  • Blood tests: Assess kidney function and signs of infection.
  • Imaging: Ultrasound or CT scans can detect kidney stones, infection, blockage, or other abdominal problems.
  • Examination of the spine and muscles: Tenderness that worsens with movement points to a musculoskeletal cause.

If the pain is mild and clearly muscular, extensive testing may not be needed, but persistent, severe, or feverish flank pain warrants thorough evaluation.

Treatment & Management

Treatment is directed at the underlying cause, with relief of pain along the way.

  • Kidney stones: Small stones often pass with fluids and pain relief; larger or stuck stones may need procedures to break up or remove them.
  • Kidney infection: Treated with antibiotics, sometimes in the hospital if severe.
  • Muscle strain: Rest, gentle stretching, heat or cold, and over-the-counter pain relievers usually help.
  • Nerve causes: Shingles is treated with antiviral medicine, and nerve-related back pain is managed accordingly.

Staying well hydrated supports kidney health and can help prevent some stones. Never ignore severe or feverish flank pain while waiting for it to pass.

When to See a Doctor

See a doctor promptly for flank pain that is severe, persistent, or comes with worrying features. Seek urgent or emergency care if you have:

  • Severe, unrelenting flank pain, especially in waves
  • Fever and chills with flank pain
  • Blood in the urine
  • Nausea and vomiting that prevent keeping fluids down
  • Inability to urinate or a sudden drop in urine output
  • Fainting, a racing heart, or sudden severe back and abdominal pain (which can signal a serious blood vessel problem)

Frequently Asked Questions

What does kidney-related flank pain feel like?

Kidney stone pain is often severe, sharp, and comes in waves, sometimes spreading from the side to the groin, and may go along with blood in the urine and nausea. Kidney infection pain tends to be a steadier ache in the side with fever and painful urination. Both deserve prompt medical care.

How can I tell if flank pain is from a muscle or my kidney?

Muscle pain usually worsens with movement, twisting, or pressing on the area, and there are no urinary symptoms or fever. Kidney-related pain often comes with blood in the urine, painful urination, fever, or pain that spreads to the groin. If you are unsure, see a doctor.

When is flank pain an emergency?

Seek emergency care if flank pain is severe and unrelenting, comes with fever and chills, includes blood in the urine, causes persistent vomiting, or is accompanied by fainting. Sudden severe flank and abdominal pain can also signal a dangerous blood vessel problem.

Can drinking water help flank pain from a kidney stone?

Staying well hydrated can help small kidney stones pass and may reduce the chance of forming new ones. However, if the pain is severe, you have a fever, or you cannot keep fluids down, you need medical care rather than relying on water alone.

Why does flank pain sometimes come with painful urination?

Pain on urination together with flank pain often points to a urinary tract or kidney infection. The infection irritates the bladder and can travel up to the kidney, producing side pain, fever, and urinary symptoms. This combination should be evaluated and usually needs antibiotics.

Medical Disclaimer: This information is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider with any questions about a medical condition.

References

  1. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Kidney Stones.
  2. Mayo Clinic. Kidney infection — Symptoms and causes.
  3. MedlinePlus, U.S. National Library of Medicine. Flank pain.
  4. Centers for Disease Control and Prevention (CDC). Urinary tract infections.