The metacentric height assesses the stability of a floating vessel only for small angles of heel, pretty much those angles where the size and shape of the waterplane are not affected to a great degree.
For assessing the stability of a vessel at larger angles of heel, the lateral separation of the lines of action of the buoyant force and the gravitational force acting on the vessel is calculated. This lateral separation is called the "righting lever" and is calculated for a series of angles starting at zero degrees and running through 90 degrees or greater as needed. The following diagram shows how B moves in relation to G as a vessel heels, and how this movement produces the righting lever which tends to move the vessel back to the upright position:
Some vessels exhibit positive righting levers thru the full 360-degree range of heel. These vessels are called "self-righting", since they will not remain capsized if they are free to move.
In general, the calculation of the righting levers for a vessel is quite complicated and requires the use of special software designed for the purpose. For commercial vessels, the calculation of righting levers and the application of various stability criteria based on them are required in order to receive a certificate to operate.