system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How is mass different from weight?

Somebody said they are different because of gravity.
gpt
Weight is dependent on gravitational force. It's a measure of that gravitational force, usually on Earth. Mass, which measures the amount of matter in an object, exists whether gravity acts on it or not. The same object has the same mass on Earth, the Moon, or in the middle of space, but has different weights at each of those locations.

However, on Earth weight can be used to measure mass. Since the same gravitational force acts on all objects in the same place on Earth, comparing their weights will reveal their mass. On Earth, mass equals weight divided by the acceleration of gravity.