Treatment for upper thigh pain depends on its cause.
Minor injuries often improve with home treatment, including rest, heat, ice, compression, elevation, and gentle massage.
Other options for getting rid of upper thigh pain may include:
pain relief medication for unexplained chronic pain
medication for chronic conditions, such as fibromyalgia and arthritis
surgery to repair damaged or trapped nerves
physical therapy and exercise therapy
surgery to repair damaged muscles, tendons, or ligaments
diabetes medications to prevent further nerve damage
blood thinners if there is a blood clot in the leg
alternative treatments, such as massage therapy, chiropractic, and acupuncture