Battery language meets chip language
Watt-hours are how batteries, power banks and energy meters are rated, while femtojoules are how the energy cost of one gate switch or one memory access is described. A conversion between them answers a question that sounds odd but comes up in low-power design: how many operations can a given cell supply? The page uses Wh = fJ × 2.77777777778e-19, which is the same as dividing the femtojoule value by 3.6 × 10^18. The default of 10 fJ becomes about 2.78 × 10^-18 Wh, a number so small that only its exponent matters.
Building the factor from 3,600 joules
One watt is one joule per second, and an hour holds 3,600 seconds, so one watt-hour equals 3,600 J exactly. One joule is 10^15 fJ. Multiplying gives 3.6 × 10^18 fJ per Wh. The reciprocal, 2.7778 × 10^-19, is the factor the page applies. Neither the hour nor the watt carries any approximation here, so the conversion is exact except for the decimal expansion of one third, which repeats. That repeating tail is why the stored factor ends in a 78 and why a result such as 10 fJ appears with a long string of sevens. It also explains why the same number appears whenever a joule is converted to a watt-hour. The reciprocal of 3,600 is 0.000277777..., and the femtojoule prefix only adds fifteen places to that shift. Anyone who remembers that one watt-hour is 3,600 joules can rebuild the whole factor on paper in under a minute, which is more reliable than memorizing a string of digits.
A phone-sized battery in femtojoules
A smartphone cell rated at 3.7 V and 1,000 mAh stores 3.7 Wh, which is 13,320 joules or 1.332 × 10^19 fJ. Enter 3.7 with From set to watt-hours and To set to femtojoules and the page returns that figure. If a sensor node spent 5 fJ per sampled bit, that cell could cover about 2.7 × 10^18 bits in theory, ignoring self-discharge, regulator losses and radio overhead. The calculation is a ceiling on a data sheet idea, not a battery life estimate. It still shows why energy per bit has to be reduced by many orders of magnitude to matter at the battery scale. A phone also spends most of its energy on the display and radios, which is why a per-gate figure says little about the days of use a user sees.
Small amounts of electrical work
Consider a charge of 1.8 × 10^15 fJ, which is 1.8 J. The page returns 0.0005 Wh, or half a milliwatt-hour. This is about the energy in a camera flash capacitor discharge of modest size, and a small coin cell holds thousands of times that. Putting both on the watt-hour scale makes the ratio visible. When you compare, convert the larger and the smaller to the same unit before dividing. A coin cell with 0.7 Wh against a pulse of 0.0005 Wh supports roughly 1,400 such pulses, before the cell voltage sags and efficiency losses reduce that number. If you are modeling a storage capacitor instead, the energy is one half of C times V squared, and a 100 microfarad capacitor at 5 V stores 1.25 millijoules, which is about 3.5 × 10^-7 Wh.
Reverse conversion for budgeting
The reverse direction answers how many femtojoules a stated capacity represents. Choose watt-hours as From and femtojoules as To. A 0.5 Wh pendant battery equals 1.8 × 10^18 fJ. Divide that by the per-operation energy of your design, say 200 fJ per instruction, and you get 9 × 10^15 instructions. The number looks generous, but average system energy usually exceeds core logic energy by large factors because memory, clocks and radios use energy too. Use the conversion for a first bound and replace it with a measured system figure when you have one. If a spreadsheet holds many rows, apply the same factor in a column formula and leave the unit names in the header.
Why metering uses kilowatt-hours instead
Household electricity is billed in kilowatt-hours, which are a thousand times larger than watt-hours, and utilities do not use watt-hours on bills. Watt-hours appear on small batteries, USB power banks and portable devices. If your figure comes from a bill, convert from kWh instead, since a kilowatt-hour is 3.6 × 10^21 fJ. Confusing watt-hours with watts is the most frequent mistake: a watt is a rate of energy use, a watt-hour is an amount. A 5 W charger running for one hour moves 5 Wh, which is 1.8 × 10^19 fJ. A milliwatt-hour, common on small sensors, is 3.6 × 10^15 fJ, so the same ladder of thousands applies on the watt-hour side.
Repeating decimal factor and displayed digits
Because the factor is a repeating decimal, the displayed result often carries more digits than your input supports. An input of 10 fJ has two significant digits, so 2.8 × 10^-18 Wh is an honest way to report the answer. The engine prints 2.777777777777778e-18, which you can trim. Spreadsheets sometimes convert such small values to zero when the format is set to a fixed number of decimals, so use scientific format for any value below 10^-6 Wh. A result of 0.00 in a cell does not mean the energy was zero, only that the display hid it.
Watts, hours and joules as defined in SI
The page assumes joules, hours and watts as defined in the SI and its accepted units, and it reports the same energy in a different unit. It does not model battery chemistry, conversion losses or the depth of discharge that a real device would use. Nor does it say how much of a battery is available to an application, which depends on the cutoff voltage and temperature. Treat the output as unit arithmetic. For any design decision, take the usable capacity from the cell datasheet and the energy per operation from measurements at your actual supply voltage.
Choosing between joules and watt-hours for a report
Electrical engineers working at the chip level usually stay in joules, while product teams and battery suppliers talk in watt-hours or milliwatt-hours. A report that crosses both audiences benefits from a table with three columns: femtojoules, joules and watt-hours. Joules sit in the middle and make each hop a single clean step, since 10^15 fJ make 1 J and 3,600 J make 1 Wh. For a 10 fJ operation the joule value is 10^-14 J, and dividing by 3,600 gives about 2.78 × 10^-18 Wh, matching the page. Writing the intermediate step down prevents a common slip, which is dividing by 3,600,000 instead of 3,600 because a kilowatt-hour was in mind.