The intricate geometry and thin walls of the motor housing in new energy vehicles render it susceptible to casting defects during conventional casting processes. However, the lost-foam casting process holds a unique advantage in eliminating casting defects and ensuring the strength and air-tightness of thin-walled castings. In this paper, the lost-foam casting process of thin-walled A356 alloy motor housing was simulated using ProCAST software (2016.0). The results indicate that the filling process is stable and exhibits characteristics of diffusive filling. Solidification occurs gradually from thin to thick. Defect positions are accurately predicted. Through analysis of the defect volume range, the optimal process parameter combination is determined to be a pouring temperature of 700 °C, an interfacial heat transfer coefficient of 50, and a sand thermal conductivity coefficient of 0.5. Microscopic analysis of the motor housing fabricated using the process optimized through numerical simulations reveals the absence of defects such as shrinkage at critical locations.