Depending on the FMS manufacturer, there are several methodologies used. One uses a grid over the WGS84 ellipsoid, with a lookup feature, ie if this is your lat/long, this is the altitude above the ellipsoid. Others actually calculate referencing the ellipsoid.
It does not use geopotential.