Why a factor of 10^21 comes up
Megajoules appear in household energy, fuel and food calculations, while femtojoules appear in the description of single operations in electronic circuits and very small events. A student or engineer who puts both on the same scale gets a feel for how far apart they are. This page does the multiplication and shows the result in scientific notation, which is the only practical way to write it. A 10 MJ input returns 1e+22 fJ, a one followed by 22 zeros. The converter suits unit exercises, order-of-magnitude checks and documents that must state an energy in a prescribed unit. Teachers use the same pair to show that SI prefixes are a chain: mega, kilo, base, milli, micro, nano, pico and femto, each step a factor of 1,000, and this conversion walks across seven of them.
Counting the prefixes
Mega stands for 10^6 and femto for 10^-15, as defined in the SI Brochure. Converting from the larger prefix to the smaller one multiplies by 10^(6 − (−15)), which is 10^21. The formula is fJ = MJ × 10^21. There is no offset or constant. A value of 0.5 MJ is 5 × 10^20 fJ, and 3.6 MJ is 3.6 × 10^21 fJ. Reading the exponent is the easy way to check the result: add 21 to the exponent of the megajoule value written in scientific notation. A value of 2.5 × 10^-3 MJ, which is 2.5 kJ, becomes 2.5 × 10^18 fJ, since -3 plus 21 is 18. Doing the exponent sum first and the multiplication of the leading digits second avoids most slips.
The default of 10 MJ
The starting entry, 10 MJ, returns 1 × 10^22 fJ. In everyday terms 10 MJ is about 2.8 kWh, roughly what a small electric heater uses in under two hours, or the food energy of about 2,390 kilocalories, close to a day of eating for many adults. The default also matches the energy in about 0.3 liters of gasoline, using roughly 34 MJ per liter. Entering 1e22 fJ with the units reversed returns 10 MJ. The default shows how the engine presents very large outputs, using exponent notation, which you can copy into most spreadsheets and programming languages without change.
Household and food energy in the same unit
A kilowatt-hour equals 3.6 MJ, so one kWh is 3.6 × 10^21 fJ. A 2,000 kilocalorie day is 8.368 MJ using the thermochemical calorie of 4.184 J, which is 8.368 × 10^21 fJ. These numbers are not meant to be used in practice. They illustrate how little sense femtojoules make for large quantities and how well suited the prefix system is to different scales. The point of the exercise is to read exponents correctly and to confirm that you can translate between prefixes without losing track of the sign.
Where femtojoules are the natural unit
In integrated circuits, the energy to switch a single transistor or move one bit across a short wire is often discussed in femtojoules or attojoules. Researchers quote energy per operation or per bit in fJ to compare designs. A processor that executes billions of operations each second at tens of femtojoules per operation still draws watts of power in total, because the number of operations is so large. The unit is a good fit for the individual event, and megajoules suit the accumulated energy over hours or days. Memory designers compare technologies this way, quoting how many femtojoules a read or write costs, and the same figure multiplied by a count of billions of operations per second lands in the nanojoule to microjoule range per second of activity. The conversion to megajoules shows how large the total grows only for very long runs of very many devices.
Joules and electronvolts
An electronvolt is exactly 1.602176634 × 10^-19 J, so one femtojoule is about 6,241.5 eV. Photon energies in visible light are a few electronvolts, which is a tiny fraction of a femtojoule. Physicists moving between the SI and atomic scales use these relations often. A megajoule is therefore about 6.24 × 10^24 eV. The page here covers the joule prefixes only, and the electronvolt unit is on the energy converter of this site for readers who need it. A single 2 eV photon carries about 0.00032 fJ, so 1 MJ of light at that energy per photon would be about 3.1 × 10^24 photons, a count that shows how many tiny events make up one everyday quantity of energy.
Everyday sense of a megajoule
One megajoule is about the kinetic energy of a 1,000 kg car at roughly 160 km per hour, since half of 1,000 kg times the square of 44.4 m/s is close to 0.99 MJ. It is also about the heat released by burning roughly 30 milliliters of gasoline, using about 34 MJ per liter. These everyday comparisons give the megajoule meaning before the page multiplies it by 10^21. The femtojoule has no comparable daily experience, which is why scientific notation is more helpful than the long form. A brisk walk of one hour uses on the order of 1 MJ of food energy, and a laptop running for two hours at 40 W uses 0.288 MJ, so everyday devices land between 0.1 and 10 MJ and map to 10^20 to 10^22 fJ.
Writing very large and small numbers
Entering and reading values of this size takes care. Spreadsheets display 1E+22 and accept the same text when you type it. Avoid inserting thousands separators into numbers that are in exponent form, and keep the unit symbol with every result, such as 1 × 10^22 fJ. When you reverse the direction, enter the femtojoule value with an e exponent, for example 1e22, and check that the result matches your starting figure. A mismatch usually means a sign error in the exponent. Programming languages read 1e22 and 1E22 alike, but some form fields reject the plus sign in 1e+22, in which case type the digits without it.
Energy per operation in chips
The page converts between two SI prefixes of the joule. It does not model any physical process, efficiency or loss, and it does not say that a given device uses any particular energy per operation. Results are shown with the precision of the engine, which for powers of ten is exact within double-precision arithmetic. Use it for unit work and order-of-magnitude checks, and take physical values from the data sheet or paper that supplies them.