The p53 gene has been shown to be commonly mutated in various human cancers, and mutant p53 can act as a dominant oncogene. The intact p53 protein is also known to induce the cyclin-dependent kinase inhibitor p21WAF1/CIP1 and is implicated in cell cycle arrest. We investigated p53 gene alterations in gastric adenocarcinoma and esophageal squamous cell carcinoma to elucidate the association of the nuclear accumulation of the p53 protein and/or p21WAF1/CIP1 protein. Abnormalities of the tumor suppressor gene p53 protein and the expression of p21WAF1/CIP1 protein were analyzed by immunohistochemical techniques in 32 cases of gastric adenocarcinoma and 15 cases of esophageal squamous cell carcinoma. Twenty cases of gastric cancer and five cases of esophageal cancer were also analyzed for p53 gene mutation by polymerase chain reaction and direct nucleotide sequencing. Overexpression of p53 protein was found in 13/32 (41%) of gastric cancers and 5/15 (33%) of esophageal cancers. We found immunodetectable p53 in 10/14 cases with mutations and in none of 11 cases without mutations in gastric and esophageal cancers. Hence, immunohistochemical and genetic analyses gave concordant results in 84% of 25 cases, revealing a good correlation between immunostaining of p53 and missense mutation of the p53 gene. p53 immunostaining was not observed in cases with frameshift or splicing mutation. The expression of p21WAF1/CIP1 protein was found in 9/32 (29%) of gastric cancers and 4/15 (27%) of esophageal cancers and in 2/14 (14%) cases with alteration of the p53 gene and in 5/11 (45%) without. These results suggest that abnormalities of p53 may be closely associated with the pathogenesis of gastric adenocarcinoma and esophageal squamous cell carcinoma and that the immunoreactivity of p53 protein is a general indicator of the tumors with altered p53 function. The expression of p21WAF1/CIP1 protein was suppressed in the neoplastic tissues with and without p53 gene alteration.