[Abstract] This paper describes a methodology to implement and operate an automatic onboard device destined to compute ship stability in real time. The system comprises a software based set of instruments linked to a PC computer which measure roll motions in waves and process acquired data supplying a value related with ship stability by means of an algorithm based in the frequency domain analysis of ships motions related with sea state parameter