The objective of this research work is to optimize the stress variations at the top of the piston in real engine conditions. During this pressure analysis on the examined surface of the piston, the thermal behavior is examined. The operating gas pressure, temperature and piston material functions are used as investigation functions. The analyzes carried out showed that the upper part of the piston could be damaged or broken due to the temperature caused by the working conditions, as the replacement of damaged or non-functioning parts is very expensive and usually difficult to obtain. Concave and convex piston profile designed in Solid Work 2023, used to design the piston geometry and for FEM analysis to optimize the thermal behavior of the used ANSYS R23.0 piston. Aluminum alloy and gray cast iron material for piston construction. Stress and displacement are analyzed for the piston by applying pressure to it in the structural analysis. By observing the results of the analysis, we can decide whether the piston we are designing is safe or not under the applied load conditions. Heat flow and thermal temperature distribution are analyzed using piston surface temperatures in thermal analysis.