What's the difference between F = ma and F = mg?
F = ma calculates any force given mass and acceleration. F = mg specifically calculates gravitational force (weight); it uses g = 9.8 m/s², which is the acceleration due to gravity. So if you know an object's mass, F = mg gives its weight instantly.
