Survival time after surgery for gastric perforation is related to the disease causing the perforation. Gastric perforation caused by benign disease may not affect life expectancy after surgery. Gastric perforation caused by malignant disease also has a different survival time depending on the stage of the tumor, generally advanced tumors may be 2-3 years. Gastric perforation is generally divided into benign perforation and malignant perforation. Benign perforation is mainly gastric perforation caused by peptic ulcer. After timely surgery for gastric perforation caused by ulcer disease, patients with taking treatment ulcer can be completely healed and does not affect life expectancy. If the patient’s surgery is not timely, or if the condition is serious and the outflow of gastric acid causes intestinal spasm and even internal organ damage, the recovery time after surgery is longer. If the gastric perforation is caused by malignant tumor, most of them are caused by advanced gastric cancer, usually radical gastric cancer surgery should be performed after gastric perforation repair. If the gastric cancer is in early stage, it can survive for a long time after gastric resection. However, most patients with gastric cancer causing gastric perforation have advanced gastric cancer, so the survival time after gastric perforation surgery is relatively short, usually 2-3 years. Patients should consider having a gastroscopy when they feel any discomfort in the stomach or when they have a health check. If there is gastric ulcer disease, timely treatment can prevent gastric perforation from occurring. Gastroscopy can detect early gastric cancer, and early treatment can have better therapeutic effect. Patients are advised to avoid overeating and drinking a lot of alcohol to prevent the occurrence of gastric perforation.