I have pain in my mid to upper back, is
Unlikely to be caused by kidneys
Hello and welcome to 'Ask A Doctor' Service,
Pain in the kidneys, such as from kidney stones or infection, is typically in the flanks - the sides of the low back, at the back of the waist on the sides.
Mid to upper back pain can be from a number of causes. The most common causes of pain in this area are musculoskeletal problems (muscle strain, arthritis, slipped disc). But other things can cause pain here too, including referred pain from the digestive organs (gall bladder, pancreas) or lungs. Rarely, pain can be referred there from the heart.
If the pain is from a musculoskeletal cause, it usually hurts with the movement of the back in certain positions, whereas that is less typical for other causes.
So - if this has been going on for months, it is time to see your doctor for an evaluation regarding the cause. If it is a musculoskeletal problem, physical therapy may help. Other causes will be addressed based on what is going on.
I hope this information helps.
Please let me know if I can provide further information or clarification.