A carbon footprint is calculated by estimating the greenhouse gas emissions resulting from different activities. This includes direct emissions, such as those from fossil fuel combustion in manufacturing, heating, and transportation, as well as indirect emissions associated with electricity consumption, material production, and end-of-life treatment.