Energy per instruction and per bit
Computer architects and embedded designers describe energy per operation in nanojoules. A processor core that draws 3 W while it executes 3 billion instructions a second spends about 1 nJ per instruction. A low-power radio that sends data at 50 nJ per bit uses a particular share of a sensor node battery. A reader who must relate such figures to a plant or a grid total has to bridge 21 orders of magnitude. This page multiplies a terajoule value by 10^21 and returns nanojoules, and the answer appears in scientific notation so that the exponent stays readable. A server processor that draws 100 W while it runs 2 × 10^11 instructions a second spends 0.5 nJ per instruction.
Twenty-one zeros
Tera is 10^12 and nano is 10^-9, so a terajoule contains 10^21 nanojoules, and the formula is nJ = TJ × 10^21. Both prefixes are exact decimal powers in the SI Brochure, and NIST SP 811 lists them. Moving the decimal by hand means 21 places to the right: 0.003 TJ is 3 × 10^18 nJ. The reverse step divides by 10^21, so 1 nJ is 10^-21 TJ. A useful check goes through the joule, where 1 J is 10^9 nJ, and from there to terajoules by dividing by 10^12. The two steps multiply to 10^21, and a result off by a factor of ten means one step was miscounted.
Reading 10^22 for the default
The page opens with 10 TJ and returns 1 × 10^22 nJ. At 1 nJ per instruction, an illustrative value, the default would pay for 10^22 instructions, which is about 3 × 10^12 seconds of work on a single 3 GHz core, around 100,000 years. The point is the scale: a nanojoule is a tiny packet even for a computer, yet a facility total contains an enormous count of them. Large computing sites use such arithmetic when they estimate the energy bill of a workload, but they usually work in kilowatt-hours or joules per job and not in nanojoules.
Radio and wireless sensor budgets
A wireless sensor that transmits at 250 kb/s and spends 50 nJ per bit draws about 12.5 mW while the radio is on, since 250,000 bits per second times 50 nJ is 0.0125 W. Sending a 100-byte packet takes 800 bits, which costs 40,000 nJ or 40 µJ for the transmission itself. Designers use such per-bit figures to estimate battery life from the number of packets per day. The page converts one energy value to nanojoules. Real consumption also includes sleep current, wake-up time and protocol overhead, which a conversion tool does not model, so a measured profile is the only reliable source. A coin cell holding 2,430 J would cover about 60 million such packets for the transmission alone, which shows why the other costs dominate in practice.
Memory and storage accesses
Moving data costs energy, and a memory access can consume from fractions of a nanojoule for on-chip cache to several nanojoules for off-chip memory, depending on the technology and the width of the access. These figures change with each hardware generation, so use the datasheet of the part in front of you. An engineer who profiles a program multiplies the number of accesses by the energy per access and gets joules for the run. A billion accesses at 2 nJ each is 2 J. That example uses an illustrative value, and the conversion on this page works the same way for any energy per access you enter. Reading 1 GB at an illustrative 0.1 nJ per byte costs 0.1 J.
Sensor pulses and detectors
Photon counting and radiation detectors register events with energies that can be written in nanojoules at the pulse level, for example a light pulse of 5 nJ falling on a photodiode. A visible photon carries about 3.7 × 10^-19 J, so a 5 nJ pulse holds roughly 1.4 × 10^10 photons. This calculation uses the photon energy, which this page does not supply. The page contributes the unit link between a nanojoule figure and a larger total. For detector work, the responsivity and noise floor from the datasheet decide what can be measured.
Neighbors on the prefix ladder
A picojoule is 0.001 nJ, a microjoule is 1,000 nJ, a millijoule is a million nJ, and a joule is a billion nJ. Reading a table with mixed units is easier after converting each entry to nanojoules, or to the unit that gives numbers between 1 and 1,000. The terajoule end of the ladder is nine steps of 1,000 above the nanojoule, giving 10^21 in total. If you ever doubt the exponent, count the steps and check that the result has that many groups of three zeros after the leading digits. So 2,500 pJ, 2.5 nJ and 0.0025 µJ describe the same energy, and a table should show it once, in one unit.
Typing nJ correctly
The symbol nJ has a lowercase n and a capital J. A capital N would mean newton, a unit of force, so NJ is not an energy unit. Entering the wrong case in a spreadsheet or a script may be accepted without a warning and then produce a meaningless result. Use the full name in a header, such as nanojoules per bit, when you can. The page labels name each unit in full. If you copy a value from a paper, check the original table for the prefix, since a scanned µ and an n can look alike in poor print. A value that reads 15 nJ in a scan may be 15 µJ in the original, so confirm the prefix whenever a number looks out of place for the device.
Counting tasks inside an energy total
A design review might list energy per task in nanojoules and an annual total in terajoules, and the reviewer asks how many tasks fit in the total. Dividing the total in nanojoules by the cost of one task gives the count. The count is only as good as the per-task figure, which depends on the hardware, the temperature and the supply voltage, so take it from a measurement. The converter handles the unit step with full precision. If two spreadsheets disagree, compare the units of each column first, and then the number of tasks counted. For example, 0.5 TJ divided by 1 nJ per task allows 5 × 10^20 tasks.