The gravitational force and acceleration due to gravity are derived via the Fg = G m1m2/r^2 equation... where mass and distance from the center of the object make a difference...
The accelerations due to gravity(g) are different on Earth(9.8 m/s^2)and Mars (3.8 m/s^2)