Twenty-one decades apart

Femtojoules count single events on a chip. Megajoules count the energy in fuel, the kinetic energy of a vehicle, or the output of a power plant in a few seconds. This converter relates the two across twenty-one orders of magnitude. The most common reason to do so is to see how many elementary events add up to a quantity of fuel or work, or to check a table that spans the whole range. Typical examples are a CPU running for a year compared with the energy in a liter of gasoline, or an array of sensors compared with a car battery. The conversion is a prefix change, and the exponent is large enough that doing it carefully pays off. A year has about 3.156e7 seconds, so a device that dissipates 1 W for a year uses 31.56 MJ, which is 3.156e22 fJ, a handy anchor for annual energy estimates.

Units and exact factor

Mega is 1e6 and femto is 1e-15, both exact in the SI Brochure and NIST SP 811. The ratio is 1e-21, so MJ = fJ × 1e-21, and the page prints the factor as 1e-21. A megajoule is one million joules, which equals 0.27778 kWh, or 947.8 BTU on the International Table definition, or 238.9 kcal thermochemical. The figures follow from exact definitions. The factor is exact, so any odd trailing digit in a result is a floating point effect. Counting twenty-one decimal places by hand is error-prone, so check the result by confirming that a 1 MJ entry returns 1e21 fJ in the reverse direction.

What the default result means

With 10 fJ entered, the output is 1.0000000000000001e-20 MJ. The intended value is 1e-20 MJ. Consider what that means in fuel terms. Gasoline carries roughly 44 to 46 MJ per kilogram, a commonly cited figure that varies by blend. A ten femtojoule event is therefore 1e-20 MJ, against about 34 MJ in a liter of gasoline, a ratio near 3e-22. The quantity is not measurable by any fuel gauge, which is the purpose of the example: it shows the size of the gap that the exponent notation compresses into a single readable number.

Example with 7.5e12 fJ

An energy of 7,500,000,000,000 fJ is 7.5 mJ, and the converter returns 7.5e-9 MJ. Consider the reverse of a typical tallying task. A camera flash discharges around 7.5 mJ in a short pulse, and a megajoule would power about 133 million such flashes, since 1e6 J divided by 7.5e-3 J is 1.33e8. The numbers are illustrative, but they show how a small everyday energy still sits twelve decades below a megajoule. Doing the same calculation by hand in joules is easy, and the converter confirms the result in the units that the document needs.

Megajoules back to femtojoules

Reverse the selectors to multiply by 1e21. A megajoule is 1e21 fJ, 2.5 MJ is 2.5e21 fJ, and 0.1 MJ is 1e20 fJ. A convenient benchmark is that 1 MJ is the kinetic energy of a 1,000 kg car at about 44.7 m/s, which is about 100 mph or 161 km/h, from ½mv² = 0.5 × 1,000 × 44.72² ≈ 1e6 J. In femtojoule terms, that car carries 1e21 fJ. Such figures help calibrate intuition, and the converter ensures that the exponent matches the unit label when you move between a lab report and an engineering document.

MJ against mJ

The difference between capital M and lowercase m separates a million joules from a thousandth of a joule, a factor of 1e9. In handwritten notes, in all-caps documents, and in some tool outputs, the case of the letter can be lost. A value labeled MJ in a CAPS-only table could be either. If a result from this page looks nine orders of magnitude off from what you expect, check the case of the prefix at the source. This converter lists megajoules by name in its selectors, and its sibling for millijoules handles the other prefix, so there is no ambiguity once the correct page is selected.

Where megajoules are used

Megajoules are used for the specific energy of fuels (MJ per kilogram), the energy content of natural gas (MJ per cubic meter), and in standards that specify energy in a convenient decimal unit. Natural gas is often quoted around 38 MJ per cubic meter, though it varies with composition and region. Battery packs are rated in kWh, with 1 kWh being 3.6 MJ. Crash and impact testing sometimes uses kJ or MJ for energy absorbed. For all these uses the megajoule is a round, easily scaled unit. The femtojoule never appears in these documents, so the page serves as a bridge when comparing a chip-level estimate with a fuel or battery figure. An electric vehicle battery of 60 kWh stores 216 MJ, which is 2.16e23 fJ, and that number shows how many 10 fJ operations the pack could in principle fund if no energy were lost to heat or conversion, about 2.2e22.

Two figures in 7.5e12 fJ as megajoules

Because the factor is exact, the result has as many meaningful digits as the input, so 7.5e12 fJ gives 7.5e-9 MJ with two figures. The page prints the answer to about sixteen digits, and trailing digits come from binary arithmetic, as in 1.0000000000000001e-20. Round to the digits you trust. When combining several results, work in joules until the last step, since adding numbers of very different size in floating point can lose the smaller ones. For example, adding 1e-20 MJ to 1 MJ in double precision returns exactly 1 MJ, because the smaller term is below the resolution. That is correct behavior and not an error in the converter. The same limit applies in spreadsheets, so a total that mixes MJ-scale and fJ-scale items should be kept in separate lines or reported in a single unit with the small items stated as negligible.

Fuel use, range and plant output excluded

The converter changes the unit of an energy value. It does not compute fuel consumption, vehicle range, power plant output or the cost of energy, and it does not apply any heating-value convention such as higher or lower heating value. The unit relations are from the SI Brochure and NIST SP 811. For a fuel or battery decision, take the energy content from the supplier or the relevant standard and state which convention applies.