Geopolymer concrete offers an eco-friendlier option compared to traditional cement, as it lowers greenhouse gas emissions during production. It consists of an alkaline solution with sodium or potassium silicate and sodium or potassium hydroxide, as well as a source material abundant in silica and alumina. For this study, thirty geopolymer concrete samples were produced in the lab using a mix design approach from Scheffe’s (5,2) model. The focus of the research was on maximizing the compressive strength of the concrete, especially when incorporating sawdust ash as the source material. The findings indicated that subjecting sawdust ash to pyrolysis in the absence of oxygen significantly impacts its pozzolanic properties and, consequently, the characteristics of the concrete. The research determined the optimal compressive strength of geopolymer concrete incorporating sawdust ash to be 21.673 MPa, along with specific concentration ratios of NaOH, Na2SiO4 to NaOH, sawdust ash in the binder, water to binder, and activator to sawdust ash at 10.5415, 2.0446, 38.6307, 0.0363, and 2.5882 respectively. Furthermore, MATLAB-based computer programs were utilized to optimize and forecast the ideal mixture proportions for sawdust ash-based geopolymer concrete.