The general formulation and exact solution of the Navier–Stokes and energy equations regarding the problem of steady and unsteady two-dimensional stagnation-point flow and heat transfer is investigated in the vicinity of a flat plate. The plate is moving at time-dependent or constant velocity towards the main low Mach number free stream or away from it. The main stream impinges along z-direction on the flat plate with strain rate a and produces two-dimensional flow. The fluid is assumed to be viscous and compressible. The density of the fluid is affected by the existing temperature difference between the plate and potential far field flow. Suitably introduced similarity transformations are used to reduce the governing equations to a coupled system of ordinary differential equations. Finite Difference Scheme is used to solve these non-linear ordinary differential equations. The obtained results are presented over a wide range of parameters characterizing the problem. It is revealed that the significance of the increase of thermal expansion coefficient, β, and wall temperature on velocity and temperature distributions is much more noticeable for a plate moving away from impinging flow. Moreover, negligible shear stress and heat transfer is reported between the plate and fluid viscous layer close to the plate for a wide range of β coefficient when the plate moves away from incoming far field flow.