Gallstones cause pain in the mid-upper abdomen that may radiate to the back or under the right shoulder. Kidney stones cause sharp pain in the lower back or side of the body that may radiate to the lower abdomen and groin.