A billing unit set beside a chip-scale unit

The kilowatt-hour is what an electricity meter counts, and the femtojoule is what a chip designer counts. They sit about twenty-one orders of magnitude apart, so this page is mostly used for scale comparisons, teaching exercises and sanity checks on large unit chains. The default input of 10 kWh gives 3.6 × 10^22 fJ, which is 36 followed by twenty-one zeros. In a practical sense, 10 kWh is a day of electricity for a small apartment or a third of a typical gallon of gasoline in energy terms, while 1 fJ is the energy scale associated with switching a single logic gate or moving a small packet of charge on a chip. The formula is fJ = kWh × 3.6 × 10^21. There is no measured constant in it, only the definition of the hour and the prefix, so the factor is exact and the answer needs no uncertainty allowance.

Where the 3.6 × 10^21 comes from

A kilowatt is 1,000 joules per second, and an hour is 3,600 seconds. One kilowatt-hour is therefore 1,000 × 3,600 = 3,600,000 J, which is 3.6 MJ. NIST SP 811 lists the kilowatt-hour as exactly 3.6 × 10^6 J. The femto prefix is 10^-15 in the BIPM SI Brochure, which means a joule contains 10^15 femtojoules. Multiplying 3.6 × 10^6 by 10^15 gives 3.6 × 10^21. Written in full that is 3,600,000,000,000,000,000,000 fJ for a single kilowatt-hour. The numbers in the page output may show a trailing digit such as 3.5999999999999996 × 10^22 for the default case. That comes from floating-point arithmetic in the browser, and the intended value is exactly 3.6 × 10^22 fJ. Round to the number of significant digits in your input.

The default and other examples

The default 10 kWh gives 3.6 × 10^22 fJ. One kilowatt-hour gives 3.6 × 10^21 fJ, or 3,600,000,000,000,000,000,000. A smaller case: 0.001 kWh, which is one watt-hour, gives 3.6 × 10^18 fJ. A medium case: 2.5 kWh, roughly what a small electric heater uses in an hour at its full 2.5 kW rating, gives 9 × 10^21 fJ. If you compare these with the fJ-scale energies of single operations, the ratio gives the number of operations that the energy could in principle pay for. Dividing 3.6 × 10^21 fJ by an energy cost of 10 fJ per operation gives 3.6 × 10^20 operations. That is only an upper bound for logic energy and ignores memory, communication, cooling and conversion losses. It does show how many elementary events a kilowatt-hour could cover.

Femtojoules in electronics

Energy per operation is a central figure of merit in digital design. The switching energy of a single transistor or gate in modern CMOS technology is often discussed in the range of tenths of a femtojoule to a few femtojoules. Moving data costs far more: reading a word from off-chip memory costs hundreds to thousands of times the energy of an arithmetic operation, commonly quoted in picojoules rather than femtojoules. Optical interconnect research cites energy per bit in femtojoules as a target, such as 10 fJ per bit or less. Those are order-of-magnitude statements from the technical literature, and actual numbers depend on the process node, voltage and design. Because the figures are small, they are quoted in fJ and pJ, and a kWh conversion only becomes relevant when someone wants to total up the energy of a very large number of events.

Photons, electron volts and the femtojoule

A femtojoule is also a handy scale for light. A visible photon at 550 nm carries E = hc/λ, about 3.61 × 10^-19 J, which is 0.000361 fJ, so one femtojoule holds roughly 2,770 such photons. A femtojoule is about 6,241 electron volts, since the electron volt is defined as exactly 1.602176634 × 10^-19 J. A kilowatt-hour in electron volts is therefore 3.6 × 10^6 divided by 1.602176634 × 10^-19, or about 2.247 × 10^25 eV. These conversions use fundamental constants fixed in the 2019 revision of the SI. They help a reader link the electrical energy of a utility bill to the energy scale of single quantum events. The photon figure is a rounded calculation from the Planck constant and the speed of light, and it changes with wavelength.

Household kilowatt-hours for scale

The US Energy Information Administration reports that an average US home uses about 10,500 kWh of electricity per year, which is roughly 28.8 kWh per day. In femtojoules, one day is about 1.04 × 10^23 fJ and one year is 3.78 × 10^25 fJ. An electric car might use about 0.25 kWh per mile in typical driving, which is illustrative and varies widely by model and conditions, so a 10 mile trip uses 2.5 kWh, or 9 × 10^21 fJ. The energy in a US gallon of gasoline is about 33.7 kWh by the EPA's equivalence figure, which is 1.2 × 10^23 fJ. These are tiny quantities in terms of the electricity grid and enormous in terms of a femtojoule. The page does not estimate the use of any specific appliance. It takes the kWh figure you provide and expresses it in another unit.

