A multi-area power system requires coordination to enhance reliability and reduce operating costs. Economic dispatch in such systems is crucial because of the uncertainties associated with variable loads and the increasing penetration of renewable energy sources. This paper presents a hierarchical consensus algorithm designed to determine the economic dispatch in a multi-area power system, accounting for the uncertainties in load and renewable generation. The proposed algorithm, which utilizes distributed agents, operates across three levels. Level 1 coordinates all areas, while levels 2 and 3 form a leader–follower consensus algorithm for overall economic dispatch. Breadth-first search is employed to identify the leader agent within each area. To address the uncertainties in loads and renewable generation, Monte Carlo simulations are performed. The efficacy of the proposed method is validated using the IEEE 39-bus and 118-bus systems, as well as a realistic 1968-bus power system in Taiwan. The traditional equal lambda method is employed to verify that the proposed approach is suitable for multi-area power systems using distributed computation.