In the modern engines with higher compression ratios, severe pressures and non-uniform heating up is occurred for the engine parts. The piston as the most critical part among all automotive components has been the subject of numerous studies on calculation of temperature distribution, but thermal stress analyses are limited. In this study, the piston of gasoline engine XU7 which is widespread in Iran transport section is considered for thermomechanical investigation. A 3D linear static stress analysis is constructed in COSMOS Works to determine the stress distribution during the combustion stroke. The maximum normal stress takes place at the middle surface of the piston crown. The von Mises stress is found to be critical on upper parts of the pin-hole area. Effect of ceramic coating layer on stress distributions are evaluated and compared with results obtained for a traditional uncoated piston. According to the results, the maximum stress can be readily controlled by increasing the thickness of ceramic layer