A transistor-scale figure next to a heating bill

Energy per operation in electronics is quoted in nanojoules, while energy supplied to a building or a facility is quoted in gigajoules. Natural gas utilities in some countries bill in gigajoules, and district heating networks in parts of Europe do the same. A person who wants to know what billions of memory accesses add up to, or who is building a slide that runs from a single chip operation to a household heating season, needs both numbers in one unit. This page divides a nanojoule value by 10^18 and returns gigajoules. It is useful for engineers, students and analysts who work across scales and who would rather not count eighteen zeros by hand.

Nine steps up and nine more

Nano means 10^-9 and giga means 10^9, so a gigajoule holds 10^18 nanojoules, which is one quintillion. The formula is GJ = nJ × 1e-18. Both prefixes are defined in the BIPM SI Brochure and listed in NIST SP 811, and the factor has no rounding. By hand you can move the decimal point eighteen places to the left, or go through the joule: divide by one billion to get joules, then by one billion again to get gigajoules. A value of 4,000,000,000,000,000,000 nJ is 4 GJ. Because the digits of the answer match the digits of the input, comparing significant figures is a quick way to catch a slip.

What 1e-17 means for the default input

The page opens with 10 nJ and returns 1e-17 GJ, which is 0.00000000000000001 GJ. Written out, the number has sixteen zeros after the decimal point, and one dropped zero changes the answer by a factor of ten. Scientific notation avoids that. Read the figure after the e as the power of ten, so 1e-17 is 1 × 10^-17. Spreadsheets accept this form when you paste it into a cell, and so do most programming languages. For a single 10 nJ event the result is tiny on any scale, which is the point of the example: one operation is invisible next to a gigajoule, and only repetition makes it matter.

Memory accesses summed over a job

Suppose a processing job performs 5 × 10^15 memory accesses and each one costs about 20 nJ (an illustrative figure, since real values depend on the memory type and the process). The total is 10^17 nJ, which the page converts to 0.1 GJ. That is 27.78 kWh. The example shows how a very small unit still produces a visible energy figure after enough repetitions, and why data center operators track energy per operation as well as total consumption. A different access cost, say 35 nJ, scales the answer in direct proportion, so you can rerun the page with your own datasheet value.

Gigajoules on a gas statement

A household that uses 60 GJ of natural gas over a year (an illustrative total, since climate and home size change it) has consumed 6 × 10^19 nJ. The same energy is about 16,667 kWh, which helps when you compare gas with electricity. The conversion between GJ and kWh is a division by 3.6 million J per kWh, so 1 GJ equals 277.78 kWh. Gas statements may also show cubic meters or cubic feet, and a utility multiplies those by a heating value to reach gigajoules. This page starts from the energy side and does not know the heating value of any gas, so it cannot read a meter for you.

Starting from a gigajoule value

To go the other way, set gigajoules as the source and nanojoules as the target. A 0.5 GJ quantity becomes 500,000,000,000,000,000 nJ, or 5 × 10^17 nJ. Few people would quote a utility-scale amount in nanojoules, but a script that stores every energy figure as an integer number of nanojoules has to handle numbers of this size. A 32-bit integer cannot hold them, and floating-point formats lose the low digits once a value passes about fifteen significant figures. Checking one known conversion with this page, such as 1 GJ equals 10^18 nJ, tells you quickly whether a data pipeline treats the unit and the data type correctly.

Prefix letters and similar symbols

The symbols nJ and GJ differ only in two letters, and their meaning differs by 18 powers of ten. A lowercase n is nano and a capital G is giga. Software that changes case can silently turn one into the other, so keep the header of every column spelled out, for example energy in nanojoules, and avoid abbreviations where a reader could misread them. A related slip is mixing gigajoules with gigawatts. Gigajoules measure an amount of energy, while gigawatts measure how fast energy flows. A power plant rated at 1 GW delivers 1 GJ every second at full output, but that is a statement about time as well as the unit.

Gigajoules, megajoules and therms

Energy suppliers do not agree on one unit, so a bill from a different country can look unfamiliar. One gigajoule is 1,000 megajoules, and gas utilities in Australia usually quote megajoules while some Canadian ones quote gigajoules. In the United States, gas is often billed in therms, where one therm is 100,000 BTU (International Table), about 105.5 MJ. That makes 1 GJ roughly 9.48 therms and 277.78 kWh. When you compare quotes from different suppliers, convert everything to one unit first, preferably gigajoules or kilowatt-hours, and check that the heating value used to turn a gas volume into energy is stated. This page links the smallest unit in its list to the large one, and you can chain the result into any of those units afterward. Keep a note of the heating value or the conversion factor your supplier used, because two utilities can differ in how they convert a gas volume into energy.

Pricing a gigajoule and sizing a computing job

Typing a nanojoule figure here gives you a gigajoule figure and nothing else. A cost needs one more step: multiply the gigajoules by the rate on your gas or district heating statement. The energy of a computing job needs a different source, either measured power multiplied by run time or a vendor datasheet value, and that number is what you bring to the converter. Fuel heating values, boiler efficiency and billing fees sit outside the arithmetic. The factor comes from the SI prefixes, so every input is treated alike, and a wrong answer almost always traces to a mistyped exponent or a menu left on the wrong unit. When the answer looks odd, convert 1 GJ the other way and confirm that it returns 10^18 nJ.