The economical load dispatch problem is a critical concern in thermal power systems to ensure cost-effective operation. This paper conducts a comparative analysis between the Social Spider Algorithm (SSA) and Particle Swarm Optimization (PSO) for economical load dispatch in a 6-unit thermal power system with the integration of 11,000 plug-in electric vehicles (PEVs). Both SSA and PSO are population-based optimization techniques designed to minimize the overall fuel cost while satisfying the load demand by determining the optimal power output of each unit. SSA emulates the social behavior of spiders, while PSO simulates the collective intelligence of a swarm of particles. Performance evaluation of the algorithms considers power system data, such as unit fuel costs, minimum and maximum loads, and total load demand. The objective is to minimize fuel cost while meeting the load demand. Comparative analysis of SSA and PSO includes convergence speed, solution quality, and computational efficiency. Experimental results indicate that SSA outperforms PSO in achieving a more optimal and economical load dispatch solution for the 6-unit thermal power system. SSA demonstrates faster convergence and provides superior-quality solutions compared to PSO. This paper contributes to the field by highlighting SSA's effectiveness in achieving cost-efficient operation of thermal power systems. The findings suggest that SSA holds promise as an optimization technique for similar power system optimization problems, enhancing overall operational efficiency and reducing costs for thermal power plants.