The pain in the middle of chest when sleeping up may be caused by bad sleeping posture, and it may also be caused by chronic gastritis and myocardial ischemia, which can be treated by medication and surgery. 1. Bad sleeping position: If you have been sleeping in a bad position for a long time, the local soft tissues and bones are subjected to long-term pressure, resulting in pain in the middle of the chest when you sleep. You can change your sleeping position to relieve the symptoms. 2. Chronic gastritis: chronic gastritis may appear to sleep up the middle of the chest pain, hidden pain, distension, nausea, vomiting and other symptoms, can be through omeprazole, clarithromycin, amoxicillin and other drugs for treatment. 3. myocardial ischemia: may be due to sleep up the blood is in a thicker state leading to myocardial ischemia symptoms of chest pain in the middle of sleeping up, can be under the guidance of the doctor oral aspirin, atorvastatin and other drugs for treatment, if the effect of drug treatment is not good, it is recommended to take coronary artery angiography, stenting surgery, if necessary. Therefore, sleep up chest pain in the middle of the patient, should go to the hospital in time to clarify the cause of the disease, under the guidance of the doctor for standardized treatment.