This paper presents the development of a flexible tool for the calculation of the state matrix A of the power system. This program is called SIAM (Sistema Informático para Análisis Modal - Computational System for Modal Analysis). The state matrix is obtained from the load flow solution data and from the dynamic model parameters employed. The detailed models of synchronous machines, automatic voltage regulators and power system stabilizers are linearized for the calculation. To evaluate the method proposed, there is a comparison of results between SIAM and a commercial program for a reference case published.Instituto de Investigaciones Tecnológicas para Redes y Equipos Eléctricos (IITREE