Overview
The flank sits just below the ribs on either side of the back. The kidneys are here, but so are muscles, the spine, and parts of the bowel, liver, gallbladder, and spleen, so many things can cause pain in this spot.
Kidney stone pain is often severe and comes in waves, spreading from the side toward the belly or groin. A kidney infection usually causes a steady ache with fever, chills, and urinary symptoms. Pain that's worse with movement or bending is more likely from a muscle or the spine. Shingles can cause burning flank pain before the rash appears.
When to get medical care
Causes
Common causes include kidney stones, kidney infection (pyelonephritis), urinary tract infection, muscle strain or spasm, and back problems like disk disease or arthritis of the spine. Other causes include shingles, a rib injury, gallbladder or liver disease, digestive problems, spinal fracture, kidney abscess, blood clots in the kidney, and, rarely, kidney cancer or an abdominal aortic aneurysm.
OwieClear has pages on 13 conditions that can cause side (flank) pain. Each shows how soon to get care.
Common causes
- Kidney infectionOften needs care today
A bladder infection that has spread up to the kidneys.
- Kidney stonesOften needs care today
Hard deposits in the kidney that can cause severe side or back pain as they pass.
- Swollen kidney from blocked urine (hydronephrosis)Often needs care today
Urine backs up and stretches the kidney, from a kidney stone, enlarged prostate, narrowing, pregnancy, or a problem present from birth.
Less likely causes
- Clear cell renal cell carcinomaSee a doctor if it doesn't get better
The most common type of kidney cancer.
- Kidney differences from birth (single, horseshoe, or pelvic kidney)See a doctor if it doesn't get better
Differences present from birth, like having only one kidney, two kidneys joined at the bottom (horseshoe kidney), or a kidney low in the pelvis.
- Chromophobe renal cell carcinomaSee a doctor if it doesn't get better
An uncommon, usually slow-growing kidney cancer with a good outlook.
- Collecting duct carcinoma and other rare kidney cancersSee a doctor if it doesn't get better
Rare, often aggressive kidney cancers, including collecting duct carcinoma and translocation kidney cancer (which can affect children and young adults).
- Cystinuria (inherited kidney stones)See a doctor if it doesn't get better
An inherited condition that causes the amino acid cystine to form kidney stones, often starting in childhood or the teens.
- Kidney cancer (needs checking)See a doctor if it doesn't get better
Cancer of the kidney, often found by chance on a scan done for something else.
- Papillary renal cell carcinomaSee a doctor if it doesn't get better
The second most common kidney cancer.
- Parathyroid cancerSee a doctor if it doesn't get better
A very rare cancer of the small glands in the neck that control calcium.
- Renal medullary carcinomaOften needs care today
A rare, aggressive kidney cancer of young people with sickle cell trait or sickle cell disease.
- Renal pelvis and ureter cancer (upper tract urothelial cancer)See a doctor if it doesn't get better
Cancer of the lining of the part of the kidney that collects urine (renal pelvis) or the tube to the bladder (ureter).
What you can do at home
- Drink plenty of water, especially if you might have a kidney stone.
- Use heat or ice for muscle pain.
- Rest, then gently stretch and move as pain allows if it's a muscle strain.
- Strain your urine if your provider asks, to catch a kidney stone for testing.
- Keep track of your symptoms: where the pain is, whether it comes in waves, and any fever or urine changes.
Medicines
Acetaminophen (Tylenol) or ibuprofen (Advil, Motrin) may help, unless your provider says otherwise; avoid ibuprofen if you have kidney disease. Kidney infections need antibiotics. Kidney stones may be treated with pain medicine, fluids, and medicines to help pass the stone, or procedures to break or remove it.
At the doctor
The provider will find out whether the pain is from the kidneys or another source.
Questions you may be asked
- Where the pain is and whether it spreads to the groin, belly, or back
- Whether it comes in waves or is constant
- Whether it's worse with movement or bending
- Fever, chills, nausea, or vomiting
- Changes in your urine, like blood or burning
- Past kidney stones or infections
The exam
A physical exam, including tapping gently over the kidneys.
Tests
- A urine test and urine culture
- Blood tests for infection and kidney function
- A CT scan of the belly
- An ultrasound of the kidneys
- An X-ray
Prevention
You can lower your risk of kidney problems.
- Drink enough water every day
- Limit salt and very high-protein diets if you've had stones
- Don't hold your urine for a long time
- Lift with your legs to protect your back
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.