Reading very long results

A result with twenty-two digits is easy to miscount. Group by threes, or use scientific notation, which also shows the correct number of significant figures. For an input with two significant digits, such as 10 kWh, write 3.6 × 10^22 fJ. If the input is 10.00 kWh, write 3.600 × 10^22 fJ. Spreadsheet programs switch to E notation for numbers above about 10^11 in a default cell, and they hold roughly fifteen significant digits, which is more than the page needs. When two long results are compared, do the comparison by exponent first. A value of 3.6 × 10^22 is larger than 9.0 × 10^21 by a factor of four, which you can see without writing out any zeros. If you need to report the number in a formal document, state both the unit and the exponent so that nobody has to count digits.

Prefix ladder from joules down

The SI prefixes for small quantities go in steps of one thousand: milli at 10^-3, micro at 10^-6, nano at 10^-9, pico at 10^-12, femto at 10^-15 and atto at 10^-18. One joule is 10^3 mJ, 10^6 µJ, 10^9 nJ, 10^12 pJ and 10^15 fJ. The drop-down lists on the page include nanojoules and microjoules, so you can check the chain: 1 kWh is 3.6 × 10^12 µJ, 3.6 × 10^15 nJ and 3.6 × 10^18 pJ before reaching 3.6 × 10^21 fJ. Each step multiplies by 1,000. A good habit is to convert in two stages and compare with the one-step answer. If the staged and direct results disagree, a prefix has been skipped or counted twice. The page makes no judgment about which prefix is appropriate, so pick the one that gives a result between 0.1 and 1,000 when you can.

Reverse conversion

To go from femtojoules to kilowatt-hours, divide by 3.6 × 10^21. A switching event of 1 fJ is 2.78 × 10^-22 kWh, and a billion such events is 2.78 × 10^-13 kWh. Running a computation of 10^18 operations at 10 fJ each uses 10^19 fJ, which is 2.78 × 10^-3 kWh, or 2.78 watt-hours. The arithmetic shows how small the logic energy of a large computation can be, and it also shows why real systems use far more energy than this ideal: data movement, memory, power conversion and cooling dominate. The page exposes the same factor in either direction, and if your from-unit is the one on the other end, choose it in the From list. The default pair is kilowatt-hours to femtojoules.

What the conversion does not tell you

A kilowatt-hour on a bill is energy delivered at the meter, which is not the same as the energy that does useful work, and the page applies no efficiency, power factor or tariff to it. It also estimates nothing about a device or data center. The femtojoule is an energy unit, so the output never describes a rate. The BIPM SI Brochure defines the joule and the prefix, and NIST SP 811 gives the kilowatt-hour as exactly 3.6 MJ.

A worked comparison with a computation

Consider an illustrative computation of 10^15 operations, a quadrillion, in which each operation costs 5 fJ of logic switching energy. The total is 5 × 10^15 fJ. To express it in kilowatt-hours, divide by 3.6 × 10^21, which gives 1.39 × 10^-6 kWh, or about 1.4 millionths of a kilowatt-hour. Now suppose a processor running at 100 W for one second, which uses 100 J (2.78 × 10^-2 Wh) or 10^17 fJ, performs those same 10^15 operations in that second. Dividing by the 5 × 10^15 fJ of idealized switching energy gives 20, so the real chip would draw about twenty times more than the pure switching estimate, before counting memory and cooling. The figures are made up for the exercise and do not describe any actual processor. The method is what matters: choose one unit, convert each quantity to it, and compare the ratios.

Why scale charts use unit conversions like this

Energy charts that span many orders of magnitude, such as those that start from a photon and end at a national electricity budget, rely on conversions of this kind. A chart might place a green photon at 0.00036 fJ, a transistor switch near 1 fJ, a food calorie (kilocalorie) at 4.184 kJ or 4.184 × 10^18 fJ, a kilowatt-hour at 3.6 × 10^21 fJ, and the annual output of a 1 GW power plant at full load, about 3 × 10^31 fJ. Converting everything into one unit lets the log scale be drawn with a single axis. The values for biological and industrial events vary widely, so labels on such charts should say when they are approximate. The page supplies exact conversions for the units it lists, and the choice of examples and their reliability remain with the author of the chart.