From a processor spec to a power bill

The electricity meter at a home or a data center counts kilowatt-hours. The processors inside list energy in picojoules per operation or per bit. To connect them you need a conversion across eighteen powers of ten, and a mistake of a single exponent turns a sensible estimate into nonsense. This page converts the picojoule figure into kilowatt-hours so that a total workload can be priced, whether it is a single program run, a month of a small service or a classroom exercise. It is useful for students working a computing-energy problem, for engineers sketching the cost of a billion-operation job and for readers checking a statement in an article about the energy use of computing.

3.6 million joules in a kilowatt-hour

A kilowatt-hour is one kilowatt sustained for one hour, or 1,000 W × 3,600 s = 3,600,000 J. One picojoule is 10^-12 J, so a kilowatt-hour contains 3.6 × 10^18 pJ. The formula is kWh = pJ × 2.77777777778 × 10^-19, and the factor is the reciprocal of 3.6 × 10^18. The definition of the hour and the second as a time unit comes from the SI, and NIST SP 811 lists the kilowatt-hour as a unit outside the SI that is in wide use. When the result of a conversion looks unreasonable, divide the input by 3.6 × 10^18 on a calculator to verify the digits.

A 10 pJ operation and a kilowatt-hour

The default of 10 pJ returns about 2.7778 × 10^-18 kWh. That is a decimal with seventeen zeros after the point, so the page writes it with an exponent. A 1 pJ operation is 2.7778 × 10^-19 kWh, and a 1,000 pJ operation, one nanojoule, is 2.7778 × 10^-16 kWh. Because the figures are so small, the useful question is how many events fill one kilowatt-hour. At 10 pJ each, one kilowatt-hour pays for 3.6 × 10^17 events, which is 360 quadrillion. Dividing the energy of the meter by the energy of the event gives that count directly. The same division works for any event energy: at 100 pJ, a kilowatt-hour covers 3.6 × 10^16 events, ten times fewer than at 10 pJ, because the count is inversely proportional to the energy each event takes. A result that goes the wrong way when you change the event energy means a unit was swapped.

Pricing a large computation

Take a job of 10^18 operations at an illustrative 1 pJ each. The energy is 10^18 pJ, or 10^6 J, which is 0.27778 kWh. At 15 cents per kWh, an illustrative tariff, that is about 4 cents. If each operation instead costs 20 pJ because of memory traffic, the same job uses 5.5556 kWh and costs about 83 cents. The example shows how a per-operation figure scales into bill-size numbers only after enormous counts, and why cost estimates for computing hinge on the real energy per operation across the whole system, including cooling and power conversion. Use your own tariff and measured numbers for real decisions.

Electricity meters and billing units

Utilities in most countries bill residential customers in kilowatt-hours, though the rate, the fixed charges and the time-of-use structure differ by provider. A typical household refrigerator or a laptop charger has a rated power in watts, and the energy it uses over a month is the average power times the hours. A 60 W load running for 10 hours uses 0.6 kWh, which is 2.16 × 10^18 pJ. Written like that the unit looks silly, which is a good argument for staying with kilowatt-hours at the household level and using picojoules only for events inside a device.

Converting kilowatt-hours to picojoules

Select kilowatt-hours as the From unit and picojoules as the To unit to go the other way. One kilowatt-hour gives 3.6 × 10^18 pJ, and 0.25 kWh gives 9 × 10^17 pJ. A phone battery of 15 Wh is 0.015 kWh, which is 5.4 × 10^16 pJ. Divide by an energy-per-operation figure to see how many operations that energy could fund in the ideal case. For a 5 pJ operation, the battery covers 1.08 × 10^16 of them. Real devices spend energy on displays, radios and idle states, so the real number of useful operations is much smaller than the ideal one. The same step applies to a power bank: a 20 Wh pack is 0.02 kWh, or 7.2 × 10^16 pJ, and its label capacity is also quoted before conversion losses, so the energy that reaches a phone is lower than the figure printed on the case.

A server running for a year

Per-operation energy only becomes a bill when it is multiplied up to hardware that never stops. An illustrative server that averages 300 W draws 0.3 kW, and a non-leap year has 8,760 hours, so it uses 0.3 × 8,760 = 2,628 kWh. In picojoules that is 2,628 × 3.6 × 10^18 = 9.4608 × 10^21 pJ. Divide by an energy per operation, and you get the count of operations the machine could perform if every joule went to computation, which it never does, since fans, storage and power conversion take their share. At 15 cents per kWh, an illustrative tariff, the electricity for that server is about $394 a year. A purchasing team comparing two servers would compare these kilowatt-hour totals, not the picojoule figures on the chip.

Reading 2.7778e-18 correctly

Scientific notation separates the digits from the scale. In 2.7778e-18, the 2.7778 holds the significant figures and the e-18 moves the decimal point eighteen places left. When you copy a result into a document, keep the exponent and round the digits to the precision of the input. A figure of 10 pJ is known to one or two digits, so 2.8 × 10^-18 kWh is an honest statement. Software may print a tail such as 2.7777777777777778e-18, and the last digits are rounding noise from binary arithmetic.

Memory, cooling and idle power sit outside a per-operation figure

The page converts one energy unit to another. It does not include the energy used by memory, cooling, power supplies or idle hardware, and it does not apply a tariff or a carbon intensity. A per-operation figure from a data sheet is usually measured for the core or the memory interface alone, and a facility uses more energy than the sum of its parts. For a cost or an emissions estimate, use measured meter data and the rates and factors that your utility or regulator publishes.