In this research, the residual gas, peak firing pressure increase, and effective release energy were completely investigated. To obtain this target, the experimental system is installed with a dynamo system and a simulation model was setup. Through combined experimental and simulation methods, the drawbacks of the hardware optimization method were eliminated. The results of the research show that the valve port diameter-bore ratio (VPD/B) has a significant effect on the residual gas, peak firing pressure increase, and effective release energy of a four-stroke spark ignition engine. In this research, the engine was performed at 3000 rpm and full load condition. Following increased IPD/B ratio of 0.3–0.5. The intake port and exhaust port diameter has a contrary effect on engine volumetric efficiency, the residual gas ratio increase 27.3% with larger intake port and decrease 18.6% with larger exhaust port. The engine will perform optimal thermal efficiency when the trapped residual gas fraction ratio is from 13% to 14%. The maximum effective release energy was 0.45 kJ at 0.4 intake port-bore ratio, and 0.451 kJ at 0.35 exhaust port-bore ratio. The NOx emission increases until achieved a maximum value after that decrease even VPD/B was still increasing. With a VPD/B ratio of 0.35 to 0.4, the engine works without the misfiring.