Ship stability is an area of naval architecture and ship design that deals with how a ship behaves at sea, both in still water and in waves, whether intact or damaged. Stability calculations focus on centers of gravity, centers of buoyancy, the metacenters of vessels, and on how these interact.