The widest gap on the energy ladder
Femto and giga sit twenty-four decades apart, so this converter handles the largest ratio between two common SI prefixes of the joule. Few real tasks need it directly. It is mostly used to check scripts and tables that cover the full range of energies, from a single transistor switching to an annual energy bill, and to demonstrate how large the difference is. A building energy report uses gigajoules, a processor datasheet uses picojoules or femtojoules per operation, and a data center analysis may need to relate the two. The conversion is a pure change of prefix, but with twenty-four places a manual shift is error-prone, so the tool is useful as a check.
Definition of the units
The joule is the SI unit of energy, the work done by a force of one newton over a distance of one meter, equal to one watt second and to kg m² s⁻². Giga means 1e9 and femto means 1e-15, both exact prefixes listed in the SI Brochure and in NIST SP 811. Their ratio is 1e-24, so GJ = fJ × 1e-24. The page prints the factor as 1e-24. Since the relation is a pure power of ten, there is no uncertainty in the factor. A gigajoule is also 277.78 kWh, from 1e9 J divided by 3.6e6 J per kWh, and about 0.9478 MMBtu on the International Table definition.
The default 10 fJ in GJ
The default gives 1.0000000000000001e-23 GJ, which is 1e-23 GJ. Written in full, it is a decimal point followed by twenty-two zeros and a one. The stray digit at the end comes from floating point, and the intended answer is 1e-23. To make that figure tangible, consider that a household might use roughly 40 GJ of energy in a year in some climates, and 10 fJ is smaller than that by a factor of 4e24. Even a chip performing 1e12 operations per second for a full year at 10 fJ each would draw 0.01 W continuously for 3.15e7 seconds, about 3.15e5 J or 0.000315 GJ, so the tiny energy matters only through enormous repetition. Multiply by a million such chips and the yearly total reaches 315 GJ, which is the scale of a few households.
Example with 500 fJ
A value of 500 fJ gives 5e-22 GJ. Running the numbers for repetition: a server farm with 1e6 processors, each doing 1e10 operations per second at 500 fJ per operation, dissipates 1e6 × 1e10 × 5e-13 J per second = 5e3 J/s, that is 5 kW. Over a year of 3.156e7 seconds that comes to 1.578e11 J, or 157.8 GJ. These are illustrative figures chosen for the arithmetic, not measurements of any system. The example shows that 500 fJ per operation, small as it looks, can add up to a gigajoule-scale annual bill once it is multiplied by a very large number of operations.
Gigajoules back to femtojoules
The reverse multiplies by 1e24. One gigajoule is 1e24 fJ, a one followed by twenty-four zeros, and 3.6 GJ, which is one megawatt-hour, is 3.6e24 fJ. When the target spreadsheet lacks exponent notation, store the numbers in joules and convert only at the display stage, since a cell format that rounds to 15 digits would lose information. For checking, remember that 1 GJ is 1e9 J and 1 fJ is 1e-15 J. If you enter 1 GJ and do not get a number with exponent 24, the selectors are probably not set as intended. Also keep in mind that 1 GJ is 1,000 MJ, so a report in MJ can be checked against this page by dividing by 1,000 first.
Where gigajoules are used
The gigajoule is a standard unit for district heating, building energy intensity and natural gas sales in Canada and parts of Europe and Asia. A tonne of oil equivalent is about 41.868 GJ by the International Energy Agency convention, and a barrel of crude oil carries about 6.1 GJ in common reference tables, though exact values vary with grade. The energy released by a ton of TNT is defined as 4.184 GJ. Those references are listed in agency documents, and a reader should use the source for the exact convention. The femtojoule figure never appears in such documents, so the converter is a tool for bridging disciplines. A utility analyst reading a report in GJ and a chip designer reading a datasheet in fJ would otherwise need a long chain of unit steps to compare their numbers, and each step is a chance for a slipped exponent.
Choosing a sensible prefix
Because the conversion spans twenty-four decades, intermediate prefixes make it easier to read. Between fJ and GJ lie pJ, nJ, µJ, mJ, J, kJ and MJ. A result of 5e-22 GJ is better written as 500 fJ, and 157.8 GJ is better written as 157.8 GJ. The rule is to select the prefix that places the number between 1 and 1,000. Using the wrong prefix does not change the physics, but it makes errors more likely in transcription. If you need a ratio, convert both values into joules first and divide, which avoids a long exponent calculation in your head.
Precision at extreme ratios
Double precision floating point handles exponents from about 1e-308 to 1e308, so 1e-24 is comfortably inside the range and a result such as 1e-23 is stored without underflow, and the relative rounding error is about 1e-16. The only visible effect is a stray digit in the sixteenth place, as in 1.0000000000000001e-23. That error is far below the uncertainty of any physical energy measurement, which rarely reaches nine significant figures. If a calculation sums many values of very different sizes, such as femtojoule events and gigajoule totals, add the smaller ones first or work in joules to reduce accumulated rounding. For a single conversion, no special care is needed beyond rounding the output.
Prefix change only, no totals or costs
The page changes the prefix of an energy value. It does not total repeated events, estimate costs, or convert energy into power, since that needs a time. The relation between the units follows from the SI Brochure and NIST SP 811 definitions. For energy accounting, make sure the number of events and their duration are right, and take energy prices, heating values and emission factors from the relevant utility or agency, not from this converter.