Two ends of the prefix ladder
Gigajoules measure building and utility energy, while femtojoules measure the energy of a single switching event in electronics or a very weak pulse of light. A converter between them gives numbers with twenty-four zeros, which is why the pair is used for scale comparisons more than for everyday arithmetic. A student writing about computing energy, or an engineer comparing battery capacity with per-operation energy, may want the large value expressed in the small unit to count how many operations a battery could supply. The default of 10 GJ is 10^25 fJ. In practice the people who type this pair are physics and electrical engineering students writing about energy per bit or per operation, and lab technicians sizing pulses from a laser.
The factor 10^24
The SI prefixes in the SI Brochure and NIST SP 811 give giga as 10^9 and femto as 10^-15. The ratio is 10^24, so converting means shifting the decimal point twenty-four places to the right. The factor is exact, and a two-step route gives the same answer: GJ to J multiplies by 10^9 and J to fJ multiplies by 10^15. Results are best written as a power of ten: 1 GJ is 1 × 10^24 fJ, 3.5 GJ is 3.5 × 10^24 fJ and 10 GJ is 1 × 10^25 fJ. The displayed value may show a tiny floating-point rounding, such as 9.999999999999999e+24, which is computer arithmetic and not a physical difference.
A battery in femtojoules
A laptop battery of 50 Wh holds 180,000 J, since one watt-hour is 3,600 J. That is 0.00018 GJ, or 1.8 × 10^20 fJ. If a hypothetical operation costs 10 fJ, the battery could supply 1.8 × 10^19 of them, ignoring conversion losses and everything else the device does. Such figures are illustrative and the efficiency of a real system is far lower. The comparison shows the usefulness of the converter: it puts a battery and a transistor on one scale so that the ratio can be read off.
Energy stored in tiny components
A capacitor of 1 pF charged to 1 V stores one half times C times V squared, which is 0.5 × 10^-12 × 1 = 5 × 10^-13 J, or 500 fJ. A 0.5 pF node at 1 V stores 250 fJ. Circuit designers often estimate switching energy this way when planning low-power chips. The numbers here are textbook examples, and real devices have additional losses. Compared with a GJ, which is 10^24 fJ, a stored 500 fJ is 5 × 10^-22 of the total, so the comparison is mostly useful to show orders of magnitude, for instance in a lab write-up on low-power circuits. A dynamic memory cell of 20 fF at 1 V stores 10 fJ. A coin cell with 225 mAh at 3 V holds about 2,430 J, which is 2.43 × 10^-6 GJ or 2.43 × 10^18 fJ.
Reading femtojoules back to GJ
The reverse multiplies femtojoules by 10^-24. A value of 10 fJ is 10^-23 GJ, a value of 500 fJ is 5 × 10^-22 GJ, and 1.8 × 10^20 fJ is 0.00018 GJ. Because the numbers are extreme, it is easier to move through intermediate units: fJ to J divides by 10^15, and J to GJ divides by 10^9. Choose femtojoules as the From unit and gigajoules as the To unit on this page to do it in one step. Check that your calculator accepts exponent notation, as in 1.8e20. Chip designers often move between pJ and fJ: 0.8 pJ is 800 fJ, and 120 fJ is 0.12 pJ. A processor drawing 15 W uses 1.5 × 10^16 fJ every second, so at an assumed 10 fJ per operation the ceiling would be 1.5 × 10^15 operations per second, a bound that no real chip reaches.
Floating point and rounding
Computers store numbers in binary, so a result that should be 1 × 10^25 may display as 9.999999999999999e+24. That is a rounding artifact in the last digit and has no bearing on the answer. When you report the result, round to the number of digits justified by the input. For a value of 10 GJ with two significant figures, write 1.0 × 10^25 fJ. A spreadsheet that shows 1E+25 still holds the full value, so widen the cell or change the format before copying. Do not subtract two nearly equal large values in this unit, since the digits that matter would be lost.
Prefix mistakes
Femto is f and pico is p. They differ by a factor of 1,000, so 500 fJ is 0.5 pJ. A second error is reading the f as the symbol of a different unit, such as the farad. A third is treating the shift as 10^18, which is the atto range, or 10^21 for zepto. Count the powers carefully, and write the exponent on paper before typing it: the nine from giga plus the fifteen from femto make twenty-four. If you only need a readable number, convert to joules or microjoules first.
Using the comparison sensibly
A ratio of 10^24 is easy to produce and hard to interpret. It is more informative to convert the large value to a human scale, such as kilowatt-hours or the battery example above, and the small value to operations. The converter handles only the unit change. A pulsed laser at 1 nJ per pulse is 10^6 fJ, and at 2.3 eV per photon a single femtojoule holds about 2,700 photons. Data transfer gives another illustration: at an assumed 10 pJ, or 10,000 fJ, per bit, moving 8 × 10^9 bits costs 8 × 10^13 fJ, which is 0.08 J. It does not estimate how efficiently a device uses energy, how many operations an actual chip performs per joule, or any physical process. Use measured figures from data sheets when you need them. One kWh is 3.6 MJ, or 3.6 × 10^21 fJ, so at an assumed 10 fJ per operation a kilowatt-hour would cover 3.6 × 10^20 operations. A smartphone battery of 15 Wh holds 54,000 J, which is 5.4 × 10^-5 GJ or 5.4 × 10^19 fJ.
Source of the definitions
The prefix definitions come from the SI Brochure published by the BIPM and from NIST SP 811. The joule is the SI unit of energy, equal to one newton meter, and every prefixed unit on this page is a power of ten of it. No other constants are involved.