Transmissible gastroenteritis virus (TGEV) is an etiological agent of enteric disease that results in high mortality rates in piglets. The economic impact of the virus is considerable, causing significant losses to the pig industry. The development of an efficacious subunit vaccine to provide promising protection against TGEV is of the utmost importance. The viral antigen, spike glycoprotein (S), is widely regarded as one of the most effective antigenic components for vaccine research. In this study, we employed immunoinformatics and molecular dynamics approaches to develop an 'ideal' multi-epitope vaccine. Firstly, the dominant, non-toxic, highly antigenic T (Th, CTL) and B cell epitopes predicted from the TGEV S protein were artificially engineered in tandem to design candidate subunit vaccines. Molecular docking and dynamic simulation results demonstrate that it exhibits robust interactions with toll-like receptor 4 (TLR4). Of particular significance was the finding that the vaccine was capable of triggering an immune response in mammals, as evidenced by the immune simulation results. The humoral aspect is typified by elevated levels of IgG and IgM, whereas the cellular immune aspect is capable of eliciting the robust production of interleukins and cytokines (IFN-γ and IL-2). Furthermore, the adoption of E. coli expression systems for the preparation of vaccines will also result in cost savings. This study offers logical guidelines for the development of a secure and efficacious subunit vaccine against TGEV, in addition to providing a novel theoretical foundation and strategy to prevent associated CoV infections.