A urinary tract infection (UTI) is an infection by bacteria somewhere along the path that urine takes from the kidneys to the outside of the body, and people who have one sometimes notice a headache at the same time and wonder if the two are linked. A simple bladder infection stays in the bladder and rarely affects the head directly. The link tends to come from the body’s general response to infection, from changes in fluid balance and from an infection that has spread upward to the kidneys.
The Urinary Tract and the Places an Infection Can Sit
The urinary tract is made up of the two kidneys, the two tubes that carry urine down from them (the ureters), the bladder and the tube that carries urine out of the body (the urethra). The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) describes a kidney infection (pyelonephritis) as a type of UTI that will usually begin in the bladder and then move upstream to one or both kidneys, so the same infection can stay local or go on to involve more of the body.
An infection kept to the bladder (cystitis) tends to produce changes that are felt in the lower part of the body, and in that setting a headache is more likely to have some other everyday cause such as poor sleep, missed meals or tension. Once bacteria reach the kidneys the infection is able to set off a much wider response in the body, and this is the point where a headache becomes more plausible as part of the same illness.
Site of infection
Medical name
Reach of the body’s response
Bladder
Cystitis
Usually local to the lower urinary tract
Kidney
Pyelonephritis
Often body-wide and may include fever
Bloodstream from a urinary source
Urosepsis
Body-wide and treated as an emergency
The Body-Wide Response to Infection
When the immune system detects bacteria it releases signaling proteins (cytokines) into the blood in order to coordinate the defense, and these same proteins are able to act on the brain and raise the body’s temperature setting so that a fever develops. The NIDDK lists fever and chills among the changes that tend to go with a kidney infection, and a raised temperature together with circulating cytokines is a well recognized trigger for a dull and general headache in a number of infections and not only in those of the urinary tract.
A headache that comes from this pathway is a sign of the body reacting to infection as a whole and it does not mean that bacteria have reached the head, so it is often grouped with tiredness and aching muscles as part of feeling generally unwell.
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.
Fluid Balance and Dehydration
Fever will raise the amount of water the body loses through the skin and the breath, and people who feel sick or who are vomiting tend to take in less fluid over the same period, so the total amount of water in the body is able to drop within a day or two. Dehydration is a common cause of headache in its own right and it can then add to any headache that comes from the infection itself.
Infection, dehydration and changes in blood salts (electrolytes) are recognized causes of sudden confusion (delirium) in older people, and dehydration and electrolyte changes often appear together with the infection during an episode of UTI.
Older Adults and Changes in Thinking
In older people a UTI does not always show itself through the urinary tract, and the NIDDK has noted that some older adults instead show confusion, disordered speech or hallucinations when they have an infection. A systematic review published on PubMed Central reported an association between UTI and delirium in elderly patients, although study quality varied, and a meta-analysis on the same question also reported an association while pointing out that the individual studies did not all agree.
Older adults who have dementia or who are not able to describe how they feel may be unable to report a headache at all, so family members and carers tend to notice a change in behavior or alertness first and then raise it with the care team. A 2025 review on UTI-related delirium in Alzheimer’s disease and related dementias described this as a real clinical challenge, since the urinary signs can be faint or missing in this group.
Kidney Infection, Sepsis and the Role of Nephrology
The NIDDK states that a kidney infection can lead to sepsis (a severe body-wide reaction to infection that can harm organs and become life-threatening) and lists fever, chills and confusion among the warning signs of sepsis. When sepsis begins from the urinary tract doctors call it urosepsis, and at that stage a headache is only one small part of a serious illness that needs emergency assessment.
The NIDDK has also noted that in rare cases a kidney infection may go on to leave permanent scars on the kidney, and that this scarring can lead to chronic kidney disease, high blood pressure and kidney failure over time. Nephrology is the branch of medicine that looks after the kidneys, and a nephrology doctor tends to become involved when infections keep coming back to the kidneys, when kidney function falls during an infection or when there is a structural problem in the urinary tract that makes infection more likely.
Factors That Raise the Chance of an Upper Tract Infection
Kidney stones, an enlarged prostate, a blockage in the urinary tract, pregnancy, diabetes and a weak immune system are among the conditions that can make it easier for bacteria to move upward toward the kidneys, and people who use a urinary catheter carry a higher chance of infection as well.
Urine Tests Used to Check for Infection
A urine test for infection usually starts with a dipstick (a strip with small pads that change color) that checks for substances such as nitrites and white blood cells, and it then goes on to a urine culture in a laboratory, where any bacteria in the sample are grown in order to name the type and test which antibiotics will work against it. A urine culture report will usually list the number of bacteria found per milliliter and the species, and a mixed growth of several types can point to a sample that was contaminated during collection and not to a true infection.
Blood tests such as a full blood count, C-reactive protein and creatinine can show how strongly the body is reacting and whether the kidneys are filtering well, so they help the doctor decide whether a headache and fever fit with a kidney infection or with some other cause. Anyone who notices changes that last or get worse is best advised to talk with a doctor about them.
Frequently Asked Questions
Can a simple bladder infection cause a headache?
A bladder infection on its own tends to stay local and rarely leads to a headache directly. When a headache appears during cystitis it may come from mild dehydration, poor sleep or another everyday cause, and a doctor is able to judge whether the infection could have spread upward toward the kidneys.
Is a headache with a UTI a sign of a kidney infection?
A headache alone does not confirm that the kidneys are involved. Kidney infections tend to cause a body-wide response with fever and chills, and a headache can form part of that picture, so doctors look at the full set of findings and at urine and blood tests before reaching a view.
Does dehydration link UTIs and headaches?
Dehydration is one of the common pathways connecting the two, since fever raises water loss and people who feel unwell often drink less. Low fluid levels are a well known headache trigger, and the care team gives advice on fluid intake that fits each person and their health conditions.
Are older adults affected differently?
Older people may show confusion, changes in speech or unusual behavior during a UTI instead of the classic urinary signs, according to the NIDDK. Research has found an association between UTI and delirium in this age group, and people with dementia may be unable to report a headache at all.
Should a nephrology doctor be involved in every UTI?
Most UTIs are managed by a family doctor or general practitioner. A nephrology doctor tends to join the care team when infections keep reaching the kidneys, when kidney function drops or when an underlying kidney condition is present, and a urologist may be involved when there is a structural or blockage problem.
Speaking With a Kidney Specialist
People who have had repeated urinary infections or a past kidney infection can ask their doctor whether their kidney function has been checked and whether a referral to a nephrology clinic would be useful for them. A specialist in nephrology is able to explain test results, look for factors that make infections more likely and describe how the kidneys can be monitored over time in a way that fits each person’s situation.
References
National Institute of Diabetes and Digestive and Kidney Diseases. Kidney Infection (Pyelonephritis). https://www.niddk.nih.gov/health-information/kidney-disease/kidney-infection-pyelonephritis
National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms and Causes of Kidney Infection (Pyelonephritis). https://www.niddk.nih.gov/health-information/urologic-diseases/kidney-infection-pyelonephritis/symptoms-causes
National Institute of Diabetes and Digestive and Kidney Diseases. Definition and Facts of Kidney Infection (Pyelonephritis). https://www.niddk.nih.gov/health-information/urologic-diseases/kidney-infection-pyelonephritis/definition-facts
Urinary Tract Infection Induced Delirium in Elderly Patients: A Systematic Review. PubMed Central. https://pmc.ncbi.nlm.nih.gov/articles/PMC9827929/
Association between urinary tract infection and delirium in older adults: a meta-analysis. PubMed Central. https://pmc.ncbi.nlm.nih.gov/articles/PMC9292354/
Urinary tract infection-related delirium in Alzheimer’s disease and related dementias: Clinical challenges and translational opportunities. PubMed Central. 2025. https://pmc.ncbi.nlm.nih.gov/articles/PMC12865330/