An ache in the back or the side that starts or gets stronger after lying down is something a lot of people blame on their kidneys, since the kidneys sit in that part of the body. The kidneys are tucked deep under the lower ribs close to the muscles of the back, so pain from the muscles, the joints of the spine and the kidneys themselves can be felt in much the same place. Finding the source tends to depend on the position of the ache, how it changes with movement and what tests go on to show.
The Location of the Kidneys in the Body
The kidneys are two bean-shaped organs about the size of a fist, and the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) describes them as lying in the upper part of the abdomen toward the back, one on each side of the spine. The job of the kidneys is to filter extra water and wastes out of the blood in order to make urine, and the urine then flows down two thin tubes (the ureters) to the bladder.
The kidneys rest against the large muscles of the lower back and sit partly under the lowest ribs, so the area people point to when they talk about kidney pain is often the area doctors call the flank (the side of the body between the ribs and the hip). Because the kidneys, the back muscles, the ribs and the spine share this small region, an ache there can come from any of these structures and it will not always be easy to tell them apart from the outside.
Position and the Back Muscles and Spine
A number of aches that people feel when they lie down come from the muscles, ligaments and small joints of the back and not from the kidneys at all. Lying flat on a soft mattress or lying on one side for many hours will put the spine in a position that can strain tired or stiff muscles, and the discomfort then tends to show up at night or first thing in the morning before the body has started to move again.
Kidney Care UK has noted that back pain is often linked to movement and posture and that it usually eases with rest, and a number of health information sources describe pain from the kidney as a deeper and steadier ache sitting higher in the flank that does not change much when a person bends, twists or lies down. The way an ache responds to a change of position is a useful clue for the doctor, and it is only one clue among several, so position alone is not able to confirm or rule out a kidney cause.
Possible source
Usual area
Link with position
Back muscles and ligaments
Lower back, often across both sides
Tends to change with posture, bending or resting
Joints and discs of the spine
Center of the back, sometimes spreading to the legs
Often changes with sitting, standing or lying
Kidney
High in the flank under the ribs, usually one side
Tends to stay steady whatever the position
Ureter (tube from the kidney)
Side of the body and lower abdomen toward the groin
Usually does not ease with a change of position
Contact our team
How can we help you? Share your contact details to prepare your request.
How can we help?
By submitting you confirm you have read the privacy information and consent to the processing of your personal data.
Kidney Conditions That Can Cause an Ache in the Flank
Kidney Stones
Kidney stones are hard pieces of material that form in the kidney when substances in the urine such as calcium, oxalate or uric acid become concentrated and go on to crystallize. NIDDK explains that a stone can stay in the kidney or travel down the ureter, and a stone that blocks the flow of urine is able to cause pain and in some cases an infection. The pain from a stone moving through the ureter comes from the tube stretching and squeezing, so it tends to carry on whatever position the person lies in.
Kidney Infection
A kidney infection (pyelonephritis) usually starts as a bladder infection when bacteria travel up from the bladder through the ureter and into the kidney. The swelling of the kidney inside its tight outer layer (the capsule) is thought to be the source of the deep ache in the flank, and a kidney infection is a condition that doctors want to assess promptly.
Polycystic Kidney Disease
Polycystic kidney disease (PKD) is a genetic disorder in which many fluid-filled sacs (cysts) grow in the kidneys, and NIDDK states that PKD affects about 500,000 people in the United States. NIDDK lists pain in the back and sides between the ribs and hips as a common feature of the autosomal dominant form, and the agency describes several sources of that pain, including stretching of the tissue around the kidney as the cysts grow and infected, bleeding or burst cysts as well as kidney stones and urinary tract infections. Large kidneys with many cysts take up more space in the abdomen, so some people with PKD find that certain lying positions press on the kidneys and make an existing ache more noticeable.
Blocked Urine Flow
Swelling of the kidney caused by urine that is unable to drain properly (hydronephrosis) can follow a stone, a narrowing of the ureter or pressure on the ureter from nearby organs. The stretching of the kidney in hydronephrosis can lead to a dull ache in the flank that will often stay the same when the person changes position.
Factors That Raise the Chance of a Kidney Cause
A number of factors make it more likely that an ache in the flank is coming from the kidney, and doctors will ask about these in order to build up a fuller picture. A past kidney stone, a family history of kidney stones or PKD, frequent urinary tract infections and conditions such as diabetes or high blood pressure that can affect the kidneys over time all count as part of this history.
Low fluid intake, some eating patterns and certain medicines can raise the chance of stones in some people, and NIDDK notes that kidney stones are more common in people who have had them before. Pregnancy changes the way urine drains from the kidneys, and an enlarged prostate in older men can also slow the flow of urine, so both of these situations are taken into account when the source of an ache is unclear.
Tests Used to Find the Source of the Pain
A doctor will usually begin by asking when the ache started and where it sits and then go on to examine the back and the flank, and gentle pressure over the area of the kidney is able to give a first hint about whether the kidney or the muscle is involved. A urine test (urinalysis) checks for blood, signs of infection and crystals, and a blood test measuring creatinine (a waste product filtered by the kidneys) is used to estimate how well the kidneys are filtering.
Imaging tests are then chosen to fit the question the doctor wants to answer, so an ultrasound scan can show swelling of the kidney or cysts without radiation and a CT scan is often used to look for stones in the kidney and the ureter. X-rays or an MRI of the spine come into the picture when the history points more toward the back than the kidneys, and a person who notices changes that carry on should talk with a doctor about them.
Frequently Asked Questions
Is back pain at night usually a kidney problem?
Night-time back pain tends to come more often from the muscles, ligaments and joints of the back, especially when it changes with the position of the body or with the type of mattress. A doctor is able to look at the full history and run simple tests in order to tell whether the kidneys could be involved.
Can sleeping position affect the kidneys themselves?
Sleeping position is not known to harm healthy kidneys as the kidneys are cushioned by the ribs, the back muscles and a layer of fat. In people with large kidneys from polycystic kidney disease some positions may press on the swollen organs and make an existing ache more noticeable.
Does kidney pain usually affect one side?
Many kidney problems such as a stone or an infection affect one kidney at a time, so the ache tends to sit on one side of the flank. Conditions like polycystic kidney disease affect both kidneys and can cause discomfort on both sides of the back.
Should a urine test be part of checking an ache near the kidneys?
A urine test is a quick and simple check that doctors often use when an ache could come from the kidneys, because it can show blood, signs of infection or crystals. The result is read together with the physical examination and any blood tests or scans that are ordered.
Speaking With Nephrology Specialists
Nephrology is the branch of medicine that looks after the kidneys, and a nephrology doctor is able to explain whether an ache in the flank fits with a kidney condition or with a problem in the back. People with a known kidney condition, a family history of PKD or repeated kidney stones can ask their family doctor whether a referral to nephrology specialists would be useful, and the care team will give advice that fits each person. When pain is severe or comes on suddenly it is reasonable to contact a doctor or emergency services without waiting.
References
National Institute of Diabetes and Digestive and Kidney Diseases. Your Kidneys & How They Work. https://www.niddk.nih.gov/health-information/kidney-disease/kidneys-how-they-work
National Institute of Diabetes and Digestive and Kidney Diseases. What Is Polycystic Kidney Disease? https://www.niddk.nih.gov/health-information/kidney-disease/polycystic-kidney-disease/what-is-pkd
National Institute of Diabetes and Digestive and Kidney Diseases. Autosomal Dominant Polycystic Kidney Disease. https://www.niddk.nih.gov/health-information/kidney-disease/polycystic-kidney-disease/autosomal-dominant-pkd
National Institute of Diabetes and Digestive and Kidney Diseases. Kidney Stones. https://www.niddk.nih.gov/health-information/urologic-diseases/kidney-stones
Kidney Care UK. Kidney pain: your questions answered. https://kidneycareuk.org/kidney-disease-information/living-with-kidney-disease/managing-symptoms/kidney-pain-your-questions-answered/