The energy consumption of bitcoin mining is calculated by determining the total amount of energy used by the miners to solve the complex mathematical equations required to validate bitcoin transactions and add new blocks to the blockchain. This energy consumption is typically measured in terms of kilowatt-hours (kWh), which is a unit of energy consumption that reflects the amount of energy used by an electrical device over the course of one hour.