In this study, a simulation program was developed that can calculate combustion, emission and engine performance values depended on variable parameters for internal combustion engines by mathematical modelling. This simulation program was created with the Java programming language. Graphical user interface (GUI) was used in this simulation program. With the simulation program created, it can calculate many values such as in-cylinder pressure, temperature, gas amounts generated as a result of combustion, power, torque, specific fuel consumption, both in spark ignition engines and compression ignition engines. This simulation program presents the results both numerically and graphically. The calculations are obtained at every crankshaft angle at 0.25 ˚ intervals. With this simulation program, analyses were made in different excess air coefficients (0.9-1-1.1-1.2) and the effects of in-cylinder pressure, temperature, mass ratios of gas components and engine performance values were compared. According to the simulation results, as the excess air coefficient increases, the temperature and pressure values decrease. 〖CO〗_2 and NO mass ratios decrease as the excess air coefficient increases in case the excess air coefficient is greater than 1. H_2 O mass ratio increased as the excess air coefficient increased.