Taxi meters calculate the fare based on the distance traveled and the time spent in the taxi. They factor in variables such as traffic conditions and waiting times to provide an accurate fare.